@pisell/private-materials 6.3.132 → 6.3.133

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 (177) 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/venueBooking/components/Content/index.js +2 -2
  8. package/es/components/venueBooking/components/Header/index.js +1 -1
  9. package/es/components/venueBooking/components/VenueSelection/components/CourtFilter.js +1 -17
  10. package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +11 -18
  11. package/es/components/venueBooking/components/VenueSelection/index.js +1 -1
  12. package/es/components/venueBooking/context.js +49 -20
  13. package/es/components/venueBooking/locales.d.ts +5 -0
  14. package/es/components/venueBooking/locales.js +5 -0
  15. package/lib/components/venueBooking/components/Content/index.js +2 -2
  16. package/lib/components/venueBooking/components/Header/index.js +1 -1
  17. package/lib/components/venueBooking/components/VenueSelection/components/CourtFilter.js +1 -10
  18. package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +8 -7
  19. package/lib/components/venueBooking/components/VenueSelection/index.js +1 -1
  20. package/lib/components/venueBooking/context.js +20 -5
  21. package/lib/components/venueBooking/locales.d.ts +5 -0
  22. package/lib/components/venueBooking/locales.js +5 -0
  23. package/package.json +1 -1
  24. package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
  25. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  26. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -4
  27. package/es/components/appointmentBooking/hooks.d.ts +0 -107
  28. package/es/components/appointmentBooking/utils.d.ts +0 -227
  29. package/es/components/booking/components/footer/utils.d.ts +0 -47
  30. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
  31. package/es/components/booking/components/voucher/index.d.ts +0 -4
  32. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  33. package/es/components/booking/info/service/editService/index.d.ts +0 -7
  34. package/es/components/booking/info/service2/utils.d.ts +0 -248
  35. package/es/components/booking/info2/index.d.ts +0 -12
  36. package/es/components/booking/info2/service/addService/index.d.ts +0 -12
  37. package/es/components/booking/locales.d.ts +0 -1489
  38. package/es/components/booking/model.d.ts +0 -120
  39. package/es/components/eftposPay/amount.d.ts +0 -21
  40. package/es/components/eftposPay/app.d.ts +0 -11
  41. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -4
  42. package/es/components/eftposPay/component/fail/index.d.ts +0 -4
  43. package/es/components/eftposPay/component/fail/network.d.ts +0 -9
  44. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
  45. package/es/components/eftposPay/component/manual/index.d.ts +0 -10
  46. package/es/components/eftposPay/component/signature/index.d.ts +0 -9
  47. package/es/components/eftposPay/device.d.ts +0 -24
  48. package/es/components/eftposPay/index.d.ts +0 -5
  49. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  50. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  51. package/es/components/eftposPay/linkly/index.d.ts +0 -3
  52. package/es/components/eftposPay/pay.d.ts +0 -21
  53. package/es/components/eftposPay/payo/config.d.ts +0 -13
  54. package/es/components/eftposPay/payo/hooks.d.ts +0 -10
  55. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  56. package/es/components/eftposPay/tip.d.ts +0 -10
  57. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  58. package/es/components/eftposPay/utils/payLog.d.ts +0 -81
  59. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -23
  60. package/es/components/eftposPay/windcave/windcave.d.ts +0 -7
  61. package/es/components/kioskSkuDetail/index.d.ts +0 -39
  62. package/es/components/kioskSkuDetail/locales.d.ts +0 -48
  63. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  64. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  65. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  66. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
  67. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
  68. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
  69. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  70. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  71. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
  72. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
  73. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
  74. package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  75. package/es/components/pay/toC/index.d.ts +0 -3
  76. package/es/components/pay/toC/locales.d.ts +0 -631
  77. package/es/components/pay/toC/payGroup.d.ts +0 -59
  78. package/es/components/pay/toC/serve.d.ts +0 -87
  79. package/es/components/pay/toC/utils.d.ts +0 -65
  80. package/es/components/ruleSetting/locales.d.ts +0 -78
  81. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -10
  82. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -5
  83. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -13
  84. package/es/components/ticketBooking/index.d.ts +0 -8
  85. package/es/components/venueBooking/components/Cart/index.d.ts +0 -28
  86. package/es/components/venueBooking/components/Footer/index.d.ts +0 -8
  87. package/es/index.d.ts +0 -87
  88. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
  89. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -4
  90. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -16
  91. package/es/plus/skuOptionsSelection/index.d.ts +0 -5
  92. package/es/plus/skuOptionsSelection/locales.d.ts +0 -58
  93. package/es/plus/skuOptionsSelection/types.d.ts +0 -458
  94. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  95. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  96. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  97. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  98. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  99. package/es/pro/Cards/components/SKUCard/index.d.ts +0 -5
  100. package/es/pro/Login2.0/components/phoneValidation.d.ts +0 -17
  101. package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
  102. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  103. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -4
  104. package/lib/components/appointmentBooking/hooks.d.ts +0 -107
  105. package/lib/components/appointmentBooking/utils.d.ts +0 -227
  106. package/lib/components/booking/components/footer/utils.d.ts +0 -47
  107. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
  108. package/lib/components/booking/components/voucher/index.d.ts +0 -4
  109. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  110. package/lib/components/booking/info/service/editService/index.d.ts +0 -7
  111. package/lib/components/booking/info/service2/utils.d.ts +0 -248
  112. package/lib/components/booking/info2/index.d.ts +0 -12
  113. package/lib/components/booking/info2/service/addService/index.d.ts +0 -12
  114. package/lib/components/booking/locales.d.ts +0 -1489
  115. package/lib/components/booking/model.d.ts +0 -120
  116. package/lib/components/eftposPay/amount.d.ts +0 -21
  117. package/lib/components/eftposPay/app.d.ts +0 -11
  118. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -4
  119. package/lib/components/eftposPay/component/fail/index.d.ts +0 -4
  120. package/lib/components/eftposPay/component/fail/network.d.ts +0 -9
  121. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
  122. package/lib/components/eftposPay/component/manual/index.d.ts +0 -10
  123. package/lib/components/eftposPay/component/signature/index.d.ts +0 -9
  124. package/lib/components/eftposPay/device.d.ts +0 -24
  125. package/lib/components/eftposPay/index.d.ts +0 -5
  126. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  127. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  128. package/lib/components/eftposPay/linkly/index.d.ts +0 -3
  129. package/lib/components/eftposPay/pay.d.ts +0 -21
  130. package/lib/components/eftposPay/payo/config.d.ts +0 -13
  131. package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
  132. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  133. package/lib/components/eftposPay/tip.d.ts +0 -10
  134. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  135. package/lib/components/eftposPay/utils/payLog.d.ts +0 -81
  136. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -23
  137. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -7
  138. package/lib/components/kioskSkuDetail/index.d.ts +0 -39
  139. package/lib/components/kioskSkuDetail/locales.d.ts +0 -48
  140. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  141. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  142. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  143. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
  144. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
  145. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
  146. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  147. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  148. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
  149. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
  150. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
  151. package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  152. package/lib/components/pay/toC/index.d.ts +0 -3
  153. package/lib/components/pay/toC/locales.d.ts +0 -631
  154. package/lib/components/pay/toC/payGroup.d.ts +0 -59
  155. package/lib/components/pay/toC/serve.d.ts +0 -87
  156. package/lib/components/pay/toC/utils.d.ts +0 -65
  157. package/lib/components/ruleSetting/locales.d.ts +0 -78
  158. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -10
  159. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -5
  160. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -13
  161. package/lib/components/ticketBooking/index.d.ts +0 -8
  162. package/lib/components/venueBooking/components/Cart/index.d.ts +0 -28
  163. package/lib/components/venueBooking/components/Footer/index.d.ts +0 -8
  164. package/lib/index.d.ts +0 -87
  165. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
  166. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -4
  167. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -16
  168. package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
  169. package/lib/plus/skuOptionsSelection/locales.d.ts +0 -58
  170. package/lib/plus/skuOptionsSelection/types.d.ts +0 -458
  171. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  172. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  173. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  174. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  175. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  176. package/lib/pro/Cards/components/SKUCard/index.d.ts +0 -5
  177. package/lib/pro/Login2.0/components/phoneValidation.d.ts +0 -17
@@ -1,120 +0,0 @@
1
- /// <reference types="react" />
2
- export interface FormState {
3
- amountSymbol: string;
4
- apis: {
5
- getClients: (par?: any) => any;
6
- getClientsEs: (par?: any) => any;
7
- getServices: (par?: any) => any;
8
- getResources: (par?: any) => any;
9
- getProducts: (par?: any) => any;
10
- getPets: (par?: any) => any;
11
- getForms: (par?: any) => any;
12
- getFormData: (par?: any) => any;
13
- getAddonsByOrderId: (par?: any) => any;
14
- saveAddonsByOrderId: (par?: any) => any;
15
- getNotesByOrder: (par?: any) => any;
16
- saveBookingFormData: (par?: any) => any;
17
- getPetsData: (par?: any) => any;
18
- };
19
- client: {
20
- showModal: boolean;
21
- value: any;
22
- clients: any[];
23
- clientsParams: {
24
- skip: number;
25
- num: number;
26
- search: string;
27
- };
28
- edit: boolean;
29
- };
30
- contacts_info: {
31
- edit: boolean;
32
- value: any;
33
- };
34
- date: {
35
- value: any;
36
- end_date: any;
37
- edit: boolean;
38
- };
39
- service: {
40
- addModal: boolean;
41
- editModal: boolean;
42
- services: any[];
43
- resources: any[];
44
- resourcesOrigin: any[];
45
- reloadResourceModal: false;
46
- value: any[];
47
- cacheItem: any;
48
- edit: boolean;
49
- addTimeModal: boolean;
50
- changeService: any;
51
- };
52
- pet: {
53
- showModal: boolean;
54
- pets: any[];
55
- value: any[];
56
- formData: any;
57
- originValue: any;
58
- edit: boolean;
59
- };
60
- addons: {
61
- showModal: boolean;
62
- value: any[];
63
- productList: any[];
64
- originData: any[];
65
- edit: boolean;
66
- };
67
- notes: {
68
- orderNote: string;
69
- internalNotes: any[];
70
- edit: boolean;
71
- };
72
- form: {
73
- value: any;
74
- forms: any[];
75
- edit: boolean;
76
- };
77
- setGlobalState: () => void;
78
- disabledEdit: boolean;
79
- bookingConfig: any;
80
- action: any;
81
- bookingId: string | number;
82
- bookingDetail: any;
83
- channelDisabledEdit: boolean;
84
- renderType?: 'eventBooking' | 'dayBooking';
85
- modalOpen?: boolean;
86
- isTerminal?: boolean;
87
- isFranchisee?: boolean;
88
- addTimeProducts: any[];
89
- eventOtherParams?: {
90
- relation_id: number;
91
- number: number;
92
- registration_type: 'single' | 'all' | 'extra_include';
93
- start_date: string;
94
- start_time: string;
95
- end_date: string;
96
- end_time: string;
97
- productIds: number[];
98
- };
99
- disableEventBookingEdit?: boolean;
100
- /** 关闭自动打开选择服务弹窗 */
101
- closeAutoOpenService?: boolean;
102
- /** 是否terminal创建booking页面 */
103
- isBookingCreatePage?: boolean;
104
- loading: boolean;
105
- isTerminalDayBookingPage?: boolean;
106
- activeCartId?: any[];
107
- isDayBooking: boolean;
108
- }
109
- export declare const walkInData: {
110
- id: number;
111
- nickname: string;
112
- };
113
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
- state: FormState;
115
- } & {
116
- dispatch: (params: {
117
- type: string;
118
- payload: any;
119
- }) => void;
120
- }>;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { PosProps } from './const';
3
- /**
4
- * @title: 支付金额信息配置页
5
- * @description: 配置支付金额与手续费
6
- * @return React.Element
7
- * @Author: hongbing.wang
8
- * @Date: 2024-08-12 11:35
9
- */
10
- declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
- className?: string | undefined;
12
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
- [keys: string]: unknown;
14
- } | undefined, other?: any) => void) | undefined;
15
- onClose: () => void;
16
- formatAmount(amount: number | string, precision: number, symbol: string): string;
17
- isMobile: boolean;
18
- net: boolean;
19
- client: string;
20
- }) => React.JSX.Element;
21
- 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, "type" | "mode" | "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,9 +0,0 @@
1
- import React from 'react';
2
- import { ActionProps } from '../../const';
3
- /**
4
- * @title: 断网(客户端)提示页
5
- * @Author: hongbing.wang
6
- * @Date: 2024-08-20 11:40
7
- */
8
- declare const _default: ({ className }: ActionProps) => React.JSX.Element;
9
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { ActionProps } from '../../const';
3
- /**
4
- * @title: 支付状态未知页面
5
- * @description:
6
- * @Author: hongbing.wang
7
- * @Date: 2024-08-20 11:42
8
- */
9
- declare const _default: ({ onChange, className }: ActionProps) => React.JSX.Element;
10
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { ActionProps } from '../../const';
3
- import './index.less';
4
- /**
5
- * @title: 结果标记页面
6
- * @Author: hongbing.wang
7
- * @Date: 2024-08-20 11:46
8
- */
9
- declare const _default: ({ onChange, className, formatAmount }: ActionProps) => React.JSX.Element;
10
- export default _default;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { ActionProps } from '../../const';
3
- /**
4
- * @title: 取消签名确认页
5
- * @Author: hongbing.wang
6
- * @Date: 2024-08-20 11:49
7
- */
8
- declare const _default: ({ api, className }: ActionProps) => React.JSX.Element;
9
- export default _default;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { PayProps, PosProps } from './const';
3
- import './device.less';
4
- /**
5
- * @title: 设备选择页
6
- * @description: 选择设备信息,无设备增加提示;仅有一条,默认选中跳走;多条记录则停留等待用户选择
7
- * @return React.Element
8
- * @Author: hongbing.wang
9
- * @Date: 2024-08-12 11:40
10
- */
11
- declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
- api: PayProps['api'];
13
- className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
- [keys: string]: unknown;
16
- } | undefined, other?: any) => void) | undefined;
17
- onClose: () => void;
18
- device_number?: string | number | undefined;
19
- isMobile: boolean;
20
- net: boolean;
21
- client: string;
22
- formatAmount(amount: number | string, precision: number, symbol: string): string;
23
- }) => React.JSX.Element;
24
- export default _default;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { PosProps } from './const';
3
- import './index.less';
4
- declare const _default: (props: PosProps) => React.JSX.Element | null;
5
- export default _default;
@@ -1,30 +0,0 @@
1
- /**
2
- * 支付或退款
3
- * @param failAction 失败回调
4
- */
5
- export declare const useLinklyPayOrRefund: (handleCheck: () => boolean) => {
6
- action: {
7
- pay: import("ahooks/lib/useRequest/src/types").Result<any, [data: any]>;
8
- };
9
- payOrRefund: (resultQuery: any, handleLinklySuccess: any) => void;
10
- };
11
- /**
12
- * @title: 取消支付或退款
13
- * @description: 取消支付或退款调用接口后不管成功还是失败都需要调用支付查询接口
14
- */
15
- export declare const useLinklyCancel: (handleCheck: () => boolean) => {
16
- action: {
17
- cancel: import("ahooks/lib/useRequest/src/types").Result<any, [param: any]>;
18
- };
19
- linklyCancel: (resultQuery: any) => void;
20
- };
21
- /**
22
- * @title: 支付或退款签名
23
- * @description: 支付或退款签名调用接口后不管成功还是失败都需要调用支付查询接口
24
- */
25
- export declare const useLinklySignature: (handleCheck: () => boolean) => {
26
- action: {
27
- signature: import("ahooks/lib/useRequest/src/types").Result<any, [param: any]>;
28
- };
29
- linklySignature: (status: number, resultQuery: any) => void;
30
- };
@@ -1,4 +0,0 @@
1
- export declare const useTimeResultQuery: (api: any, resultCheck: () => boolean, handleLinklySuccess: (res: any) => void) => {
2
- run: () => Promise<void>;
3
- stop: () => void;
4
- };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const Linkly: ({ api, onChange }: any) => React.JSX.Element;
3
- export default Linkly;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { PayProps } from './const';
3
- import './index.less';
4
- /**
5
- * @title: 支付组件
6
- * @description:
7
- * @Author: hongbing.wang
8
- * @Date: 2024-08-20 14:59
9
- */
10
- declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client, }: PayProps & {
11
- terminal: {
12
- network: boolean;
13
- };
14
- net: boolean;
15
- isMobile: boolean;
16
- tyroUrl?: string | undefined;
17
- tyroVersion?: string | undefined;
18
- formatAmount(amount: number | string, precision: number, symbol: string): string;
19
- client: string;
20
- }) => React.JSX.Element;
21
- export default Pay;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { StatusEnum } from '../const';
3
- export declare const POS: ({ api, onChange, }: {
4
- api: {
5
- [key: string]: (...agrn: unknown[]) => Promise<unknown>;
6
- };
7
- onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}`, params?: {
8
- [keys: string]: unknown;
9
- } | undefined) => void;
10
- }) => React.JSX.Element;
11
- export declare const Action: ({ onChange }: {
12
- onChange: any;
13
- }) => React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import { PayStatus } from '../const';
2
- /**
3
- * @title: 循环查询 接口状态
4
- * @Author: hongbing.wang
5
- * @Date: 2024-08-20 13:29
6
- */
7
- export declare const useValidate: (timeout: number) => readonly [(params_0: (...agrn: unknown[]) => Promise<any>, params_1: number, params_2?: number | undefined) => Promise<{
8
- [key: string]: unknown;
9
- code: `${PayStatus}`;
10
- }>, () => void];
@@ -1,66 +0,0 @@
1
- interface RunApiParams {
2
- [key: string]: any;
3
- }
4
- export declare enum ActionType {
5
- Pay = "pay",
6
- Refund = "refund",
7
- Query = "query"
8
- }
9
- interface UsePaymentOptions {
10
- /**
11
- * 支付接口
12
- */
13
- payApi: (params: RunApiParams, options?: {
14
- signal?: AbortSignal;
15
- }) => Promise<any>;
16
- /**
17
- * 退款接口
18
- */
19
- refundApi?: (params: RunApiParams, options?: {
20
- signal?: AbortSignal;
21
- }) => Promise<any>;
22
- /**
23
- * 查询接口
24
- */
25
- checkApi: (params: {
26
- number: string;
27
- }, options?: {
28
- signal?: AbortSignal;
29
- }) => Promise<any>;
30
- /**
31
- * 检查是否应该继续处理结果(用于处理网络断开、组件卸载等情况)
32
- */
33
- shouldContinue?: () => boolean;
34
- }
35
- interface RunParams {
36
- /** 支付类型 */
37
- paymentType: ActionType;
38
- /** 支付交易号 */
39
- paymentNum: string;
40
- /** 订单ID */
41
- orderId?: string | number;
42
- /** 设备ID */
43
- deviceId?: string | number;
44
- /** 支付参数 */
45
- params: RunApiParams;
46
- /** 回调方法 */
47
- callbacks: RunCallbacks;
48
- }
49
- interface RunCallbacks {
50
- /**
51
- * 成功回调
52
- */
53
- onSuccess: (res: any) => void;
54
- /**
55
- * 失败回调
56
- */
57
- onError: (error: any) => void;
58
- }
59
- export declare const usePayment: (options: UsePaymentOptions) => {
60
- run: (options: RunParams) => Promise<void>;
61
- stop: () => void;
62
- clean: (params?: {
63
- clearCallbacks?: boolean;
64
- }) => void;
65
- };
66
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './tip.less';
3
- /**
4
- * @title: 支付状态未知页面
5
- * @description:
6
- * @Author: hongbing.wang
7
- * @Date: 2024-08-20 11:42
8
- */
9
- declare const _default: ({ onChangeStatus, className, formatAmount, cardSurcharge, receipts, successTime, onChangeParams, }: any) => React.JSX.Element;
10
- export default _default;
@@ -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,81 +0,0 @@
1
- export interface PayLogContext {
2
- /** 渠道 */
3
- channel?: string;
4
- /** 订单ID */
5
- orderId?: string | number;
6
- /** 设备ID */
7
- deviceId?: string | number;
8
- /** 支付类型:PAYO / WINDCAVE / LINKLY / TYRO */
9
- paymentType?: string;
10
- /** 交易记录号 */
11
- transactionNumber?: string;
12
- /** 模式:pay / refund / query */
13
- mode?: string;
14
- /** 其他扩展信息 */
15
- extra?: Record<string, any>;
16
- }
17
- declare class PayLog {
18
- private static instance;
19
- private sessionKey;
20
- private context;
21
- private logs;
22
- private startTime;
23
- private flushed;
24
- private constructor();
25
- static getInstance(): PayLog;
26
- /**
27
- * 初始化一次交易会话
28
- * - 生成唯一 sessionKey
29
- * - 恢复上报 localStorage 中残留的旧日志
30
- * - 接受部分 context(后续可通过 setContext 补充)
31
- */
32
- init(context?: Partial<PayLogContext>): void;
33
- /**
34
- * 补充/更新上下文信息
35
- * 新值覆盖旧值,extra 做浅合并
36
- */
37
- setContext(partial: Partial<PayLogContext>): void;
38
- /**
39
- * 记录一条日志
40
- */
41
- log(title: string, data?: any): void;
42
- /**
43
- * 上报日志到飞书并清理 localStorage
44
- */
45
- flush(customTitle?: string): void;
46
- /**
47
- * flush + 重置内部状态
48
- */
49
- destroy(): void;
50
- /**
51
- * 构建 sendWarningLog 所需的 content 数组
52
- */
53
- private buildContent;
54
- /**
55
- * 持久化当前会话到 localStorage
56
- */
57
- private persistToStorage;
58
- /**
59
- * 从 localStorage 移除指定 session
60
- */
61
- private removeFromStorage;
62
- /**
63
- * 获取 localStorage 中所有 session
64
- */
65
- private getAllSessions;
66
- /**
67
- * 恢复上报 localStorage 中残留的旧日志(崩溃/异常退出场景)
68
- */
69
- private recoverOrphanedLogs;
70
- }
71
- declare const payLog: PayLog;
72
- export default payLog;
73
- /**
74
- * 在根组件中使用,管理 PayLog 生命周期
75
- * - mount 时 init(+ 恢复上报残留日志)
76
- * - unmount 时 flush
77
- */
78
- export declare function usePayLog(context?: Partial<PayLogContext>): {
79
- log: (title: string, data?: any) => void;
80
- setContext: (partial: Partial<PayLogContext>) => void;
81
- };
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * @title: 按钮操作区
4
- * @description: 仅包含签名
5
- * @Author: hongbing.wang
6
- * @Date: 2024-08-20 12:33
7
- */
8
- export declare const ReceiptAction: ({ api, onChange, }: {
9
- api: any;
10
- onChange: (status: boolean) => void;
11
- }) => React.JSX.Element;
12
- /**
13
- * @title: 按钮操作区
14
- * @description: 不包含签名
15
- * @Author: hongbing.wang
16
- * @Date: 2024-08-20 12:32
17
- */
18
- declare const Action: ({ index, onCancel, disabled, }: {
19
- index: number;
20
- onCancel: () => void;
21
- disabled: boolean;
22
- }) => React.JSX.Element | null;
23
- export default Action;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- declare const _default: ({ api, onChange, formatAmount, }: {
3
- api: any;
4
- onChange: any;
5
- formatAmount(amount: number | string, precision: number, symbol: string): string;
6
- }) => React.JSX.Element;
7
- export default _default;
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import type { SkuValue } from '../../plus/skuOptionsSelection/types';
3
- import './index.less';
4
- /**
5
- * @description Kiosk 商品详情(参考 Figma: Kiosk / Launchpad screen)
6
- * - 默认从 URL query 读取商品 id(productId / product_id / id),内部通过 getProductDetail 拉取详情
7
- * - 中间区域用 SKUOptionsSelection 做 SKU 选择
8
- * - 底部用 PisellNumberSelector 做数量编辑
9
- */
10
- declare function KioskSkuDetail(props: KioskSkuDetailProps): React.JSX.Element;
11
- export default KioskSkuDetail;
12
- /**
13
- * @description 从原生回调 payload 中提取 productId
14
- */
15
- export interface KioskSkuDetailProps {
16
- /** 商品 id(可选:目前默认从 URL 读取,props 仅作为兜底以兼容老用法) */
17
- productId?: number | string;
18
- /**
19
- * 可选:用于商品报价的日期(预约类商品)
20
- * @deprecated 目前 kiosk 详情暂时固定取当天,这个参数暂不生效
21
- */
22
- scheduleDate?: string;
23
- /** 自定义类名 */
24
- className?: string;
25
- /** 自定义样式 */
26
- style?: React.CSSProperties;
27
- /** 返回 */
28
- onBack?: () => void;
29
- /** 加入购物车 */
30
- onAddToCart?: (params: {
31
- product: any;
32
- skuValue: SkuValue;
33
- quantity: number;
34
- unitPrice: number;
35
- total: number;
36
- currencySymbol: string;
37
- bookingConfig?: any;
38
- }) => void;
39
- }
@@ -1,48 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.kiosk.sku.detail.btn.back': string;
4
- 'pisell2.text.kiosk.sku.detail.item.total': string;
5
- 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
6
- 'pisell2.text.kiosk.sku.detail.btn.update': string;
7
- 'pisell2.text.kiosk.sku.detail.loading.options': string;
8
- 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
9
- 'pisell2.text.kiosk.sku.detail.balance': string;
10
- };
11
- 'zh-CN': {
12
- 'pisell2.text.kiosk.sku.detail.btn.back': string;
13
- 'pisell2.text.kiosk.sku.detail.item.total': string;
14
- 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
15
- 'pisell2.text.kiosk.sku.detail.btn.update': string;
16
- 'pisell2.text.kiosk.sku.detail.loading.options': string;
17
- 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
18
- 'pisell2.text.kiosk.sku.detail.balance': string;
19
- };
20
- 'zh-TW': {
21
- 'pisell2.text.kiosk.sku.detail.btn.back': string;
22
- 'pisell2.text.kiosk.sku.detail.item.total': string;
23
- 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
24
- 'pisell2.text.kiosk.sku.detail.btn.update': string;
25
- 'pisell2.text.kiosk.sku.detail.loading.options': string;
26
- 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
27
- 'pisell2.text.kiosk.sku.detail.balance': string;
28
- };
29
- ja: {
30
- 'pisell2.text.kiosk.sku.detail.btn.back': string;
31
- 'pisell2.text.kiosk.sku.detail.item.total': string;
32
- 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
33
- 'pisell2.text.kiosk.sku.detail.btn.update': string;
34
- 'pisell2.text.kiosk.sku.detail.loading.options': string;
35
- 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
36
- 'pisell2.text.kiosk.sku.detail.balance': string;
37
- };
38
- pt: {
39
- 'pisell2.text.kiosk.sku.detail.btn.back': string;
40
- 'pisell2.text.kiosk.sku.detail.item.total': string;
41
- 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
42
- 'pisell2.text.kiosk.sku.detail.btn.update': string;
43
- 'pisell2.text.kiosk.sku.detail.loading.options': string;
44
- 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
45
- 'pisell2.text.kiosk.sku.detail.balance': string;
46
- };
47
- };
48
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface GlobePayAliPayH5Ref {
4
- init: (res: any) => void;
5
- }
6
- export interface GlobePayAliPayH5Props {
7
- onChange?: (values: any) => void;
8
- }
9
- declare const _default: React.ForwardRefExoticComponent<GlobePayAliPayH5Props & React.RefAttributes<any>>;
10
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface GlobePayPaypalH5Ref {
4
- init: (res: any) => void;
5
- }
6
- export interface GlobePayPaypalH5Props {
7
- onChange?: (values: any) => void;
8
- }
9
- declare const _default: React.ForwardRefExoticComponent<GlobePayPaypalH5Props & React.RefAttributes<any>>;
10
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface GlobePayWxH5Ref {
4
- init: (res: any) => void;
5
- }
6
- export interface GlobePayWxH5Props {
7
- onChange?: (values: any) => void;
8
- }
9
- declare const _default: React.ForwardRefExoticComponent<GlobePayWxH5Props & React.RefAttributes<any>>;
10
- export default _default;