@pisell/private-materials 6.3.114 → 6.3.116

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 (281) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/booking/addons/model.d.ts +1 -10
  8. package/es/components/booking/forms/model.d.ts +1 -10
  9. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  10. package/es/components/booking/info/model.d.ts +1 -10
  11. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  12. package/es/components/booking/info/service2/utils.d.ts +1 -1
  13. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  14. package/es/components/booking/model.d.ts +1 -9
  15. package/es/components/booking/notes/model.d.ts +1 -10
  16. package/es/components/booking/payments/model.d.ts +1 -10
  17. package/es/components/eftpos/index.js +3 -3
  18. package/es/components/eftposPay/aggregatePayment/utils/payment.js +7 -1
  19. package/es/components/eftposPay/device.js +7 -3
  20. package/es/components/eftposPay/hooks.d.ts +2 -2
  21. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  22. package/es/components/pay/toC/model.d.ts +1 -9
  23. package/es/components/schedules/model.d.ts +1 -9
  24. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  25. package/lib/components/booking/addons/model.d.ts +1 -10
  26. package/lib/components/booking/forms/model.d.ts +1 -10
  27. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  28. package/lib/components/booking/info/model.d.ts +1 -10
  29. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  30. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  31. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  32. package/lib/components/booking/model.d.ts +1 -9
  33. package/lib/components/booking/notes/model.d.ts +1 -10
  34. package/lib/components/booking/payments/model.d.ts +1 -10
  35. package/lib/components/eftpos/index.js +3 -3
  36. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +6 -1
  37. package/lib/components/eftposPay/device.js +24 -21
  38. package/lib/components/eftposPay/hooks.d.ts +2 -2
  39. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  40. package/lib/components/pay/toC/model.d.ts +1 -9
  41. package/lib/components/schedules/model.d.ts +1 -9
  42. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  43. package/package.json +3 -3
  44. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  45. package/es/components/appointmentBooking/locales.d.ts +0 -366
  46. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  47. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  48. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  51. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  52. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  53. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  54. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  55. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  56. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  57. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  58. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  59. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  60. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  61. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  62. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  63. package/es/components/booking/dashboard/serve.d.ts +0 -1
  64. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  65. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  66. package/es/components/booking/forms/serve.d.ts +0 -18
  67. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  68. package/es/components/booking/info/client/serve.d.ts +0 -2
  69. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  70. package/es/components/booking/info/pet/serve.d.ts +0 -1
  71. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  72. package/es/components/booking/info/service/serve.d.ts +0 -20
  73. package/es/components/booking/info2/serve.d.ts +0 -6
  74. package/es/components/booking/info2/service/addService/mock.d.ts +0 -214
  75. package/es/components/booking/locales.d.ts +0 -846
  76. package/es/components/eftpos/PairModal/hooks.d.ts +0 -27
  77. package/es/components/eftpos/SettlementModal/Action.d.ts +0 -8
  78. package/es/components/eftpos/SettlementModal/types.d.ts +0 -138
  79. package/es/components/eftpos/const.d.ts +0 -66
  80. package/es/components/eftpos/hooks.d.ts +0 -46
  81. package/es/components/eftpos/locales.d.ts +0 -138
  82. package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  83. package/es/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
  84. package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -101
  85. package/es/components/eftposPay/app.d.ts +0 -11
  86. package/es/components/eftposPay/const.d.ts +0 -191
  87. package/es/components/eftposPay/locales.d.ts +0 -333
  88. package/es/components/eftposPay/mx51/Action.d.ts +0 -7
  89. package/es/components/eftposPay/mx51/types.d.ts +0 -138
  90. package/es/components/eftposPay/mx51/utils.d.ts +0 -10
  91. package/es/components/eftposPay/store/index.d.ts +0 -355
  92. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
  93. package/es/components/eventBooking/locales.d.ts +0 -246
  94. package/es/components/kioskSkuDetail/locales.d.ts +0 -27
  95. package/es/components/login/locales.d.ts +0 -24
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  99. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  100. package/es/components/pay/toC/locales.d.ts +0 -307
  101. package/es/components/pinModal/locales.d.ts +0 -27
  102. package/es/components/pinVerifyModal/locales.d.ts +0 -24
  103. package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  104. package/es/components/productExtension/locales.d.ts +0 -48
  105. package/es/components/productSelect/locales.d.ts +0 -18
  106. package/es/components/ruleSetting/locales.d.ts +0 -48
  107. package/es/components/schedules/locales.d.ts +0 -87
  108. package/es/components/shoppingCart/Provider.d.ts +0 -3
  109. package/es/components/shoppingCart/locales.d.ts +0 -33
  110. package/es/components/shoppingCart/mock.d.ts +0 -40
  111. package/es/components/shoppingCart/type.d.ts +0 -48
  112. package/es/components/shoppingCart/utils.d.ts +0 -63
  113. package/es/components/stepController/locales.d.ts +0 -27
  114. package/es/components/subTotal/locales.d.ts +0 -42
  115. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  116. package/es/components/systemSettings/registry/services.d.ts +0 -77
  117. package/es/components/systemSettings/registry/types.d.ts +0 -126
  118. package/es/components/taxSelect/locales.d.ts +0 -24
  119. package/es/components/ticketBooking/locales.d.ts +0 -174
  120. package/es/components/wallet/utils.d.ts +0 -48
  121. package/es/components/walletList/locales.d.ts +0 -27
  122. package/es/components/walletList/types/index.d.ts +0 -194
  123. package/es/hooks/useEngineContext.d.ts +0 -10
  124. package/es/hooks/useLocale.d.ts +0 -2
  125. package/es/hooks/useWindowSize.d.ts +0 -5
  126. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  127. package/es/plus/contactInfo/locales.d.ts +0 -15
  128. package/es/plus/contactInfoModal/locales.d.ts +0 -66
  129. package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  130. package/es/plus/productSelect/locales.d.ts +0 -18
  131. package/es/plus/saasCreateOrganization/locales.d.ts +0 -15
  132. package/es/plus/saasLogin/locales.d.ts +0 -51
  133. package/es/plus/saasRegister/locales.d.ts +0 -117
  134. package/es/plus/selectHolder/locales.d.ts +0 -21
  135. package/es/plus/skuOptionsSelection/locales.d.ts +0 -33
  136. package/es/plus/skuOptionsSelection/store/store.d.ts +0 -4
  137. package/es/plus/skuOptionsSelection/types.d.ts +0 -429
  138. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  139. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  140. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  141. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  142. package/es/plus/walletEditor/locales.d.ts +0 -135
  143. package/es/plus/walletEditor/types.d.ts +0 -52
  144. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  145. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  146. package/es/pro/Login2.0/locales.d.ts +0 -543
  147. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  148. package/es/pro/NumericStepper/index.d.ts +0 -43
  149. package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  150. package/es/pro/Selector/Item.d.ts +0 -14
  151. package/es/pro/Selector/components/Card/index.d.ts +0 -57
  152. package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
  153. package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  154. package/es/pro/Selector/components/Media/index.d.ts +0 -6
  155. package/es/pro/Selector/demo.d.ts +0 -3
  156. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  157. package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  158. package/es/pro/Selector/locales.d.ts +0 -36
  159. package/es/pro/Selector/types.d.ts +0 -173
  160. package/es/pro/Selector/utils/index.d.ts +0 -49
  161. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  162. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  163. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  164. package/lib/components/appointmentBooking/locales.d.ts +0 -366
  165. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  166. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  167. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  168. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  169. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  170. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  171. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  172. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  173. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  174. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  175. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  176. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  177. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  178. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  179. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  180. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  181. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  182. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  183. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  184. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  185. package/lib/components/booking/forms/serve.d.ts +0 -18
  186. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  187. package/lib/components/booking/info/client/serve.d.ts +0 -2
  188. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  189. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  190. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  191. package/lib/components/booking/info/service/serve.d.ts +0 -20
  192. package/lib/components/booking/info2/serve.d.ts +0 -6
  193. package/lib/components/booking/info2/service/addService/mock.d.ts +0 -214
  194. package/lib/components/booking/locales.d.ts +0 -846
  195. package/lib/components/eftpos/PairModal/hooks.d.ts +0 -27
  196. package/lib/components/eftpos/SettlementModal/Action.d.ts +0 -8
  197. package/lib/components/eftpos/SettlementModal/types.d.ts +0 -138
  198. package/lib/components/eftpos/const.d.ts +0 -66
  199. package/lib/components/eftpos/hooks.d.ts +0 -46
  200. package/lib/components/eftpos/locales.d.ts +0 -138
  201. package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  202. package/lib/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
  203. package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -101
  204. package/lib/components/eftposPay/app.d.ts +0 -11
  205. package/lib/components/eftposPay/const.d.ts +0 -191
  206. package/lib/components/eftposPay/locales.d.ts +0 -333
  207. package/lib/components/eftposPay/mx51/Action.d.ts +0 -7
  208. package/lib/components/eftposPay/mx51/types.d.ts +0 -138
  209. package/lib/components/eftposPay/mx51/utils.d.ts +0 -10
  210. package/lib/components/eftposPay/store/index.d.ts +0 -355
  211. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
  212. package/lib/components/eventBooking/locales.d.ts +0 -246
  213. package/lib/components/kioskSkuDetail/locales.d.ts +0 -27
  214. package/lib/components/login/locales.d.ts +0 -24
  215. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  216. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  217. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  218. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  219. package/lib/components/pay/toC/locales.d.ts +0 -307
  220. package/lib/components/pinModal/locales.d.ts +0 -27
  221. package/lib/components/pinVerifyModal/locales.d.ts +0 -24
  222. package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  223. package/lib/components/productExtension/locales.d.ts +0 -48
  224. package/lib/components/productSelect/locales.d.ts +0 -18
  225. package/lib/components/ruleSetting/locales.d.ts +0 -48
  226. package/lib/components/schedules/locales.d.ts +0 -87
  227. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  228. package/lib/components/shoppingCart/locales.d.ts +0 -33
  229. package/lib/components/shoppingCart/mock.d.ts +0 -40
  230. package/lib/components/shoppingCart/type.d.ts +0 -48
  231. package/lib/components/shoppingCart/utils.d.ts +0 -63
  232. package/lib/components/stepController/locales.d.ts +0 -27
  233. package/lib/components/subTotal/locales.d.ts +0 -42
  234. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  235. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  236. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  237. package/lib/components/taxSelect/locales.d.ts +0 -24
  238. package/lib/components/ticketBooking/locales.d.ts +0 -174
  239. package/lib/components/wallet/utils.d.ts +0 -48
  240. package/lib/components/walletList/locales.d.ts +0 -27
  241. package/lib/components/walletList/types/index.d.ts +0 -194
  242. package/lib/hooks/useEngineContext.d.ts +0 -10
  243. package/lib/hooks/useLocale.d.ts +0 -2
  244. package/lib/hooks/useWindowSize.d.ts +0 -5
  245. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  246. package/lib/plus/contactInfo/locales.d.ts +0 -15
  247. package/lib/plus/contactInfoModal/locales.d.ts +0 -66
  248. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  249. package/lib/plus/productSelect/locales.d.ts +0 -18
  250. package/lib/plus/saasCreateOrganization/locales.d.ts +0 -15
  251. package/lib/plus/saasLogin/locales.d.ts +0 -51
  252. package/lib/plus/saasRegister/locales.d.ts +0 -117
  253. package/lib/plus/selectHolder/locales.d.ts +0 -21
  254. package/lib/plus/skuOptionsSelection/locales.d.ts +0 -33
  255. package/lib/plus/skuOptionsSelection/store/store.d.ts +0 -4
  256. package/lib/plus/skuOptionsSelection/types.d.ts +0 -429
  257. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  258. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  259. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  260. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  261. package/lib/plus/walletEditor/locales.d.ts +0 -135
  262. package/lib/plus/walletEditor/types.d.ts +0 -52
  263. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  264. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  265. package/lib/pro/Login2.0/locales.d.ts +0 -543
  266. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  267. package/lib/pro/NumericStepper/index.d.ts +0 -43
  268. package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  269. package/lib/pro/Selector/Item.d.ts +0 -14
  270. package/lib/pro/Selector/components/Card/index.d.ts +0 -57
  271. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
  272. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  273. package/lib/pro/Selector/components/Media/index.d.ts +0 -6
  274. package/lib/pro/Selector/demo.d.ts +0 -3
  275. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  276. package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  277. package/lib/pro/Selector/locales.d.ts +0 -36
  278. package/lib/pro/Selector/types.d.ts +0 -173
  279. package/lib/pro/Selector/utils/index.d.ts +0 -49
  280. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  281. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
@@ -1,27 +0,0 @@
1
- interface ModalProps {
2
- visible?: boolean;
3
- data?: Record<string, any>;
4
- onCancel?: () => void;
5
- onCheck?: () => void;
6
- onConfirm?: () => void;
7
- close?: () => void;
8
- }
9
- export declare const usePairModal: () => {
10
- visible: boolean;
11
- open: (props: ModalProps) => void;
12
- close: () => void;
13
- modalProps: ModalProps;
14
- };
15
- /**
16
- * @title 解除配对
17
- */
18
- export declare const useUnPairRequest: () => {
19
- run: (params: any) => any;
20
- };
21
- /**
22
- * @title 检查配对状态
23
- */
24
- export declare const useCheckPairRequest: () => {
25
- run: (params: any) => any;
26
- };
27
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- /**
4
- * @title 渲染动态内容
5
- * @description 用于渲染从接口解析出来的元素
6
- */
7
- declare const Action: (props: any) => React.JSX.Element;
8
- export default Action;
@@ -1,138 +0,0 @@
1
- /**
2
- * 支付状态
3
- */
4
- export declare enum ESettlementStatus {
5
- /** 结算中 */
6
- Processing = "processing",
7
- /** 结算成功 */
8
- Success = "success",
9
- /** 结算失败 */
10
- Failed = "failed"
11
- }
12
- /** 元素类型定义 */
13
- export interface ElementType {
14
- label: string;
15
- key: string;
16
- }
17
- /** 布局类型定义 */
18
- export interface LayoutType {
19
- type: string;
20
- elements: ElementType[];
21
- }
22
- /** 元素属性定义 */
23
- export interface ElementProperty {
24
- type: 'button' | 'text' | 'image' | 'input';
25
- submit_url: string;
26
- action: string | null;
27
- text?: string | null;
28
- name?: string | null;
29
- data?: string | null;
30
- encoding?: string | null;
31
- }
32
- /** Action Form 定义 */
33
- export interface ActionFormType {
34
- layout: LayoutType[];
35
- properties: {
36
- [key: string]: ElementProperty;
37
- };
38
- details: {
39
- [key: string]: string;
40
- };
41
- }
42
- /** POS 指令定义 */
43
- export interface PosInstructions {
44
- auto_actions: any;
45
- action_form: ActionFormType | null;
46
- }
47
- /** MX51 参数定义 */
48
- export interface MX51Params {
49
- id: string;
50
- version: number;
51
- status: string;
52
- message: string;
53
- merchant_receipt: string | null;
54
- customer_receipt: string | null;
55
- result_amounts: any;
56
- result_financial_status: string | null;
57
- pos_instructions: PosInstructions | null;
58
- }
59
- /** 解析后的按钮配置 */
60
- export interface ParsedElement {
61
- /** 元素键 */
62
- key: string;
63
- /** 元素标签 */
64
- label: string;
65
- /** 提交URL */
66
- submitUrl: string;
67
- /** 按钮动作 */
68
- action: string | null;
69
- /** 元素类型 */
70
- type: 'button' | 'text';
71
- /** 文本信息 */
72
- text?: string | null;
73
- /** 小票信息 */
74
- receipt?: string | null;
75
- /** 额外信息 */
76
- _extra?: {
77
- /** 商户收据 */
78
- merchantReceipt?: string | null;
79
- /** 客户收据 */
80
- customerReceipt?: string | null;
81
- /** 结算状态 */
82
- settlementStatus: ESettlementStatus;
83
- /** 接口返回的原始数据 */
84
- response: any;
85
- };
86
- /** 图片信息 */
87
- image?: {
88
- name?: string | null;
89
- data?: string | null;
90
- encoding?: string | null;
91
- };
92
- }
93
- /** 解析后的布局配置 */
94
- export interface ParsedLayout {
95
- /** 布局类型,如 horizontal_layout */
96
- layoutType: string;
97
- /** 该布局中的按钮列表 */
98
- elements: ParsedElement[];
99
- }
100
- /** 解析后的结果 */
101
- export interface ParsedMX51Result {
102
- /** 交易ID */
103
- transactionId: string;
104
- /** 版本号 */
105
- version: number;
106
- /** 状态 */
107
- status: string;
108
- /** 提示信息 */
109
- message: string;
110
- /** 商户收据 */
111
- merchantReceipt: string | null;
112
- /** 客户收据 */
113
- customerReceipt: string | null;
114
- /** 结果金额 */
115
- resultAmounts: any;
116
- /** 结果财务状态 */
117
- resultFinancialStatus: string | null;
118
- /** 布局列表,每个布局包含其类型和按钮 */
119
- layouts: ParsedLayout[];
120
- /** 详情信息 */
121
- details: {
122
- [key: string]: string;
123
- };
124
- /** 详情信息 text */
125
- detailsText: string;
126
- /** 自动操作 */
127
- autoAction: Array<string> | null;
128
- }
129
- export declare enum EButtonKeyType {
130
- /** 打印客户收据 */
131
- PrintCustomerReceipt = "print_customer_receipt",
132
- /** 打印商户收据 */
133
- PrintMerchantReceipt = "print_merchant_receipt",
134
- /** 结算完成 */
135
- SettlementComplete = "settlement_complete",
136
- /** 重试结算 */
137
- RetrySettlement = "retry_settlement"
138
- }
@@ -1,66 +0,0 @@
1
- export declare enum Eftpos {
2
- Payo = "payo",
3
- Tyro = "tyro",
4
- Windcave = "windcave",
5
- Stripe = "stripe",
6
- Linkly = "linkly",
7
- MX51 = "mx51"
8
- }
9
- export declare enum DeviceEnum {
10
- /** 新增 */
11
- Add = "add",
12
- /** 编辑 */
13
- Edit = "edit",
14
- /** 重新链接 */
15
- Repair = "repair"
16
- }
17
- export declare type DeviceStatus = `${DeviceEnum}`;
18
- /** 设备配置信息 */
19
- export interface DeviceProp {
20
- /** 设备id */
21
- id?: string | number;
22
- /** 设备名称 */
23
- name: string;
24
- /** 设备类型(厂商) */
25
- type: Eftpos.Tyro;
26
- /** 设备状态 */
27
- status: "unpaired" | "paired";
28
- /** 设备设置(商户配置) */
29
- setting: {
30
- [key: string]: unknown;
31
- } | null;
32
- /** 设备设置(第三方配置) */
33
- connection: {
34
- [key: string]: unknown;
35
- } | null;
36
- [key: string]: unknown;
37
- }
38
- /**
39
- * @title: 获取表单结果数据
40
- * @description: 获取表单结果数据
41
- * @param {any} list 表单配置信息
42
- * @return {*} 表单结果信息
43
- * @Author: hongbing.wang
44
- * @Date: 2024-08-19 11:10
45
- */
46
- export declare const getDefaultValue: (list: any) => any;
47
- /**
48
- * @title: 构建通用表单配置信息,构建动态表单
49
- * @description:
50
- * @param {any} field : array 字段信息 value 结果信息,name 上级字段信息用于嵌套, getComm : 获取字段组件配置信息
51
- * @return form 表单配置信息
52
- * @Author: hongbing.wang
53
- * @Date: 2024-08-19 11:11
54
- */
55
- export declare function getCommByFields({ field, value, name, getComm, }: {
56
- field: (string | {
57
- name: string;
58
- children: string[];
59
- })[];
60
- value?: any;
61
- name?: string[];
62
- getComm: (params: {
63
- field: string;
64
- value?: unknown;
65
- }, record?: any) => any;
66
- }): Promise<any>;
@@ -1,46 +0,0 @@
1
- import { Eftpos } from './const';
2
- /**
3
- * @title: tyro 设备连接
4
- * @Author: hongbing.wang
5
- * @Date: 2024-08-20 13:23
6
- */
7
- export declare const usePairTerminalo: (type: Eftpos, params: {
8
- url?: string;
9
- version?: string;
10
- }) => ({ mid, tid, apiKey, posProductData, }: {
11
- mid: string;
12
- tid: string;
13
- apiKey: string;
14
- posProductData: {
15
- posProductVendor: string;
16
- posProductName: string;
17
- posProductVersion: string;
18
- siteReference: string;
19
- };
20
- }, cb: (...agrn: unknown[]) => void) => Promise<void>;
21
- /**
22
- * @title: 获取 Tyro 资源
23
- * @description:
24
- * @param {Eftpos} type 类型
25
- * @param {string} url 链接
26
- * @return {*}
27
- * @Author: hongbing.wang
28
- * @Date: 2024-08-19 18:36
29
- */
30
- export declare const useTyro: (params: {
31
- url?: string;
32
- version?: string;
33
- }) => readonly [import("react").MutableRefObject<any>, boolean];
34
- export declare const useRequest: () => any;
35
- /**
36
- * @title 配对请求
37
- */
38
- export declare const usePairRequest: () => {
39
- run: (params: any) => any;
40
- };
41
- /**
42
- * @title 检查配对状态
43
- */
44
- export declare const useCheckPairRequest: () => {
45
- run: (params: any) => any;
46
- };
@@ -1,138 +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.pair': string;
19
- 'page.eftpos.text.confim.delete': string;
20
- 'page.eftpos.text.confirm_delete-message': (x: string) => string;
21
- 'page.eftpos.text.confim.cancel': string;
22
- 'page.eftpos.text.table.name': string;
23
- 'page.eftpos.text.table.status': string;
24
- 'page.eftpos.text.table.surcharge': string;
25
- 'page.eftpos.text.table.opeartion': string;
26
- 'page.eftpos.text.table.del.title': string;
27
- 'page.eftpos.text.table.del.text': string;
28
- 'page.eftpos.text.table.del.delete': string;
29
- 'page.eftpos.text.table.del.cancel': string;
30
- 'page.eftpos.text.log': string;
31
- 'page.eftpos.text.settlement': string;
32
- 'page.eftpos.text.settlement_enquiry': string;
33
- 'page.eftpos.text.setting': string;
34
- 'page.eftpos.text.setting.tip': string;
35
- 'page.eftpos.text.setting.btn': string;
36
- 'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
37
- title: string;
38
- description: string;
39
- codeTitle: string;
40
- cancenButtonText: string;
41
- okButtonText: string;
42
- } | undefined;
43
- 'page.eftpos.text.repair.message.warning': string;
44
- 'page.eftpos.text.settlement.failed': string;
45
- 'page.eftpos.text.settlement.button.done': string;
46
- };
47
- 'zh-CN': {
48
- 'page.eftpos.text.manufacturer': string;
49
- 'page.eftpos.text.description': string;
50
- 'page.eftpos.text.status': string;
51
- 'page.eftpos.text.operation': string;
52
- 'page.eftpos.text.device': string;
53
- 'page.eftpos.text.device.add': (status?: string, name?: string) => string;
54
- 'page.eftpos.text.device.list': string;
55
- 'page.eftpos.text.device.name': string;
56
- 'page.eftpos.text.sucahrge': string;
57
- 'page.eftpos.text.paired': string;
58
- 'page.eftpos.text.unpaired': string;
59
- 'page.eftpos.text.repair': string;
60
- 'page.eftpos.text.edit': string;
61
- 'page.eftpos.text.delete': string;
62
- 'page.eftpos.text.save': string;
63
- 'page.eftpos.text.pair': string;
64
- 'page.eftpos.text.confim.delete': string;
65
- 'page.eftpos.text.confirm_delete-message': (x: string) => string;
66
- 'page.eftpos.text.confim.cancel': string;
67
- 'page.eftpos.text.table.name': string;
68
- 'page.eftpos.text.table.status': string;
69
- 'page.eftpos.text.table.surcharge': string;
70
- 'page.eftpos.text.table.opeartion': string;
71
- 'page.eftpos.text.table.del.title': string;
72
- 'page.eftpos.text.table.del.text': string;
73
- 'page.eftpos.text.table.del.delete': string;
74
- 'page.eftpos.text.table.del.cancel': string;
75
- 'page.eftpos.text.log': string;
76
- 'page.eftpos.text.settlement': string;
77
- 'page.eftpos.text.settlement_enquiry': string;
78
- 'page.eftpos.text.setting': string;
79
- 'page.eftpos.text.setting.tip': string;
80
- 'page.eftpos.text.setting.btn': string;
81
- 'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
82
- title: string;
83
- description: string;
84
- codeTitle: string;
85
- cancenButtonText: string;
86
- okButtonText: string;
87
- } | undefined;
88
- 'page.eftpos.text.repair.message.warning': string;
89
- 'page.eftpos.text.settlement.failed': string;
90
- 'page.eftpos.text.settlement.button.done': string;
91
- };
92
- 'zh-HK': {
93
- 'page.eftpos.text.manufacturer': string;
94
- 'page.eftpos.text.description': string;
95
- 'page.eftpos.text.status': string;
96
- 'page.eftpos.text.operation': string;
97
- 'page.eftpos.text.device': string;
98
- 'page.eftpos.text.device.add': (status?: string, name?: string) => string;
99
- 'page.eftpos.text.device.list': string;
100
- 'page.eftpos.text.device.name': string;
101
- 'page.eftpos.text.sucahrge': string;
102
- 'page.eftpos.text.paired': string;
103
- 'page.eftpos.text.unpaired': string;
104
- 'page.eftpos.text.repair': string;
105
- 'page.eftpos.text.edit': string;
106
- 'page.eftpos.text.delete': string;
107
- 'page.eftpos.text.save': string;
108
- 'page.eftpos.text.pair': string;
109
- 'page.eftpos.text.confim.delete': string;
110
- 'page.eftpos.text.confirm_delete-message': (x: string) => string;
111
- 'page.eftpos.text.confim.cancel': string;
112
- 'page.eftpos.text.table.name': string;
113
- 'page.eftpos.text.table.status': string;
114
- 'page.eftpos.text.table.surcharge': string;
115
- 'page.eftpos.text.table.opeartion': string;
116
- 'page.eftpos.text.table.del.title': string;
117
- 'page.eftpos.text.table.del.text': string;
118
- 'page.eftpos.text.table.del.delete': string;
119
- 'page.eftpos.text.table.del.cancel': string;
120
- 'page.eftpos.text.log': string;
121
- 'page.eftpos.text.settlement': string;
122
- 'page.eftpos.text.settlement_enquiry': string;
123
- 'page.eftpos.text.setting': string;
124
- 'page.eftpos.text.setting.tip': string;
125
- 'page.eftpos.text.setting.btn': string;
126
- 'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
127
- title: string;
128
- description: string;
129
- codeTitle: string;
130
- cancenButtonText: string;
131
- okButtonText: string;
132
- } | undefined;
133
- 'page.eftpos.text.repair.message.warning': string;
134
- 'page.eftpos.text.settlement.failed': string;
135
- 'page.eftpos.text.settlement.button.done': string;
136
- };
137
- };
138
- export default _default;
@@ -1,3 +0,0 @@
1
- import { EActionStatus } from './types';
2
- import { usePayment } from './hooks/usePayment';
3
- export { usePayment, EActionStatus };