@pisell/private-materials 6.3.95 → 6.3.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/saasAttendance/locales.d.ts +63 -0
- package/es/plus/saasAttendance/locales.js +71 -2
- package/es/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/PermissonTab.js +79 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +9 -3
- package/es/plus/saasAttendance/settings/components/MapField.js +69 -33
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +149 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
- package/es/plus/saasAttendance/settings/index.js +7 -0
- package/es/plus/saasAttendance/settings/index.less +15 -0
- package/es/plus/saasAttendance/settings/types.d.ts +6 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/saasAttendance/locales.d.ts +63 -0
- package/lib/plus/saasAttendance/locales.js +65 -2
- package/lib/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/PermissonTab.js +128 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +2 -1
- package/lib/plus/saasAttendance/settings/components/MapField.js +50 -11
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +150 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
- package/lib/plus/saasAttendance/settings/index.js +12 -0
- package/lib/plus/saasAttendance/settings/index.less +15 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +6 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/package.json +2 -2
- package/es/components/Sales/Cart/index.d.ts +0 -53
- 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/index.d.ts +0 -6
- 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/index.d.ts +0 -6
- 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/OnlineShopAuth/index.d.ts +0 -6
- 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/SaaSManagermentAuth/index.d.ts +0 -6
- 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/addons/index.d.ts +0 -17
- package/es/components/booking/components/footer/amount.d.ts +0 -25
- 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/deposit/ClientItem/index.d.ts +0 -18
- package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/es/components/booking/deposit/index.d.ts +0 -3
- 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/forms.d.ts +0 -30
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/es/components/booking/info/client/index.d.ts +0 -4
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/es/components/booking/info/index.d.ts +0 -4
- package/es/components/booking/info/main.d.ts +0 -12
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/service/Lists.d.ts +0 -3
- package/es/components/booking/info/service/addService/index.d.ts +0 -12
- package/es/components/booking/info/service/serve.d.ts +0 -20
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -6
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/es/components/booking/info/service2/Lists.d.ts +0 -3
- package/es/components/booking/info/service2/utils.d.ts +0 -248
- package/es/components/booking/info/utils.d.ts +0 -50
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/mock.d.ts +0 -214
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -6
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
- package/es/components/booking/locales.d.ts +0 -846
- package/es/components/booking/notes/addNote/index.d.ts +0 -4
- package/es/components/booking/utils.d.ts +0 -175
- package/es/components/eftpos/locales.d.ts +0 -99
- package/es/components/eftposPay/app.d.ts +0 -11
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -4
- package/es/components/eftposPay/component/fail/index.d.ts +0 -4
- package/es/components/eftposPay/const.d.ts +0 -184
- package/es/components/eftposPay/device.d.ts +0 -24
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -5
- package/es/components/eftposPay/locales.d.ts +0 -330
- package/es/components/eftposPay/manufacturer.d.ts +0 -7
- package/es/components/eftposPay/pay.d.ts +0 -21
- package/es/components/eftposPay/store/index.d.ts +0 -355
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/eventBooking/locales.d.ts +0 -246
- 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/pay/toC/serve.d.ts +0 -62
- package/es/components/pinModal/locales.d.ts +0 -27
- package/es/components/pinVerifyModal/locales.d.ts +0 -24
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
- 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/locales.d.ts +0 -33
- package/es/components/shoppingCart/type.d.ts +0 -48
- 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/types.d.ts +0 -126
- package/es/components/taxSelect/locales.d.ts +0 -24
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -7
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -5
- package/es/components/ticketBooking/index.d.ts +0 -8
- package/es/components/ticketBooking/locales.d.ts +0 -174
- package/es/components/ticketBooking/serve.d.ts +0 -287
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/index.d.ts +0 -25
- 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 -11
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clientCard/types.d.ts +0 -135
- package/es/plus/clinetSearch/locales.d.ts +0 -108
- package/es/plus/contactInfo/locales.d.ts +0 -15
- package/es/plus/contactInfoModal/locales.d.ts +0 -66
- package/es/plus/productSelect/CategoryTabs/index.d.ts +0 -21
- 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/saasRole/locales.d.ts +0 -193
- package/es/plus/saasRole/types.d.ts +0 -175
- package/es/plus/saasTeamMembers/locales.d.ts +0 -330
- package/es/plus/saasTeamMembers/type.d.ts +0 -156
- package/es/plus/selectHolder/locales.d.ts +0 -27
- 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/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/es/pro/numberKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- 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/index.d.ts +0 -6
- 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/index.d.ts +0 -6
- 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/OnlineShopAuth/index.d.ts +0 -6
- 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/SaaSManagermentAuth/index.d.ts +0 -6
- 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/addons/index.d.ts +0 -17
- package/lib/components/booking/components/footer/amount.d.ts +0 -25
- 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/deposit/ClientItem/index.d.ts +0 -18
- package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/lib/components/booking/deposit/index.d.ts +0 -3
- 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/forms.d.ts +0 -30
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/lib/components/booking/info/client/index.d.ts +0 -4
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/lib/components/booking/info/index.d.ts +0 -4
- package/lib/components/booking/info/main.d.ts +0 -12
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/service/Lists.d.ts +0 -3
- package/lib/components/booking/info/service/addService/index.d.ts +0 -12
- package/lib/components/booking/info/service/serve.d.ts +0 -20
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -6
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/lib/components/booking/info/service2/Lists.d.ts +0 -3
- package/lib/components/booking/info/service2/utils.d.ts +0 -248
- package/lib/components/booking/info/utils.d.ts +0 -50
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/mock.d.ts +0 -214
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -6
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
- package/lib/components/booking/locales.d.ts +0 -846
- package/lib/components/booking/notes/addNote/index.d.ts +0 -4
- package/lib/components/booking/utils.d.ts +0 -175
- package/lib/components/eftpos/locales.d.ts +0 -99
- package/lib/components/eftposPay/app.d.ts +0 -11
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -4
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -4
- package/lib/components/eftposPay/const.d.ts +0 -184
- package/lib/components/eftposPay/device.d.ts +0 -24
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -5
- package/lib/components/eftposPay/locales.d.ts +0 -330
- package/lib/components/eftposPay/manufacturer.d.ts +0 -7
- package/lib/components/eftposPay/pay.d.ts +0 -21
- package/lib/components/eftposPay/store/index.d.ts +0 -355
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/eventBooking/locales.d.ts +0 -246
- 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/pay/toC/serve.d.ts +0 -62
- package/lib/components/pinModal/locales.d.ts +0 -27
- package/lib/components/pinVerifyModal/locales.d.ts +0 -24
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
- 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/locales.d.ts +0 -33
- package/lib/components/shoppingCart/type.d.ts +0 -48
- 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/types.d.ts +0 -126
- package/lib/components/taxSelect/locales.d.ts +0 -24
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -5
- package/lib/components/ticketBooking/index.d.ts +0 -8
- package/lib/components/ticketBooking/locales.d.ts +0 -174
- package/lib/components/ticketBooking/serve.d.ts +0 -287
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/index.d.ts +0 -25
- 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 -11
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clientCard/types.d.ts +0 -135
- package/lib/plus/clinetSearch/locales.d.ts +0 -108
- package/lib/plus/contactInfo/locales.d.ts +0 -15
- package/lib/plus/contactInfoModal/locales.d.ts +0 -66
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +0 -21
- 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/saasRole/locales.d.ts +0 -193
- package/lib/plus/saasRole/types.d.ts +0 -175
- package/lib/plus/saasTeamMembers/locales.d.ts +0 -330
- package/lib/plus/saasTeamMembers/type.d.ts +0 -156
- package/lib/plus/selectHolder/locales.d.ts +0 -27
- 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/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/lib/pro/numberKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
|
3
|
-
declare class Request {
|
|
4
|
-
private request;
|
|
5
|
-
constructor();
|
|
6
|
-
setRequest(val: any): void;
|
|
7
|
-
getRequest(): {
|
|
8
|
-
get: RType;
|
|
9
|
-
post: RType;
|
|
10
|
-
put: RType;
|
|
11
|
-
remove: RType;
|
|
12
|
-
custom: RType;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare const request: Request;
|
|
16
|
-
/**
|
|
17
|
-
* @title: 格式化持续时长用于展示
|
|
18
|
-
* @description:
|
|
19
|
-
* @param {number} service_times
|
|
20
|
-
* @return {*}
|
|
21
|
-
* @Author: zhiwei.Wang
|
|
22
|
-
* @Date: 2024-04-26 14:00
|
|
23
|
-
*/
|
|
24
|
-
export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
|
|
25
|
-
/**
|
|
26
|
-
* @title: 时间切片
|
|
27
|
-
* @description:
|
|
28
|
-
* @param {any} config
|
|
29
|
-
* @param {string} locale
|
|
30
|
-
* @return {*}
|
|
31
|
-
* @Author: zhiwei.Wang
|
|
32
|
-
* @Date: 2024-04-26 13:59
|
|
33
|
-
*/
|
|
34
|
-
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
|
|
35
|
-
timeSlices: {
|
|
36
|
-
label: string;
|
|
37
|
-
value: string;
|
|
38
|
-
}[];
|
|
39
|
-
durationSlicesBasedOnTime: {
|
|
40
|
-
label: string;
|
|
41
|
-
value: number;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
44
|
-
export declare const getNowTime: () => string;
|
|
45
|
-
export declare const isNowTime: (time: string) => boolean;
|
|
46
|
-
/**
|
|
47
|
-
* @title: 获取服务的开始时间, 如果是now 转换为当前的时间
|
|
48
|
-
* @description:
|
|
49
|
-
* @param {string} start_time
|
|
50
|
-
* @return {*}
|
|
51
|
-
* @Author: zhiwei.Wang
|
|
52
|
-
* @Date: 2024-04-26 14:03
|
|
53
|
-
*/
|
|
54
|
-
export declare const getServeStartTime: (start_time: string) => string;
|
|
55
|
-
/**
|
|
56
|
-
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
57
|
-
* @description:
|
|
58
|
-
* @param {any} item
|
|
59
|
-
* @param {any} currentDate
|
|
60
|
-
* @return {*}
|
|
61
|
-
* @Author: zhiwei.Wang
|
|
62
|
-
* @Date: 2024-04-26 14:04
|
|
63
|
-
*/
|
|
64
|
-
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
65
|
-
export declare const findNextSlice: ({ timeSlices, index, date, }: {
|
|
66
|
-
timeSlices: any[];
|
|
67
|
-
index?: number | undefined;
|
|
68
|
-
date?: string | undefined;
|
|
69
|
-
}) => any;
|
|
70
|
-
export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
|
|
71
|
-
export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
|
|
72
|
-
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
|
|
73
|
-
/**
|
|
74
|
-
* @title: 查找是否有可用的time
|
|
75
|
-
* @description:
|
|
76
|
-
* @param {any} resourceItem
|
|
77
|
-
* @return {*}
|
|
78
|
-
* @Author: zhiwei.Wang
|
|
79
|
-
* @Date: 2024-01-09 13:57
|
|
80
|
-
*/
|
|
81
|
-
export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
|
|
82
|
-
/**
|
|
83
|
-
* @title: 获取店铺的营业结束时间
|
|
84
|
-
* @description:
|
|
85
|
-
* @return {*}
|
|
86
|
-
* @Author: zhiwei.Wang
|
|
87
|
-
* @Date: 2024-02-23 10:00
|
|
88
|
-
*/
|
|
89
|
-
export declare const getShopOpeningHours: () => string;
|
|
90
|
-
/**
|
|
91
|
-
* @title: 对灵活时长进行处理
|
|
92
|
-
* @description:
|
|
93
|
-
* @return {*}
|
|
94
|
-
* @Author: zhiwei.Wang
|
|
95
|
-
* @Date: 2024-02-23 10:00
|
|
96
|
-
*/
|
|
97
|
-
export declare const flexibleObj: {
|
|
98
|
-
create: (num: number) => any;
|
|
99
|
-
getValue: (str: string | number) => number;
|
|
100
|
-
isFlexible: (str: string | number) => boolean;
|
|
101
|
-
add: (current: number | string, duration: number) => any;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* @title: 获取结束时间
|
|
105
|
-
* @description: 取 endDate | 店铺营业时间 最小的那一个
|
|
106
|
-
* @param {any} startDate
|
|
107
|
-
* @param {string} duration
|
|
108
|
-
* @param {any} endDate
|
|
109
|
-
* @return {*}
|
|
110
|
-
* @Author: zhiwei.Wang
|
|
111
|
-
* @Date: 2024-02-23 10:01
|
|
112
|
-
*/
|
|
113
|
-
export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
|
|
114
|
-
export declare const getServiceTimes: (service: any) => {
|
|
115
|
-
startDate: dayjs.Dayjs;
|
|
116
|
-
endDate: dayjs.Dayjs;
|
|
117
|
-
};
|
|
118
|
-
export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
|
|
119
|
-
label: any;
|
|
120
|
-
type: string;
|
|
121
|
-
}[];
|
|
122
|
-
/**
|
|
123
|
-
* @title: 格式化资源, 添加自定义参数
|
|
124
|
-
* @description:
|
|
125
|
-
* @param {any} resourceItem
|
|
126
|
-
* @return {*}
|
|
127
|
-
* @Author: zhiwei.Wang
|
|
128
|
-
* @Date: 2024-01-09 13:40
|
|
129
|
-
*/
|
|
130
|
-
export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
|
|
131
|
-
export declare const getLastServer: (list: any) => any;
|
|
132
|
-
export declare const getCacheParams: () => any;
|
|
133
|
-
export declare const deleteCacheParams: () => void;
|
|
134
|
-
/**
|
|
135
|
-
* @title: 获取跨日预约的时长
|
|
136
|
-
* @description:
|
|
137
|
-
* @param {any} cacheItem
|
|
138
|
-
* @return {*}
|
|
139
|
-
* @Author: WangHan
|
|
140
|
-
* @Date: 2024-12-01 22:43
|
|
141
|
-
*/
|
|
142
|
-
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
|
143
|
-
export declare const isSessionProduct: (cacheItem: any) => boolean;
|
|
144
|
-
export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
|
|
145
|
-
export declare const getIsOnlySession: (item: any) => boolean;
|
|
146
|
-
/**
|
|
147
|
-
* @title: 创建一个服务商品
|
|
148
|
-
* @description:
|
|
149
|
-
* @param {any} state
|
|
150
|
-
* @param {any} item
|
|
151
|
-
* @return {*}
|
|
152
|
-
* @Author: zhiwei.Wang
|
|
153
|
-
* @Date: 2024-01-26 14:09
|
|
154
|
-
*/
|
|
155
|
-
export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
|
|
156
|
-
export declare const getMainPrice: (item: any, price?: number) => number;
|
|
157
|
-
export declare const getProductTotalPrice: (item: any) => number;
|
|
158
|
-
/**
|
|
159
|
-
* @title: 判断 duration
|
|
160
|
-
* @description: 用于处理不同格式的duration
|
|
161
|
-
* @param {number} duration
|
|
162
|
-
* @return {*}
|
|
163
|
-
* @Author: zhiwei.Wang
|
|
164
|
-
* @Date: 2024-02-23 10:02
|
|
165
|
-
*/
|
|
166
|
-
export declare const getDuration: (duration: number | {
|
|
167
|
-
type: string;
|
|
168
|
-
value: number;
|
|
169
|
-
}) => number | "flexible" | {
|
|
170
|
-
type: string;
|
|
171
|
-
value: number;
|
|
172
|
-
};
|
|
173
|
-
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
174
|
-
export declare const getIsEdit: (state: any) => boolean;
|
|
175
|
-
export {};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'page.eftpos.text.manufacturer': string;
|
|
4
|
-
'page.eftpos.text.description': string;
|
|
5
|
-
'page.eftpos.text.status': string;
|
|
6
|
-
'page.eftpos.text.operation': string;
|
|
7
|
-
'page.eftpos.text.device': string;
|
|
8
|
-
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
9
|
-
'page.eftpos.text.device.list': string;
|
|
10
|
-
'page.eftpos.text.device.name': string;
|
|
11
|
-
'page.eftpos.text.sucahrge': string;
|
|
12
|
-
'page.eftpos.text.paired': string;
|
|
13
|
-
'page.eftpos.text.unpaired': string;
|
|
14
|
-
'page.eftpos.text.repair': string;
|
|
15
|
-
'page.eftpos.text.edit': string;
|
|
16
|
-
'page.eftpos.text.delete': string;
|
|
17
|
-
'page.eftpos.text.save': string;
|
|
18
|
-
'page.eftpos.text.confim.delete': string;
|
|
19
|
-
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
20
|
-
'page.eftpos.text.confim.cancel': string;
|
|
21
|
-
'page.eftpos.text.table.name': string;
|
|
22
|
-
'page.eftpos.text.table.status': string;
|
|
23
|
-
'page.eftpos.text.table.surcharge': string;
|
|
24
|
-
'page.eftpos.text.table.opeartion': string;
|
|
25
|
-
'page.eftpos.text.table.del.title': string;
|
|
26
|
-
'page.eftpos.text.table.del.text': string;
|
|
27
|
-
'page.eftpos.text.table.del.delete': string;
|
|
28
|
-
'page.eftpos.text.table.del.cancel': string;
|
|
29
|
-
'page.eftpos.text.log': string;
|
|
30
|
-
'page.eftpos.text.setting': string;
|
|
31
|
-
'page.eftpos.text.setting.tip': string;
|
|
32
|
-
'page.eftpos.text.setting.btn': string;
|
|
33
|
-
};
|
|
34
|
-
'zh-CN': {
|
|
35
|
-
'page.eftpos.text.manufacturer': string;
|
|
36
|
-
'page.eftpos.text.description': string;
|
|
37
|
-
'page.eftpos.text.status': string;
|
|
38
|
-
'page.eftpos.text.operation': string;
|
|
39
|
-
'page.eftpos.text.device': string;
|
|
40
|
-
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
41
|
-
'page.eftpos.text.device.list': string;
|
|
42
|
-
'page.eftpos.text.device.name': string;
|
|
43
|
-
'page.eftpos.text.sucahrge': string;
|
|
44
|
-
'page.eftpos.text.paired': string;
|
|
45
|
-
'page.eftpos.text.unpaired': string;
|
|
46
|
-
'page.eftpos.text.repair': string;
|
|
47
|
-
'page.eftpos.text.edit': string;
|
|
48
|
-
'page.eftpos.text.delete': string;
|
|
49
|
-
'page.eftpos.text.save': string;
|
|
50
|
-
'page.eftpos.text.confim.delete': string;
|
|
51
|
-
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
52
|
-
'page.eftpos.text.confim.cancel': string;
|
|
53
|
-
'page.eftpos.text.table.name': string;
|
|
54
|
-
'page.eftpos.text.table.status': string;
|
|
55
|
-
'page.eftpos.text.table.surcharge': string;
|
|
56
|
-
'page.eftpos.text.table.opeartion': string;
|
|
57
|
-
'page.eftpos.text.table.del.title': string;
|
|
58
|
-
'page.eftpos.text.table.del.text': string;
|
|
59
|
-
'page.eftpos.text.table.del.delete': string;
|
|
60
|
-
'page.eftpos.text.table.del.cancel': string;
|
|
61
|
-
'page.eftpos.text.log': string;
|
|
62
|
-
'page.eftpos.text.setting': string;
|
|
63
|
-
'page.eftpos.text.setting.tip': string;
|
|
64
|
-
'page.eftpos.text.setting.btn': string;
|
|
65
|
-
};
|
|
66
|
-
'zh-HK': {
|
|
67
|
-
'page.eftpos.text.manufacturer': string;
|
|
68
|
-
'page.eftpos.text.description': string;
|
|
69
|
-
'page.eftpos.text.status': string;
|
|
70
|
-
'page.eftpos.text.operation': string;
|
|
71
|
-
'page.eftpos.text.device': string;
|
|
72
|
-
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
73
|
-
'page.eftpos.text.device.list': string;
|
|
74
|
-
'page.eftpos.text.device.name': string;
|
|
75
|
-
'page.eftpos.text.sucahrge': string;
|
|
76
|
-
'page.eftpos.text.paired': string;
|
|
77
|
-
'page.eftpos.text.unpaired': string;
|
|
78
|
-
'page.eftpos.text.repair': string;
|
|
79
|
-
'page.eftpos.text.edit': string;
|
|
80
|
-
'page.eftpos.text.delete': string;
|
|
81
|
-
'page.eftpos.text.save': string;
|
|
82
|
-
'page.eftpos.text.confim.delete': string;
|
|
83
|
-
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
84
|
-
'page.eftpos.text.confim.cancel': string;
|
|
85
|
-
'page.eftpos.text.table.name': string;
|
|
86
|
-
'page.eftpos.text.table.status': string;
|
|
87
|
-
'page.eftpos.text.table.surcharge': string;
|
|
88
|
-
'page.eftpos.text.table.opeartion': string;
|
|
89
|
-
'page.eftpos.text.table.del.title': string;
|
|
90
|
-
'page.eftpos.text.table.del.text': string;
|
|
91
|
-
'page.eftpos.text.table.del.delete': string;
|
|
92
|
-
'page.eftpos.text.table.del.cancel': string;
|
|
93
|
-
'page.eftpos.text.log': string;
|
|
94
|
-
'page.eftpos.text.setting': string;
|
|
95
|
-
'page.eftpos.text.setting.tip': string;
|
|
96
|
-
'page.eftpos.text.setting.btn': string;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PosProps, RouteType } from './const';
|
|
3
|
-
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
4
|
-
action: RouteType;
|
|
5
|
-
device_number: string | number;
|
|
6
|
-
api: ReturnType<PosProps['getApi']>;
|
|
7
|
-
isMobile: boolean;
|
|
8
|
-
channel?: string | undefined;
|
|
9
|
-
formatAmount(amount: number | string, precision: number, symbol: string): string;
|
|
10
|
-
}) => React.JSX.Element;
|
|
11
|
-
export default App;
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
export declare enum EftposEnum {
|
|
2
|
-
/** 后端支付 - 仅支付 */
|
|
3
|
-
Payo = "payo",
|
|
4
|
-
/** 前端支付 */
|
|
5
|
-
Tyro = "tyro",
|
|
6
|
-
/** 后端支付 - 支付 + 退款 */
|
|
7
|
-
Windcave = "windcave",
|
|
8
|
-
Stripe = "stripe",
|
|
9
|
-
Linkly = "linkly"
|
|
10
|
-
}
|
|
11
|
-
export declare enum StatusEnum {
|
|
12
|
-
Loading = "loading",
|
|
13
|
-
Warn = "warn",
|
|
14
|
-
Fail = "fail",
|
|
15
|
-
Success = "success",
|
|
16
|
-
Pedding = "pedding",
|
|
17
|
-
Resove = "resove",
|
|
18
|
-
Reject = "reject",
|
|
19
|
-
Question = "question"
|
|
20
|
-
}
|
|
21
|
-
export declare enum ModeEnum {
|
|
22
|
-
/** 支付 */
|
|
23
|
-
Pay = "pay",
|
|
24
|
-
/** 完整支付 */
|
|
25
|
-
FullPay = "fullPay",
|
|
26
|
-
/** 退款 */
|
|
27
|
-
Refund = "refund",
|
|
28
|
-
/** 查询 */
|
|
29
|
-
Query = "query"
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* 崩溃恢复
|
|
33
|
-
*/
|
|
34
|
-
export declare enum RestoreEumn {
|
|
35
|
-
/** 常规 */
|
|
36
|
-
Normal = "normal",
|
|
37
|
-
/** 恢复 */
|
|
38
|
-
Restore = "restore"
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* 订单状态
|
|
42
|
-
*/
|
|
43
|
-
export declare enum OrderEumn {
|
|
44
|
-
/** 恢复 */
|
|
45
|
-
Restore = "restore",
|
|
46
|
-
/** 常规 */
|
|
47
|
-
Normal = "normal",
|
|
48
|
-
/** 成功 */
|
|
49
|
-
Succeed = "succeed",
|
|
50
|
-
/** 失败 */
|
|
51
|
-
Failed = "failed",
|
|
52
|
-
/** 等待 */
|
|
53
|
-
Pending = "pending",
|
|
54
|
-
/** 没有订单状态 */
|
|
55
|
-
Null = "null"
|
|
56
|
-
}
|
|
57
|
-
export declare enum ClientEnum {
|
|
58
|
-
/** 用户端 */
|
|
59
|
-
User = "user",
|
|
60
|
-
/** 商家端 */
|
|
61
|
-
Merchant = "merchant"
|
|
62
|
-
}
|
|
63
|
-
export declare enum RouteEnum {
|
|
64
|
-
/** 改价页 */
|
|
65
|
-
Amount = "amount",
|
|
66
|
-
/** 门店列表页 */
|
|
67
|
-
DeviceList = "deviceList",
|
|
68
|
-
/**支付页 */
|
|
69
|
-
Pay = "pay"
|
|
70
|
-
}
|
|
71
|
-
export declare enum PayRouteEnum {
|
|
72
|
-
Step = "step",
|
|
73
|
-
Unset = "unset"
|
|
74
|
-
}
|
|
75
|
-
export declare type RouteType = `${RouteEnum}`;
|
|
76
|
-
export declare type PayRouteType = `${PayRouteEnum}`;
|
|
77
|
-
export declare type DeviceStatusType = `${EftposEnum}`;
|
|
78
|
-
export declare type StatusType = `${StatusEnum}`;
|
|
79
|
-
export declare type ModeType = `${ModeEnum}`;
|
|
80
|
-
export interface PosProps {
|
|
81
|
-
/** 厂商类型 */
|
|
82
|
-
type: DeviceStatusType;
|
|
83
|
-
getApi: () => {
|
|
84
|
-
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
85
|
-
};
|
|
86
|
-
params: {
|
|
87
|
-
[key: string]: unknown;
|
|
88
|
-
};
|
|
89
|
-
/** 回调 */
|
|
90
|
-
onChangeStatus: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page' | 'print' | 'mark_tx_processed', params?: {
|
|
91
|
-
[keys: string]: unknown;
|
|
92
|
-
} | string, other?: any) => void;
|
|
93
|
-
onChangeParams(...agrn: unknown[]): void;
|
|
94
|
-
terminal: {
|
|
95
|
-
network: boolean;
|
|
96
|
-
};
|
|
97
|
-
device?: {
|
|
98
|
-
[key: string]: unknown;
|
|
99
|
-
};
|
|
100
|
-
mode: ModeEnum;
|
|
101
|
-
tyroUrl?: string;
|
|
102
|
-
tyroVersion?: string;
|
|
103
|
-
source: 'normal' | 'restore';
|
|
104
|
-
}
|
|
105
|
-
export interface PayProps {
|
|
106
|
-
api: ReturnType<PosProps['getApi']>;
|
|
107
|
-
onChange: PosProps['onChangeStatus'];
|
|
108
|
-
className?: string;
|
|
109
|
-
}
|
|
110
|
-
export declare type Amount = {
|
|
111
|
-
name: string;
|
|
112
|
-
/** 订单金额 */
|
|
113
|
-
money: number;
|
|
114
|
-
/** 上一轮操作订单金额 */
|
|
115
|
-
amount: number;
|
|
116
|
-
/** 金额单位 */
|
|
117
|
-
symbol: string;
|
|
118
|
-
/** 手续费-百分率 */
|
|
119
|
-
surRate: number;
|
|
120
|
-
/** 手续费-是否开启 */
|
|
121
|
-
surMoney: number;
|
|
122
|
-
/** 手续费-是否存在 */
|
|
123
|
-
surcharge: boolean;
|
|
124
|
-
/** 是否使用原始手续费 */
|
|
125
|
-
useOriginSurcharge: boolean;
|
|
126
|
-
};
|
|
127
|
-
export declare type PayAmount = {
|
|
128
|
-
/** 手续费-百分比-带百分号 例: 1% =》 数据为 0.01 */
|
|
129
|
-
surPercentRate: string;
|
|
130
|
-
/** 手续费-百分比-不带百分号 例:1% =》 数据为 1 */
|
|
131
|
-
surRate: string;
|
|
132
|
-
/** 手续费-比例金额 amount * surPercentRate */
|
|
133
|
-
surRateMoney: string;
|
|
134
|
-
/** 手续费-固定金额 */
|
|
135
|
-
surMoney: string;
|
|
136
|
-
/** 手续费 = surPercentRate + surMoney */
|
|
137
|
-
surcharge: string;
|
|
138
|
-
/** 支付金额 (不包含手续费) */
|
|
139
|
-
amount: string;
|
|
140
|
-
/** 支付总金额 = amount + surcharge */
|
|
141
|
-
total: string;
|
|
142
|
-
/** 订单金额 */
|
|
143
|
-
sourceAmount: string;
|
|
144
|
-
/** 支付总金额带单位 + 单位 */
|
|
145
|
-
totalUnit: string;
|
|
146
|
-
};
|
|
147
|
-
export declare enum PayStatus {
|
|
148
|
-
'Success' = "200",
|
|
149
|
-
/** 未生成交易记录 */
|
|
150
|
-
'NoPay' = "4004",
|
|
151
|
-
/** 配对失效 */
|
|
152
|
-
'PairingFailure' = "606020",
|
|
153
|
-
/** 支付失败 */
|
|
154
|
-
'Unknown' = "701000",
|
|
155
|
-
/** 交易请求超时 */
|
|
156
|
-
'Timeout' = "701001",
|
|
157
|
-
/** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
|
|
158
|
-
'PayOtherEftposFailed' = "701003",
|
|
159
|
-
/** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
|
|
160
|
-
'PayCardErrorFailed' = "701004",
|
|
161
|
-
/** 断网 向EFTPOS发送消息失败。可能有网络问题,也可能没有连接websocket。 */
|
|
162
|
-
'NoNetWork' = "701005",
|
|
163
|
-
/** 交易等待超时 */
|
|
164
|
-
'PayTimeout' = "701006",
|
|
165
|
-
/** 连接失败 */
|
|
166
|
-
'SocketError' = "701007",
|
|
167
|
-
/** 银行拒绝 */
|
|
168
|
-
'PayBankRefuses' = "701008",
|
|
169
|
-
/** 签名拒绝 */
|
|
170
|
-
'SignatureDeclined' = "701009",
|
|
171
|
-
/** 配置参数错误 */
|
|
172
|
-
'UserConfigError' = "701010"
|
|
173
|
-
}
|
|
174
|
-
export interface ActionProps {
|
|
175
|
-
onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page', params?: {
|
|
176
|
-
[key: string]: unknown;
|
|
177
|
-
} | string) => void;
|
|
178
|
-
api: {
|
|
179
|
-
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
180
|
-
};
|
|
181
|
-
className?: string;
|
|
182
|
-
isMobile?: boolean;
|
|
183
|
-
formatAmount: (amount: number | string, precision: number, symbol: string) => string;
|
|
184
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PayProps, PosProps } from './const';
|
|
3
|
-
import './device.less';
|
|
4
|
-
/**
|
|
5
|
-
* @title: 设备选择页
|
|
6
|
-
* @description: 选择设备信息,无设备增加提示;仅有一条,默认选中跳走;多条记录则停留等待用户选择
|
|
7
|
-
* @return React.Element
|
|
8
|
-
* @Author: hongbing.wang
|
|
9
|
-
* @Date: 2024-08-12 11:40
|
|
10
|
-
*/
|
|
11
|
-
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
12
|
-
api: PayProps['api'];
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
|
-
[keys: string]: unknown;
|
|
16
|
-
} | undefined, other?: any) => void) | undefined;
|
|
17
|
-
onClose: () => void;
|
|
18
|
-
device_number?: string | number | undefined;
|
|
19
|
-
isMobile: boolean;
|
|
20
|
-
net: boolean;
|
|
21
|
-
client: string;
|
|
22
|
-
formatAmount(amount: number | string, precision: number, symbol: string): string;
|
|
23
|
-
}) => React.JSX.Element;
|
|
24
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PayStatus } from './const';
|
|
3
|
-
import { ModeEnum, ClientEnum } from './const';
|
|
4
|
-
export declare const useStoreRef: <T extends {
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
} = {
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
}, U extends {
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
} = {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
}>() => {
|
|
13
|
-
readonly deviceRef: React.MutableRefObject<T>;
|
|
14
|
-
readonly payRef: React.MutableRefObject<U>;
|
|
15
|
-
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
|
-
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
|
-
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
|
-
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
|
-
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
|
-
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
|
-
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
|
-
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* @title: 通用失败处理
|
|
28
|
-
* @description: 固定步骤 错误处理逻辑
|
|
29
|
-
* @return null
|
|
30
|
-
* @Author: hongbing.wang
|
|
31
|
-
* @Date: 2024-08-12 11:54
|
|
32
|
-
*/
|
|
33
|
-
export declare const useFail: (index: number) => (res: {
|
|
34
|
-
code?: `${PayStatus}`;
|
|
35
|
-
}, isMark?: boolean) => void;
|