@pisell/private-materials 6.3.141 → 6.3.143
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/scanOrder/components/Check/index.js +2 -1
- package/es/components/scanOrder/components/Content/index.js +21 -14
- package/es/components/scanOrder/components/Menu/index.js +2 -1
- package/es/components/scanOrder/locales.d.ts +5 -0
- package/es/components/scanOrder/locales.js +5 -0
- package/lib/components/scanOrder/components/Check/index.js +3 -1
- package/lib/components/scanOrder/components/Content/index.js +4 -0
- package/lib/components/scanOrder/components/Menu/index.js +2 -2
- package/lib/components/scanOrder/locales.d.ts +5 -0
- package/lib/components/scanOrder/locales.js +5 -0
- package/package.json +1 -1
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/hooks.d.ts +0 -107
- package/es/components/appointmentBooking/utils.d.ts +0 -227
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
- package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +0 -6
- package/es/components/booking/components/footer/utils.d.ts +0 -47
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info/service2/utils.d.ts +0 -248
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/locales.d.ts +0 -1489
- package/es/components/booking/model.d.ts +0 -120
- package/es/components/eftposPay/amount.d.ts +0 -21
- package/es/components/eftposPay/app.d.ts +0 -10
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/eftposPay/component/fail/network.d.ts +0 -9
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
- package/es/components/eftposPay/component/manual/index.d.ts +0 -9
- package/es/components/eftposPay/component/signature/index.d.ts +0 -9
- package/es/components/eftposPay/device.d.ts +0 -23
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/payo/config.d.ts +0 -13
- package/es/components/eftposPay/payo/hooks.d.ts +0 -10
- package/es/components/eftposPay/payo/payment.d.ts +0 -66
- package/es/components/eftposPay/tip.d.ts +0 -10
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/eftposPay/utils/payLog.d.ts +0 -81
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -23
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -7
- package/es/components/kioskSkuDetail/index.d.ts +0 -39
- package/es/components/kioskSkuDetail/locales.d.ts +0 -48
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -631
- package/es/components/pay/toC/payGroup.d.ts +0 -59
- package/es/components/pay/toC/serve.d.ts +0 -87
- package/es/components/pay/toC/utils.d.ts +0 -65
- package/es/components/ruleSetting/locales.d.ts +0 -78
- package/es/components/scanOrder/components/Cart/index.d.ts +0 -16
- package/es/components/scanOrder/components/Footer/index.d.ts +0 -12
- package/es/components/scanOrder/components/Menu/index.d.ts +0 -17
- package/es/components/scanOrder/context.d.ts +0 -4
- package/es/components/scanOrder/types.d.ts +0 -79
- package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +0 -21
- package/es/components/scanOrder/utils/transformProductDetail.d.ts +0 -59
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/es/components/systemSettings/registry/index.d.ts +0 -5
- package/es/components/systemSettings/registry/services.d.ts +0 -99
- package/es/components/systemSettings/registry/types.d.ts +0 -143
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/index.d.ts +0 -7
- package/es/components/venueBooking/components/Addons/index.d.ts +0 -3
- package/es/components/venueBooking/components/Cart/index.d.ts +0 -28
- package/es/components/venueBooking/components/Checkout/index.d.ts +0 -2
- package/es/components/venueBooking/components/Footer/index.d.ts +0 -3
- package/es/components/venueBooking/components/Header/index.d.ts +0 -2
- package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.d.ts +0 -2
- package/es/components/venueBooking/context.d.ts +0 -9
- package/es/components/venueBooking/hooks.d.ts +0 -72
- package/es/components/venueBooking/index.d.ts +0 -6
- package/es/components/venueBooking/locales.d.ts +0 -627
- package/es/components/venueBooking/types.d.ts +0 -204
- package/es/index.d.ts +0 -87
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -4
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -16
- package/es/plus/skuOptionsSelection/index.d.ts +0 -5
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -58
- package/es/plus/skuOptionsSelection/types.d.ts +0 -458
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/es/pro/Cards/components/SKUCard/index.d.ts +0 -5
- package/es/pro/Login2.0/components/phoneValidation.d.ts +0 -17
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/hooks.d.ts +0 -107
- package/lib/components/appointmentBooking/utils.d.ts +0 -227
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +0 -6
- package/lib/components/booking/components/footer/utils.d.ts +0 -47
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info/service2/utils.d.ts +0 -248
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/locales.d.ts +0 -1489
- package/lib/components/booking/model.d.ts +0 -120
- package/lib/components/eftposPay/amount.d.ts +0 -21
- package/lib/components/eftposPay/app.d.ts +0 -10
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -9
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -9
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -9
- package/lib/components/eftposPay/device.d.ts +0 -23
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/payo/config.d.ts +0 -13
- package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
- package/lib/components/eftposPay/payo/payment.d.ts +0 -66
- package/lib/components/eftposPay/tip.d.ts +0 -10
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/eftposPay/utils/payLog.d.ts +0 -81
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -23
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -7
- package/lib/components/kioskSkuDetail/index.d.ts +0 -39
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -48
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -631
- package/lib/components/pay/toC/payGroup.d.ts +0 -59
- package/lib/components/pay/toC/serve.d.ts +0 -87
- package/lib/components/pay/toC/utils.d.ts +0 -65
- package/lib/components/ruleSetting/locales.d.ts +0 -78
- package/lib/components/scanOrder/components/Cart/index.d.ts +0 -16
- package/lib/components/scanOrder/components/Footer/index.d.ts +0 -12
- package/lib/components/scanOrder/components/Menu/index.d.ts +0 -17
- package/lib/components/scanOrder/context.d.ts +0 -4
- package/lib/components/scanOrder/types.d.ts +0 -79
- package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +0 -21
- package/lib/components/scanOrder/utils/transformProductDetail.d.ts +0 -59
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/index.d.ts +0 -5
- package/lib/components/systemSettings/registry/services.d.ts +0 -99
- package/lib/components/systemSettings/registry/types.d.ts +0 -143
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/index.d.ts +0 -7
- package/lib/components/venueBooking/components/Addons/index.d.ts +0 -3
- package/lib/components/venueBooking/components/Cart/index.d.ts +0 -28
- package/lib/components/venueBooking/components/Checkout/index.d.ts +0 -2
- package/lib/components/venueBooking/components/Footer/index.d.ts +0 -3
- package/lib/components/venueBooking/components/Header/index.d.ts +0 -2
- package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.d.ts +0 -2
- package/lib/components/venueBooking/context.d.ts +0 -9
- package/lib/components/venueBooking/hooks.d.ts +0 -72
- package/lib/components/venueBooking/index.d.ts +0 -6
- package/lib/components/venueBooking/locales.d.ts +0 -627
- package/lib/components/venueBooking/types.d.ts +0 -204
- package/lib/index.d.ts +0 -87
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -16
- package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -58
- package/lib/plus/skuOptionsSelection/types.d.ts +0 -458
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/lib/pro/Cards/components/SKUCard/index.d.ts +0 -5
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +0 -17
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { PayGroup } from './model';
|
|
2
|
-
/**
|
|
3
|
-
* 生成 `/h5/core/stash` 的 token:前缀 + 订单号
|
|
4
|
-
*/
|
|
5
|
-
export declare const buildPayGroupStashToken: (orderId: string) => string;
|
|
6
|
-
/**
|
|
7
|
-
* @title: 同步交易组到storage
|
|
8
|
-
* @description:
|
|
9
|
-
* @param {PayGroup} payGroup
|
|
10
|
-
* @return {*}
|
|
11
|
-
* @Author: zhiwei.Wang
|
|
12
|
-
* @Date: 2024-08-16 10:40
|
|
13
|
-
*/
|
|
14
|
-
export declare const syncPayGroupToStorage: (payGroup: PayGroup) => void;
|
|
15
|
-
/**
|
|
16
|
-
* @title: 通过订单id获取交易组
|
|
17
|
-
* @description:
|
|
18
|
-
* @param {string} orderId
|
|
19
|
-
* @return {*}
|
|
20
|
-
* @Author: zhiwei.Wang
|
|
21
|
-
* @Date: 2024-08-16 10:40
|
|
22
|
-
*/
|
|
23
|
-
export declare const getPayGroupFromStorage: (orderId: string) => PayGroup | null;
|
|
24
|
-
/**
|
|
25
|
-
* @title: 删除交易组
|
|
26
|
-
* @description:
|
|
27
|
-
* @param {string} orderId
|
|
28
|
-
* @return {*}
|
|
29
|
-
* @Author: zhiwei.Wang
|
|
30
|
-
* @Date: 2024-08-16 10:40
|
|
31
|
-
*/
|
|
32
|
-
export declare const removePayGroupFromStorage: (orderId: string) => void;
|
|
33
|
-
/**
|
|
34
|
-
* @title: 获取交易组参数
|
|
35
|
-
* @description:
|
|
36
|
-
* @param {string} orderId
|
|
37
|
-
* @param {any} rest
|
|
38
|
-
* @return {*}
|
|
39
|
-
* @Author: zhiwei.Wang
|
|
40
|
-
* @Date: 2024-08-16 10:40
|
|
41
|
-
*/
|
|
42
|
-
export declare const getPayGroupParamsFromStorage: (orderId: string, rest?: any) => any;
|
|
43
|
-
/**
|
|
44
|
-
* @title: 通过订单id设置交易号
|
|
45
|
-
* @description: 合并 pay_number 后调用 `/h5/core/stash` 最多 3 次;无论 stash 成败均写入 localStorage
|
|
46
|
-
* @param {string} orderId
|
|
47
|
-
* @param {string} payNumber
|
|
48
|
-
* @param {string} [token] 引擎 utils.token.get(),写入 stash 的 data.token
|
|
49
|
-
* @Author: zhiwei.Wang
|
|
50
|
-
* @Date: 2024-08-16 10:41
|
|
51
|
-
*/
|
|
52
|
-
export declare const setPayNumber: (orderId: string, payNumber: string, token?: string) => Promise<void>;
|
|
53
|
-
/**
|
|
54
|
-
* @title: 清除服务端暂存
|
|
55
|
-
* @description:
|
|
56
|
-
* @param {string} orderId
|
|
57
|
-
* @return {*}
|
|
58
|
-
*/
|
|
59
|
-
export declare const clearStashPayGroup: (orderId: string) => Promise<void>;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
export declare const getPaymentList: (values: any) => Promise<{
|
|
2
|
-
message: string;
|
|
3
|
-
status: string;
|
|
4
|
-
paymentList?: undefined;
|
|
5
|
-
} | {
|
|
6
|
-
message: string;
|
|
7
|
-
status: string;
|
|
8
|
-
paymentList: any;
|
|
9
|
-
}>;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 聚合接口, 根据订单 返回支付列表和钱包
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {object} values
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: zhiwei.Wang
|
|
16
|
-
* @Date: 2024-08-15 11:52
|
|
17
|
-
*/
|
|
18
|
-
export declare const getPaymentsAndWalletPass: (values: {
|
|
19
|
-
order_id: string;
|
|
20
|
-
total_amount: number;
|
|
21
|
-
sale_channel: string;
|
|
22
|
-
}) => Promise<any>;
|
|
23
|
-
/**
|
|
24
|
-
* @title: 初始化交易组
|
|
25
|
-
* @description:
|
|
26
|
-
* @param {object} values
|
|
27
|
-
* @return {*}
|
|
28
|
-
* @Author: zhiwei.Wang
|
|
29
|
-
* @Date: 2024-08-16 10:42
|
|
30
|
-
*/
|
|
31
|
-
export declare const getPaymentInit: (values: {
|
|
32
|
-
order_id?: string;
|
|
33
|
-
amount?: number;
|
|
34
|
-
}) => Promise<any>;
|
|
35
|
-
/**
|
|
36
|
-
* @title: 获取钱包名称和弹窗状态
|
|
37
|
-
* @description:
|
|
38
|
-
* @param {object} values
|
|
39
|
-
* @return {*}
|
|
40
|
-
* @Author: shengjie.zuo
|
|
41
|
-
* @member: 马天宇
|
|
42
|
-
* @Date: 2025-02-21 10:42
|
|
43
|
-
*/
|
|
44
|
-
export declare const getWalletNameAndPopupStatus: (values: {
|
|
45
|
-
setting_type?: string;
|
|
46
|
-
}) => Promise<{
|
|
47
|
-
wallet: {
|
|
48
|
-
name?: {
|
|
49
|
-
en: string;
|
|
50
|
-
'zh-CN': string;
|
|
51
|
-
'zh-HK': string;
|
|
52
|
-
'ja': string;
|
|
53
|
-
'pt': string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
wallet_setting: {
|
|
57
|
-
popup_status?: 1 | 0;
|
|
58
|
-
};
|
|
59
|
-
}>;
|
|
60
|
-
/**
|
|
61
|
-
* @title: 获取支付结果
|
|
62
|
-
* @description: 获取支付结果
|
|
63
|
-
*/
|
|
64
|
-
export declare const getPaymentResult: (values: any) => Promise<any>;
|
|
65
|
-
/**
|
|
66
|
-
* @title: 检测订单是否有正在处理中的交易
|
|
67
|
-
* @param {object} values - { order_id: string }
|
|
68
|
-
* @return {Promise<{ has_pending: boolean }>}
|
|
69
|
-
*/
|
|
70
|
-
export declare const checkPendingPayment: (values: {
|
|
71
|
-
order_id: string;
|
|
72
|
-
}) => Promise<{
|
|
73
|
-
has_pending: boolean;
|
|
74
|
-
}>;
|
|
75
|
-
/** `/h5/core/stash` 请求体 */
|
|
76
|
-
export interface CoreStashParams {
|
|
77
|
-
/** 缓存 key,由前端生成 */
|
|
78
|
-
token: string;
|
|
79
|
-
/** 暂存数据,如完整 PayGroup */
|
|
80
|
-
data: unknown;
|
|
81
|
-
/** 生命周期(秒),默认 86400(1 天) */
|
|
82
|
-
ttl?: number;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* 调用服务端暂存接口,写入 payGroup 等数据。
|
|
86
|
-
*/
|
|
87
|
-
export declare const postCoreStash: (params: CoreStashParams) => Promise<void>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { PayGroup } from "./model";
|
|
2
|
-
import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
|
|
3
|
-
/**
|
|
4
|
-
* 计算walletPass列表数据的总金额
|
|
5
|
-
* @param list
|
|
6
|
-
*/
|
|
7
|
-
export declare const calcWalletPassListAmount: (list: any[]) => any;
|
|
8
|
-
/**
|
|
9
|
-
* 将walletPass列表数据转换为prepare_payments需要的数据格式
|
|
10
|
-
* @param list
|
|
11
|
-
*/
|
|
12
|
-
export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
|
|
13
|
-
voucher_id: any;
|
|
14
|
-
amount: number;
|
|
15
|
-
tag: any;
|
|
16
|
-
}[];
|
|
17
|
-
/**
|
|
18
|
-
* walletPass支付params
|
|
19
|
-
* @param payGroup
|
|
20
|
-
*/
|
|
21
|
-
export declare const formatWalletPassParams: (payGroup: PayGroup) => {
|
|
22
|
-
order_id: string;
|
|
23
|
-
payment_group_id: number;
|
|
24
|
-
payments: {
|
|
25
|
-
amount: string;
|
|
26
|
-
wallet_pass_use_value: any;
|
|
27
|
-
voucher_id: any;
|
|
28
|
-
tag: any;
|
|
29
|
-
wallet_pass_usage_unit: any;
|
|
30
|
-
metadata: {
|
|
31
|
-
unique_payment_number: any;
|
|
32
|
-
};
|
|
33
|
-
}[];
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* @title: 获取是否walletPass和三方支付的组合支付
|
|
37
|
-
* @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
|
|
38
|
-
* @return: *
|
|
39
|
-
* @Author: shengjie.zuo
|
|
40
|
-
* @Date: 2024-08-30 10:06:17
|
|
41
|
-
*/
|
|
42
|
-
export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
|
|
43
|
-
export declare const isFranchiseeShop: (path?: any, history?: any) => any;
|
|
44
|
-
/**
|
|
45
|
-
* @title: 获取当前连锁加盟店铺shopid
|
|
46
|
-
* @description:
|
|
47
|
-
* @param {any} param1
|
|
48
|
-
* @return {*}
|
|
49
|
-
* @Author: chensheng.gu
|
|
50
|
-
* @Date: 2024-08-07 10:04
|
|
51
|
-
*/
|
|
52
|
-
export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
|
|
53
|
-
export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
|
|
54
|
-
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
|
|
55
|
-
export declare const clientPayment: (params: {
|
|
56
|
-
order_id: number;
|
|
57
|
-
type: "aliPay" | "wxPay" | 'google_pay';
|
|
58
|
-
values: any;
|
|
59
|
-
interaction?: any;
|
|
60
|
-
}) => void;
|
|
61
|
-
/**
|
|
62
|
-
* 获取唯一幂等token
|
|
63
|
-
* @returns
|
|
64
|
-
*/
|
|
65
|
-
export declare const getUniqueIdempotencyToken: () => string;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell2.text.satisfy_any_condition': string;
|
|
4
|
-
'pisell2.text.add': string;
|
|
5
|
-
'pisell2.text.and': string;
|
|
6
|
-
'pisell2.text.or': string;
|
|
7
|
-
'pisell2.text.all': string;
|
|
8
|
-
'pisell2.text.rule-setting.Contain': string;
|
|
9
|
-
'pisell2.text.rule-setting.Exclude': string;
|
|
10
|
-
'pisell2.text.rule-setting.order_type': string;
|
|
11
|
-
'pisell2.text.rule-setting.sales_channel': string;
|
|
12
|
-
'pisell2.text.rule-setting.staff': string;
|
|
13
|
-
'pisell2.text.rule-setting.payment_method': string;
|
|
14
|
-
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
15
|
-
'pisell2.text.rule-setting.current_device': string;
|
|
16
|
-
};
|
|
17
|
-
'zh-CN': {
|
|
18
|
-
'pisell2.text.satisfy_any_condition': string;
|
|
19
|
-
'pisell2.text.and': string;
|
|
20
|
-
'pisell2.text.or': string;
|
|
21
|
-
'pisell2.text.all': string;
|
|
22
|
-
'pisell2.text.add': string;
|
|
23
|
-
'pisell2.text.rule-setting.Contain': string;
|
|
24
|
-
'pisell2.text.rule-setting.Exclude': string;
|
|
25
|
-
'pisell2.text.rule-setting.order_type': string;
|
|
26
|
-
'pisell2.text.rule-setting.sales_channel': string;
|
|
27
|
-
'pisell2.text.rule-setting.staff': string;
|
|
28
|
-
'pisell2.text.rule-setting.payment_method': string;
|
|
29
|
-
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
30
|
-
'pisell2.text.rule-setting.current_device': string;
|
|
31
|
-
};
|
|
32
|
-
'zh-HK': {
|
|
33
|
-
'pisell2.text.satisfy_any_condition': string;
|
|
34
|
-
'pisell2.text.and': string;
|
|
35
|
-
'pisell2.text.or': string;
|
|
36
|
-
'pisell2.text.all': string;
|
|
37
|
-
'pisell2.text.add': string;
|
|
38
|
-
'pisell2.text.rule-setting.Contain': string;
|
|
39
|
-
'pisell2.text.rule-setting.Exclude': string;
|
|
40
|
-
'pisell2.text.rule-setting.order_type': string;
|
|
41
|
-
'pisell2.text.rule-setting.sales_channel': string;
|
|
42
|
-
'pisell2.text.rule-setting.staff': string;
|
|
43
|
-
'pisell2.text.rule-setting.payment_method': string;
|
|
44
|
-
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
45
|
-
'pisell2.text.rule-setting.current_device': string;
|
|
46
|
-
};
|
|
47
|
-
ja: {
|
|
48
|
-
'pisell2.text.satisfy_any_condition': string;
|
|
49
|
-
'pisell2.text.add': string;
|
|
50
|
-
'pisell2.text.and': string;
|
|
51
|
-
'pisell2.text.or': string;
|
|
52
|
-
'pisell2.text.all': string;
|
|
53
|
-
'pisell2.text.rule-setting.Contain': string;
|
|
54
|
-
'pisell2.text.rule-setting.Exclude': string;
|
|
55
|
-
'pisell2.text.rule-setting.order_type': string;
|
|
56
|
-
'pisell2.text.rule-setting.sales_channel': string;
|
|
57
|
-
'pisell2.text.rule-setting.staff': string;
|
|
58
|
-
'pisell2.text.rule-setting.payment_method': string;
|
|
59
|
-
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
60
|
-
'pisell2.text.rule-setting.current_device': string;
|
|
61
|
-
};
|
|
62
|
-
pt: {
|
|
63
|
-
'pisell2.text.satisfy_any_condition': string;
|
|
64
|
-
'pisell2.text.add': string;
|
|
65
|
-
'pisell2.text.and': string;
|
|
66
|
-
'pisell2.text.or': string;
|
|
67
|
-
'pisell2.text.all': string;
|
|
68
|
-
'pisell2.text.rule-setting.Contain': string;
|
|
69
|
-
'pisell2.text.rule-setting.Exclude': string;
|
|
70
|
-
'pisell2.text.rule-setting.order_type': string;
|
|
71
|
-
'pisell2.text.rule-setting.sales_channel': string;
|
|
72
|
-
'pisell2.text.rule-setting.staff': string;
|
|
73
|
-
'pisell2.text.rule-setting.payment_method': string;
|
|
74
|
-
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
75
|
-
'pisell2.text.rule-setting.current_device': string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface CartProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
onCancel: () => void;
|
|
6
|
-
onNext: () => void;
|
|
7
|
-
items: any[];
|
|
8
|
-
summary: Record<string, any>;
|
|
9
|
-
embedded?: boolean;
|
|
10
|
-
confirmLoading?: boolean;
|
|
11
|
-
extraContent?: React.ReactNode;
|
|
12
|
-
/** 视觉禁用:按钮仍会触发 onNext,由父级自行拦截(用于弹 toast 等反馈) */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export default function Cart(props: CartProps): JSX.Element | null;
|
|
16
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface FooterProps {
|
|
4
|
-
cartItems: any[];
|
|
5
|
-
summary: Record<string, any>;
|
|
6
|
-
actionText: string;
|
|
7
|
-
onAction: () => void;
|
|
8
|
-
/** 视觉禁用:按钮仍会触发 onAction,由父级自行拦截(用于弹 toast 等反馈) */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export default function Footer(props: FooterProps): JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface MenuProps {
|
|
3
|
-
onCheckout: () => void;
|
|
4
|
-
/**
|
|
5
|
-
* 商品列表(由上层 ReadyState 持有,配合 onEnsureProductList 做幂等拉取与持久化:
|
|
6
|
-
* 切 step 回到 product 时 Menu 会 remount,但 productList 在 ReadyState 不会丢)
|
|
7
|
-
*/
|
|
8
|
-
productList: any[];
|
|
9
|
-
/**
|
|
10
|
-
* 幂等触发商品列表拉取。Menu mount 时调用:
|
|
11
|
-
* - 首次:真发请求
|
|
12
|
-
* - 后续(如从 check 返回 product):命中缓存,直接短路,不重复发请求
|
|
13
|
-
*/
|
|
14
|
-
onEnsureProductList: () => Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
export default function Menu(props: MenuProps): JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ScanOrderContextValue, ScanOrderProviderProps } from './types';
|
|
3
|
-
export declare function ScanOrderProvider({ entryContext, children, }: ScanOrderProviderProps): JSX.Element;
|
|
4
|
-
export declare function useScanOrderContext(): ScanOrderContextValue;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ScanOrderEntryContext {
|
|
3
|
-
biz: string;
|
|
4
|
-
resource_id?: string;
|
|
5
|
-
order_id?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ScanOrderProps {
|
|
8
|
-
biz?: string;
|
|
9
|
-
resource_id?: string;
|
|
10
|
-
order_id?: string;
|
|
11
|
-
entryContext?: ScanOrderEntryContext;
|
|
12
|
-
}
|
|
13
|
-
export declare type ScanOrderStepKey = 'init' | 'product' | 'check' | 'error';
|
|
14
|
-
export declare type ScanOrderEntryMode = 'default' | 'additional_order';
|
|
15
|
-
/** 步骤缓存中记录的 gate 标记(对应协议 / 表单 / 人数 modal 是否已走过) */
|
|
16
|
-
export declare type ScanOrderGateKey = 'policyAccepted' | 'formSubmitted' | 'paxEntered';
|
|
17
|
-
/** 存入 sessionStorage 桶内的 entryContext 快照(用于校验是否同一扫码场景) */
|
|
18
|
-
export interface ScanOrderCachedEntryContext {
|
|
19
|
-
resourceId?: string;
|
|
20
|
-
hasOrderId?: boolean;
|
|
21
|
-
biz?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ScanOrderViewModel {
|
|
24
|
-
menuItems: any[];
|
|
25
|
-
cartItems: any[];
|
|
26
|
-
summary: Record<string, any>;
|
|
27
|
-
note: string;
|
|
28
|
-
}
|
|
29
|
-
export interface ScanOrderContextValue {
|
|
30
|
-
entryContext: ScanOrderEntryContext;
|
|
31
|
-
scanOrderModule: any;
|
|
32
|
-
cartValidation: {
|
|
33
|
-
passed: boolean | null;
|
|
34
|
-
failures: any[];
|
|
35
|
-
};
|
|
36
|
-
isLoading: boolean;
|
|
37
|
-
errorMessage: string;
|
|
38
|
-
currentStep: ScanOrderStepKey;
|
|
39
|
-
stepList: ScanOrderStepKey[];
|
|
40
|
-
viewModel: ScanOrderViewModel;
|
|
41
|
-
footerActionText: string;
|
|
42
|
-
tableName: string;
|
|
43
|
-
entryMode: ScanOrderEntryMode;
|
|
44
|
-
submitDisabledTips: string;
|
|
45
|
-
/** 折扣/优惠券列表(来自 scanOrder 模块 getDiscountList) */
|
|
46
|
-
discountList: any[];
|
|
47
|
-
isReady: boolean;
|
|
48
|
-
setCurrentStep: (step: ScanOrderStepKey) => void;
|
|
49
|
-
setTableName: (name: string) => void;
|
|
50
|
-
setEntryMode: (mode: ScanOrderEntryMode) => void;
|
|
51
|
-
setSubmitDisabledTips: (tips: string) => void;
|
|
52
|
-
goToStep: (step: ScanOrderStepKey) => void;
|
|
53
|
-
nextStep: () => void;
|
|
54
|
-
prevStep: () => void;
|
|
55
|
-
refreshViewModel: () => Promise<void>;
|
|
56
|
-
runModuleAction: (actionName: string, ...args: any[]) => Promise<any>;
|
|
57
|
-
setFooterActionText: (text: string) => void;
|
|
58
|
-
updateOrderNote: (note: string) => Promise<void>;
|
|
59
|
-
/** 步骤缓存 hydrate 是否已完成(未完成时不建议写入 step,避免覆盖缓存) */
|
|
60
|
-
isCacheHydrated: boolean;
|
|
61
|
-
/** 将 gate 标记为已完成(写入 sessionStorage 桶) */
|
|
62
|
-
markGate: (flag: ScanOrderGateKey) => void;
|
|
63
|
-
/** 查询某个 gate 是否已完成 */
|
|
64
|
-
isGatePassed: (flag: ScanOrderGateKey) => boolean;
|
|
65
|
-
/** 整桶清空(提交成功 / restoreOrder 等场景) */
|
|
66
|
-
clearStepCache: () => void;
|
|
67
|
-
/**
|
|
68
|
-
* bootstrap 结束后要恢复到的目标 step(仅记录 `'product' | 'check'`)。
|
|
69
|
-
* hydrate 阶段不直接 `setCurrentStep`,避免在 checkResourceAvailable 之前让
|
|
70
|
-
* `<Menu>` / `<Check>` mount、提前发出缺 menu_list_ids 的请求。
|
|
71
|
-
*/
|
|
72
|
-
resumeStep: ScanOrderStepKey | null;
|
|
73
|
-
/** 消费并清空 resumeStep;建议在完成 goToStep 后立刻调用 */
|
|
74
|
-
consumeResumeStep: () => void;
|
|
75
|
-
}
|
|
76
|
-
export interface ScanOrderProviderProps {
|
|
77
|
-
entryContext: ScanOrderEntryContext;
|
|
78
|
-
children: React.ReactNode;
|
|
79
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
interface ScanOrderOrderProduct {
|
|
2
|
-
product_id: number | null;
|
|
3
|
-
product_variant_id: number;
|
|
4
|
-
num?: number;
|
|
5
|
-
/** 券后单品单价(订单域成交单价)。 */
|
|
6
|
-
selling_price?: string | number;
|
|
7
|
-
/** 券前单品单价(店铺售价)。 */
|
|
8
|
-
original_price?: string | number;
|
|
9
|
-
product_option_item?: any[];
|
|
10
|
-
product_bundle?: any[];
|
|
11
|
-
identity_key?: string;
|
|
12
|
-
note?: string;
|
|
13
|
-
metadata?: Record<string, any>;
|
|
14
|
-
_origin?: Record<string, any>;
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
export declare function toShoppingCartProducts(params: {
|
|
18
|
-
orderProducts: ScanOrderOrderProduct[];
|
|
19
|
-
amountSymbol?: string;
|
|
20
|
-
}): Record<string, any>[];
|
|
21
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface ProductDetailOptionItem {
|
|
2
|
-
product_option_item_id?: number | string;
|
|
3
|
-
option_group_item_id?: number | string;
|
|
4
|
-
option_group_id?: number | string;
|
|
5
|
-
num?: number;
|
|
6
|
-
price?: number | string;
|
|
7
|
-
}
|
|
8
|
-
export interface ProductDetailBundleItem {
|
|
9
|
-
option?: ProductDetailOptionItem[];
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export interface ProductDetailCallbackPayload {
|
|
13
|
-
id?: number | string | null;
|
|
14
|
-
product_id?: number | string | null;
|
|
15
|
-
variant_id?: number | string;
|
|
16
|
-
product_variant_id?: number | string;
|
|
17
|
-
quantity?: number;
|
|
18
|
-
num?: number;
|
|
19
|
-
option?: ProductDetailOptionItem[];
|
|
20
|
-
product_option_item?: ProductDetailOptionItem[];
|
|
21
|
-
bundle?: ProductDetailBundleItem[];
|
|
22
|
-
product_bundle?: ProductDetailBundleItem[];
|
|
23
|
-
unique?: string;
|
|
24
|
-
session?: any;
|
|
25
|
-
form?: any;
|
|
26
|
-
service_times?: number;
|
|
27
|
-
machine_code?: string;
|
|
28
|
-
schedule_id?: number[];
|
|
29
|
-
duration?: number;
|
|
30
|
-
policy_id?: number;
|
|
31
|
-
source_shop_id?: number;
|
|
32
|
-
origin?: any;
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}
|
|
35
|
-
export interface ScanOrderOrderProductInput {
|
|
36
|
-
product_id: number | null;
|
|
37
|
-
product_variant_id: number;
|
|
38
|
-
num: number;
|
|
39
|
-
product_option_item: Array<{
|
|
40
|
-
product_option_item_id: number;
|
|
41
|
-
option_group_id: number;
|
|
42
|
-
num: number;
|
|
43
|
-
price: number;
|
|
44
|
-
}>;
|
|
45
|
-
product_bundle: ProductDetailBundleItem[];
|
|
46
|
-
/** 券后单品单价;初次加购由入口置为 selling_price,之后由 SDK Rules 引擎维护。 */
|
|
47
|
-
selling_price: string;
|
|
48
|
-
/** 券前单品单价(店铺售价)。 */
|
|
49
|
-
original_price: string;
|
|
50
|
-
tax_fee: string;
|
|
51
|
-
is_charge_tax: number;
|
|
52
|
-
metadata: Record<string, any>;
|
|
53
|
-
_origin: Record<string, any>;
|
|
54
|
-
}
|
|
55
|
-
export declare function transformProductDetailToOrderProduct(params: {
|
|
56
|
-
payload: ProductDetailCallbackPayload;
|
|
57
|
-
fallbackProductId?: number | string | null;
|
|
58
|
-
sourceItem?: Record<string, any>;
|
|
59
|
-
}): ScanOrderOrderProductInput | null;
|
|
@@ -1,99 +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
|
-
description?: MultiLanguageText;
|
|
8
|
-
}
|
|
9
|
-
export interface UpdateGroupParams {
|
|
10
|
-
id: number;
|
|
11
|
-
code: string;
|
|
12
|
-
title: MultiLanguageText;
|
|
13
|
-
description?: MultiLanguageText;
|
|
14
|
-
}
|
|
15
|
-
export interface DeleteGroupParams {
|
|
16
|
-
id: number;
|
|
17
|
-
}
|
|
18
|
-
export interface SortGroupParams {
|
|
19
|
-
section_code: string;
|
|
20
|
-
group_ids: number[];
|
|
21
|
-
}
|
|
22
|
-
export declare const createGroup: (request: any, params: CreateGroupParams) => Promise<ApiResponse<SettingGroup>>;
|
|
23
|
-
export declare const updateGroup: (request: any, params: UpdateGroupParams) => Promise<ApiResponse<SettingGroup>>;
|
|
24
|
-
export declare const deleteGroup: (request: any, params: DeleteGroupParams) => Promise<any>;
|
|
25
|
-
export declare const sortGroups: (request: any, params: SortGroupParams) => Promise<any>;
|
|
26
|
-
export declare const getSectionList: (request: any, params: {
|
|
27
|
-
page?: number;
|
|
28
|
-
pageSize?: number;
|
|
29
|
-
filter?: Record<string, any>;
|
|
30
|
-
}) => Promise<ApiResponse<Section>>;
|
|
31
|
-
export declare const getGroupList: (request: any, params: {
|
|
32
|
-
page?: number;
|
|
33
|
-
pageSize?: number;
|
|
34
|
-
filter?: Record<string, any>;
|
|
35
|
-
}) => Promise<ApiResponse<SettingGroup>>;
|
|
36
|
-
export interface CreateItemParams {
|
|
37
|
-
section_code: string;
|
|
38
|
-
group_id: number;
|
|
39
|
-
code: string;
|
|
40
|
-
title: MultiLanguageText;
|
|
41
|
-
description?: MultiLanguageText;
|
|
42
|
-
type: string;
|
|
43
|
-
interface?: string;
|
|
44
|
-
default?: string | null;
|
|
45
|
-
scopes?: string[];
|
|
46
|
-
schema?: any;
|
|
47
|
-
optionConfig?: {
|
|
48
|
-
sourceType?: string;
|
|
49
|
-
options?: Array<{
|
|
50
|
-
label: string;
|
|
51
|
-
value: string;
|
|
52
|
-
}>;
|
|
53
|
-
labelField?: string;
|
|
54
|
-
valueField?: string;
|
|
55
|
-
dataSource?: any;
|
|
56
|
-
};
|
|
57
|
-
sort?: number;
|
|
58
|
-
}
|
|
59
|
-
export interface UpdateItemParams {
|
|
60
|
-
id: number;
|
|
61
|
-
section_code: string;
|
|
62
|
-
group_id: number;
|
|
63
|
-
code: string;
|
|
64
|
-
title: MultiLanguageText;
|
|
65
|
-
description?: MultiLanguageText;
|
|
66
|
-
type: string;
|
|
67
|
-
interface?: string;
|
|
68
|
-
default?: string | null;
|
|
69
|
-
scopes?: string[];
|
|
70
|
-
schema?: any;
|
|
71
|
-
optionConfig?: {
|
|
72
|
-
sourceType?: string;
|
|
73
|
-
options?: Array<{
|
|
74
|
-
label: string;
|
|
75
|
-
value: string;
|
|
76
|
-
}>;
|
|
77
|
-
labelField?: string;
|
|
78
|
-
valueField?: string;
|
|
79
|
-
dataSource?: any;
|
|
80
|
-
};
|
|
81
|
-
sort?: number;
|
|
82
|
-
}
|
|
83
|
-
export interface DeleteItemParams {
|
|
84
|
-
id: number;
|
|
85
|
-
}
|
|
86
|
-
export interface SortItemParams {
|
|
87
|
-
id: number;
|
|
88
|
-
group_id: string;
|
|
89
|
-
item_ids: number[];
|
|
90
|
-
}
|
|
91
|
-
export declare const createItem: (request: any, params: CreateItemParams) => Promise<ApiResponse<SettingItem>>;
|
|
92
|
-
export declare const updateItem: (request: any, params: UpdateItemParams) => Promise<ApiResponse<SettingItem>>;
|
|
93
|
-
export declare const deleteItem: (request: any, params: DeleteItemParams) => Promise<any>;
|
|
94
|
-
export declare const sortItems: (request: any, params: SortItemParams) => Promise<any>;
|
|
95
|
-
export declare const getItemList: (request: any, params: {
|
|
96
|
-
page?: number;
|
|
97
|
-
pageSize?: number;
|
|
98
|
-
filter?: Record<string, any>;
|
|
99
|
-
}) => Promise<ApiResponse<SettingItem>>;
|