@pisell/private-materials 6.3.95 → 6.3.97

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 (273) 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/addons/model.d.ts +1 -10
  12. package/es/components/booking/forms/model.d.ts +1 -10
  13. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  14. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  15. package/es/components/booking/info/model.d.ts +1 -10
  16. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  17. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  18. package/es/components/booking/model.d.ts +1 -9
  19. package/es/components/booking/notes/model.d.ts +1 -10
  20. package/es/components/booking/payments/model.d.ts +1 -10
  21. package/es/components/booking/utils.d.ts +2 -2
  22. package/es/components/eftposPay/amount.d.ts +1 -1
  23. package/es/components/eftposPay/device.d.ts +1 -1
  24. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  25. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  26. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  27. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  28. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  29. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +18 -7
  30. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
  31. package/es/plus/saasAttendance/locales.js +71 -2
  32. package/es/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
  33. package/es/plus/saasAttendance/settings/PermissonTab.js +79 -0
  34. package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +9 -3
  35. package/es/plus/saasAttendance/settings/components/MapField.js +69 -33
  36. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
  37. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +149 -0
  38. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
  39. package/es/plus/saasAttendance/settings/index.js +7 -0
  40. package/es/plus/saasAttendance/settings/index.less +15 -0
  41. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  42. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  43. package/es/pro/Selector/Selector.d.ts +1 -1
  44. package/lib/components/booking/addons/model.d.ts +1 -10
  45. package/lib/components/booking/forms/model.d.ts +1 -10
  46. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  47. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  48. package/lib/components/booking/info/model.d.ts +1 -10
  49. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  50. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  51. package/lib/components/booking/model.d.ts +1 -9
  52. package/lib/components/booking/notes/model.d.ts +1 -10
  53. package/lib/components/booking/payments/model.d.ts +1 -10
  54. package/lib/components/booking/utils.d.ts +2 -2
  55. package/lib/components/eftposPay/amount.d.ts +1 -1
  56. package/lib/components/eftposPay/device.d.ts +1 -1
  57. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  58. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  59. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  60. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  61. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  62. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +7 -1
  63. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
  64. package/lib/plus/saasAttendance/locales.js +65 -2
  65. package/lib/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
  66. package/lib/plus/saasAttendance/settings/PermissonTab.js +128 -0
  67. package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +2 -1
  68. package/lib/plus/saasAttendance/settings/components/MapField.js +50 -11
  69. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
  70. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +150 -0
  71. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
  72. package/lib/plus/saasAttendance/settings/index.js +12 -0
  73. package/lib/plus/saasAttendance/settings/index.less +15 -0
  74. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  75. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  76. package/lib/pro/Selector/Selector.d.ts +1 -1
  77. package/lowcode/eco-cup-list/meta.ts +1 -1
  78. package/lowcode/eco-customer-list/meta.ts +1 -1
  79. package/package.json +2 -2
  80. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  81. package/es/components/appointmentBooking/locales.d.ts +0 -366
  82. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  83. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  84. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  85. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  86. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  87. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  88. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  89. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  90. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  91. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  92. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  93. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  94. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  95. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  96. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  97. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  98. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  99. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  100. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  101. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  102. package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
  103. package/es/components/booking/info2/service/addService/mock.d.ts +0 -214
  104. package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
  105. package/es/components/booking/notes/addNote/index.d.ts +0 -4
  106. package/es/components/ecocup/cupList/const.d.ts +0 -133
  107. package/es/components/ecocup/hooks.d.ts +0 -49
  108. package/es/components/ecocup/locales.d.ts +0 -339
  109. package/es/components/eftpos/index.d.ts +0 -47
  110. package/es/components/eftpos/locales.d.ts +0 -99
  111. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
  112. package/es/components/eftposPay/const.d.ts +0 -184
  113. package/es/components/eftposPay/hooks.d.ts +0 -35
  114. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  115. package/es/components/eftposPay/locales.d.ts +0 -330
  116. package/es/components/eftposPay/payo/config.d.ts +0 -13
  117. package/es/components/eftposPay/payo/const.d.ts +0 -26
  118. package/es/components/eftposPay/store/index.d.ts +0 -355
  119. package/es/components/eftposPay/tyro/const.d.ts +0 -17
  120. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  121. package/es/components/eftposPay/windcave/const.d.ts +0 -119
  122. package/es/components/eftposPay/windcave/helper.d.ts +0 -23
  123. package/es/components/eventBooking/locales.d.ts +0 -246
  124. package/es/components/login/locales.d.ts +0 -24
  125. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  126. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  127. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  128. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  129. package/es/components/pay/toC/locales.d.ts +0 -307
  130. package/es/components/pay/toC/model.d.ts +0 -40
  131. package/es/components/pinModal/locales.d.ts +0 -27
  132. package/es/components/pinVerifyModal/locales.d.ts +0 -24
  133. package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  134. package/es/components/productExtension/locales.d.ts +0 -48
  135. package/es/components/productSelect/locales.d.ts +0 -18
  136. package/es/components/schedules/locales.d.ts +0 -87
  137. package/es/components/shoppingCart/locales.d.ts +0 -33
  138. package/es/components/shoppingCart/type.d.ts +0 -48
  139. package/es/components/stepController/locales.d.ts +0 -27
  140. package/es/components/subTotal/locales.d.ts +0 -42
  141. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  142. package/es/components/systemSettings/registry/services.d.ts +0 -77
  143. package/es/components/systemSettings/registry/types.d.ts +0 -126
  144. package/es/components/taxSelect/locales.d.ts +0 -24
  145. package/es/components/ticketBooking/locales.d.ts +0 -174
  146. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  147. package/es/components/wallet/utils.d.ts +0 -48
  148. package/es/components/walletList/locales.d.ts +0 -27
  149. package/es/components/walletList/types/index.d.ts +0 -194
  150. package/es/hooks/useEngineContext.d.ts +0 -11
  151. package/es/hooks/useWindowSize.d.ts +0 -5
  152. package/es/plus/clientCard/locales.d.ts +0 -18
  153. package/es/plus/clinetSearch/locales.d.ts +0 -108
  154. package/es/plus/contactInfo/locales.d.ts +0 -15
  155. package/es/plus/contactInfoModal/locales.d.ts +0 -66
  156. package/es/plus/productSelect/locales.d.ts +0 -18
  157. package/es/plus/saasAttendance/locales.d.ts +0 -318
  158. package/es/plus/saasAttendance/settings/types.d.ts +0 -128
  159. package/es/plus/saasCreateOrganization/locales.d.ts +0 -15
  160. package/es/plus/saasLogin/locales.d.ts +0 -51
  161. package/es/plus/saasRegister/locales.d.ts +0 -117
  162. package/es/plus/saasRole/locales.d.ts +0 -193
  163. package/es/plus/saasRole/types.d.ts +0 -175
  164. package/es/plus/saasTeamMembers/locales.d.ts +0 -330
  165. package/es/plus/saasTeamMembers/type.d.ts +0 -156
  166. package/es/plus/selectHolder/locales.d.ts +0 -27
  167. package/es/plus/walletEditor/locales.d.ts +0 -135
  168. package/es/plus/walletEditor/types.d.ts +0 -52
  169. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  170. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  171. package/es/pro/Login2.0/locales.d.ts +0 -543
  172. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  173. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  174. package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
  175. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  176. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  177. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  178. package/lib/components/appointmentBooking/locales.d.ts +0 -366
  179. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  180. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  181. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  182. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  183. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  184. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  185. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  186. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  187. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  188. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  189. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  190. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  191. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  192. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  193. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  194. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  195. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  196. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  197. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  198. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  199. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
  200. package/lib/components/booking/info2/service/addService/mock.d.ts +0 -214
  201. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
  202. package/lib/components/booking/notes/addNote/index.d.ts +0 -4
  203. package/lib/components/ecocup/cupList/const.d.ts +0 -133
  204. package/lib/components/ecocup/hooks.d.ts +0 -49
  205. package/lib/components/ecocup/locales.d.ts +0 -339
  206. package/lib/components/eftpos/index.d.ts +0 -47
  207. package/lib/components/eftpos/locales.d.ts +0 -99
  208. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
  209. package/lib/components/eftposPay/const.d.ts +0 -184
  210. package/lib/components/eftposPay/hooks.d.ts +0 -35
  211. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  212. package/lib/components/eftposPay/locales.d.ts +0 -330
  213. package/lib/components/eftposPay/payo/config.d.ts +0 -13
  214. package/lib/components/eftposPay/payo/const.d.ts +0 -26
  215. package/lib/components/eftposPay/store/index.d.ts +0 -355
  216. package/lib/components/eftposPay/tyro/const.d.ts +0 -17
  217. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  218. package/lib/components/eftposPay/windcave/const.d.ts +0 -119
  219. package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
  220. package/lib/components/eventBooking/locales.d.ts +0 -246
  221. package/lib/components/login/locales.d.ts +0 -24
  222. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  223. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  224. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  225. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  226. package/lib/components/pay/toC/locales.d.ts +0 -307
  227. package/lib/components/pay/toC/model.d.ts +0 -40
  228. package/lib/components/pinModal/locales.d.ts +0 -27
  229. package/lib/components/pinVerifyModal/locales.d.ts +0 -24
  230. package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  231. package/lib/components/productExtension/locales.d.ts +0 -48
  232. package/lib/components/productSelect/locales.d.ts +0 -18
  233. package/lib/components/schedules/locales.d.ts +0 -87
  234. package/lib/components/shoppingCart/locales.d.ts +0 -33
  235. package/lib/components/shoppingCart/type.d.ts +0 -48
  236. package/lib/components/stepController/locales.d.ts +0 -27
  237. package/lib/components/subTotal/locales.d.ts +0 -42
  238. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  239. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  240. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  241. package/lib/components/taxSelect/locales.d.ts +0 -24
  242. package/lib/components/ticketBooking/locales.d.ts +0 -174
  243. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  244. package/lib/components/wallet/utils.d.ts +0 -48
  245. package/lib/components/walletList/locales.d.ts +0 -27
  246. package/lib/components/walletList/types/index.d.ts +0 -194
  247. package/lib/hooks/useEngineContext.d.ts +0 -11
  248. package/lib/hooks/useWindowSize.d.ts +0 -5
  249. package/lib/plus/clientCard/locales.d.ts +0 -18
  250. package/lib/plus/clinetSearch/locales.d.ts +0 -108
  251. package/lib/plus/contactInfo/locales.d.ts +0 -15
  252. package/lib/plus/contactInfoModal/locales.d.ts +0 -66
  253. package/lib/plus/productSelect/locales.d.ts +0 -18
  254. package/lib/plus/saasAttendance/locales.d.ts +0 -318
  255. package/lib/plus/saasAttendance/settings/types.d.ts +0 -128
  256. package/lib/plus/saasCreateOrganization/locales.d.ts +0 -15
  257. package/lib/plus/saasLogin/locales.d.ts +0 -51
  258. package/lib/plus/saasRegister/locales.d.ts +0 -117
  259. package/lib/plus/saasRole/locales.d.ts +0 -193
  260. package/lib/plus/saasRole/types.d.ts +0 -175
  261. package/lib/plus/saasTeamMembers/locales.d.ts +0 -330
  262. package/lib/plus/saasTeamMembers/type.d.ts +0 -156
  263. package/lib/plus/selectHolder/locales.d.ts +0 -27
  264. package/lib/plus/walletEditor/locales.d.ts +0 -135
  265. package/lib/plus/walletEditor/types.d.ts +0 -52
  266. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  267. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  268. package/lib/pro/Login2.0/locales.d.ts +0 -543
  269. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  270. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  271. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
  272. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  273. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
@@ -1,355 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { DeviceStatusType, StatusType, ModeType, RouteType, ClientEnum } from '../const';
3
- import { ThunkDispatch } from './useThunkReducer';
4
- export declare enum EActionTypes {
5
- UPDATE_INIT = "UPDATE_INIT",
6
- UPDATE_CUSTOM = "UPDATE_CUSTOM",
7
- UPDATE_KEY = "UPDATE_KEY",
8
- UPDATE_STEP_KEY = "UPDATE_STEP_KEY",
9
- UPDATE_DEVICE = "UPDATE_DEVICE",
10
- UPDATE_NEXT_STEP = "UPDATE_NEXT_STEP",
11
- UPDATE_STATUS = "UPDATE_STATUS",
12
- UPDATE_TITLE = "UPDATE_TITLE",
13
- UPDATE_LOADING = "UPDATE_LOADING",
14
- UPDATE_COMPONENT = "UPDATE_COMPONENT",
15
- UPDATE_STEPS = "UPDATE_STEPS",
16
- UPDATE_STEP_CURRENT_ITEM_CUSTOM = "UPDATE_STEP_CURRENT_ITEM_CUSTOM",
17
- UPDATE_STEP_ITEM = "UPDATE_STEP_ITEM",
18
- BACKUP_PRODUCTION = "BACKUP_PRODUCTION",
19
- BACKUP_FREE = "BACKUP_FREE",
20
- UPDATE_CLIENT = "UPDATE_CLIENT"
21
- }
22
- export declare type State = {
23
- /** 支付名称 */
24
- name: string;
25
- /** 金额单位 */
26
- symbol: string;
27
- /** 支付原始金额 */
28
- amount: string | number;
29
- /** 模式 */
30
- mode: ModeType;
31
- /** 订单号 */
32
- order_id: string | number;
33
- /** 厂商 */
34
- eftpos: DeviceStatusType;
35
- action?: RouteType;
36
- /** 用于重置页面特指 =》全部步骤 */
37
- key: number;
38
- /** 当前执行到哪一步了 */
39
- step: number;
40
- /** 标题 */
41
- title: string;
42
- /** 标题 */
43
- subTitle?: string;
44
- /** step : 常规步骤页面 ,unset 自定义页面 */
45
- type: 'step' | 'unset';
46
- render: boolean;
47
- /** 网络 */
48
- net?: boolean;
49
- /** 上面 unset 自定义页面,这里需要指定到具体页面 */
50
- component: string;
51
- form?: string;
52
- /** 页面状态 */
53
- status: StatusType;
54
- /** 警告文案 */
55
- warn: string;
56
- steps: {
57
- /** 用于重置当前步骤 */
58
- key: number;
59
- title?: string;
60
- text?: string;
61
- warn?: string;
62
- tip?: string;
63
- success?: string;
64
- fail?: string;
65
- loading?: string;
66
- /** 步骤状态 */
67
- status: StatusType;
68
- custom?: {
69
- /** 步骤自定义 */
70
- [key: string]: unknown;
71
- };
72
- }[];
73
- /** 支付流水号 */
74
- number?: string | number;
75
- /** 设备信息 */
76
- device?: {
77
- [key: string]: unknown;
78
- };
79
- /** 支付信息 */
80
- pay?: {
81
- [key: string]: unknown;
82
- };
83
- custom?: {
84
- [key: string]: unknown;
85
- };
86
- manual?: {
87
- title: string;
88
- text: string;
89
- status?: boolean;
90
- money?: number;
91
- };
92
- backup?: Omit<State, 'backup'>;
93
- client: ClientEnum;
94
- };
95
- export declare type Action = {
96
- type: EActionTypes;
97
- payload: Partial<State>;
98
- };
99
- /**
100
- * @title: 刷新 key
101
- * @description: 用户重置组件生命周期,
102
- * @param {number} key
103
- * @Author: hongbing.wang
104
- * @Date: 2024-08-19 09:56
105
- */
106
- export declare const updateKey: (key: number) => {
107
- type: EActionTypes;
108
- payload: {
109
- key: number;
110
- };
111
- };
112
- /**
113
- * @title: 更新设备信息
114
- * @description: 用户选择设备将回填到此处
115
- * @param {object} payload
116
- * @Author: hongbing.wang
117
- * @Date: 2024-08-19 09:57
118
- */
119
- export declare const updateDevice: (payload: {
120
- device: State['device'];
121
- }) => {
122
- type: EActionTypes;
123
- payload: {
124
- device: State['device'];
125
- };
126
- };
127
- /**
128
- * @title: 刷新 步骤key
129
- * @description: 重置某一步生命周期
130
- * @Author: hongbing.wang
131
- * @Date: 2024-08-19 09:58
132
- */
133
- export declare const updateStepKey: () => {
134
- type: EActionTypes;
135
- payload: {};
136
- };
137
- /**
138
- * @title: 更新至下一步
139
- * @description: 更新至下一步
140
- * @param {string} warn?: 错误信息
141
- * @Author: hongbing.wang
142
- * @Date: 2024-08-19 09:58
143
- */
144
- export declare const updateNextStep: (warn?: string) => {
145
- type: EActionTypes;
146
- payload: {
147
- warn: string;
148
- } | {
149
- warn?: undefined;
150
- };
151
- };
152
- /**
153
- * @title: 更新自定义信息
154
- * @description: 更新自定义信息
155
- * @param {object} payload
156
- * @Author: hongbing.wang
157
- * @Date: 2024-08-19 10:03
158
- */
159
- export declare const updateCustom: (payload: {
160
- [key: string]: unknown;
161
- }) => {
162
- type: EActionTypes;
163
- payload: {
164
- [key: string]: unknown;
165
- };
166
- };
167
- /**
168
- * @title: 更新 全局状态
169
- * @description: 更新 全局状态
170
- * @param {string} status : 状态
171
- * * @Author: hongbing.wang
172
- * @Date: 2024-08-19 10:03
173
- */
174
- export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
- type: EActionTypes;
176
- payload: {
177
- status: "warn" | "success" | "loading" | "fail" | "question";
178
- };
179
- };
180
- /**
181
- * @title: 更新自定义组件
182
- * @description: 更新自定义组件
183
- * @param {string} component 组件名称
184
- * @param {boolean} render : true : 隐藏 原组件(维持原组件内状态) ;false : 卸载
185
- * @return {*}
186
- * @Author: hongbing.wang
187
- * @Date: 2024-08-19 10:04
188
- */
189
- export declare const updateComponent: (component: string, render?: boolean) => {
190
- type: EActionTypes;
191
- payload: {
192
- readonly component: string;
193
- readonly type: "unset";
194
- readonly render: boolean;
195
- } | {
196
- readonly type: "step";
197
- readonly render: boolean;
198
- readonly component?: undefined;
199
- };
200
- };
201
- /**
202
- * @title: 更新步骤信息
203
- * @description: 更新某一步骤信息
204
- * @param {State} steps 某一步骤信息
205
- * @Author: hongbing.wang
206
- * @Date: 2024-08-19 10:07
207
- */
208
- export declare const updateSteps: (steps: State['steps']) => {
209
- type: EActionTypes;
210
- payload: {
211
- steps: {
212
- /** 用于重置当前步骤 */
213
- key: number;
214
- title?: string | undefined;
215
- text?: string | undefined;
216
- warn?: string | undefined;
217
- tip?: string | undefined;
218
- success?: string | undefined;
219
- fail?: string | undefined;
220
- loading?: string | undefined;
221
- /** 步骤状态 */
222
- status: StatusType;
223
- custom?: {
224
- [key: string]: unknown;
225
- } | undefined;
226
- }[];
227
- };
228
- };
229
- /**
230
- * @title: 更新状态管理信息
231
- * @description: 更新状态管理信息
232
- * @param {Partial} payload
233
- * @return {*}
234
- * @Author: hongbing.wang
235
- * @Date: 2024-08-19 10:08
236
- */
237
- export declare const updateState: (payload: Partial<State>) => {
238
- type: EActionTypes;
239
- payload: Partial<State>;
240
- };
241
- /**
242
- * @title: 更新当前步骤自定义信息
243
- * @description: 更新当前步骤自定义信息
244
- * @Author: hongbing.wang
245
- * @Date: 2024-08-19 10:09
246
- */
247
- export declare const updateCurrentCustomStemItem: (payload: NonNullable<Partial<State['steps'][number]['custom']>>) => {
248
- type: EActionTypes;
249
- payload: Partial<{
250
- [key: string]: unknown;
251
- }>;
252
- };
253
- /**
254
- * @title: 更新当前步骤信息
255
- * @description: 更新当前步骤信息
256
- * @Author: hongbing.wang
257
- * @Date: 2024-08-19 10:09
258
- */
259
- export declare const updateCurrentStemItem: (payload: any) => {
260
- type: EActionTypes;
261
- payload: any;
262
- };
263
- /**
264
- * @title: 更新当前步骤信息
265
- * @description: 更新当前步骤信息
266
- * @Author: hongbing.wang
267
- * @Date: 2024-08-19 10:09
268
- */
269
- export declare const updateClient: (payload: ClientEnum) => {
270
- type: EActionTypes;
271
- payload: {
272
- client: ClientEnum;
273
- };
274
- };
275
- /**
276
- * @title: 更新备份信息
277
- * @description: 更新备份信息
278
- * @Author: hongbing.wang
279
- * @Date: 2024-08-19 10:25
280
- */
281
- export declare const backUpProduction: (payload: Partial<State>) => {
282
- type: EActionTypes;
283
- payload: Partial<State>;
284
- };
285
- /**
286
- * @title: 释放备份信息
287
- * @description: 释放备份信息
288
- * @param {Partial} payload
289
- * @Author: hongbing.wang
290
- * @Date: 2024-08-19 10:27
291
- */
292
- export declare const backUpFree: (payload: Partial<State>) => {
293
- type: EActionTypes;
294
- payload: {
295
- name?: string | undefined;
296
- symbol?: string | undefined;
297
- amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
- order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
302
- key?: number | undefined;
303
- step?: number | undefined;
304
- title?: string | undefined;
305
- subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
307
- render?: boolean | undefined;
308
- net?: boolean | undefined;
309
- component?: string | undefined;
310
- form?: string | undefined;
311
- status?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
- warn?: string | undefined;
313
- steps?: {
314
- /** 用于重置当前步骤 */
315
- key: number;
316
- title?: string | undefined;
317
- text?: string | undefined;
318
- warn?: string | undefined;
319
- tip?: string | undefined;
320
- success?: string | undefined;
321
- fail?: string | undefined;
322
- loading?: string | undefined;
323
- /** 步骤状态 */
324
- status: StatusType;
325
- custom?: {
326
- [key: string]: unknown;
327
- } | undefined;
328
- }[] | undefined;
329
- number?: string | number | undefined;
330
- device?: {
331
- [key: string]: unknown;
332
- } | undefined;
333
- pay?: {
334
- [key: string]: unknown;
335
- } | undefined;
336
- custom?: {
337
- [key: string]: unknown;
338
- } | undefined;
339
- manual?: {
340
- title: string;
341
- text: string;
342
- status?: boolean | undefined;
343
- money?: number | undefined;
344
- } | undefined;
345
- backup?: Omit<State, "backup"> | undefined;
346
- client?: ClientEnum | undefined;
347
- };
348
- };
349
- export declare function reducers(state: State, action: Action): State;
350
- export declare const Provider: ({ children, state: providerState, }: {
351
- children: ReactNode;
352
- state?: State | undefined;
353
- }) => React.JSX.Element;
354
- export declare function useContextData(): State;
355
- export declare function useDispatch(): ThunkDispatch<State, Action>;
@@ -1,17 +0,0 @@
1
- import { Amount } from '../const';
2
- import { State } from '../store';
3
- /**
4
- * @title: 初始化 tyro 数据
5
- * @Author: hongbing.wang
6
- * @Date: 2024-08-20 13:50
7
- */
8
- declare const _default: (params: any) => State;
9
- export default _default;
10
- /**
11
- * @title: tyro 金额信息
12
- * @description: 在 amount 页面设置则使用 pay ,如果有 setting 则使用 setting 信息 ,都没有则设置0
13
- * @param {State} store : 全局store数据管理
14
- * @Author: hongbing.wang
15
- * @Date: 2024-08-12 10:24
16
- */
17
- export declare function getAmonunt(store: State): Amount;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- declare const _default: ({ api, onChange, children, url, version, }: {
3
- api: any;
4
- onChange: any;
5
- children?: React.ReactNode;
6
- url?: string | undefined;
7
- version?: string | undefined;
8
- }) => React.JSX.Element;
9
- export default _default;
@@ -1,119 +0,0 @@
1
- import { Amount } from '../const';
2
- import { State } from '../store';
3
- /**
4
- * @title: 初始化 windcave 数据
5
- * @return store 全局数据管理
6
- * @Author: hongbing.wang
7
- * @Date: 2024-08-12 10:42
8
- */
9
- declare const _default: (params: any) => State;
10
- export default _default;
11
- /**
12
- * @title: windcave 金额信息
13
- * @description:
14
- * @param {State} store : 全局store数据管理
15
- * @return 金额信息
16
- * @Author: hongbing.wang
17
- * @Date: 2024-08-12 10:43
18
- */
19
- export declare function getAmonunt(store: State): Amount;
20
- export declare enum StepStatusEnum {
21
- /** 空闲 */
22
- Free = 1,
23
- /** 提交或插入卡 */
24
- Card = 2,
25
- /** 选择账户 */
26
- Account = 3,
27
- /** 选择应用 */
28
- Application = 4,
29
- /** 输入PIN码 */
30
- Pin = 5,
31
- /** 处理中 */
32
- Processing = 6,
33
- /** 验证签名 */
34
- Receipt = 7,
35
- /** 显示结果 */
36
- Wait = 8
37
- }
38
- export declare enum StemTypeEnum {
39
- /** 主动查询 */
40
- Active = "active",
41
- /** 被动提交 */
42
- Passive = "passive"
43
- }
44
- /**
45
- * @title: windcave 步骤信息
46
- * @description: 步骤对应配置信息
47
- * @return 步骤配置信息
48
- * @Author: hongbing.wang
49
- * @Date: 2024-08-12 10:44
50
- */
51
- export declare const getStepMapping: (type: StepStatusEnum, { money, mode }: {
52
- money?: string | undefined;
53
- mode?: string | undefined;
54
- }) => {
55
- type: StemTypeEnum;
56
- status: string;
57
- pedding: any;
58
- resolve: string;
59
- index: StepStatusEnum.Free;
60
- peddingStyle: {};
61
- reject?: undefined;
62
- } | {
63
- type: StemTypeEnum;
64
- status: string;
65
- pedding: any;
66
- resolve: string;
67
- index: StepStatusEnum.Card;
68
- peddingStyle: {};
69
- reject?: undefined;
70
- } | {
71
- type: StemTypeEnum;
72
- status: string;
73
- pedding: any;
74
- resolve: string;
75
- index: StepStatusEnum.Account;
76
- peddingStyle: {};
77
- reject?: undefined;
78
- } | {
79
- type: StemTypeEnum;
80
- status: string;
81
- pedding: any;
82
- resolve: string;
83
- index: StepStatusEnum.Application;
84
- peddingStyle: {};
85
- reject?: undefined;
86
- } | {
87
- type: StemTypeEnum;
88
- status: string;
89
- pedding: any;
90
- resolve: string;
91
- index: StepStatusEnum.Pin;
92
- peddingStyle: {};
93
- reject?: undefined;
94
- } | {
95
- type: StemTypeEnum;
96
- status: string;
97
- pedding: any;
98
- resolve: string;
99
- index: StepStatusEnum.Processing;
100
- peddingStyle: {};
101
- reject?: undefined;
102
- } | {
103
- type: StemTypeEnum;
104
- status: string;
105
- pedding: string;
106
- resolve: any;
107
- reject: any;
108
- index: StepStatusEnum.Receipt;
109
- peddingStyle: {};
110
- } | {
111
- type: StemTypeEnum;
112
- status: string;
113
- pedding: any;
114
- resolve: any;
115
- index: StepStatusEnum.Wait;
116
- peddingStyle: {};
117
- reject?: undefined;
118
- } | null;
119
- export declare type StepType = NonNullable<ReturnType<typeof getStepMapping>>;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { PayStatus } from '../const';
3
- import XhrTimer from './timer';
4
- /**
5
- * @title: windcave 支付,退款,查询 错误逻辑处理
6
- * @description: 动态步骤页 异常前往 FailCustom 页面
7
- * @return null
8
- * @Author: hongbing.wang
9
- * @Date: 2024-08-12 10:29
10
- */
11
- export declare const useFail: () => (res: {
12
- code?: `${PayStatus}`;
13
- }, isMark?: boolean) => void;
14
- /**
15
- * @title: 轮询 check 接口
16
- * @description: 轮询 终止条件 1.超时 , 2. 返回非200状态码 , 3. 外部关闭
17
- * @return [run, XhrTimer] run: 启动函数 , XhrTimer 轮询类
18
- * @Author: hongbing.wang
19
- * @Date: 2024-08-12 10:30
20
- */
21
- export declare const useValidate: (check: (...agrn: unknown[]) => Promise<unknown>, num: number, onChange: (params: {
22
- [key: string]: unknown;
23
- }) => unknown) => readonly [(timeout?: number) => void, React.MutableRefObject<((res: any, isRun?: boolean) => unknown) | undefined>, React.MutableRefObject<XhrTimer | undefined>];