@pisell/private-materials 3.0.136 → 3.0.138
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/forms/single/index.js +3 -0
- package/es/components/eftpos/const.d.ts +26 -0
- package/es/components/eftpos/const.js +40 -8
- package/es/components/eftpos/device.d.ts +3 -2
- package/es/components/eftpos/device.js +6 -5
- package/es/components/eftpos/form/index.d.ts +5 -0
- package/es/components/eftpos/form/index.js +8 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/{eftposPay/windcave/hook.js → eftpos/hooks.js} +96 -122
- package/es/components/eftpos/icon/apiKey.d.ts +5 -0
- package/es/components/eftpos/icon/apiKey.js +17 -0
- package/es/components/eftpos/icon/device.d.ts +5 -0
- package/es/components/eftpos/icon/device.js +19 -0
- package/es/components/eftpos/index.d.ts +10 -0
- package/es/components/eftpos/index.js +329 -46
- package/es/components/eftpos/index.less +38 -1
- package/es/components/eftpos/locales.d.ts +12 -0
- package/es/components/eftpos/locales.js +15 -3
- package/es/components/eftpos/log.d.ts +8 -0
- package/es/components/eftpos/log.js +85 -0
- package/es/components/eftpos/pos.d.ts +1 -1
- package/es/components/eftpos/pos.js +8 -5
- package/es/components/eftpos/surcharge/index.d.ts +25 -2
- package/es/components/eftpos/surcharge/index.js +100 -16
- package/es/components/eftpos/table.d.ts +4 -0
- package/es/components/eftpos/table.js +102 -10
- package/es/components/eftposPay/amount.d.ts +7 -1
- package/es/components/eftposPay/amount.js +65 -38
- package/es/components/eftposPay/component/fail/failCustom.js +65 -20
- package/es/components/eftposPay/component/fail/index.js +60 -30
- package/es/components/eftposPay/component/fail/network.d.ts +5 -0
- package/es/components/eftposPay/component/fail/network.js +13 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +6 -0
- package/es/components/eftposPay/component/fail/unknow.js +18 -3
- package/es/components/eftposPay/component/header/index.d.ts +2 -1
- package/es/components/eftposPay/component/header/index.js +4 -1
- package/es/components/eftposPay/component/header/index.less +1 -10
- package/es/components/eftposPay/component/manual/index.d.ts +6 -1
- package/es/components/eftposPay/component/manual/index.js +174 -23
- package/es/components/eftposPay/component/manual/index.less +42 -14
- package/es/components/eftposPay/component/signature/index.d.ts +5 -0
- package/es/components/eftposPay/component/signature/index.js +20 -2
- package/es/components/eftposPay/component/step/index.d.ts +7 -7
- package/es/components/eftposPay/component/step/step.d.ts +4 -4
- package/es/components/eftposPay/const.d.ts +19 -4
- package/es/components/eftposPay/const.js +4 -2
- package/es/components/eftposPay/device.d.ts +7 -0
- package/es/components/eftposPay/device.js +22 -0
- package/es/components/eftposPay/helper.d.ts +54 -0
- package/es/components/eftposPay/helper.js +93 -1
- package/es/components/eftposPay/hooks.d.ts +30 -1
- package/es/components/eftposPay/hooks.js +181 -26
- package/es/components/eftposPay/index.d.ts +2 -4
- package/es/components/eftposPay/index.js +119 -31
- package/es/components/eftposPay/index.less +27 -19
- package/es/components/eftposPay/locales.d.ts +45 -0
- package/es/components/eftposPay/locales.js +348 -3
- package/es/components/eftposPay/manufacturer.d.ts +2 -2
- package/es/components/eftposPay/manufacturer.js +9 -10
- package/es/components/eftposPay/pay.d.ts +10 -1
- package/es/components/eftposPay/pay.js +112 -34
- package/es/components/eftposPay/payo/config.js +137 -270
- package/es/components/eftposPay/payo/const.d.ts +22 -2
- package/es/components/eftposPay/payo/const.js +83 -33
- package/es/components/eftposPay/payo/hooks.d.ts +5 -0
- package/es/components/eftposPay/payo/hooks.js +19 -2
- package/es/components/eftposPay/store/index.d.ts +154 -53
- package/es/components/eftposPay/store/index.js +112 -60
- package/es/components/eftposPay/tyro/const.d.ts +17 -0
- package/es/components/eftposPay/{eftpos → tyro}/const.js +71 -90
- package/es/components/eftposPay/tyro/hooks.d.ts +14 -0
- package/es/components/eftposPay/tyro/hooks.js +40 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/tyro/index.js +575 -0
- package/es/components/eftposPay/windcave/const.d.ts +24 -9
- package/es/components/eftposPay/windcave/const.js +90 -81
- package/es/components/eftposPay/windcave/helper.d.ts +16 -2
- package/es/components/eftposPay/windcave/helper.js +175 -42
- package/es/components/eftposPay/windcave/receiptAction.d.ts +12 -0
- package/es/components/eftposPay/windcave/receiptAction.js +91 -43
- package/es/components/eftposPay/windcave/timer.d.ts +13 -1
- package/es/components/eftposPay/windcave/timer.js +18 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +2 -1
- package/es/components/eftposPay/windcave/windcave.js +155 -139
- package/es/utils/load.d.ts +11 -0
- package/es/utils/load.js +85 -0
- package/lib/components/booking/forms/single/index.js +1 -0
- package/lib/components/eftpos/const.d.ts +26 -0
- package/lib/components/eftpos/const.js +13 -1
- package/lib/components/eftpos/device.d.ts +3 -2
- package/lib/components/eftpos/device.js +2 -2
- package/lib/components/eftpos/form/index.d.ts +5 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/hooks.js +106 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +5 -0
- package/lib/components/eftpos/icon/apiKey.js +57 -0
- package/lib/components/eftpos/icon/device.d.ts +5 -0
- package/lib/components/eftpos/icon/device.js +57 -0
- package/lib/components/eftpos/index.d.ts +10 -0
- package/lib/components/eftpos/index.js +262 -97
- package/lib/components/eftpos/index.less +38 -1
- package/lib/components/eftpos/locales.d.ts +12 -0
- package/lib/components/eftpos/locales.js +15 -3
- package/lib/components/eftpos/log.d.ts +8 -0
- package/lib/components/eftpos/log.js +87 -0
- package/lib/components/eftpos/pos.d.ts +1 -1
- package/lib/components/eftpos/pos.js +5 -4
- package/lib/components/eftpos/surcharge/index.d.ts +25 -2
- package/lib/components/eftpos/surcharge/index.js +36 -6
- package/lib/components/eftpos/table.d.ts +4 -0
- package/lib/components/eftpos/table.js +40 -8
- package/lib/components/eftposPay/amount.d.ts +7 -1
- package/lib/components/eftposPay/amount.js +10 -33
- package/lib/components/eftposPay/component/fail/failCustom.js +27 -6
- package/lib/components/eftposPay/component/fail/index.js +39 -18
- package/lib/components/eftposPay/component/fail/network.d.ts +5 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +6 -0
- package/lib/components/eftposPay/component/fail/unknow.js +3 -3
- package/lib/components/eftposPay/component/header/index.d.ts +2 -1
- package/lib/components/eftposPay/component/header/index.js +2 -1
- package/lib/components/eftposPay/component/header/index.less +1 -10
- package/lib/components/eftposPay/component/manual/index.d.ts +6 -1
- package/lib/components/eftposPay/component/manual/index.js +122 -31
- package/lib/components/eftposPay/component/manual/index.less +42 -14
- package/lib/components/eftposPay/component/signature/index.d.ts +5 -0
- package/lib/components/eftposPay/component/signature/index.js +2 -2
- package/lib/components/eftposPay/component/step/index.d.ts +7 -7
- package/lib/components/eftposPay/component/step/step.d.ts +4 -4
- package/lib/components/eftposPay/const.d.ts +19 -4
- package/lib/components/eftposPay/const.js +3 -1
- package/lib/components/eftposPay/device.d.ts +7 -0
- package/lib/components/eftposPay/helper.d.ts +54 -0
- package/lib/components/eftposPay/helper.js +64 -0
- package/lib/components/eftposPay/hooks.d.ts +30 -1
- package/lib/components/eftposPay/hooks.js +182 -44
- package/lib/components/eftposPay/index.d.ts +2 -4
- package/lib/components/eftposPay/index.js +74 -27
- package/lib/components/eftposPay/index.less +27 -19
- package/lib/components/eftposPay/locales.d.ts +45 -0
- package/lib/components/eftposPay/locales.js +352 -3
- package/lib/components/eftposPay/manufacturer.d.ts +2 -2
- package/lib/components/eftposPay/manufacturer.js +13 -13
- package/lib/components/eftposPay/pay.d.ts +10 -1
- package/lib/components/eftposPay/pay.js +86 -25
- package/lib/components/eftposPay/payo/config.js +121 -268
- package/lib/components/eftposPay/payo/const.d.ts +22 -2
- package/lib/components/eftposPay/payo/const.js +55 -36
- package/lib/components/eftposPay/payo/hooks.d.ts +5 -0
- package/lib/components/eftposPay/payo/hooks.js +1 -1
- package/lib/components/eftposPay/store/index.d.ts +154 -53
- package/lib/components/eftposPay/store/index.js +7 -66
- package/lib/components/eftposPay/tyro/const.d.ts +17 -0
- package/lib/components/eftposPay/tyro/const.js +114 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +14 -0
- package/lib/components/eftposPay/{eftpos/index.js → tyro/hooks.js} +31 -36
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/tyro/index.js +558 -0
- package/lib/components/eftposPay/windcave/const.d.ts +24 -9
- package/lib/components/eftposPay/windcave/const.js +53 -104
- package/lib/components/eftposPay/windcave/helper.d.ts +16 -2
- package/lib/components/eftposPay/windcave/helper.js +163 -48
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +12 -0
- package/lib/components/eftposPay/windcave/receiptAction.js +15 -47
- package/lib/components/eftposPay/windcave/timer.d.ts +13 -1
- package/lib/components/eftposPay/windcave/timer.js +5 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +2 -1
- package/lib/components/eftposPay/windcave/windcave.js +130 -130
- package/lib/utils/load.d.ts +11 -0
- package/lib/utils/load.js +100 -0
- package/lowcode/eftpos/meta.ts +202 -160
- package/lowcode/eftpos-pay/meta.ts +45 -12
- package/package.json +4 -4
- package/es/components/eftposPay/eftpos/config.d.ts +0 -11
- package/es/components/eftposPay/eftpos/config.js +0 -178
- package/es/components/eftposPay/eftpos/const.d.ts +0 -10
- package/es/components/eftposPay/eftpos/index.d.ts +0 -7
- package/es/components/eftposPay/eftpos/index.js +0 -35
- package/es/components/eftposPay/windcave/action.d.ts +0 -8
- package/es/components/eftposPay/windcave/action.js +0 -104
- package/es/components/eftposPay/windcave/hook.d.ts +0 -14
- package/es/components/eftposPay/windcave/index.d.ts +0 -8
- package/es/components/eftposPay/windcave/index.js +0 -49
- package/es/components/eftposPay/windcave/pos.d.ts +0 -8
- package/es/components/eftposPay/windcave/pos.js +0 -180
- package/es/components/eftposPay/windcave/pwd.d.ts +0 -8
- package/es/components/eftposPay/windcave/pwd.js +0 -124
- package/es/components/eftposPay/windcave/receipet.d.ts +0 -6
- package/es/components/eftposPay/windcave/receipet.js +0 -67
- package/es/components/eftposPay/windcave/wait.d.ts +0 -12
- package/es/components/eftposPay/windcave/wait.js +0 -139
- package/lib/components/eftposPay/eftpos/config.d.ts +0 -11
- package/lib/components/eftposPay/eftpos/config.js +0 -199
- package/lib/components/eftposPay/eftpos/const.d.ts +0 -10
- package/lib/components/eftposPay/eftpos/const.js +0 -165
- package/lib/components/eftposPay/eftpos/index.d.ts +0 -7
- package/lib/components/eftposPay/windcave/action.d.ts +0 -8
- package/lib/components/eftposPay/windcave/action.js +0 -143
- package/lib/components/eftposPay/windcave/hook.d.ts +0 -14
- package/lib/components/eftposPay/windcave/hook.js +0 -139
- package/lib/components/eftposPay/windcave/index.d.ts +0 -8
- package/lib/components/eftposPay/windcave/index.js +0 -78
- package/lib/components/eftposPay/windcave/pos.d.ts +0 -8
- package/lib/components/eftposPay/windcave/pos.js +0 -197
- package/lib/components/eftposPay/windcave/pwd.d.ts +0 -8
- package/lib/components/eftposPay/windcave/pwd.js +0 -143
- package/lib/components/eftposPay/windcave/receipet.d.ts +0 -6
- package/lib/components/eftposPay/windcave/receipet.js +0 -93
- package/lib/components/eftposPay/windcave/wait.d.ts +0 -12
- package/lib/components/eftposPay/windcave/wait.js +0 -163
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import { Amount, ModeEnum } from '../const';
|
|
2
2
|
import { State } from '../store';
|
|
3
|
+
/**
|
|
4
|
+
* @title: payo 步骤信息
|
|
5
|
+
* @description:
|
|
6
|
+
* @return {*}
|
|
7
|
+
* @Author: hongbing.wang
|
|
8
|
+
* @Date: 2024-08-12 10:19
|
|
9
|
+
*/
|
|
3
10
|
export declare const getStep: (mode?: ModeEnum) => State['steps'];
|
|
4
|
-
|
|
5
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @title: 初始化 payo 数据
|
|
13
|
+
* @description:
|
|
14
|
+
* @Author: hongbing.wang
|
|
15
|
+
* @Date: 2024-08-12 10:19
|
|
16
|
+
*/
|
|
17
|
+
declare const _default: (params: any) => State;
|
|
18
|
+
export default _default;
|
|
19
|
+
/**
|
|
20
|
+
* @title: payo 金额信息
|
|
21
|
+
* @description: 在 amount 页面设置则使用 pay ,如果有 setting 则使用 setting 信息 ,都没有则设置0
|
|
22
|
+
* @param {State} store : 全局store数据管理
|
|
23
|
+
* @Author: hongbing.wang
|
|
24
|
+
* @Date: 2024-08-12 10:24
|
|
25
|
+
*/
|
|
6
26
|
export declare function getAmonunt(store: State): Amount;
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
var _excluded = ["order_id", "name", "symbol", "amount", "mode", "number", "pay", "device", "net"];
|
|
2
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
10
|
import { locales } from '@pisell/utils';
|
|
8
11
|
import { EftposEnum, StatusEnum, PayRouteEnum, ModeEnum } from "../const";
|
|
12
|
+
/**
|
|
13
|
+
* @title: payo 步骤信息
|
|
14
|
+
* @description:
|
|
15
|
+
* @return {*}
|
|
16
|
+
* @Author: hongbing.wang
|
|
17
|
+
* @Date: 2024-08-12 10:19
|
|
18
|
+
*/
|
|
9
19
|
export var getStep = function getStep() {
|
|
10
20
|
var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ModeEnum.Pay;
|
|
11
21
|
return [{
|
|
@@ -20,74 +30,114 @@ export var getStep = function getStep() {
|
|
|
20
30
|
status: StatusEnum.Loading
|
|
21
31
|
}];
|
|
22
32
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @title: 初始化 payo 数据
|
|
36
|
+
* @description:
|
|
37
|
+
* @Author: hongbing.wang
|
|
38
|
+
* @Date: 2024-08-12 10:19
|
|
39
|
+
*/
|
|
40
|
+
export default (function (params) {
|
|
41
|
+
var _ref = params || {
|
|
42
|
+
mode: ModeEnum.Pay
|
|
43
|
+
},
|
|
44
|
+
order_id = _ref.order_id,
|
|
45
|
+
name = _ref.name,
|
|
46
|
+
symbol = _ref.symbol,
|
|
47
|
+
amount = _ref.amount,
|
|
48
|
+
mode = _ref.mode,
|
|
49
|
+
number = _ref.number,
|
|
50
|
+
pay = _ref.pay,
|
|
51
|
+
device = _ref.device,
|
|
52
|
+
net = _ref.net,
|
|
53
|
+
other = _objectWithoutProperties(_ref, _excluded);
|
|
54
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
55
|
+
order_id: order_id,
|
|
56
|
+
name: name,
|
|
57
|
+
symbol: symbol,
|
|
58
|
+
amount: amount,
|
|
59
|
+
mode: mode,
|
|
26
60
|
eftpos: EftposEnum.Payo,
|
|
27
61
|
key: Date.now(),
|
|
28
|
-
warn: locales.getText('page.eftpos-pay.text.waiting.pay')(
|
|
29
|
-
// 'If you have confirmed the payment status from the PoS, you can press Manual marking buttonto skip.',
|
|
62
|
+
warn: locales.getText('page.eftpos-pay.text.waiting.pay')(mode),
|
|
30
63
|
step: 0,
|
|
31
64
|
type: PayRouteEnum.Step,
|
|
32
|
-
title: locales.getText('page.eftpos-pay.text.loading')(
|
|
33
|
-
// 'Payment in process...',
|
|
65
|
+
title: locales.getText('page.eftpos-pay.text.loading')(mode),
|
|
34
66
|
component: '',
|
|
35
67
|
status: StatusEnum.Loading,
|
|
36
|
-
steps: getStep(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
|
|
68
|
+
steps: getStep(mode),
|
|
69
|
+
render: true,
|
|
70
|
+
custom: other || {}
|
|
71
|
+
}, typeof net !== 'undefined' ? {
|
|
72
|
+
net: net
|
|
73
|
+
} : {}), typeof number !== 'undefined' ? {
|
|
74
|
+
number: number
|
|
75
|
+
} : {}), typeof pay !== 'undefined' ? {
|
|
76
|
+
pay: pay
|
|
77
|
+
} : {}), typeof device !== 'undefined' ? {
|
|
78
|
+
device: device
|
|
41
79
|
} : {});
|
|
42
|
-
};
|
|
43
|
-
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @title: payo 金额信息
|
|
84
|
+
* @description: 在 amount 页面设置则使用 pay ,如果有 setting 则使用 setting 信息 ,都没有则设置0
|
|
85
|
+
* @param {State} store : 全局store数据管理
|
|
86
|
+
* @Author: hongbing.wang
|
|
87
|
+
* @Date: 2024-08-12 10:24
|
|
88
|
+
*/
|
|
44
89
|
export function getAmonunt(store) {
|
|
45
90
|
var device = store.device,
|
|
46
|
-
|
|
91
|
+
pay = store.pay,
|
|
92
|
+
custom = store.custom,
|
|
93
|
+
name = store.name,
|
|
94
|
+
symbol = store.symbol,
|
|
95
|
+
amount = store.amount;
|
|
47
96
|
if (!device || !custom) {
|
|
48
97
|
throw Error('device or custom is not defined');
|
|
49
98
|
}
|
|
50
|
-
var name = custom.name;
|
|
51
|
-
var symbol = custom.symbol;
|
|
52
|
-
// const format = custom.format as string;
|
|
53
|
-
var money = custom.amount;
|
|
54
|
-
var pay = custom.pay;
|
|
55
99
|
var setting = device.setting;
|
|
100
|
+
// 从 金额编辑页 获取到 支付数据
|
|
56
101
|
if (pay) {
|
|
57
102
|
return {
|
|
58
103
|
name: name,
|
|
59
104
|
symbol: symbol,
|
|
60
105
|
// format,
|
|
61
|
-
money:
|
|
106
|
+
money: Number(amount),
|
|
62
107
|
amount: Number(pay.amount),
|
|
63
108
|
surRate: Number(pay.surRate),
|
|
64
109
|
surMoney: Number(pay.surMoney),
|
|
65
|
-
surcharge: (setting === null || setting === void 0 ? void 0 : setting.surcharge) || false
|
|
110
|
+
surcharge: (setting === null || setting === void 0 ? void 0 : setting.surcharge) || false,
|
|
111
|
+
useOriginSurcharge: (pay === null || pay === void 0 ? void 0 : pay.useOriginSurcharge) || false
|
|
66
112
|
};
|
|
67
113
|
}
|
|
114
|
+
// 原始支付总额
|
|
68
115
|
if (!setting) {
|
|
69
116
|
return {
|
|
70
117
|
name: name,
|
|
71
118
|
symbol: symbol,
|
|
72
119
|
// format,
|
|
73
|
-
money:
|
|
74
|
-
amount:
|
|
120
|
+
money: Number(amount),
|
|
121
|
+
amount: Number(amount),
|
|
75
122
|
surRate: 0,
|
|
76
123
|
surMoney: 0,
|
|
77
|
-
surcharge: false
|
|
124
|
+
surcharge: false,
|
|
125
|
+
useOriginSurcharge: false
|
|
78
126
|
};
|
|
79
127
|
}
|
|
80
|
-
|
|
81
|
-
var
|
|
128
|
+
// 直接设备中手续费金额 + 原始支付总额
|
|
129
|
+
var surRate = setting.useOriginSurcharge ? 0 : setting.constant_rate || 0;
|
|
130
|
+
var surMoney = setting.useOriginSurcharge ? 0 : setting.constant_money || 0;
|
|
82
131
|
var surcharge = setting.surcharge;
|
|
132
|
+
var useOriginSurcharge = setting.useOriginSurcharge || false;
|
|
83
133
|
return {
|
|
84
134
|
name: name,
|
|
85
135
|
symbol: symbol,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
136
|
+
money: Number(amount),
|
|
137
|
+
amount: Number(amount),
|
|
138
|
+
surRate: useOriginSurcharge ? 0 : surcharge ? surRate : 0,
|
|
139
|
+
surMoney: useOriginSurcharge ? 0 : surcharge ? surMoney : 0,
|
|
140
|
+
surcharge: surcharge,
|
|
141
|
+
useOriginSurcharge: useOriginSurcharge
|
|
92
142
|
};
|
|
93
143
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { PayStatus } from '../const';
|
|
2
|
+
/**
|
|
3
|
+
* @title: 循环查询 接口状态
|
|
4
|
+
* @Author: hongbing.wang
|
|
5
|
+
* @Date: 2024-08-20 13:29
|
|
6
|
+
*/
|
|
2
7
|
export declare const useValidate: (timeout: number) => readonly [(params_0: (...agrn: unknown[]) => Promise<any>, params_1: number, params_2?: number | undefined) => Promise<{
|
|
3
8
|
[key: string]: unknown;
|
|
4
9
|
code: `${PayStatus}`;
|
|
@@ -7,6 +7,12 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
7
7
|
import { useCallback, useEffect, useRef } from 'react';
|
|
8
8
|
import { PayStatus } from "../const";
|
|
9
9
|
import { sleep } from "../helper";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @title: 循环查询 接口状态
|
|
13
|
+
* @Author: hongbing.wang
|
|
14
|
+
* @Date: 2024-08-20 13:29
|
|
15
|
+
*/
|
|
10
16
|
export var useValidate = function useValidate(timeout) {
|
|
11
17
|
var controllerRef = useRef();
|
|
12
18
|
var ref = useRef(true);
|
|
@@ -23,12 +29,14 @@ export var useValidate = function useValidate(timeout) {
|
|
|
23
29
|
code: PayStatus.Timeout
|
|
24
30
|
};
|
|
25
31
|
console.log('循环开始前...');
|
|
32
|
+
|
|
33
|
+
// 获取到超时状态码 则进行查询
|
|
26
34
|
case 4:
|
|
27
|
-
if (!(ref.current && res &&
|
|
35
|
+
if (!(ref.current && res && "".concat(res.code) === PayStatus.Timeout)) {
|
|
28
36
|
_context.next = 16;
|
|
29
37
|
break;
|
|
30
38
|
}
|
|
31
|
-
start = Date.now();
|
|
39
|
+
start = Date.now(); // 发送接口
|
|
32
40
|
_context.next = 8;
|
|
33
41
|
return check({
|
|
34
42
|
number: number
|
|
@@ -41,6 +49,8 @@ export var useValidate = function useValidate(timeout) {
|
|
|
41
49
|
res = _context.sent;
|
|
42
50
|
diff = Date.now() - start;
|
|
43
51
|
console.log(diff, time, time - diff, 'diff', res);
|
|
52
|
+
|
|
53
|
+
// 未到执行时长上限 则进入等待 直到执行时长上限 进行下一步行为
|
|
44
54
|
if (!(diff < time)) {
|
|
45
55
|
_context.next = 14;
|
|
46
56
|
break;
|
|
@@ -62,6 +72,12 @@ export var useValidate = function useValidate(timeout) {
|
|
|
62
72
|
return _ref.apply(this, arguments);
|
|
63
73
|
};
|
|
64
74
|
}(), []);
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @title: 关闭循环
|
|
78
|
+
* @Author: hongbing.wang
|
|
79
|
+
* @Date: 2024-08-20 13:48
|
|
80
|
+
*/
|
|
65
81
|
var close = useCallback(function () {
|
|
66
82
|
var _controllerRef$curren;
|
|
67
83
|
ref.current = false;
|
|
@@ -69,6 +85,7 @@ export var useValidate = function useValidate(timeout) {
|
|
|
69
85
|
}, []);
|
|
70
86
|
var run = function run() {
|
|
71
87
|
TimeoutRef.current && clearTimeout(TimeoutRef.current);
|
|
88
|
+
// 开启计时
|
|
72
89
|
TimeoutRef.current = setTimeout(function () {
|
|
73
90
|
close();
|
|
74
91
|
}, timeout);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { DeviceStatusType, StatusType, ModeType } from '../const';
|
|
2
|
+
import { DeviceStatusType, StatusType, ModeType, RouteType } from '../const';
|
|
3
3
|
import { ThunkDispatch } from './useThunkReducer';
|
|
4
4
|
export declare enum EActionTypes {
|
|
5
5
|
UPDATE_INIT = "UPDATE_INIT",
|
|
6
6
|
UPDATE_CUSTOM = "UPDATE_CUSTOM",
|
|
7
7
|
UPDATE_KEY = "UPDATE_KEY",
|
|
8
|
-
UPDATE_STEP = "UPDATE_STEP",
|
|
9
8
|
UPDATE_STEP_KEY = "UPDATE_STEP_KEY",
|
|
10
9
|
UPDATE_DEVICE = "UPDATE_DEVICE",
|
|
11
10
|
UPDATE_NEXT_STEP = "UPDATE_NEXT_STEP",
|
|
@@ -14,59 +13,80 @@ export declare enum EActionTypes {
|
|
|
14
13
|
UPDATE_LOADING = "UPDATE_LOADING",
|
|
15
14
|
UPDATE_COMPONENT = "UPDATE_COMPONENT",
|
|
16
15
|
UPDATE_STEPS = "UPDATE_STEPS",
|
|
17
|
-
UPDATE_WARN = "UPDATE_WARN",
|
|
18
16
|
UPDATE_STEP_CURRENT_ITEM_CUSTOM = "UPDATE_STEP_CURRENT_ITEM_CUSTOM",
|
|
19
|
-
UPDATE_STEP_ITEM_CUSTOM = "UPDATE_STEP_ITEM_CUSTOM",
|
|
20
17
|
UPDATE_STEP_ITEM = "UPDATE_STEP_ITEM",
|
|
21
18
|
BACKUP_PRODUCTION = "BACKUP_PRODUCTION",
|
|
22
19
|
BACKUP_FREE = "BACKUP_FREE"
|
|
23
20
|
}
|
|
24
21
|
export declare type State = {
|
|
22
|
+
/** 支付名称 */
|
|
23
|
+
name: string;
|
|
24
|
+
/** 金额单位 */
|
|
25
|
+
symbol: string;
|
|
26
|
+
/** 支付原始金额 */
|
|
27
|
+
amount: string | number;
|
|
28
|
+
/** 模式 */
|
|
25
29
|
mode: ModeType;
|
|
30
|
+
/** 订单号 */
|
|
31
|
+
order_id: string | number;
|
|
26
32
|
/** 厂商 */
|
|
27
33
|
eftpos: DeviceStatusType;
|
|
34
|
+
action?: RouteType;
|
|
28
35
|
/** 用于重置页面特指 =》全部步骤 */
|
|
29
36
|
key: number;
|
|
30
37
|
/** 当前执行到哪一步了 */
|
|
31
38
|
step: number;
|
|
32
39
|
/** 标题 */
|
|
33
40
|
title: string;
|
|
41
|
+
/** 标题 */
|
|
42
|
+
subTitle?: string;
|
|
34
43
|
/** step : 常规步骤页面 ,unset 自定义页面 */
|
|
35
44
|
type: 'step' | 'unset';
|
|
36
45
|
render: boolean;
|
|
46
|
+
/** 网络 */
|
|
47
|
+
net?: boolean;
|
|
37
48
|
/** 上面 unset 自定义页面,这里需要指定到具体页面 */
|
|
38
49
|
component: string;
|
|
39
|
-
|
|
50
|
+
form?: string;
|
|
40
51
|
/** 页面状态 */
|
|
41
52
|
status: StatusType;
|
|
42
53
|
/** 警告文案 */
|
|
43
|
-
warn:
|
|
54
|
+
warn: string;
|
|
44
55
|
steps: {
|
|
45
56
|
/** 用于重置当前步骤 */
|
|
46
57
|
key: number;
|
|
47
|
-
title?:
|
|
48
|
-
text?:
|
|
49
|
-
warn?:
|
|
50
|
-
tip?:
|
|
51
|
-
success?:
|
|
52
|
-
fail?:
|
|
53
|
-
loading?:
|
|
58
|
+
title?: string;
|
|
59
|
+
text?: string;
|
|
60
|
+
warn?: string;
|
|
61
|
+
tip?: string;
|
|
62
|
+
success?: string;
|
|
63
|
+
fail?: string;
|
|
64
|
+
loading?: string;
|
|
54
65
|
/** 步骤状态 */
|
|
55
66
|
status: StatusType;
|
|
56
67
|
custom?: {
|
|
57
|
-
/**
|
|
68
|
+
/** 步骤自定义 */
|
|
58
69
|
[key: string]: unknown;
|
|
59
70
|
};
|
|
60
71
|
}[];
|
|
72
|
+
/** 支付流水号 */
|
|
73
|
+
number?: string | number;
|
|
74
|
+
/** 设备信息 */
|
|
61
75
|
device?: {
|
|
62
76
|
[key: string]: unknown;
|
|
63
77
|
};
|
|
78
|
+
/** 支付信息 */
|
|
79
|
+
pay?: {
|
|
80
|
+
[key: string]: unknown;
|
|
81
|
+
};
|
|
64
82
|
custom?: {
|
|
65
83
|
[key: string]: unknown;
|
|
66
84
|
};
|
|
67
85
|
manual?: {
|
|
68
86
|
title: string;
|
|
69
87
|
text: string;
|
|
88
|
+
status?: boolean;
|
|
89
|
+
money?: number;
|
|
70
90
|
};
|
|
71
91
|
backup?: Omit<State, 'backup'>;
|
|
72
92
|
};
|
|
@@ -74,12 +94,26 @@ export declare type Action = {
|
|
|
74
94
|
type: EActionTypes;
|
|
75
95
|
payload: Partial<State>;
|
|
76
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* @title: 刷新 key
|
|
99
|
+
* @description: 用户重置组件生命周期,
|
|
100
|
+
* @param {number} key
|
|
101
|
+
* @Author: hongbing.wang
|
|
102
|
+
* @Date: 2024-08-19 09:56
|
|
103
|
+
*/
|
|
77
104
|
export declare const updateKey: (key: number) => {
|
|
78
105
|
type: EActionTypes;
|
|
79
106
|
payload: {
|
|
80
107
|
key: number;
|
|
81
108
|
};
|
|
82
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* @title: 更新设备信息
|
|
112
|
+
* @description: 用户选择设备将回填到此处
|
|
113
|
+
* @param {object} payload
|
|
114
|
+
* @Author: hongbing.wang
|
|
115
|
+
* @Date: 2024-08-19 09:57
|
|
116
|
+
*/
|
|
83
117
|
export declare const updateDevice: (payload: {
|
|
84
118
|
device: State['device'];
|
|
85
119
|
}) => {
|
|
@@ -88,10 +122,23 @@ export declare const updateDevice: (payload: {
|
|
|
88
122
|
device: State['device'];
|
|
89
123
|
};
|
|
90
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* @title: 刷新 步骤key
|
|
127
|
+
* @description: 重置某一步生命周期
|
|
128
|
+
* @Author: hongbing.wang
|
|
129
|
+
* @Date: 2024-08-19 09:58
|
|
130
|
+
*/
|
|
91
131
|
export declare const updateStepKey: () => {
|
|
92
132
|
type: EActionTypes;
|
|
93
133
|
payload: {};
|
|
94
134
|
};
|
|
135
|
+
/**
|
|
136
|
+
* @title: 更新至下一步
|
|
137
|
+
* @description: 更新至下一步
|
|
138
|
+
* @param {string} warn?: 错误信息
|
|
139
|
+
* @Author: hongbing.wang
|
|
140
|
+
* @Date: 2024-08-19 09:58
|
|
141
|
+
*/
|
|
95
142
|
export declare const updateNextStep: (warn?: string) => {
|
|
96
143
|
type: EActionTypes;
|
|
97
144
|
payload: {
|
|
@@ -100,16 +147,13 @@ export declare const updateNextStep: (warn?: string) => {
|
|
|
100
147
|
warn?: undefined;
|
|
101
148
|
};
|
|
102
149
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
warn?: ReactNode;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
150
|
+
/**
|
|
151
|
+
* @title: 更新自定义信息
|
|
152
|
+
* @description: 更新自定义信息
|
|
153
|
+
* @param {object} payload
|
|
154
|
+
* @Author: hongbing.wang
|
|
155
|
+
* @Date: 2024-08-19 10:03
|
|
156
|
+
*/
|
|
113
157
|
export declare const updateCustom: (payload: {
|
|
114
158
|
[key: string]: unknown;
|
|
115
159
|
}) => {
|
|
@@ -118,18 +162,28 @@ export declare const updateCustom: (payload: {
|
|
|
118
162
|
[key: string]: unknown;
|
|
119
163
|
};
|
|
120
164
|
};
|
|
165
|
+
/**
|
|
166
|
+
* @title: 更新 全局状态
|
|
167
|
+
* @description: 更新 全局状态
|
|
168
|
+
* @param {string} status : 状态
|
|
169
|
+
* * @Author: hongbing.wang
|
|
170
|
+
* @Date: 2024-08-19 10:03
|
|
171
|
+
*/
|
|
121
172
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
122
173
|
type: EActionTypes;
|
|
123
174
|
payload: {
|
|
124
175
|
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
125
176
|
};
|
|
126
177
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
178
|
+
/**
|
|
179
|
+
* @title: 更新自定义组件
|
|
180
|
+
* @description: 更新自定义组件
|
|
181
|
+
* @param {string} component 组件名称
|
|
182
|
+
* @param {boolean} render : true : 隐藏 原组件(维持原组件内状态) ;false : 卸载
|
|
183
|
+
* @return {*}
|
|
184
|
+
* @Author: hongbing.wang
|
|
185
|
+
* @Date: 2024-08-19 10:04
|
|
186
|
+
*/
|
|
133
187
|
export declare const updateComponent: (component: string, render?: boolean) => {
|
|
134
188
|
type: EActionTypes;
|
|
135
189
|
payload: {
|
|
@@ -142,19 +196,26 @@ export declare const updateComponent: (component: string, render?: boolean) => {
|
|
|
142
196
|
readonly component?: undefined;
|
|
143
197
|
};
|
|
144
198
|
};
|
|
199
|
+
/**
|
|
200
|
+
* @title: 更新步骤信息
|
|
201
|
+
* @description: 更新某一步骤信息
|
|
202
|
+
* @param {State} steps 某一步骤信息
|
|
203
|
+
* @Author: hongbing.wang
|
|
204
|
+
* @Date: 2024-08-19 10:07
|
|
205
|
+
*/
|
|
145
206
|
export declare const updateSteps: (steps: State['steps']) => {
|
|
146
207
|
type: EActionTypes;
|
|
147
208
|
payload: {
|
|
148
209
|
steps: {
|
|
149
210
|
/** 用于重置当前步骤 */
|
|
150
211
|
key: number;
|
|
151
|
-
title?:
|
|
152
|
-
text?:
|
|
153
|
-
warn?:
|
|
154
|
-
tip?:
|
|
155
|
-
success?:
|
|
156
|
-
fail?:
|
|
157
|
-
loading?:
|
|
212
|
+
title?: string | undefined;
|
|
213
|
+
text?: string | undefined;
|
|
214
|
+
warn?: string | undefined;
|
|
215
|
+
tip?: string | undefined;
|
|
216
|
+
success?: string | undefined;
|
|
217
|
+
fail?: string | undefined;
|
|
218
|
+
loading?: string | undefined;
|
|
158
219
|
/** 步骤状态 */
|
|
159
220
|
status: StatusType;
|
|
160
221
|
custom?: {
|
|
@@ -163,69 +224,109 @@ export declare const updateSteps: (steps: State['steps']) => {
|
|
|
163
224
|
}[];
|
|
164
225
|
};
|
|
165
226
|
};
|
|
227
|
+
/**
|
|
228
|
+
* @title: 更新状态管理信息
|
|
229
|
+
* @description: 更新状态管理信息
|
|
230
|
+
* @param {Partial} payload
|
|
231
|
+
* @return {*}
|
|
232
|
+
* @Author: hongbing.wang
|
|
233
|
+
* @Date: 2024-08-19 10:08
|
|
234
|
+
*/
|
|
166
235
|
export declare const updateState: (payload: Partial<State>) => {
|
|
167
236
|
type: EActionTypes;
|
|
168
237
|
payload: Partial<State>;
|
|
169
238
|
};
|
|
239
|
+
/**
|
|
240
|
+
* @title: 更新当前步骤自定义信息
|
|
241
|
+
* @description: 更新当前步骤自定义信息
|
|
242
|
+
* @Author: hongbing.wang
|
|
243
|
+
* @Date: 2024-08-19 10:09
|
|
244
|
+
*/
|
|
170
245
|
export declare const updateCurrentCustomStemItem: (payload: NonNullable<Partial<State['steps'][number]['custom']>>) => {
|
|
171
246
|
type: EActionTypes;
|
|
172
247
|
payload: Partial<{
|
|
173
248
|
[key: string]: unknown;
|
|
174
249
|
}>;
|
|
175
250
|
};
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
251
|
+
/**
|
|
252
|
+
* @title: 更新当前步骤信息
|
|
253
|
+
* @description: 更新当前步骤信息
|
|
254
|
+
* @Author: hongbing.wang
|
|
255
|
+
* @Date: 2024-08-19 10:09
|
|
256
|
+
*/
|
|
182
257
|
export declare const updateCurrentStemItem: (payload: any) => {
|
|
183
258
|
type: EActionTypes;
|
|
184
259
|
payload: any;
|
|
185
260
|
};
|
|
261
|
+
/**
|
|
262
|
+
* @title: 更新备份信息
|
|
263
|
+
* @description: 更新备份信息
|
|
264
|
+
* @Author: hongbing.wang
|
|
265
|
+
* @Date: 2024-08-19 10:25
|
|
266
|
+
*/
|
|
186
267
|
export declare const backUpProduction: (payload: Partial<State>) => {
|
|
187
268
|
type: EActionTypes;
|
|
188
269
|
payload: Partial<State>;
|
|
189
270
|
};
|
|
271
|
+
/**
|
|
272
|
+
* @title: 释放备份信息
|
|
273
|
+
* @description: 释放备份信息
|
|
274
|
+
* @param {Partial} payload
|
|
275
|
+
* @Author: hongbing.wang
|
|
276
|
+
* @Date: 2024-08-19 10:27
|
|
277
|
+
*/
|
|
190
278
|
export declare const backUpFree: (payload: Partial<State>) => {
|
|
191
279
|
type: EActionTypes;
|
|
192
280
|
payload: {
|
|
281
|
+
name?: string | undefined;
|
|
282
|
+
symbol?: string | undefined;
|
|
283
|
+
amount?: string | number | undefined;
|
|
193
284
|
mode?: "refund" | "pay" | "query" | undefined;
|
|
194
|
-
|
|
285
|
+
order_id?: string | number | undefined;
|
|
286
|
+
eftpos?: "windcave" | "tyro" | "payo" | "stripe" | undefined;
|
|
287
|
+
action?: "amount" | "deviceList" | "pay" | undefined;
|
|
195
288
|
key?: number | undefined;
|
|
196
289
|
step?: number | undefined;
|
|
197
290
|
title?: string | undefined;
|
|
291
|
+
subTitle?: string | undefined;
|
|
198
292
|
type?: "unset" | "step" | undefined;
|
|
199
293
|
render?: boolean | undefined;
|
|
294
|
+
net?: boolean | undefined;
|
|
200
295
|
component?: string | undefined;
|
|
201
|
-
|
|
296
|
+
form?: string | undefined;
|
|
202
297
|
status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
203
|
-
warn?:
|
|
298
|
+
warn?: string | undefined;
|
|
204
299
|
steps?: {
|
|
205
300
|
/** 用于重置当前步骤 */
|
|
206
301
|
key: number;
|
|
207
|
-
title?:
|
|
208
|
-
text?:
|
|
209
|
-
warn?:
|
|
210
|
-
tip?:
|
|
211
|
-
success?:
|
|
212
|
-
fail?:
|
|
213
|
-
loading?:
|
|
302
|
+
title?: string | undefined;
|
|
303
|
+
text?: string | undefined;
|
|
304
|
+
warn?: string | undefined;
|
|
305
|
+
tip?: string | undefined;
|
|
306
|
+
success?: string | undefined;
|
|
307
|
+
fail?: string | undefined;
|
|
308
|
+
loading?: string | undefined;
|
|
214
309
|
/** 步骤状态 */
|
|
215
310
|
status: StatusType;
|
|
216
311
|
custom?: {
|
|
217
312
|
[key: string]: unknown;
|
|
218
313
|
} | undefined;
|
|
219
314
|
}[] | undefined;
|
|
315
|
+
number?: string | number | undefined;
|
|
220
316
|
device?: {
|
|
221
317
|
[key: string]: unknown;
|
|
222
318
|
} | undefined;
|
|
319
|
+
pay?: {
|
|
320
|
+
[key: string]: unknown;
|
|
321
|
+
} | undefined;
|
|
223
322
|
custom?: {
|
|
224
323
|
[key: string]: unknown;
|
|
225
324
|
} | undefined;
|
|
226
325
|
manual?: {
|
|
227
326
|
title: string;
|
|
228
327
|
text: string;
|
|
328
|
+
status?: boolean | undefined;
|
|
329
|
+
money?: number | undefined;
|
|
229
330
|
} | undefined;
|
|
230
331
|
backup?: Omit<State, "backup"> | undefined;
|
|
231
332
|
};
|