@pisell/private-materials 6.3.114 → 6.3.116
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 +1 -10
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- 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/eftpos/index.js +3 -3
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +7 -1
- package/es/components/eftposPay/device.js +7 -3
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- 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/eftpos/index.js +3 -3
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +6 -1
- package/lib/components/eftposPay/device.js +24 -21
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/es/components/appointmentBooking/locales.d.ts +0 -366
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
- package/es/components/booking/components/tabPane/index.d.ts +0 -4
- package/es/components/booking/dashboard/serve.d.ts +0 -1
- package/es/components/booking/editBookingModal/locales.d.ts +0 -21
- package/es/components/booking/editBookingModal/mock.d.ts +0 -807
- package/es/components/booking/forms/serve.d.ts +0 -18
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/client/serve.d.ts +0 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/es/components/booking/info/pet/serve.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/es/components/booking/info/service/serve.d.ts +0 -20
- package/es/components/booking/info2/serve.d.ts +0 -6
- package/es/components/booking/info2/service/addService/mock.d.ts +0 -214
- package/es/components/booking/locales.d.ts +0 -846
- package/es/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/es/components/eftpos/SettlementModal/Action.d.ts +0 -8
- package/es/components/eftpos/SettlementModal/types.d.ts +0 -138
- package/es/components/eftpos/const.d.ts +0 -66
- package/es/components/eftpos/hooks.d.ts +0 -46
- package/es/components/eftpos/locales.d.ts +0 -138
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -101
- package/es/components/eftposPay/app.d.ts +0 -11
- package/es/components/eftposPay/const.d.ts +0 -191
- package/es/components/eftposPay/locales.d.ts +0 -333
- package/es/components/eftposPay/mx51/Action.d.ts +0 -7
- package/es/components/eftposPay/mx51/types.d.ts +0 -138
- package/es/components/eftposPay/mx51/utils.d.ts +0 -10
- package/es/components/eftposPay/store/index.d.ts +0 -355
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/es/components/eventBooking/locales.d.ts +0 -246
- package/es/components/kioskSkuDetail/locales.d.ts +0 -27
- package/es/components/login/locales.d.ts +0 -24
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -307
- package/es/components/pinModal/locales.d.ts +0 -27
- package/es/components/pinVerifyModal/locales.d.ts +0 -24
- package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -81
- package/es/components/productExtension/locales.d.ts +0 -48
- package/es/components/productSelect/locales.d.ts +0 -18
- package/es/components/ruleSetting/locales.d.ts +0 -48
- package/es/components/schedules/locales.d.ts +0 -87
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/stepController/locales.d.ts +0 -27
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/systemSettings/registry/locales.d.ts +0 -272
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/types.d.ts +0 -126
- package/es/components/taxSelect/locales.d.ts +0 -24
- package/es/components/ticketBooking/locales.d.ts +0 -174
- package/es/components/wallet/utils.d.ts +0 -48
- package/es/components/walletList/locales.d.ts +0 -27
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/hooks/useEngineContext.d.ts +0 -10
- package/es/hooks/useLocale.d.ts +0 -2
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/es/plus/contactInfo/locales.d.ts +0 -15
- package/es/plus/contactInfoModal/locales.d.ts +0 -66
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
- package/es/plus/productSelect/locales.d.ts +0 -18
- package/es/plus/saasCreateOrganization/locales.d.ts +0 -15
- package/es/plus/saasLogin/locales.d.ts +0 -51
- package/es/plus/saasRegister/locales.d.ts +0 -117
- package/es/plus/selectHolder/locales.d.ts +0 -21
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -33
- package/es/plus/skuOptionsSelection/store/store.d.ts +0 -4
- package/es/plus/skuOptionsSelection/types.d.ts +0 -429
- 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/plus/walletEditor/locales.d.ts +0 -135
- package/es/plus/walletEditor/types.d.ts +0 -52
- package/es/plus/walletPassGallery/locales.d.ts +0 -285
- package/es/plus/walletPassGallery/utils.d.ts +0 -48
- package/es/pro/Login2.0/locales.d.ts +0 -543
- package/es/pro/Login2.0/shared/types.d.ts +0 -232
- package/es/pro/NumericStepper/index.d.ts +0 -43
- package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/es/pro/Selector/Item.d.ts +0 -14
- package/es/pro/Selector/components/Card/index.d.ts +0 -57
- package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
- package/es/pro/Selector/components/Media/index.d.ts +0 -6
- package/es/pro/Selector/demo.d.ts +0 -3
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
- package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/es/pro/Selector/locales.d.ts +0 -36
- package/es/pro/Selector/types.d.ts +0 -173
- package/es/pro/Selector/utils/index.d.ts +0 -49
- package/es/pro/numberKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/lib/components/appointmentBooking/locales.d.ts +0 -366
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
- package/lib/components/booking/components/tabPane/index.d.ts +0 -4
- package/lib/components/booking/dashboard/serve.d.ts +0 -1
- package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
- package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
- package/lib/components/booking/forms/serve.d.ts +0 -18
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/client/serve.d.ts +0 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/lib/components/booking/info/pet/serve.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/lib/components/booking/info/service/serve.d.ts +0 -20
- package/lib/components/booking/info2/serve.d.ts +0 -6
- package/lib/components/booking/info2/service/addService/mock.d.ts +0 -214
- package/lib/components/booking/locales.d.ts +0 -846
- package/lib/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/lib/components/eftpos/SettlementModal/Action.d.ts +0 -8
- package/lib/components/eftpos/SettlementModal/types.d.ts +0 -138
- package/lib/components/eftpos/const.d.ts +0 -66
- package/lib/components/eftpos/hooks.d.ts +0 -46
- package/lib/components/eftpos/locales.d.ts +0 -138
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -101
- package/lib/components/eftposPay/app.d.ts +0 -11
- package/lib/components/eftposPay/const.d.ts +0 -191
- package/lib/components/eftposPay/locales.d.ts +0 -333
- package/lib/components/eftposPay/mx51/Action.d.ts +0 -7
- package/lib/components/eftposPay/mx51/types.d.ts +0 -138
- package/lib/components/eftposPay/mx51/utils.d.ts +0 -10
- package/lib/components/eftposPay/store/index.d.ts +0 -355
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/lib/components/eventBooking/locales.d.ts +0 -246
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -27
- package/lib/components/login/locales.d.ts +0 -24
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -307
- package/lib/components/pinModal/locales.d.ts +0 -27
- package/lib/components/pinVerifyModal/locales.d.ts +0 -24
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -81
- package/lib/components/productExtension/locales.d.ts +0 -48
- package/lib/components/productSelect/locales.d.ts +0 -18
- package/lib/components/ruleSetting/locales.d.ts +0 -48
- package/lib/components/schedules/locales.d.ts +0 -87
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/stepController/locales.d.ts +0 -27
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/systemSettings/registry/locales.d.ts +0 -272
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/types.d.ts +0 -126
- package/lib/components/taxSelect/locales.d.ts +0 -24
- package/lib/components/ticketBooking/locales.d.ts +0 -174
- package/lib/components/wallet/utils.d.ts +0 -48
- package/lib/components/walletList/locales.d.ts +0 -27
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/hooks/useEngineContext.d.ts +0 -10
- package/lib/hooks/useLocale.d.ts +0 -2
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/lib/plus/contactInfo/locales.d.ts +0 -15
- package/lib/plus/contactInfoModal/locales.d.ts +0 -66
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
- package/lib/plus/productSelect/locales.d.ts +0 -18
- package/lib/plus/saasCreateOrganization/locales.d.ts +0 -15
- package/lib/plus/saasLogin/locales.d.ts +0 -51
- package/lib/plus/saasRegister/locales.d.ts +0 -117
- package/lib/plus/selectHolder/locales.d.ts +0 -21
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -33
- package/lib/plus/skuOptionsSelection/store/store.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/types.d.ts +0 -429
- 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/plus/walletEditor/locales.d.ts +0 -135
- package/lib/plus/walletEditor/types.d.ts +0 -52
- package/lib/plus/walletPassGallery/locales.d.ts +0 -285
- package/lib/plus/walletPassGallery/utils.d.ts +0 -48
- package/lib/pro/Login2.0/locales.d.ts +0 -543
- package/lib/pro/Login2.0/shared/types.d.ts +0 -232
- package/lib/pro/NumericStepper/index.d.ts +0 -43
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/lib/pro/Selector/Item.d.ts +0 -14
- package/lib/pro/Selector/components/Card/index.d.ts +0 -57
- package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
- package/lib/pro/Selector/components/Media/index.d.ts +0 -6
- package/lib/pro/Selector/demo.d.ts +0 -3
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/lib/pro/Selector/locales.d.ts +0 -36
- package/lib/pro/Selector/types.d.ts +0 -173
- package/lib/pro/Selector/utils/index.d.ts +0 -49
- package/lib/pro/numberKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
|
@@ -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>>;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
export interface MultiLanguageText {
|
|
3
|
-
en: string;
|
|
4
|
-
'zh-CN': string;
|
|
5
|
-
'zh-HK': string;
|
|
6
|
-
original: string;
|
|
7
|
-
}
|
|
8
|
-
export interface BaseItem {
|
|
9
|
-
id: number;
|
|
10
|
-
name: string | MultiLanguageText;
|
|
11
|
-
code: string;
|
|
12
|
-
order?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface SettingItem extends BaseItem {
|
|
15
|
-
key?: string;
|
|
16
|
-
scopes?: string[];
|
|
17
|
-
groupId?: number;
|
|
18
|
-
group_id?: number;
|
|
19
|
-
fieldType?: string;
|
|
20
|
-
type?: string;
|
|
21
|
-
interfaceType?: string;
|
|
22
|
-
interface?: string;
|
|
23
|
-
description?: string | MultiLanguageText;
|
|
24
|
-
systemDefaultValue?: string;
|
|
25
|
-
default?: string;
|
|
26
|
-
uiSchema?: string;
|
|
27
|
-
schema?: any;
|
|
28
|
-
title?: string | MultiLanguageText;
|
|
29
|
-
sort: number;
|
|
30
|
-
created_at?: string | null;
|
|
31
|
-
updated_at?: string | null;
|
|
32
|
-
deleted_at?: string | null;
|
|
33
|
-
}
|
|
34
|
-
export interface SettingGroup extends BaseItem {
|
|
35
|
-
items: SettingItem[];
|
|
36
|
-
expanded?: boolean;
|
|
37
|
-
sort: number;
|
|
38
|
-
}
|
|
39
|
-
export interface Section extends BaseItem {
|
|
40
|
-
icon?: string;
|
|
41
|
-
description?: string | MultiLanguageText;
|
|
42
|
-
groups: SettingGroup[];
|
|
43
|
-
created_at?: string | null;
|
|
44
|
-
updated_at?: string | null;
|
|
45
|
-
deleted_at?: string | null;
|
|
46
|
-
}
|
|
47
|
-
export interface TreeNode {
|
|
48
|
-
key: string;
|
|
49
|
-
type: 'group' | 'item';
|
|
50
|
-
data: SettingGroup | SettingItem;
|
|
51
|
-
children?: TreeNode[];
|
|
52
|
-
parentKey?: string;
|
|
53
|
-
}
|
|
54
|
-
export declare type OperationType = 'add' | 'edit' | 'delete';
|
|
55
|
-
export interface DragItem {
|
|
56
|
-
id: number;
|
|
57
|
-
type: 'group' | 'item';
|
|
58
|
-
groupId?: number;
|
|
59
|
-
}
|
|
60
|
-
export interface RegistryProps {
|
|
61
|
-
className?: string;
|
|
62
|
-
style?: CSSProperties;
|
|
63
|
-
sections?: Section[];
|
|
64
|
-
selectedSectionId?: number;
|
|
65
|
-
onSectionSelect?: (sectionId: number) => void;
|
|
66
|
-
onDataChange?: (sections: Section[]) => void;
|
|
67
|
-
}
|
|
68
|
-
export interface SectionListProps {
|
|
69
|
-
sections: Section[];
|
|
70
|
-
selectedSectionId?: number;
|
|
71
|
-
onSectionSelect: (sectionId: number) => void;
|
|
72
|
-
loading?: boolean;
|
|
73
|
-
hasMore?: boolean;
|
|
74
|
-
onLoadMore?: () => void;
|
|
75
|
-
}
|
|
76
|
-
export interface SettingsTableProps {
|
|
77
|
-
section?: Section;
|
|
78
|
-
groupList?: SettingGroup[];
|
|
79
|
-
groupLoading?: boolean;
|
|
80
|
-
onDataChange?: (section: Section) => void;
|
|
81
|
-
onEditGroup?: (group: SettingGroup) => void;
|
|
82
|
-
onDeleteGroup?: (groupId: number) => void;
|
|
83
|
-
onAddItem?: (groupId: number) => void;
|
|
84
|
-
onEditItem?: (item: SettingItem) => void;
|
|
85
|
-
onDeleteItem?: (itemId: number) => void;
|
|
86
|
-
onGroupReorder?: (groupIds: number[]) => void;
|
|
87
|
-
onItemMove?: (itemId: number, targetGroupId: number, newOrder: number) => void;
|
|
88
|
-
}
|
|
89
|
-
export interface GroupFormData {
|
|
90
|
-
title: MultiLanguageText;
|
|
91
|
-
code: string;
|
|
92
|
-
}
|
|
93
|
-
export interface ItemFormData {
|
|
94
|
-
name: MultiLanguageText;
|
|
95
|
-
key: string;
|
|
96
|
-
fieldType: string;
|
|
97
|
-
interfaceType?: string;
|
|
98
|
-
scopes: string[];
|
|
99
|
-
description?: MultiLanguageText;
|
|
100
|
-
default?: string | null;
|
|
101
|
-
uiSchema?: string;
|
|
102
|
-
}
|
|
103
|
-
export interface GroupModalProps {
|
|
104
|
-
open: boolean;
|
|
105
|
-
type: OperationType;
|
|
106
|
-
data?: SettingGroup;
|
|
107
|
-
onOk: (data: GroupFormData) => void | Promise<void>;
|
|
108
|
-
onCancel: () => void;
|
|
109
|
-
}
|
|
110
|
-
export interface ItemModalProps {
|
|
111
|
-
open: boolean;
|
|
112
|
-
type: OperationType;
|
|
113
|
-
data?: SettingItem;
|
|
114
|
-
section?: Section;
|
|
115
|
-
onOk: (data: ItemFormData) => void | Promise<void>;
|
|
116
|
-
onCancel: () => void;
|
|
117
|
-
}
|
|
118
|
-
export interface ApiResponse<T> {
|
|
119
|
-
data: T[];
|
|
120
|
-
meta: {
|
|
121
|
-
count: number;
|
|
122
|
-
page: number;
|
|
123
|
-
pageSize: number;
|
|
124
|
-
totalPage: number;
|
|
125
|
-
};
|
|
126
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell2.text.tax-free': string;
|
|
4
|
-
'pisell2.text.custom': string;
|
|
5
|
-
'pisell2.text.cancel': string;
|
|
6
|
-
'pisell2.text.confirm': string;
|
|
7
|
-
'pisell2.text.please-enter': string;
|
|
8
|
-
};
|
|
9
|
-
'zh-CN': {
|
|
10
|
-
'pisell2.text.tax-free': string;
|
|
11
|
-
'pisell2.text.custom': string;
|
|
12
|
-
'pisell2.text.cancel': string;
|
|
13
|
-
'pisell2.text.confirm': string;
|
|
14
|
-
'pisell2.text.please-enter': string;
|
|
15
|
-
};
|
|
16
|
-
'zh-HK': {
|
|
17
|
-
'pisell2.text.tax-free': string;
|
|
18
|
-
'pisell2.text.custom': string;
|
|
19
|
-
'pisell2.text.cancel': string;
|
|
20
|
-
'pisell2.text.confirm': string;
|
|
21
|
-
'pisell2.text.please-enter': string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell2.ticket-booking.info': string;
|
|
4
|
-
'pisell2.ticket-booking.notes': string;
|
|
5
|
-
'pisell2.ticket-booking.forms': string;
|
|
6
|
-
'pisell2.ticket-booking.sales': string;
|
|
7
|
-
'pisell2.ticket-booking.payment': string;
|
|
8
|
-
'pisell2.ticket-booking.unsaved-changes': string;
|
|
9
|
-
'pisell2.ticket-booking.exit-confirm': string;
|
|
10
|
-
'pisell2.ticket-booking.go-back': string;
|
|
11
|
-
'pisell2.ticket-booking.exit': string;
|
|
12
|
-
'pisell2.ticket-booking.deposit': string;
|
|
13
|
-
'pisell2.ticket-booking.copy-success': string;
|
|
14
|
-
'pisell2.ticket-booking.no-data': string;
|
|
15
|
-
'pisell2.ticket-booking.authorized': string;
|
|
16
|
-
'pisell2.ticket-booking.paid': string;
|
|
17
|
-
'pisell2.ticket-booking.partially-paid': string;
|
|
18
|
-
'pisell2.ticket-booking.partially-refunded': string;
|
|
19
|
-
'pisell2.ticket-booking.payment-pending': string;
|
|
20
|
-
'pisell2.ticket-booking.refunded': string;
|
|
21
|
-
'pisell2.ticket-booking.unpaid': string;
|
|
22
|
-
'pisell2.ticket-booking.voided': string;
|
|
23
|
-
'pisell2.ticket-booking.pending': string;
|
|
24
|
-
'pisell2.ticket-booking.all': string;
|
|
25
|
-
'pisell2.ticket-booking.not-started': string;
|
|
26
|
-
'pisell2.ticket-booking.started': string;
|
|
27
|
-
'pisell2.ticket-booking.finished': string;
|
|
28
|
-
'pisell2.ticket-booking.canceled': string;
|
|
29
|
-
'pisell2.ticket-booking.inform': string;
|
|
30
|
-
'pisell2.ticket-booking.check-management': string;
|
|
31
|
-
'pisell2.ticket-booking.confirm': string;
|
|
32
|
-
'pisell2.ticket-booking.dashboard': string;
|
|
33
|
-
'pisell2.ticket-booking.booking-list': string;
|
|
34
|
-
'pisell2.ticket-booking.full-data': string;
|
|
35
|
-
'pisell2.ticket-booking.today': string;
|
|
36
|
-
'pisell2.ticket-booking.now': string;
|
|
37
|
-
'pisell2.ticket-booking.start-time': string;
|
|
38
|
-
'pisell2.ticket-booking.create-time': string;
|
|
39
|
-
'pisell2.ticket-booking.customer': string;
|
|
40
|
-
'pisell2.ticket-booking.total': string;
|
|
41
|
-
'pisell2.ticket-booking.search': string;
|
|
42
|
-
'pisell2.ticket-booking.refresh-success': string;
|
|
43
|
-
'pisell2.ticket-booking.loading': string;
|
|
44
|
-
'pisell2.ticket-booking.appointment-not-found': string;
|
|
45
|
-
'pisell2.ticket-booking.scan': string;
|
|
46
|
-
'pisell2.ticket-booking.create-new': string;
|
|
47
|
-
'pisell2.ticket-booking.add-to-cart': string;
|
|
48
|
-
'pisell2.ticket-booking.not-available-title': string;
|
|
49
|
-
'pisell2.ticket-booking.not-available-ok': string;
|
|
50
|
-
'pisell2.ticket-booking.in-cart': (number: number) => string;
|
|
51
|
-
'pisell2.product.card.cart-items': (number: number) => string;
|
|
52
|
-
'pisell2.product.card.subtotal': string;
|
|
53
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
54
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
55
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
56
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
57
|
-
"pisell2.ticket-booking.reload": string;
|
|
58
|
-
};
|
|
59
|
-
'zh-CN': {
|
|
60
|
-
'pisell2.ticket-booking.info': string;
|
|
61
|
-
'pisell2.ticket-booking.notes': string;
|
|
62
|
-
'pisell2.ticket-booking.forms': string;
|
|
63
|
-
'pisell2.ticket-booking.sales': string;
|
|
64
|
-
'pisell2.ticket-booking.payment': string;
|
|
65
|
-
'pisell2.ticket-booking.unsaved-changes': string;
|
|
66
|
-
'pisell2.ticket-booking.exit-confirm': string;
|
|
67
|
-
'pisell2.ticket-booking.go-back': string;
|
|
68
|
-
'pisell2.ticket-booking.exit': string;
|
|
69
|
-
'pisell2.ticket-booking.deposit': string;
|
|
70
|
-
'pisell2.ticket-booking.copy-success': string;
|
|
71
|
-
'pisell2.ticket-booking.no-data': string;
|
|
72
|
-
'pisell2.ticket-booking.authorized': string;
|
|
73
|
-
'pisell2.ticket-booking.paid': string;
|
|
74
|
-
'pisell2.ticket-booking.partially-paid': string;
|
|
75
|
-
'pisell2.ticket-booking.partially-refunded': string;
|
|
76
|
-
'pisell2.ticket-booking.payment-pending': string;
|
|
77
|
-
'pisell2.ticket-booking.refunded': string;
|
|
78
|
-
'pisell2.ticket-booking.unpaid': string;
|
|
79
|
-
'pisell2.ticket-booking.voided': string;
|
|
80
|
-
'pisell2.ticket-booking.pending': string;
|
|
81
|
-
'pisell2.ticket-booking.all': string;
|
|
82
|
-
'pisell2.ticket-booking.not-started': string;
|
|
83
|
-
'pisell2.ticket-booking.started': string;
|
|
84
|
-
'pisell2.ticket-booking.finished': string;
|
|
85
|
-
'pisell2.ticket-booking.canceled': string;
|
|
86
|
-
'pisell2.ticket-booking.inform': string;
|
|
87
|
-
'pisell2.ticket-booking.check-management': string;
|
|
88
|
-
'pisell2.ticket-booking.confirm': string;
|
|
89
|
-
'pisell2.ticket-booking.dashboard': string;
|
|
90
|
-
'pisell2.ticket-booking.booking-list': string;
|
|
91
|
-
'pisell2.ticket-booking.full-data': string;
|
|
92
|
-
'pisell2.ticket-booking.today': string;
|
|
93
|
-
'pisell2.ticket-booking.now': string;
|
|
94
|
-
'pisell2.ticket-booking.start-time': string;
|
|
95
|
-
'pisell2.ticket-booking.create-time': string;
|
|
96
|
-
'pisell2.ticket-booking.customer': string;
|
|
97
|
-
'pisell2.ticket-booking.total': string;
|
|
98
|
-
'pisell2.ticket-booking.search': string;
|
|
99
|
-
'pisell2.ticket-booking.refresh-success': string;
|
|
100
|
-
'pisell2.ticket-booking.loading': string;
|
|
101
|
-
'pisell2.ticket-booking.appointment-not-found': string;
|
|
102
|
-
'pisell2.ticket-booking.scan': string;
|
|
103
|
-
'pisell2.ticket-booking.create-new': string;
|
|
104
|
-
'pisell2.ticket-booking.add-to-cart': string;
|
|
105
|
-
'pisell2.ticket-booking.not-available-title': string;
|
|
106
|
-
'pisell2.ticket-booking.not-available-ok': string;
|
|
107
|
-
'pisell2.product.card.cart-items': (number: number) => string;
|
|
108
|
-
'pisell2.product.card.subtotal': string;
|
|
109
|
-
'pisell2.ticket-booking.in-cart': (number: number) => string;
|
|
110
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
111
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
112
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
113
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
114
|
-
"pisell2.ticket-booking.reload": string;
|
|
115
|
-
};
|
|
116
|
-
'zh-HK': {
|
|
117
|
-
'pisell2.ticket-booking.info': string;
|
|
118
|
-
'pisell2.ticket-booking.notes': string;
|
|
119
|
-
'pisell2.ticket-booking.forms': string;
|
|
120
|
-
'pisell2.ticket-booking.sales': string;
|
|
121
|
-
'pisell2.ticket-booking.payment': string;
|
|
122
|
-
'pisell2.ticket-booking.unsaved-changes': string;
|
|
123
|
-
'pisell2.ticket-booking.exit-confirm': string;
|
|
124
|
-
'pisell2.ticket-booking.go-back': string;
|
|
125
|
-
'pisell2.ticket-booking.exit': string;
|
|
126
|
-
'pisell2.ticket-booking.deposit': string;
|
|
127
|
-
'pisell2.ticket-booking.copy-success': string;
|
|
128
|
-
'pisell2.ticket-booking.no-data': string;
|
|
129
|
-
'pisell2.ticket-booking.authorized': string;
|
|
130
|
-
'pisell2.ticket-booking.paid': string;
|
|
131
|
-
'pisell2.ticket-booking.partially-paid': string;
|
|
132
|
-
'pisell2.ticket-booking.partially-refunded': string;
|
|
133
|
-
'pisell2.ticket-booking.payment-pending': string;
|
|
134
|
-
'pisell2.ticket-booking.refunded': string;
|
|
135
|
-
'pisell2.ticket-booking.unpaid': string;
|
|
136
|
-
'pisell2.ticket-booking.voided': string;
|
|
137
|
-
'pisell2.ticket-booking.pending': string;
|
|
138
|
-
'pisell2.ticket-booking.all': string;
|
|
139
|
-
'pisell2.ticket-booking.not-started': string;
|
|
140
|
-
'pisell2.ticket-booking.started': string;
|
|
141
|
-
'pisell2.ticket-booking.finished': string;
|
|
142
|
-
'pisell2.ticket-booking.canceled': string;
|
|
143
|
-
'pisell2.ticket-booking.inform': string;
|
|
144
|
-
'pisell2.ticket-booking.check-management': string;
|
|
145
|
-
'pisell2.ticket-booking.confirm': string;
|
|
146
|
-
'pisell2.ticket-booking.dashboard': string;
|
|
147
|
-
'pisell2.ticket-booking.booking-list': string;
|
|
148
|
-
'pisell2.ticket-booking.full-data': string;
|
|
149
|
-
'pisell2.ticket-booking.today': string;
|
|
150
|
-
'pisell2.ticket-booking.now': string;
|
|
151
|
-
'pisell2.ticket-booking.start-time': string;
|
|
152
|
-
'pisell2.ticket-booking.create-time': string;
|
|
153
|
-
'pisell2.ticket-booking.customer': string;
|
|
154
|
-
'pisell2.ticket-booking.total': string;
|
|
155
|
-
'pisell2.ticket-booking.search': string;
|
|
156
|
-
'pisell2.ticket-booking.refresh-success': string;
|
|
157
|
-
'pisell2.ticket-booking.loading': string;
|
|
158
|
-
'pisell2.ticket-booking.appointment-not-found': string;
|
|
159
|
-
'pisell2.ticket-booking.scan': string;
|
|
160
|
-
'pisell2.ticket-booking.create-new': string;
|
|
161
|
-
'pisell2.ticket-booking.add-to-cart': string;
|
|
162
|
-
'pisell2.ticket-booking.not-available-title': string;
|
|
163
|
-
'pisell2.ticket-booking.not-available-ok': string;
|
|
164
|
-
'pisell2.ticket-booking.in-cart': (number: number) => string;
|
|
165
|
-
'pisell2.product.card.cart-items': (number: number) => string;
|
|
166
|
-
'pisell2.product.card.subtotal': string;
|
|
167
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
168
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
169
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
170
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
171
|
-
"pisell2.ticket-booking.reload": string;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
export default _default;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
interface ScheduleTextResult {
|
|
2
|
-
validityTexts: string[];
|
|
3
|
-
excluded_date: string[];
|
|
4
|
-
included_date: string[];
|
|
5
|
-
}
|
|
6
|
-
declare type Locale = 'en' | 'zh-CN' | 'zh-HK';
|
|
7
|
-
interface ScheduleItem {
|
|
8
|
-
id: number;
|
|
9
|
-
name: string | {
|
|
10
|
-
[key: string]: string;
|
|
11
|
-
};
|
|
12
|
-
type: 'standard' | 'time-slots' | 'designation';
|
|
13
|
-
start_time: string | null;
|
|
14
|
-
end_time: string | null;
|
|
15
|
-
repeat_type: 'none' | 'daily' | 'weekly';
|
|
16
|
-
repeat_rule: {
|
|
17
|
-
end: {
|
|
18
|
-
type: 'never' | 'date' | 'occurrence';
|
|
19
|
-
end_date: string | null;
|
|
20
|
-
occurrence: number | null;
|
|
21
|
-
};
|
|
22
|
-
frequency: number;
|
|
23
|
-
excluded_date: Array<{
|
|
24
|
-
start: string;
|
|
25
|
-
end: string;
|
|
26
|
-
}>;
|
|
27
|
-
included_date: any[];
|
|
28
|
-
frequency_date: number[];
|
|
29
|
-
} | null;
|
|
30
|
-
designation: Array<{
|
|
31
|
-
start_date: string;
|
|
32
|
-
start_time: string;
|
|
33
|
-
end_date: string;
|
|
34
|
-
end_time: string;
|
|
35
|
-
}> | null;
|
|
36
|
-
is_all: number;
|
|
37
|
-
time_slot: Array<{
|
|
38
|
-
start_time: string;
|
|
39
|
-
end_time: string;
|
|
40
|
-
}>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* 根据scheduleList格式化文案展示
|
|
44
|
-
* @param scheduleList 日程列表
|
|
45
|
-
* @returns 格式化后的文案结果数组,每个日程对应一个结果
|
|
46
|
-
*/
|
|
47
|
-
export declare function formatScheduleText(scheduleList: ScheduleItem[], locale?: Locale): ScheduleTextResult[];
|
|
48
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'page.wallet.guide.title': string;
|
|
4
|
-
'page.wallet.guide.subtitle': string;
|
|
5
|
-
'page.wallet.guide.button': string;
|
|
6
|
-
'page.wallet.tempHolderSelector.title': string;
|
|
7
|
-
'page.wallet.tempHolderSelector.create': string;
|
|
8
|
-
'page.wallet.tempHolderSelector.confirm': string;
|
|
9
|
-
};
|
|
10
|
-
'zh-CN': {
|
|
11
|
-
'page.wallet.guide.title': string;
|
|
12
|
-
'page.wallet.guide.subtitle': string;
|
|
13
|
-
'page.wallet.guide.button': string;
|
|
14
|
-
'page.wallet.tempHolderSelector.title': string;
|
|
15
|
-
'page.wallet.tempHolderSelector.create': string;
|
|
16
|
-
'page.wallet.tempHolderSelector.confirm': string;
|
|
17
|
-
};
|
|
18
|
-
'zh-HK': {
|
|
19
|
-
'page.wallet.guide.title': string;
|
|
20
|
-
'page.wallet.guide.subtitle': string;
|
|
21
|
-
'page.wallet.guide.button': string;
|
|
22
|
-
'page.wallet.tempHolderSelector.title': string;
|
|
23
|
-
'page.wallet.tempHolderSelector.create': string;
|
|
24
|
-
'page.wallet.tempHolderSelector.confirm': string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MultiLanguageName {
|
|
3
|
-
original: string;
|
|
4
|
-
'zh-CN': string;
|
|
5
|
-
'zh-HK': string;
|
|
6
|
-
en: string;
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
}
|
|
9
|
-
declare type WalletPassType = 'rechargeable' | 'point' | 'voucher' | 'discount';
|
|
10
|
-
export interface WalletMetadata {
|
|
11
|
-
name: MultiLanguageName;
|
|
12
|
-
welcomeText?: string | MultiLanguageName;
|
|
13
|
-
customerName?: string;
|
|
14
|
-
coverImage?: string;
|
|
15
|
-
icon?: string;
|
|
16
|
-
showcaseWalletPassNew?: Array<{
|
|
17
|
-
type: WalletPassType;
|
|
18
|
-
custom_title?: string | MultiLanguageName;
|
|
19
|
-
display?: 0 | 1;
|
|
20
|
-
}>;
|
|
21
|
-
}
|
|
22
|
-
export interface Shop {
|
|
23
|
-
id: number;
|
|
24
|
-
name: string;
|
|
25
|
-
default_url: string;
|
|
26
|
-
}
|
|
27
|
-
export interface Wallet {
|
|
28
|
-
id: string | null;
|
|
29
|
-
shop_id: string | null;
|
|
30
|
-
shop?: Shop;
|
|
31
|
-
status: string | null;
|
|
32
|
-
name: MultiLanguageName;
|
|
33
|
-
valid_for: {
|
|
34
|
-
type: string;
|
|
35
|
-
unit?: string;
|
|
36
|
-
unit_type?: string;
|
|
37
|
-
custom_date?: string;
|
|
38
|
-
};
|
|
39
|
-
metadata: WalletMetadata;
|
|
40
|
-
created_at: string | null;
|
|
41
|
-
}
|
|
42
|
-
export interface WalletPass {
|
|
43
|
-
id: string | null;
|
|
44
|
-
shop_id: string | null;
|
|
45
|
-
code: string;
|
|
46
|
-
status: string | null;
|
|
47
|
-
wallet_id: string | null;
|
|
48
|
-
customer_id: string | null;
|
|
49
|
-
expired_at: string | null;
|
|
50
|
-
created_at: string;
|
|
51
|
-
shop: Shop;
|
|
52
|
-
wallet: Wallet;
|
|
53
|
-
icon?: string;
|
|
54
|
-
isLogin?: boolean;
|
|
55
|
-
showIcon?: boolean;
|
|
56
|
-
}
|
|
57
|
-
export interface WalletBalance {
|
|
58
|
-
gift_card_balance: number;
|
|
59
|
-
point_card_balance: number;
|
|
60
|
-
voucher_count: number;
|
|
61
|
-
discount_card_count: number;
|
|
62
|
-
}
|
|
63
|
-
export interface WalletCardItem {
|
|
64
|
-
type: WalletPassType;
|
|
65
|
-
custom_title?: string | MultiLanguageName;
|
|
66
|
-
display: 0 | 1;
|
|
67
|
-
value?: number;
|
|
68
|
-
}
|
|
69
|
-
export interface State {
|
|
70
|
-
list: WalletPass[];
|
|
71
|
-
balance: WalletBalance | null;
|
|
72
|
-
loading: boolean;
|
|
73
|
-
error: Error | null;
|
|
74
|
-
authError?: boolean;
|
|
75
|
-
hasAttempted: boolean;
|
|
76
|
-
isLoggedIn?: boolean;
|
|
77
|
-
}
|
|
78
|
-
export interface Action {
|
|
79
|
-
type: string;
|
|
80
|
-
payload: Partial<State>;
|
|
81
|
-
}
|
|
82
|
-
export interface Balance {
|
|
83
|
-
gift_card_balance: number;
|
|
84
|
-
point_card_balance: number;
|
|
85
|
-
voucher_count: number;
|
|
86
|
-
discount_card_count: number;
|
|
87
|
-
}
|
|
88
|
-
export interface IWallList {
|
|
89
|
-
tag?: string;
|
|
90
|
-
sales_status?: string;
|
|
91
|
-
machine_search?: string;
|
|
92
|
-
createdDate?: string;
|
|
93
|
-
limit_status?: string;
|
|
94
|
-
relation_id?: string;
|
|
95
|
-
relation_type?: string;
|
|
96
|
-
customer_id?: string;
|
|
97
|
-
sort?: string;
|
|
98
|
-
order_by?: string;
|
|
99
|
-
used_status?: string;
|
|
100
|
-
num?: number;
|
|
101
|
-
skip?: number;
|
|
102
|
-
}
|
|
103
|
-
export interface WalletListProps {
|
|
104
|
-
globalState?: {
|
|
105
|
-
platform?: 'pc' | 'h5' | 'ipad';
|
|
106
|
-
mode?: 'dark' | 'light';
|
|
107
|
-
cardStyle?: 'normal' | 'full';
|
|
108
|
-
codeType?: 'barCode' | 'qrCode';
|
|
109
|
-
codeDirection?: 'bottom' | 'top';
|
|
110
|
-
shopName?: boolean;
|
|
111
|
-
showWalletName?: boolean;
|
|
112
|
-
showShopName?: boolean;
|
|
113
|
-
cardNo?: string;
|
|
114
|
-
showCardNo?: boolean;
|
|
115
|
-
showCode?: boolean;
|
|
116
|
-
points?: boolean;
|
|
117
|
-
balance?: boolean;
|
|
118
|
-
coupon?: boolean;
|
|
119
|
-
pointsValue?: number;
|
|
120
|
-
balanceValue?: number;
|
|
121
|
-
couponValue?: number;
|
|
122
|
-
symbol?: string;
|
|
123
|
-
showIcon?: boolean;
|
|
124
|
-
iconImg?: string;
|
|
125
|
-
customBackgroundImage?: string;
|
|
126
|
-
walletName?: string;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
export interface WalletCardProps {
|
|
130
|
-
platform?: 'pc' | 'h5' | 'ipad';
|
|
131
|
-
mode?: 'dark' | 'light';
|
|
132
|
-
cardStyle?: 'normal' | 'full';
|
|
133
|
-
codeType?: 'barCode' | 'qrCode';
|
|
134
|
-
codeDirection?: 'bottom' | 'top';
|
|
135
|
-
shopName?: boolean;
|
|
136
|
-
showIcon?: boolean;
|
|
137
|
-
iconImg?: string;
|
|
138
|
-
showWalletName?: boolean;
|
|
139
|
-
showShopName?: boolean;
|
|
140
|
-
cardNo?: string;
|
|
141
|
-
showCardNo?: boolean;
|
|
142
|
-
showCode?: boolean;
|
|
143
|
-
points?: boolean;
|
|
144
|
-
balance?: boolean;
|
|
145
|
-
coupon?: boolean;
|
|
146
|
-
pointsValue?: number;
|
|
147
|
-
balanceValue?: number;
|
|
148
|
-
couponValue?: number;
|
|
149
|
-
isLogin?: boolean;
|
|
150
|
-
items: WalletCardItem[];
|
|
151
|
-
}
|
|
152
|
-
export interface DivProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
153
|
-
children?: React.ReactNode;
|
|
154
|
-
}
|
|
155
|
-
export interface WalletListContextType {
|
|
156
|
-
state: State;
|
|
157
|
-
dispatch: React.Dispatch<Action>;
|
|
158
|
-
}
|
|
159
|
-
export declare const DEFAULT_CARD_CONFIG: {
|
|
160
|
-
readonly mode: "light";
|
|
161
|
-
readonly cardStyle: "normal";
|
|
162
|
-
readonly codeDirection: "bottom";
|
|
163
|
-
readonly showShopName: true;
|
|
164
|
-
readonly showWalletName: true;
|
|
165
|
-
readonly showIcon: true;
|
|
166
|
-
readonly iconImg: "";
|
|
167
|
-
readonly showCardNo: true;
|
|
168
|
-
readonly showCode: true;
|
|
169
|
-
readonly points: true;
|
|
170
|
-
readonly balance: true;
|
|
171
|
-
readonly coupon: true;
|
|
172
|
-
};
|
|
173
|
-
export interface CarouselSettings {
|
|
174
|
-
className: string;
|
|
175
|
-
arrows: boolean;
|
|
176
|
-
infinite: boolean;
|
|
177
|
-
slidesToShow: number;
|
|
178
|
-
slidesToScroll: number;
|
|
179
|
-
centerMode: boolean;
|
|
180
|
-
centerPadding: string;
|
|
181
|
-
autoplay: boolean;
|
|
182
|
-
autoplaySpeed: number;
|
|
183
|
-
dots: boolean;
|
|
184
|
-
appendDots?: (dots: React.ReactNode) => React.ReactNode;
|
|
185
|
-
responsive?: Array<{
|
|
186
|
-
breakpoint: number;
|
|
187
|
-
settings: {
|
|
188
|
-
slidesToShow: number;
|
|
189
|
-
slidesToScroll: number;
|
|
190
|
-
centerPadding: string;
|
|
191
|
-
};
|
|
192
|
-
}>;
|
|
193
|
-
}
|
|
194
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare type IEngineContext = {
|
|
2
|
-
appHelper: any;
|
|
3
|
-
engine: any;
|
|
4
|
-
blockContext: any;
|
|
5
|
-
components: any;
|
|
6
|
-
pageContext: any;
|
|
7
|
-
};
|
|
8
|
-
declare const useEngineContext: () => IEngineContext;
|
|
9
|
-
export declare const usePisellOS: () => any;
|
|
10
|
-
export default useEngineContext;
|
package/es/hooks/useLocale.d.ts
DELETED