@pisell/private-materials 6.11.38 → 6.11.39
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/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/footer/index.js +38 -34
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/hooks/usePromotion.d.ts +301 -0
- package/es/components/booking/hooks/useQuotation.js +12 -8
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/Lists.d.ts +3 -0
- package/es/components/booking/info/service2/utils.d.ts +226 -0
- package/es/components/booking/info2/service/editService/index.d.ts +8 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/components/Cart/index.d.ts +4 -0
- package/es/components/shoppingCart/hooks/usePromotionModal.js +4 -2
- package/es/components/shoppingCart/server.js +4 -2
- package/es/components/shoppingCart/type.d.ts +58 -0
- package/es/components/shoppingCart/utils.d.ts +192 -0
- package/es/components/shoppingCart/utils.js +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +13 -12
- package/es/pro/skuDetailModal/types.d.ts +395 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/footer/index.js +2 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/hooks/usePromotion.d.ts +301 -0
- package/lib/components/booking/hooks/useQuotation.js +6 -2
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/Lists.d.ts +3 -0
- package/lib/components/booking/info/service2/utils.d.ts +226 -0
- package/lib/components/booking/info2/service/editService/index.d.ts +8 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/components/Cart/index.d.ts +4 -0
- package/lib/components/shoppingCart/hooks/usePromotionModal.js +5 -3
- package/lib/components/shoppingCart/server.js +3 -1
- package/lib/components/shoppingCart/type.d.ts +58 -0
- package/lib/components/shoppingCart/utils.d.ts +192 -0
- package/lib/components/shoppingCart/utils.js +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +2 -2
- package/lib/pro/skuDetailModal/types.d.ts +395 -0
- package/package.json +2 -2
- package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/es/components/eftposPay/huifu/const.d.ts +0 -5
- 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/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
- package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -185
- package/es/plus/pisellSalesManagement/config/order.d.ts +0 -172
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/lib/components/eftposPay/huifu/const.d.ts +0 -5
- 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/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -185
- package/lib/plus/pisellSalesManagement/config/order.d.ts +0 -172
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
export declare const getBookingStatusMap: () => Record<string, string>;
|
|
2
|
-
export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
|
|
3
|
-
export declare const getBookingPlatformMap: () => Record<string, string>;
|
|
4
|
-
export declare const getBookingHeaderLabels: () => Record<string, string>;
|
|
5
|
-
export declare const defaultPaymentStatusKeys: string[];
|
|
6
|
-
export declare const getFilterButtonList: () => ({
|
|
7
|
-
name: string;
|
|
8
|
-
type: string;
|
|
9
|
-
key: string;
|
|
10
|
-
label: any;
|
|
11
|
-
other: {
|
|
12
|
-
allowClear: boolean;
|
|
13
|
-
mode: string;
|
|
14
|
-
maxTagCount: string;
|
|
15
|
-
placeholder: any;
|
|
16
|
-
options: {
|
|
17
|
-
label: string;
|
|
18
|
-
value: string;
|
|
19
|
-
}[];
|
|
20
|
-
minInputNumberProps?: undefined;
|
|
21
|
-
maxInputNumberProps?: undefined;
|
|
22
|
-
component?: undefined;
|
|
23
|
-
isSearchServer?: undefined;
|
|
24
|
-
showSearch?: undefined;
|
|
25
|
-
showTime?: undefined;
|
|
26
|
-
};
|
|
27
|
-
sort?: undefined;
|
|
28
|
-
localFilter?: undefined;
|
|
29
|
-
} | {
|
|
30
|
-
name: string;
|
|
31
|
-
type: string;
|
|
32
|
-
key: string;
|
|
33
|
-
label: any;
|
|
34
|
-
other: {
|
|
35
|
-
placeholder: any;
|
|
36
|
-
minInputNumberProps: {
|
|
37
|
-
min: number;
|
|
38
|
-
precision: number;
|
|
39
|
-
};
|
|
40
|
-
maxInputNumberProps: {
|
|
41
|
-
min: number;
|
|
42
|
-
precision: number;
|
|
43
|
-
};
|
|
44
|
-
allowClear?: undefined;
|
|
45
|
-
mode?: undefined;
|
|
46
|
-
maxTagCount?: undefined;
|
|
47
|
-
options?: undefined;
|
|
48
|
-
component?: undefined;
|
|
49
|
-
isSearchServer?: undefined;
|
|
50
|
-
showSearch?: undefined;
|
|
51
|
-
showTime?: undefined;
|
|
52
|
-
};
|
|
53
|
-
sort?: undefined;
|
|
54
|
-
localFilter?: undefined;
|
|
55
|
-
} | {
|
|
56
|
-
name: string;
|
|
57
|
-
type: string;
|
|
58
|
-
key: string;
|
|
59
|
-
label: any;
|
|
60
|
-
sort: boolean;
|
|
61
|
-
localFilter: boolean;
|
|
62
|
-
other: {
|
|
63
|
-
allowClear: boolean;
|
|
64
|
-
mode: string;
|
|
65
|
-
maxTagCount: string;
|
|
66
|
-
component: (props: {
|
|
67
|
-
value?: string | number | (string | number)[] | undefined;
|
|
68
|
-
onChange?: ((value: (string | number)[]) => void) | undefined;
|
|
69
|
-
className?: string | undefined;
|
|
70
|
-
style?: import("react").CSSProperties | undefined;
|
|
71
|
-
}) => import("react").JSX.Element;
|
|
72
|
-
placeholder?: undefined;
|
|
73
|
-
options?: undefined;
|
|
74
|
-
minInputNumberProps?: undefined;
|
|
75
|
-
maxInputNumberProps?: undefined;
|
|
76
|
-
isSearchServer?: undefined;
|
|
77
|
-
showSearch?: undefined;
|
|
78
|
-
showTime?: undefined;
|
|
79
|
-
};
|
|
80
|
-
} | {
|
|
81
|
-
name: string;
|
|
82
|
-
type: string;
|
|
83
|
-
key: string;
|
|
84
|
-
label: any;
|
|
85
|
-
other: {
|
|
86
|
-
allowClear: boolean;
|
|
87
|
-
mode: string;
|
|
88
|
-
maxTagCount: string;
|
|
89
|
-
placeholder: any;
|
|
90
|
-
options: () => Promise<any>;
|
|
91
|
-
minInputNumberProps?: undefined;
|
|
92
|
-
maxInputNumberProps?: undefined;
|
|
93
|
-
component?: undefined;
|
|
94
|
-
isSearchServer?: undefined;
|
|
95
|
-
showSearch?: undefined;
|
|
96
|
-
showTime?: undefined;
|
|
97
|
-
};
|
|
98
|
-
sort?: undefined;
|
|
99
|
-
localFilter?: undefined;
|
|
100
|
-
} | {
|
|
101
|
-
name: string;
|
|
102
|
-
type: string;
|
|
103
|
-
key: string;
|
|
104
|
-
label: any;
|
|
105
|
-
other: {
|
|
106
|
-
placeholder: any;
|
|
107
|
-
allowClear?: undefined;
|
|
108
|
-
mode?: undefined;
|
|
109
|
-
maxTagCount?: undefined;
|
|
110
|
-
options?: undefined;
|
|
111
|
-
minInputNumberProps?: undefined;
|
|
112
|
-
maxInputNumberProps?: undefined;
|
|
113
|
-
component?: undefined;
|
|
114
|
-
isSearchServer?: undefined;
|
|
115
|
-
showSearch?: undefined;
|
|
116
|
-
showTime?: undefined;
|
|
117
|
-
};
|
|
118
|
-
sort?: undefined;
|
|
119
|
-
localFilter?: undefined;
|
|
120
|
-
} | {
|
|
121
|
-
name: string;
|
|
122
|
-
type: string;
|
|
123
|
-
key: string;
|
|
124
|
-
label: any;
|
|
125
|
-
other: {
|
|
126
|
-
allowClear: boolean;
|
|
127
|
-
isSearchServer: boolean;
|
|
128
|
-
showSearch: boolean;
|
|
129
|
-
placeholder: any;
|
|
130
|
-
options: (params?: string) => Promise<any>;
|
|
131
|
-
mode?: undefined;
|
|
132
|
-
maxTagCount?: undefined;
|
|
133
|
-
minInputNumberProps?: undefined;
|
|
134
|
-
maxInputNumberProps?: undefined;
|
|
135
|
-
component?: undefined;
|
|
136
|
-
showTime?: undefined;
|
|
137
|
-
};
|
|
138
|
-
sort?: undefined;
|
|
139
|
-
localFilter?: undefined;
|
|
140
|
-
} | {
|
|
141
|
-
name: string;
|
|
142
|
-
type: string;
|
|
143
|
-
key: string;
|
|
144
|
-
label: any;
|
|
145
|
-
other: {
|
|
146
|
-
placeholder: any;
|
|
147
|
-
showTime: boolean;
|
|
148
|
-
allowClear?: undefined;
|
|
149
|
-
mode?: undefined;
|
|
150
|
-
maxTagCount?: undefined;
|
|
151
|
-
options?: undefined;
|
|
152
|
-
minInputNumberProps?: undefined;
|
|
153
|
-
maxInputNumberProps?: undefined;
|
|
154
|
-
component?: undefined;
|
|
155
|
-
isSearchServer?: undefined;
|
|
156
|
-
showSearch?: undefined;
|
|
157
|
-
};
|
|
158
|
-
sort?: undefined;
|
|
159
|
-
localFilter?: undefined;
|
|
160
|
-
})[];
|
|
161
|
-
export declare const getSortList: () => ({
|
|
162
|
-
type: string;
|
|
163
|
-
isCustom: boolean;
|
|
164
|
-
name: string;
|
|
165
|
-
label: any;
|
|
166
|
-
getSortItems: () => {
|
|
167
|
-
key: string;
|
|
168
|
-
label: any;
|
|
169
|
-
}[];
|
|
170
|
-
other?: undefined;
|
|
171
|
-
} | {
|
|
172
|
-
type: string;
|
|
173
|
-
isCustom: boolean;
|
|
174
|
-
name: string;
|
|
175
|
-
label: any;
|
|
176
|
-
getSortItems: () => {
|
|
177
|
-
key: string;
|
|
178
|
-
label: any;
|
|
179
|
-
}[];
|
|
180
|
-
other: {
|
|
181
|
-
style: {
|
|
182
|
-
width: string;
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
})[];
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取支付状态映射
|
|
3
|
-
*/
|
|
4
|
-
export declare const getPaymentStatusMap: () => Record<string, string>;
|
|
5
|
-
export declare const PAYMENT_STATUS_COLOR_MAP: Record<string, string>;
|
|
6
|
-
export declare const getPlatformMap: () => Record<string, string>;
|
|
7
|
-
/**
|
|
8
|
-
* 获取订单状态映射
|
|
9
|
-
* @param locales - 多语言对象
|
|
10
|
-
*/
|
|
11
|
-
export declare const getOrderStatusMap: () => Record<string, string>;
|
|
12
|
-
export declare const ORDER_STATUS_COLOR_MAP: Record<string, {
|
|
13
|
-
borderColor: string;
|
|
14
|
-
textColor: string;
|
|
15
|
-
}>;
|
|
16
|
-
/**
|
|
17
|
-
* 获取处理状态映射
|
|
18
|
-
*/
|
|
19
|
-
export declare const getShippingStatusMap: () => Record<string, string>;
|
|
20
|
-
export declare const FULFILLMENT_STATUS_COLOR_MAP: Record<string, {
|
|
21
|
-
borderColor: string;
|
|
22
|
-
textColor: string;
|
|
23
|
-
}>;
|
|
24
|
-
/**
|
|
25
|
-
* 获取配送方式映射
|
|
26
|
-
*/
|
|
27
|
-
export declare const getDeliveryTypeMap: () => Record<string, string>;
|
|
28
|
-
/**
|
|
29
|
-
* 获取到店服务类型映射
|
|
30
|
-
* @param locales - 多语言对象
|
|
31
|
-
*/
|
|
32
|
-
export declare const getShopServiceTypeMap: () => Record<string, string>;
|
|
33
|
-
export declare const DELIVERY_TYPE_COLOR_MAP: Record<string, string>;
|
|
34
|
-
export declare const SHOP_SERVICE_TYPE_COLOR_MAP: Record<string, string>;
|
|
35
|
-
export declare const getOrderHeaderLabels: () => Record<string, string>;
|
|
36
|
-
export declare const defaultPaymentStatusKeys: string[];
|
|
37
|
-
export declare const getFilterButtonList: () => ({
|
|
38
|
-
name: string;
|
|
39
|
-
type: string;
|
|
40
|
-
key: string;
|
|
41
|
-
label: any;
|
|
42
|
-
other: {
|
|
43
|
-
allowClear: boolean;
|
|
44
|
-
mode: string;
|
|
45
|
-
maxTagCount: string;
|
|
46
|
-
placeholder: any;
|
|
47
|
-
options: {
|
|
48
|
-
label: string;
|
|
49
|
-
value: string;
|
|
50
|
-
}[];
|
|
51
|
-
isSearchServer?: undefined;
|
|
52
|
-
showSearch?: undefined;
|
|
53
|
-
minInputNumberProps?: undefined;
|
|
54
|
-
maxInputNumberProps?: undefined;
|
|
55
|
-
};
|
|
56
|
-
} | {
|
|
57
|
-
name: string;
|
|
58
|
-
type: string;
|
|
59
|
-
key: string;
|
|
60
|
-
label: any;
|
|
61
|
-
other: {
|
|
62
|
-
allowClear: boolean;
|
|
63
|
-
isSearchServer: boolean;
|
|
64
|
-
showSearch: boolean;
|
|
65
|
-
placeholder: any;
|
|
66
|
-
options: (params?: string) => Promise<any>;
|
|
67
|
-
mode?: undefined;
|
|
68
|
-
maxTagCount?: undefined;
|
|
69
|
-
minInputNumberProps?: undefined;
|
|
70
|
-
maxInputNumberProps?: undefined;
|
|
71
|
-
};
|
|
72
|
-
} | {
|
|
73
|
-
name: string;
|
|
74
|
-
type: string;
|
|
75
|
-
key: string;
|
|
76
|
-
label: any;
|
|
77
|
-
other: {
|
|
78
|
-
allowClear: boolean;
|
|
79
|
-
mode: string;
|
|
80
|
-
maxTagCount: string;
|
|
81
|
-
placeholder: any;
|
|
82
|
-
options: () => Promise<any>;
|
|
83
|
-
isSearchServer?: undefined;
|
|
84
|
-
showSearch?: undefined;
|
|
85
|
-
minInputNumberProps?: undefined;
|
|
86
|
-
maxInputNumberProps?: undefined;
|
|
87
|
-
};
|
|
88
|
-
} | {
|
|
89
|
-
name: string;
|
|
90
|
-
type: string;
|
|
91
|
-
key: string;
|
|
92
|
-
label: any;
|
|
93
|
-
other: {
|
|
94
|
-
placeholder: any;
|
|
95
|
-
minInputNumberProps: {
|
|
96
|
-
min: number;
|
|
97
|
-
};
|
|
98
|
-
maxInputNumberProps: {
|
|
99
|
-
min: number;
|
|
100
|
-
};
|
|
101
|
-
allowClear?: undefined;
|
|
102
|
-
mode?: undefined;
|
|
103
|
-
maxTagCount?: undefined;
|
|
104
|
-
options?: undefined;
|
|
105
|
-
isSearchServer?: undefined;
|
|
106
|
-
showSearch?: undefined;
|
|
107
|
-
};
|
|
108
|
-
} | {
|
|
109
|
-
name: string;
|
|
110
|
-
type: string;
|
|
111
|
-
key: string;
|
|
112
|
-
label: any;
|
|
113
|
-
other: {
|
|
114
|
-
allowClear: boolean;
|
|
115
|
-
mode: string;
|
|
116
|
-
maxTagCount: string;
|
|
117
|
-
isSearchServer: boolean;
|
|
118
|
-
showSearch: boolean;
|
|
119
|
-
placeholder: any;
|
|
120
|
-
options: (params?: string) => Promise<any>;
|
|
121
|
-
minInputNumberProps?: undefined;
|
|
122
|
-
maxInputNumberProps?: undefined;
|
|
123
|
-
};
|
|
124
|
-
} | {
|
|
125
|
-
name: string;
|
|
126
|
-
type: string;
|
|
127
|
-
key: string;
|
|
128
|
-
label: any;
|
|
129
|
-
other: {
|
|
130
|
-
placeholder: any;
|
|
131
|
-
allowClear?: undefined;
|
|
132
|
-
mode?: undefined;
|
|
133
|
-
maxTagCount?: undefined;
|
|
134
|
-
options?: undefined;
|
|
135
|
-
isSearchServer?: undefined;
|
|
136
|
-
showSearch?: undefined;
|
|
137
|
-
minInputNumberProps?: undefined;
|
|
138
|
-
maxInputNumberProps?: undefined;
|
|
139
|
-
};
|
|
140
|
-
} | {
|
|
141
|
-
name: string;
|
|
142
|
-
type: string;
|
|
143
|
-
key: string;
|
|
144
|
-
label: any;
|
|
145
|
-
other: {
|
|
146
|
-
allowClear: boolean;
|
|
147
|
-
placeholder: any;
|
|
148
|
-
options: () => Promise<any>;
|
|
149
|
-
mode?: undefined;
|
|
150
|
-
maxTagCount?: undefined;
|
|
151
|
-
isSearchServer?: undefined;
|
|
152
|
-
showSearch?: undefined;
|
|
153
|
-
minInputNumberProps?: undefined;
|
|
154
|
-
maxInputNumberProps?: undefined;
|
|
155
|
-
};
|
|
156
|
-
})[];
|
|
157
|
-
export declare const getSortList: () => ({
|
|
158
|
-
type: string;
|
|
159
|
-
isCustom: boolean;
|
|
160
|
-
name: string;
|
|
161
|
-
label: any;
|
|
162
|
-
getSortItems: () => {
|
|
163
|
-
key: string;
|
|
164
|
-
label: any;
|
|
165
|
-
}[];
|
|
166
|
-
} | {
|
|
167
|
-
type: string;
|
|
168
|
-
isCustom: boolean;
|
|
169
|
-
name: string;
|
|
170
|
-
label: any;
|
|
171
|
-
getSortItems?: undefined;
|
|
172
|
-
})[];
|
|
@@ -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>>;
|