@pisell/private-materials 6.3.96 → 6.3.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/booking/addons/index.d.ts +17 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/amount.d.ts +25 -0
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/es/components/booking/deposit/index.d.ts +3 -0
- package/es/components/booking/forms/forms.d.ts +30 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
- package/es/components/booking/info/index.d.ts +4 -0
- package/es/components/booking/info/main.d.ts +12 -0
- package/es/components/booking/info/model.d.ts +5 -0
- package/es/components/booking/info/service/Lists.d.ts +3 -0
- package/es/components/booking/info/service/addService/index.d.ts +12 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serve.d.ts +20 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Lists.d.ts +3 -0
- package/es/components/booking/info/service2/utils.d.ts +248 -0
- package/es/components/booking/info/utils.d.ts +50 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/service/addService/index.d.ts +12 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +4 -0
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +6 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/es/components/booking/locales.d.ts +846 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +175 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +11 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/es/components/eftposPay/component/fail/index.d.ts +4 -0
- package/es/components/eftposPay/device.d.ts +24 -0
- package/es/components/eftposPay/index.d.ts +5 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +21 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +18 -7
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
- package/es/components/pay/toC/serve.d.ts +62 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +5 -0
- package/es/components/ticketBooking/index.d.ts +8 -0
- package/es/components/ticketBooking/serve.d.ts +287 -0
- package/es/components/ticketBooking/utils/index.d.ts +25 -0
- package/es/plus/clientCard/types.d.ts +135 -0
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/booking/addons/index.d.ts +17 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/amount.d.ts +25 -0
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/lib/components/booking/deposit/index.d.ts +3 -0
- package/lib/components/booking/forms/forms.d.ts +30 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
- package/lib/components/booking/info/index.d.ts +4 -0
- package/lib/components/booking/info/main.d.ts +12 -0
- package/lib/components/booking/info/model.d.ts +5 -0
- package/lib/components/booking/info/service/Lists.d.ts +3 -0
- package/lib/components/booking/info/service/addService/index.d.ts +12 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serve.d.ts +20 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Lists.d.ts +3 -0
- package/lib/components/booking/info/service2/utils.d.ts +248 -0
- package/lib/components/booking/info/utils.d.ts +50 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +4 -0
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +6 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/lib/components/booking/locales.d.ts +846 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +175 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +11 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
- package/lib/components/eftposPay/device.d.ts +24 -0
- package/lib/components/eftposPay/index.d.ts +5 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +21 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +7 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
- package/lib/components/pay/toC/serve.d.ts +62 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +5 -0
- package/lib/components/ticketBooking/index.d.ts +8 -0
- package/lib/components/ticketBooking/serve.d.ts +287 -0
- package/lib/components/ticketBooking/utils/index.d.ts +25 -0
- package/lib/plus/clientCard/types.d.ts +135 -0
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/package.json +1 -1
- package/es/components/ecocup/cupList/const.d.ts +0 -133
- package/es/components/ecocup/hooks.d.ts +0 -49
- package/es/components/ecocup/locales.d.ts +0 -339
- package/es/components/eftpos/index.d.ts +0 -47
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
- package/es/components/eftposPay/linkly/const.d.ts +0 -23
- package/es/components/eftposPay/payo/config.d.ts +0 -13
- package/es/components/eftposPay/payo/const.d.ts +0 -26
- package/es/components/eftposPay/tyro/const.d.ts +0 -17
- package/es/components/eftposPay/windcave/const.d.ts +0 -119
- package/es/components/eftposPay/windcave/helper.d.ts +0 -23
- package/es/components/pay/toC/model.d.ts +0 -40
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/plus/saasAttendance/locales.d.ts +0 -381
- package/es/plus/saasAttendance/settings/types.d.ts +0 -134
- package/lib/components/ecocup/cupList/const.d.ts +0 -133
- package/lib/components/ecocup/hooks.d.ts +0 -49
- package/lib/components/ecocup/locales.d.ts +0 -339
- package/lib/components/eftpos/index.d.ts +0 -47
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
- package/lib/components/eftposPay/linkly/const.d.ts +0 -23
- package/lib/components/eftposPay/payo/config.d.ts +0 -13
- package/lib/components/eftposPay/payo/const.d.ts +0 -26
- package/lib/components/eftposPay/tyro/const.d.ts +0 -17
- package/lib/components/eftposPay/windcave/const.d.ts +0 -119
- package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
- package/lib/components/pay/toC/model.d.ts +0 -40
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/plus/saasAttendance/locales.d.ts +0 -381
- package/lib/plus/saasAttendance/settings/types.d.ts +0 -134
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Eftpos, DeviceStatus } from './const';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface PosProps {
|
|
5
|
-
/** 厂商类型 */
|
|
6
|
-
type: Eftpos;
|
|
7
|
-
/** 厂商名称 */
|
|
8
|
-
name: string;
|
|
9
|
-
/** 厂商额外信息 */
|
|
10
|
-
config: {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
/** 编辑页面zIndex */
|
|
14
|
-
zIndex?: number;
|
|
15
|
-
/** table 列表宽度 */
|
|
16
|
-
tableSize: number[];
|
|
17
|
-
/** tyro sdk url */
|
|
18
|
-
tyroUrl: string;
|
|
19
|
-
/** tyro sdk version */
|
|
20
|
-
tyroVersion: string;
|
|
21
|
-
/** tyro log 是否展示 */
|
|
22
|
-
useTyroLog?: boolean;
|
|
23
|
-
/** 获取字段匹配数据项 */
|
|
24
|
-
getComm: (params: {
|
|
25
|
-
field: string;
|
|
26
|
-
value?: unknown;
|
|
27
|
-
}, record?: any) => any;
|
|
28
|
-
/** 设备厂商默认数据 */
|
|
29
|
-
getField: (type: Eftpos, status?: DeviceStatus) => any;
|
|
30
|
-
/** 编辑设备数据 */
|
|
31
|
-
onEdit: (device: any, type: DeviceStatus) => Promise<any>;
|
|
32
|
-
/** 编辑厂商数据 */
|
|
33
|
-
onEditKey: () => {};
|
|
34
|
-
/** 设备列表数据 */
|
|
35
|
-
getList: (params: {
|
|
36
|
-
type: Eftpos;
|
|
37
|
-
num: number;
|
|
38
|
-
skip: number;
|
|
39
|
-
}) => any;
|
|
40
|
-
/** 删除列表数据 */
|
|
41
|
-
onDel: (id: string | number) => Promise<any>;
|
|
42
|
-
/** 获取pos刷卡机配置字段 */
|
|
43
|
-
getPosComm: (...agrn: unknown[]) => any;
|
|
44
|
-
savePos: (...agrn: unknown[]) => any;
|
|
45
|
-
}
|
|
46
|
-
declare const _default: (props: PosProps) => React.JSX.Element;
|
|
47
|
-
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,23 +0,0 @@
|
|
|
1
|
-
import { State } from '../store';
|
|
2
|
-
import { ModeEnum } from '../const';
|
|
3
|
-
export declare const getStep: (mode?: ModeEnum) => State['steps'];
|
|
4
|
-
declare const _default: (params: any) => State;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare enum EVisibleButtonType {
|
|
7
|
-
/** 取消按钮 */
|
|
8
|
-
CancelButton = "CancelButton",
|
|
9
|
-
/** 等待按钮 */
|
|
10
|
-
WaitButton = "WaitButton"
|
|
11
|
-
}
|
|
12
|
-
export declare enum LinklyActionStatus {
|
|
13
|
-
/** 空 */
|
|
14
|
-
Empty = "Empty",
|
|
15
|
-
/** 取消 */
|
|
16
|
-
Cancel = "Cancel",
|
|
17
|
-
/** 取消中 */
|
|
18
|
-
CancelWaiting = "CancelWaiting",
|
|
19
|
-
/** 签名 */
|
|
20
|
-
Signature = "Signature",
|
|
21
|
-
/** 签名等待中 */
|
|
22
|
-
SignatureWaiting = "SignatureWaiting"
|
|
23
|
-
}
|
|
@@ -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,26 +0,0 @@
|
|
|
1
|
-
import { Amount, ModeEnum } from '../const';
|
|
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
|
-
*/
|
|
10
|
-
export declare const getStep: (mode?: ModeEnum) => State['steps'];
|
|
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
|
-
*/
|
|
26
|
-
export declare function getAmonunt(store: State): Amount;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Amount } from '../const';
|
|
2
|
-
import { State } from '../store';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 初始化 tyro 数据
|
|
5
|
-
* @Author: hongbing.wang
|
|
6
|
-
* @Date: 2024-08-20 13:50
|
|
7
|
-
*/
|
|
8
|
-
declare const _default: (params: any) => State;
|
|
9
|
-
export default _default;
|
|
10
|
-
/**
|
|
11
|
-
* @title: tyro 金额信息
|
|
12
|
-
* @description: 在 amount 页面设置则使用 pay ,如果有 setting 则使用 setting 信息 ,都没有则设置0
|
|
13
|
-
* @param {State} store : 全局store数据管理
|
|
14
|
-
* @Author: hongbing.wang
|
|
15
|
-
* @Date: 2024-08-12 10:24
|
|
16
|
-
*/
|
|
17
|
-
export declare function getAmonunt(store: State): Amount;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { Amount } from '../const';
|
|
2
|
-
import { State } from '../store';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 初始化 windcave 数据
|
|
5
|
-
* @return store 全局数据管理
|
|
6
|
-
* @Author: hongbing.wang
|
|
7
|
-
* @Date: 2024-08-12 10:42
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: (params: any) => State;
|
|
10
|
-
export default _default;
|
|
11
|
-
/**
|
|
12
|
-
* @title: windcave 金额信息
|
|
13
|
-
* @description:
|
|
14
|
-
* @param {State} store : 全局store数据管理
|
|
15
|
-
* @return 金额信息
|
|
16
|
-
* @Author: hongbing.wang
|
|
17
|
-
* @Date: 2024-08-12 10:43
|
|
18
|
-
*/
|
|
19
|
-
export declare function getAmonunt(store: State): Amount;
|
|
20
|
-
export declare enum StepStatusEnum {
|
|
21
|
-
/** 空闲 */
|
|
22
|
-
Free = 1,
|
|
23
|
-
/** 提交或插入卡 */
|
|
24
|
-
Card = 2,
|
|
25
|
-
/** 选择账户 */
|
|
26
|
-
Account = 3,
|
|
27
|
-
/** 选择应用 */
|
|
28
|
-
Application = 4,
|
|
29
|
-
/** 输入PIN码 */
|
|
30
|
-
Pin = 5,
|
|
31
|
-
/** 处理中 */
|
|
32
|
-
Processing = 6,
|
|
33
|
-
/** 验证签名 */
|
|
34
|
-
Receipt = 7,
|
|
35
|
-
/** 显示结果 */
|
|
36
|
-
Wait = 8
|
|
37
|
-
}
|
|
38
|
-
export declare enum StemTypeEnum {
|
|
39
|
-
/** 主动查询 */
|
|
40
|
-
Active = "active",
|
|
41
|
-
/** 被动提交 */
|
|
42
|
-
Passive = "passive"
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @title: windcave 步骤信息
|
|
46
|
-
* @description: 步骤对应配置信息
|
|
47
|
-
* @return 步骤配置信息
|
|
48
|
-
* @Author: hongbing.wang
|
|
49
|
-
* @Date: 2024-08-12 10:44
|
|
50
|
-
*/
|
|
51
|
-
export declare const getStepMapping: (type: StepStatusEnum, { money, mode }: {
|
|
52
|
-
money?: string | undefined;
|
|
53
|
-
mode?: string | undefined;
|
|
54
|
-
}) => {
|
|
55
|
-
type: StemTypeEnum;
|
|
56
|
-
status: string;
|
|
57
|
-
pedding: any;
|
|
58
|
-
resolve: string;
|
|
59
|
-
index: StepStatusEnum.Free;
|
|
60
|
-
peddingStyle: {};
|
|
61
|
-
reject?: undefined;
|
|
62
|
-
} | {
|
|
63
|
-
type: StemTypeEnum;
|
|
64
|
-
status: string;
|
|
65
|
-
pedding: any;
|
|
66
|
-
resolve: string;
|
|
67
|
-
index: StepStatusEnum.Card;
|
|
68
|
-
peddingStyle: {};
|
|
69
|
-
reject?: undefined;
|
|
70
|
-
} | {
|
|
71
|
-
type: StemTypeEnum;
|
|
72
|
-
status: string;
|
|
73
|
-
pedding: any;
|
|
74
|
-
resolve: string;
|
|
75
|
-
index: StepStatusEnum.Account;
|
|
76
|
-
peddingStyle: {};
|
|
77
|
-
reject?: undefined;
|
|
78
|
-
} | {
|
|
79
|
-
type: StemTypeEnum;
|
|
80
|
-
status: string;
|
|
81
|
-
pedding: any;
|
|
82
|
-
resolve: string;
|
|
83
|
-
index: StepStatusEnum.Application;
|
|
84
|
-
peddingStyle: {};
|
|
85
|
-
reject?: undefined;
|
|
86
|
-
} | {
|
|
87
|
-
type: StemTypeEnum;
|
|
88
|
-
status: string;
|
|
89
|
-
pedding: any;
|
|
90
|
-
resolve: string;
|
|
91
|
-
index: StepStatusEnum.Pin;
|
|
92
|
-
peddingStyle: {};
|
|
93
|
-
reject?: undefined;
|
|
94
|
-
} | {
|
|
95
|
-
type: StemTypeEnum;
|
|
96
|
-
status: string;
|
|
97
|
-
pedding: any;
|
|
98
|
-
resolve: string;
|
|
99
|
-
index: StepStatusEnum.Processing;
|
|
100
|
-
peddingStyle: {};
|
|
101
|
-
reject?: undefined;
|
|
102
|
-
} | {
|
|
103
|
-
type: StemTypeEnum;
|
|
104
|
-
status: string;
|
|
105
|
-
pedding: string;
|
|
106
|
-
resolve: any;
|
|
107
|
-
reject: any;
|
|
108
|
-
index: StepStatusEnum.Receipt;
|
|
109
|
-
peddingStyle: {};
|
|
110
|
-
} | {
|
|
111
|
-
type: StemTypeEnum;
|
|
112
|
-
status: string;
|
|
113
|
-
pedding: any;
|
|
114
|
-
resolve: any;
|
|
115
|
-
index: StepStatusEnum.Wait;
|
|
116
|
-
peddingStyle: {};
|
|
117
|
-
reject?: undefined;
|
|
118
|
-
} | null;
|
|
119
|
-
export declare type StepType = NonNullable<ReturnType<typeof getStepMapping>>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PayStatus } from '../const';
|
|
3
|
-
import XhrTimer from './timer';
|
|
4
|
-
/**
|
|
5
|
-
* @title: windcave 支付,退款,查询 错误逻辑处理
|
|
6
|
-
* @description: 动态步骤页 异常前往 FailCustom 页面
|
|
7
|
-
* @return null
|
|
8
|
-
* @Author: hongbing.wang
|
|
9
|
-
* @Date: 2024-08-12 10:29
|
|
10
|
-
*/
|
|
11
|
-
export declare const useFail: () => (res: {
|
|
12
|
-
code?: `${PayStatus}`;
|
|
13
|
-
}, isMark?: boolean) => void;
|
|
14
|
-
/**
|
|
15
|
-
* @title: 轮询 check 接口
|
|
16
|
-
* @description: 轮询 终止条件 1.超时 , 2. 返回非200状态码 , 3. 外部关闭
|
|
17
|
-
* @return [run, XhrTimer] run: 启动函数 , XhrTimer 轮询类
|
|
18
|
-
* @Author: hongbing.wang
|
|
19
|
-
* @Date: 2024-08-12 10:30
|
|
20
|
-
*/
|
|
21
|
-
export declare const useValidate: (check: (...agrn: unknown[]) => Promise<unknown>, num: number, onChange: (params: {
|
|
22
|
-
[key: string]: unknown;
|
|
23
|
-
}) => unknown) => readonly [(timeout?: number) => void, React.MutableRefObject<((res: any, isRun?: boolean) => unknown) | undefined>, React.MutableRefObject<XhrTimer | undefined>];
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface FormState {
|
|
3
|
-
platform: 'pc' | 'h5' | '' | undefined;
|
|
4
|
-
order: any;
|
|
5
|
-
status: 'init' | 'ready' | 'loading' | 'success' | 'error';
|
|
6
|
-
payCallback: (res?: any) => void;
|
|
7
|
-
history?: any;
|
|
8
|
-
payGroup?: PayGroup;
|
|
9
|
-
walletSetting: {
|
|
10
|
-
name: string;
|
|
11
|
-
popup_status: 0 | 1 | null;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export interface PayGroup {
|
|
15
|
-
order_id?: string;
|
|
16
|
-
total_amount?: number;
|
|
17
|
-
walletPass?: {
|
|
18
|
-
amount: number;
|
|
19
|
-
cards: any[];
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
paid?: boolean;
|
|
22
|
-
};
|
|
23
|
-
otherPayment?: {
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
};
|
|
26
|
-
wait_amount?: number;
|
|
27
|
-
payment_group_id?: number;
|
|
28
|
-
payment_priority?: string[];
|
|
29
|
-
pay_number?: string;
|
|
30
|
-
_order: any;
|
|
31
|
-
front_order_uuid?: string;
|
|
32
|
-
}
|
|
33
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
34
|
-
state: FormState;
|
|
35
|
-
} & {
|
|
36
|
-
dispatch: (params: {
|
|
37
|
-
type: string;
|
|
38
|
-
payload: any;
|
|
39
|
-
}) => void;
|
|
40
|
-
}>;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ApiResponse, MultiLanguageText, SettingGroup, Section, SettingItem } from './types';
|
|
2
|
-
export interface CreateGroupParams {
|
|
3
|
-
section_code: string;
|
|
4
|
-
code: string;
|
|
5
|
-
title: MultiLanguageText;
|
|
6
|
-
sort: number;
|
|
7
|
-
}
|
|
8
|
-
export interface UpdateGroupParams {
|
|
9
|
-
id: number;
|
|
10
|
-
code: string;
|
|
11
|
-
title: MultiLanguageText;
|
|
12
|
-
}
|
|
13
|
-
export interface DeleteGroupParams {
|
|
14
|
-
id: number;
|
|
15
|
-
}
|
|
16
|
-
export interface SortGroupParams {
|
|
17
|
-
section_code: string;
|
|
18
|
-
group_ids: number[];
|
|
19
|
-
}
|
|
20
|
-
export declare const createGroup: (request: any, params: CreateGroupParams) => Promise<ApiResponse<SettingGroup>>;
|
|
21
|
-
export declare const updateGroup: (request: any, params: UpdateGroupParams) => Promise<ApiResponse<SettingGroup>>;
|
|
22
|
-
export declare const deleteGroup: (request: any, params: DeleteGroupParams) => Promise<any>;
|
|
23
|
-
export declare const sortGroups: (request: any, params: SortGroupParams) => Promise<any>;
|
|
24
|
-
export declare const getSectionList: (request: any, params: {
|
|
25
|
-
page?: number;
|
|
26
|
-
pageSize?: number;
|
|
27
|
-
filter?: Record<string, any>;
|
|
28
|
-
}) => Promise<ApiResponse<Section>>;
|
|
29
|
-
export declare const getGroupList: (request: any, params: {
|
|
30
|
-
page?: number;
|
|
31
|
-
pageSize?: number;
|
|
32
|
-
filter?: Record<string, any>;
|
|
33
|
-
}) => Promise<ApiResponse<SettingGroup>>;
|
|
34
|
-
export interface CreateItemParams {
|
|
35
|
-
section_code: string;
|
|
36
|
-
group_id: number;
|
|
37
|
-
code: string;
|
|
38
|
-
title: MultiLanguageText;
|
|
39
|
-
description?: MultiLanguageText;
|
|
40
|
-
type: string;
|
|
41
|
-
interface?: string;
|
|
42
|
-
default?: string | null;
|
|
43
|
-
scopes?: string[];
|
|
44
|
-
schema?: any;
|
|
45
|
-
sort?: number;
|
|
46
|
-
}
|
|
47
|
-
export interface UpdateItemParams {
|
|
48
|
-
id: number;
|
|
49
|
-
section_code: string;
|
|
50
|
-
group_id: number;
|
|
51
|
-
code: string;
|
|
52
|
-
title: MultiLanguageText;
|
|
53
|
-
description?: MultiLanguageText;
|
|
54
|
-
type: string;
|
|
55
|
-
interface?: string;
|
|
56
|
-
default?: string | null;
|
|
57
|
-
scopes?: string[];
|
|
58
|
-
schema?: any;
|
|
59
|
-
sort?: number;
|
|
60
|
-
}
|
|
61
|
-
export interface DeleteItemParams {
|
|
62
|
-
id: number;
|
|
63
|
-
}
|
|
64
|
-
export interface SortItemParams {
|
|
65
|
-
id: number;
|
|
66
|
-
group_id: string;
|
|
67
|
-
item_ids: number[];
|
|
68
|
-
}
|
|
69
|
-
export declare const createItem: (request: any, params: CreateItemParams) => Promise<ApiResponse<SettingItem>>;
|
|
70
|
-
export declare const updateItem: (request: any, params: UpdateItemParams) => Promise<ApiResponse<SettingItem>>;
|
|
71
|
-
export declare const deleteItem: (request: any, params: DeleteItemParams) => Promise<any>;
|
|
72
|
-
export declare const sortItems: (request: any, params: SortItemParams) => Promise<any>;
|
|
73
|
-
export declare const getItemList: (request: any, params: {
|
|
74
|
-
page?: number;
|
|
75
|
-
pageSize?: number;
|
|
76
|
-
filter?: Record<string, any>;
|
|
77
|
-
}) => Promise<ApiResponse<SettingItem>>;
|