@pisell/private-materials 6.11.123 → 6.11.125
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 +6 -6
- package/build/lowcode/view.js +1 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/Lists.js +1 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentModal.js +57 -46
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -1
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -1
- package/es/components/ecocup/components/SettingModal/index.d.ts +0 -1
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/es/components/ecocup/cupList/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/linkly/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/list/List.js +9 -4
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/es/components/pay/toB/components/Card/index.d.ts +0 -1
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/shoppingCart/hooks/usePromotionModal.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useSkuModal.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/ticketBooking/utils/index.js +14 -8
- package/es/components/walletList/index.d.ts +0 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +0 -1
- package/es/plus/noteModal/AddTempModal.d.ts +0 -1
- package/es/plus/orderList/components/HandleActions.d.ts +0 -1
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/es/plus/orderList/components/Reset.d.ts +0 -1
- package/es/plus/orderList/components/Toolbar.d.ts +0 -1
- package/es/plus/orderList/config.d.ts +0 -1
- package/es/plus/pisellReservation/PisellReservation.js +381 -221
- package/es/plus/pisellReservation/components/PisellReservationSubcomponents.d.ts +11 -1
- package/es/plus/pisellReservation/components/PisellReservationSubcomponents.js +26 -5
- package/es/plus/pisellReservation/components/ReservationResourceWallResourceSelect.js +3 -4
- package/es/plus/pisellReservation/data/reservationDataUtils.d.ts +10 -1
- package/es/plus/pisellReservation/data/reservationDataUtils.js +57 -3
- package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
- package/es/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +51 -0
- package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/es/plus/pisellReservation/reservationConstants.d.ts +10 -12
- package/es/plus/pisellReservation/reservationConstants.js +6 -3
- package/es/plus/pisellSalesGrid/serve.d.ts +40 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -1
- package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/plus/walletPassGallery/index.d.ts +0 -1
- package/es/plus/webPosLogin/WebPosLogin.js +10 -8
- package/es/pro/Selector/demo.d.ts +0 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.js +1 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentModal.js +45 -35
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -1
- package/lib/components/ecocup/components/SettingModal/index.d.ts +0 -1
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/lib/components/ecocup/cupList/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/linkly/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/list/List.js +33 -27
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -1
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/usePromotionModal.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useSkuModal.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/ticketBooking/utils/index.js +10 -6
- package/lib/components/walletList/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +0 -1
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -1
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/lib/plus/orderList/components/Reset.d.ts +0 -1
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -1
- package/lib/plus/orderList/config.d.ts +0 -1
- package/lib/plus/pisellReservation/PisellReservation.js +325 -170
- package/lib/plus/pisellReservation/components/PisellReservationSubcomponents.d.ts +11 -1
- package/lib/plus/pisellReservation/components/PisellReservationSubcomponents.js +13 -2
- package/lib/plus/pisellReservation/components/ReservationResourceWallResourceSelect.js +2 -3
- package/lib/plus/pisellReservation/data/reservationDataUtils.d.ts +10 -1
- package/lib/plus/pisellReservation/data/reservationDataUtils.js +52 -3
- package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
- package/lib/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +51 -0
- package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/lib/plus/pisellReservation/reservationConstants.d.ts +10 -12
- package/lib/plus/pisellReservation/reservationConstants.js +5 -3
- package/lib/plus/pisellSalesGrid/serve.d.ts +40 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/index.d.ts +0 -1
- package/lib/plus/webPosLogin/WebPosLogin.js +5 -4
- package/lib/pro/Selector/demo.d.ts +0 -1
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/package.json +3 -3
- package/es/components/Sales/Summary/utils.d.ts +0 -58
- package/es/components/appointmentBooking/locales.d.ts +0 -606
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/es/components/booking/components/voucher/utils.d.ts +0 -4
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/es/components/booking/info/header/index.d.ts +0 -4
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -33
- package/es/components/booking/info2/cartClientCard/types.d.ts +0 -19
- package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/es/components/booking/info2/model/index.d.ts +0 -1
- package/es/components/booking/info2/model/strategy/adapter/index.d.ts +0 -7
- package/es/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +0 -185
- package/es/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +0 -420
- package/es/components/booking/info2/model/strategy/adapter/type.d.ts +0 -28
- package/es/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +0 -84
- package/es/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +0 -4
- package/es/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +0 -32
- package/es/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/es/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +0 -165
- package/es/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +0 -50
- package/es/components/booking/info2/model/strategy/index.d.ts +0 -107
- package/es/components/booking/info2/model/strategy/strategy-example.d.ts +0 -5
- package/es/components/booking/info2/model/strategy/type.d.ts +0 -228
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -28
- package/es/components/booking/info2/service/openNormalService.d.ts +0 -37
- package/es/components/booking/locales.d.ts +0 -1581
- package/es/components/booking/model.d.ts +0 -121
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/es/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/es/components/checkout/constants.d.ts +0 -2
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/es/components/checkout/locales.d.ts +0 -856
- package/es/components/checkout/styles.d.ts +0 -67
- package/es/components/checkout/types.d.ts +0 -130
- package/es/components/checkout/utils.d.ts +0 -3
- package/es/components/ecocup/cupList/const.d.ts +0 -144
- package/es/components/ecocup/utils/download.d.ts +0 -7
- package/es/components/ecocup/utils/index.d.ts +0 -2
- package/es/components/eftpos/const.d.ts +0 -64
- package/es/components/eftpos/device.d.ts +0 -9
- package/es/components/eftpos/hooks.d.ts +0 -34
- package/es/components/eftpos/index.d.ts +0 -47
- package/es/components/eftpos/locales.d.ts +0 -163
- package/es/components/eftpos/table.d.ts +0 -21
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- 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 -10
- package/es/components/eftposPay/component/signature/index.d.ts +0 -9
- package/es/components/eftposPay/const.d.ts +0 -195
- package/es/components/eftposPay/hooks.d.ts +0 -36
- package/es/components/eftposPay/huifu/const.d.ts +0 -5
- package/es/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/es/components/eftposPay/huifu/types.d.ts +0 -14
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/locales.d.ts +0 -608
- 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/store/index.d.ts +0 -358
- package/es/components/eftposPay/tip.d.ts +0 -10
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/eftposPay/utils/log/index.d.ts +0 -110
- package/es/components/eftposPay/windcave/helper.d.ts +0 -23
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -23
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -7
- package/es/components/kioskSkuDetail/locales.d.ts +0 -43
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/locales.d.ts +0 -108
- package/es/components/list/types.d.ts +0 -181
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -19
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -5
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/locales.d.ts +0 -88
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/types/index.d.ts +0 -81
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/es/components/pay/toC/locales.d.ts +0 -511
- package/es/components/pay/toC/model.d.ts +0 -41
- package/es/components/pay/toC/payGroup.d.ts +0 -48
- package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -133
- package/es/components/ruleSetting/locales.d.ts +0 -78
- package/es/components/schedules/locales.d.ts +0 -143
- package/es/components/shoppingCart/locales.d.ts +0 -93
- package/es/components/shoppingCart/mock.d.ts +0 -54
- package/es/components/shoppingCart/type.d.ts +0 -61
- package/es/components/subTotal/locales.d.ts +0 -71
- package/es/components/systemSettings/registry/locales.d.ts +0 -534
- package/es/components/systemSettings/registry/services.d.ts +0 -97
- package/es/components/systemSettings/registry/types.d.ts +0 -140
- package/es/components/taxSelect/locales.d.ts +0 -38
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -94
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -29
- package/es/components/ticketBooking/context/PlatformContext.d.ts +0 -22
- package/es/components/ticketBooking/context/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/useRuntime.d.ts +0 -4
- package/es/components/ticketBooking/hooks/useSync.d.ts +0 -21
- package/es/components/ticketBooking/locales.d.ts +0 -388
- package/es/components/ticketBooking/miniRedux.d.ts +0 -22
- package/es/components/ticketBooking/sync.d.ts +0 -8
- package/es/components/ticketBooking/utils/edit.d.ts +0 -1
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/hooks/printer.d.ts +0 -4
- package/es/hooks/useEngineContext.d.ts +0 -4
- package/es/hooks/useLogger.d.ts +0 -2
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/plus/noteModal/locales.d.ts +0 -53
- package/es/plus/noteModal/types.d.ts +0 -19
- package/es/plus/orderList/locales.d.ts +0 -618
- package/es/plus/pisellFinancialSummary/components/Collapse/Collapse.d.ts +0 -8
- package/es/plus/pisellFinancialSummary/components/Collapse/Collapse.stories.d.ts +0 -7
- package/es/plus/pisellFinancialSummary/components/Collapse/index.d.ts +0 -2
- package/es/plus/pisellFinancialSummary/components/Collapse/types.d.ts +0 -48
- package/es/plus/pisellFinancialSummary/locales.d.ts +0 -28
- package/es/plus/pisellFinancialSummary/types.d.ts +0 -139
- package/es/plus/pisellFinancialSummary/utils/buildSummaryItems.d.ts +0 -44
- package/es/plus/pisellFinancialSummary/utils/index.d.ts +0 -2
- package/es/plus/pisellReservation/components/bookingDetailModal/bookingProductToProductCard.d.ts +0 -10
- package/es/plus/pisellReservation/data/filterBookingsAtTimeCursor.d.ts +0 -9
- package/es/plus/pisellReservation/floorRoomCard/floorRoomCardDom.d.ts +0 -3
- package/es/plus/pisellReservation/floorRoomCard/floorRoomCardHeaderFormat.d.ts +0 -3
- package/es/plus/pisellReservation/floorRoomCard/floorRoomCardModel.d.ts +0 -59
- package/es/plus/pisellReservation/floorRoomCard/floorRoomCardPaymentUi.d.ts +0 -9
- package/es/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -10
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -12
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -5
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardShellView.d.ts +0 -9
- package/es/plus/pisellReservation/locales/locales-ja.d.ts +0 -143
- package/es/plus/pisellReservation/locales/locales-pt.d.ts +0 -143
- package/es/plus/pisellReservation/locales/locales.d.ts +0 -708
- package/es/plus/pisellSalesGrid/types.d.ts +0 -197
- package/es/plus/pisellSalesManagement/hooks/saas_shop_pos.code-workspace +0 -14
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -173
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/es/plus/saasTeamMembers/locales.d.ts +0 -546
- package/es/plus/selectHolder/locales.d.ts +0 -38
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -53
- package/es/plus/skuOptionsSelection/types.d.ts +0 -445
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/es/plus/walletPassGallery/locales.d.ts +0 -473
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
- package/es/plus/webPosLogin/locales.d.ts +0 -92
- package/es/plus/webPosLogin/types.d.ts +0 -288
- package/es/pro/Cards/components/SKUCard/types.d.ts +0 -73
- package/es/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/es/pro/Login2.0/components/phoneValidation.d.ts +0 -17
- package/es/pro/Login2.0/shared/types.d.ts +0 -234
- package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/es/pro/priceKeyboard/utils.d.ts +0 -31
- package/es/pro/skuDetailModal/locales.d.ts +0 -129
- package/es/pro/skuDetailModal/types.d.ts +0 -395
- package/es/pro/skuDetailModal/utils.d.ts +0 -56
- package/es/shared/locales/stock.d.ts +0 -57
- package/es/test/setup.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +0 -58
- package/lib/components/appointmentBooking/locales.d.ts +0 -606
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/lib/components/booking/components/voucher/utils.d.ts +0 -4
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/lib/components/booking/info/header/index.d.ts +0 -4
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -33
- package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -19
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/lib/components/booking/info2/model/index.d.ts +0 -1
- package/lib/components/booking/info2/model/strategy/adapter/index.d.ts +0 -7
- package/lib/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +0 -185
- package/lib/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +0 -420
- package/lib/components/booking/info2/model/strategy/adapter/type.d.ts +0 -28
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +0 -84
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +0 -4
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +0 -32
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +0 -165
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +0 -50
- package/lib/components/booking/info2/model/strategy/index.d.ts +0 -107
- package/lib/components/booking/info2/model/strategy/strategy-example.d.ts +0 -5
- package/lib/components/booking/info2/model/strategy/type.d.ts +0 -228
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -28
- package/lib/components/booking/info2/service/openNormalService.d.ts +0 -37
- package/lib/components/booking/locales.d.ts +0 -1581
- package/lib/components/booking/model.d.ts +0 -121
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/lib/components/checkout/constants.d.ts +0 -2
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/lib/components/checkout/locales.d.ts +0 -856
- package/lib/components/checkout/styles.d.ts +0 -67
- package/lib/components/checkout/types.d.ts +0 -130
- package/lib/components/checkout/utils.d.ts +0 -3
- package/lib/components/ecocup/cupList/const.d.ts +0 -144
- package/lib/components/ecocup/utils/download.d.ts +0 -7
- package/lib/components/ecocup/utils/index.d.ts +0 -2
- package/lib/components/eftpos/const.d.ts +0 -64
- package/lib/components/eftpos/device.d.ts +0 -9
- package/lib/components/eftpos/hooks.d.ts +0 -34
- package/lib/components/eftpos/index.d.ts +0 -47
- package/lib/components/eftpos/locales.d.ts +0 -163
- package/lib/components/eftpos/table.d.ts +0 -21
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- 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 -10
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -9
- package/lib/components/eftposPay/const.d.ts +0 -195
- package/lib/components/eftposPay/hooks.d.ts +0 -36
- package/lib/components/eftposPay/huifu/const.d.ts +0 -5
- package/lib/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/lib/components/eftposPay/huifu/types.d.ts +0 -14
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/locales.d.ts +0 -608
- 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/store/index.d.ts +0 -358
- package/lib/components/eftposPay/tip.d.ts +0 -10
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
- package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -23
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -43
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/locales.d.ts +0 -108
- package/lib/components/list/types.d.ts +0 -181
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -19
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -5
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/locales.d.ts +0 -88
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/types/index.d.ts +0 -81
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/lib/components/pay/toC/locales.d.ts +0 -511
- package/lib/components/pay/toC/model.d.ts +0 -41
- package/lib/components/pay/toC/payGroup.d.ts +0 -48
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -133
- package/lib/components/ruleSetting/locales.d.ts +0 -78
- package/lib/components/schedules/locales.d.ts +0 -143
- package/lib/components/shoppingCart/locales.d.ts +0 -93
- package/lib/components/shoppingCart/mock.d.ts +0 -54
- package/lib/components/shoppingCart/type.d.ts +0 -61
- package/lib/components/subTotal/locales.d.ts +0 -71
- package/lib/components/systemSettings/registry/locales.d.ts +0 -534
- package/lib/components/systemSettings/registry/services.d.ts +0 -97
- package/lib/components/systemSettings/registry/types.d.ts +0 -140
- package/lib/components/taxSelect/locales.d.ts +0 -38
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -94
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -29
- package/lib/components/ticketBooking/context/PlatformContext.d.ts +0 -22
- package/lib/components/ticketBooking/context/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/useRuntime.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/useSync.d.ts +0 -21
- package/lib/components/ticketBooking/locales.d.ts +0 -388
- package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
- package/lib/components/ticketBooking/sync.d.ts +0 -8
- package/lib/components/ticketBooking/utils/edit.d.ts +0 -1
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/hooks/printer.d.ts +0 -4
- package/lib/hooks/useEngineContext.d.ts +0 -4
- package/lib/hooks/useLogger.d.ts +0 -2
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/plus/noteModal/locales.d.ts +0 -53
- package/lib/plus/noteModal/types.d.ts +0 -19
- package/lib/plus/orderList/locales.d.ts +0 -618
- package/lib/plus/pisellFinancialSummary/components/Collapse/Collapse.d.ts +0 -8
- package/lib/plus/pisellFinancialSummary/components/Collapse/Collapse.stories.d.ts +0 -7
- package/lib/plus/pisellFinancialSummary/components/Collapse/index.d.ts +0 -2
- package/lib/plus/pisellFinancialSummary/components/Collapse/types.d.ts +0 -48
- package/lib/plus/pisellFinancialSummary/locales.d.ts +0 -28
- package/lib/plus/pisellFinancialSummary/types.d.ts +0 -139
- package/lib/plus/pisellFinancialSummary/utils/buildSummaryItems.d.ts +0 -44
- package/lib/plus/pisellFinancialSummary/utils/index.d.ts +0 -2
- package/lib/plus/pisellReservation/components/bookingDetailModal/bookingProductToProductCard.d.ts +0 -10
- package/lib/plus/pisellReservation/data/filterBookingsAtTimeCursor.d.ts +0 -9
- package/lib/plus/pisellReservation/floorRoomCard/floorRoomCardDom.d.ts +0 -3
- package/lib/plus/pisellReservation/floorRoomCard/floorRoomCardHeaderFormat.d.ts +0 -3
- package/lib/plus/pisellReservation/floorRoomCard/floorRoomCardModel.d.ts +0 -59
- package/lib/plus/pisellReservation/floorRoomCard/floorRoomCardPaymentUi.d.ts +0 -9
- package/lib/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -10
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -12
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -5
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardShellView.d.ts +0 -9
- package/lib/plus/pisellReservation/locales/locales-ja.d.ts +0 -143
- package/lib/plus/pisellReservation/locales/locales-pt.d.ts +0 -143
- package/lib/plus/pisellReservation/locales/locales.d.ts +0 -708
- package/lib/plus/pisellSalesGrid/types.d.ts +0 -197
- package/lib/plus/pisellSalesManagement/hooks/saas_shop_pos.code-workspace +0 -14
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -173
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/lib/plus/saasTeamMembers/locales.d.ts +0 -546
- package/lib/plus/selectHolder/locales.d.ts +0 -38
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -53
- package/lib/plus/skuOptionsSelection/types.d.ts +0 -445
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/lib/plus/walletPassGallery/locales.d.ts +0 -473
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
- package/lib/plus/webPosLogin/locales.d.ts +0 -92
- package/lib/plus/webPosLogin/types.d.ts +0 -288
- package/lib/pro/Cards/components/SKUCard/types.d.ts +0 -73
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +0 -17
- package/lib/pro/Login2.0/shared/types.d.ts +0 -234
- package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/lib/pro/priceKeyboard/utils.d.ts +0 -31
- package/lib/pro/skuDetailModal/locales.d.ts +0 -129
- package/lib/pro/skuDetailModal/types.d.ts +0 -395
- package/lib/pro/skuDetailModal/utils.d.ts +0 -56
- package/lib/shared/locales/stock.d.ts +0 -57
- package/lib/test/setup.d.ts +0 -1
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { StrategyConfig } from '../../type';
|
|
2
|
-
import { Voucher, Product, VoucherEvaluationResult, EvaluatorInput } from './type';
|
|
3
|
-
/**
|
|
4
|
-
* Wallet Pass 评估器
|
|
5
|
-
* 用于评估哪些 voucher 可以在当前订单中使用
|
|
6
|
-
*/
|
|
7
|
-
export declare class WalletPassEvaluator {
|
|
8
|
-
private engine;
|
|
9
|
-
private strategyConfigs;
|
|
10
|
-
private locale;
|
|
11
|
-
constructor();
|
|
12
|
-
setStrategyConfigs(strategyConfigs: StrategyConfig[]): void;
|
|
13
|
-
getStrategyConfigs(): StrategyConfig[];
|
|
14
|
-
setLocale(locale: string): void;
|
|
15
|
-
getText(key: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* 搜索券的格式
|
|
18
|
-
* @param input 输入
|
|
19
|
-
* @returns 返回搜索券的格式
|
|
20
|
-
*/
|
|
21
|
-
searchVoucherFormat(input: EvaluatorInput): Voucher[];
|
|
22
|
-
/**
|
|
23
|
-
* 评估可用的 vouchers
|
|
24
|
-
*/
|
|
25
|
-
evaluate(input: EvaluatorInput): VoucherEvaluationResult[];
|
|
26
|
-
/** 检查代金券/折扣卡是否可用 并返回config */
|
|
27
|
-
checkVoucherAvailability(input: EvaluatorInput): {
|
|
28
|
-
isAvailable: boolean;
|
|
29
|
-
config: {
|
|
30
|
-
[x: string]: any;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* 获取推荐券
|
|
35
|
-
* @param input 输入
|
|
36
|
-
* @returns 返回推荐券列表
|
|
37
|
-
*/
|
|
38
|
-
getRecommendedVouchers(input: EvaluatorInput): {
|
|
39
|
-
recommendedAmount: any;
|
|
40
|
-
recommended: any[];
|
|
41
|
-
transformList: any[];
|
|
42
|
-
noApplicableVoucher: Voucher[];
|
|
43
|
-
};
|
|
44
|
-
enhanceWithReason(voucher: any): any;
|
|
45
|
-
/**
|
|
46
|
-
* 优惠券处理函数
|
|
47
|
-
* @param applicableVouchers 可用的券列表
|
|
48
|
-
* @param orderTotalAmount 订单总金额
|
|
49
|
-
* @param products 订单商品列表
|
|
50
|
-
* @returns 返回推荐券列表和全部列表,每个券包含 _available_max_amount 和 _unified_available_status
|
|
51
|
-
*/
|
|
52
|
-
processVouchers(vouchers: Voucher[], orderTotalAmount: number, products: Product[]): {
|
|
53
|
-
recommended: any[];
|
|
54
|
-
transformList: any[];
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* 重新计算优惠券状态(基于已选券的增量计算)
|
|
58
|
-
* @param allVouchers 所有原始券列表
|
|
59
|
-
* @param selectedVouchers 已选中的券列表(按选中顺序)
|
|
60
|
-
* @param orderTotalAmount 订单总金额
|
|
61
|
-
* @param products 订单商品列表
|
|
62
|
-
* @returns 返回更新后的所有券列表和已选券的详细抵扣信息
|
|
63
|
-
*/
|
|
64
|
-
recalculateVouchers(allVouchers: any[], selectedVouchers: any[], orderTotalAmount: number, products: any[]): {
|
|
65
|
-
allWithUpdatedStatus: any[];
|
|
66
|
-
selectedWithDetails: any[];
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* 查找适用于指定 voucher 的策略配置
|
|
70
|
-
*/
|
|
71
|
-
private findApplicableStrategies;
|
|
72
|
-
/**
|
|
73
|
-
* 检查策略中是否包含指定的 voucher ID
|
|
74
|
-
*/
|
|
75
|
-
private checkVoucherInStrategy;
|
|
76
|
-
/**
|
|
77
|
-
* 递归检查条件组中是否包含 voucher ID
|
|
78
|
-
*/
|
|
79
|
-
private checkVoucherInConditionGroup;
|
|
80
|
-
/**
|
|
81
|
-
* 计算适用商品的总金额和数量
|
|
82
|
-
*/
|
|
83
|
-
private calculateApplicableProducts;
|
|
84
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { EvaluationResult, RuntimeContext } from '../../type';
|
|
2
|
-
import { BusinessAdapter } from '../type';
|
|
3
|
-
import { WalletPassBusinessData, WalletPassTransformResult } from './type';
|
|
4
|
-
/**
|
|
5
|
-
* Wallet Pass 适配器
|
|
6
|
-
* 用于将 wallet pass 业务数据转换为策略引擎可识别的格式
|
|
7
|
-
*/
|
|
8
|
-
export default class WalletPassAdapter implements BusinessAdapter {
|
|
9
|
-
name: string;
|
|
10
|
-
version: string;
|
|
11
|
-
/**
|
|
12
|
-
* 准备运行时上下文
|
|
13
|
-
* 将业务数据转换为策略引擎可识别的 RuntimeContext
|
|
14
|
-
*/
|
|
15
|
-
prepareContext(businessData: WalletPassBusinessData): RuntimeContext;
|
|
16
|
-
/**
|
|
17
|
-
* 转换执行结果
|
|
18
|
-
* 将策略引擎的通用结果转换为业务层需要的格式
|
|
19
|
-
*/
|
|
20
|
-
transformResult(result: EvaluationResult, businessData?: WalletPassBusinessData): WalletPassTransformResult;
|
|
21
|
-
/**
|
|
22
|
-
* 格式化配置
|
|
23
|
-
*/
|
|
24
|
-
formatConfig(result: EvaluationResult, businessData?: WalletPassBusinessData): {
|
|
25
|
-
result: EvaluationResult;
|
|
26
|
-
businessData?: WalletPassBusinessData;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* 计算适用商品的总金额和数量
|
|
30
|
-
*/
|
|
31
|
-
private calculateApplicableProducts;
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const locales: Record<string, Record<string, string>>;
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { EvaluationResult, StrategyConfig } from '../../type';
|
|
2
|
-
/**
|
|
3
|
-
* Voucher 数据结构
|
|
4
|
-
*/
|
|
5
|
-
export interface Voucher {
|
|
6
|
-
id: number;
|
|
7
|
-
amount: number;
|
|
8
|
-
balance: number;
|
|
9
|
-
type?: string;
|
|
10
|
-
usedCount?: number;
|
|
11
|
-
available_product_type?: 'product_all' | 'product_collection' | 'products';
|
|
12
|
-
available_product_ids?: number[];
|
|
13
|
-
product_id: number;
|
|
14
|
-
unified_available_status: number;
|
|
15
|
-
/** 用户手动编辑的金额,优先于 recommended_usage_amount 使用 */
|
|
16
|
-
edit_current_amount?: number;
|
|
17
|
-
/** 前端基于策略返回的 不可用状态 */
|
|
18
|
-
_unified_available_status?: number;
|
|
19
|
-
/** 前端基于策略返回的 可用最大金额 */
|
|
20
|
-
_available_max_amount?: number;
|
|
21
|
-
/** 前端基于策略返回的 不可用原因 */
|
|
22
|
-
reason?: string;
|
|
23
|
-
/** 前端基于策略返回的 不可用原因码 */
|
|
24
|
-
reasonCode?: string;
|
|
25
|
-
/** 后端计算推荐使用金额 */
|
|
26
|
-
recommended_usage_amount: number;
|
|
27
|
-
/** 后端计算推荐使用金额(仅商品) 不包含税费附加费 */
|
|
28
|
-
recommended_pure_product_usage_amount: number;
|
|
29
|
-
/** 实际抵扣金额 */
|
|
30
|
-
actualDeduction: number;
|
|
31
|
-
/** 抵扣详情 */
|
|
32
|
-
deductionDetails: any[];
|
|
33
|
-
config?: {
|
|
34
|
-
/** 最大抵扣金额 */
|
|
35
|
-
maxDeductionAmount: number;
|
|
36
|
-
/** 每单最多使用张数(同一 product_id 的券)。默认为 0,表示不限制数量。 */
|
|
37
|
-
maxUsagePerOrder: number;
|
|
38
|
-
/** 是否抵扣税费与附加费 */
|
|
39
|
-
deductTaxAndFee: boolean;
|
|
40
|
-
/** 适用粒度(多商品共用) 默认开启勾选项 */
|
|
41
|
-
allowCrossProduct: boolean;
|
|
42
|
-
/** 可用商品数量上限 (仅多商品) 默认为0,表示不限制商品数量。 */
|
|
43
|
-
applicableProductLimit: number;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* 商品数据结构
|
|
48
|
-
*/
|
|
49
|
-
export interface Product {
|
|
50
|
-
product_id: number;
|
|
51
|
-
price: number;
|
|
52
|
-
quantity: number;
|
|
53
|
-
name?: string;
|
|
54
|
-
selling_price?: number;
|
|
55
|
-
/** 主商品折扣前金额,不包含套餐子商品 */
|
|
56
|
-
main_product_original_price?: number;
|
|
57
|
-
/** 主商品折扣后金额,不包含套餐子商品 */
|
|
58
|
-
main_product_selling_price?: number;
|
|
59
|
-
/** 主商品税费 */
|
|
60
|
-
tax_fee: number;
|
|
61
|
-
metadata: {
|
|
62
|
-
main_product_attached_bundle_tax_fee?: number;
|
|
63
|
-
main_product_attached_bundle_surcharge_fee?: number;
|
|
64
|
-
surcharge_rounding_remainder?: number;
|
|
65
|
-
tax_fee_rounding_remainder?: number;
|
|
66
|
-
main_product_selling_price: number;
|
|
67
|
-
};
|
|
68
|
-
is_price_include_tax: 0 | 1;
|
|
69
|
-
product_bundle: {
|
|
70
|
-
is_price_include_tax: 0 | 1;
|
|
71
|
-
bundle_id: number;
|
|
72
|
-
bundle_product_id: number;
|
|
73
|
-
bundle_variant_id: number;
|
|
74
|
-
price_type: string;
|
|
75
|
-
price_type_ext: string;
|
|
76
|
-
bundle_selling_price: number;
|
|
77
|
-
num: number;
|
|
78
|
-
is_charge_tax: number;
|
|
79
|
-
tax_fee: number;
|
|
80
|
-
metadata: {
|
|
81
|
-
surcharge_fee: number;
|
|
82
|
-
surcharge_rounding_remainder?: number;
|
|
83
|
-
tax_fee_rounding_remainder?: number;
|
|
84
|
-
};
|
|
85
|
-
}[];
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Voucher 评估结果
|
|
89
|
-
*/
|
|
90
|
-
export interface VoucherEvaluationResult {
|
|
91
|
-
voucher: Voucher;
|
|
92
|
-
/** 是否可用 */
|
|
93
|
-
isApplicable: boolean;
|
|
94
|
-
/** 每单可使用张数 */
|
|
95
|
-
canUseCount: number;
|
|
96
|
-
/** 最大抵扣金额 */
|
|
97
|
-
maxDeduction: number;
|
|
98
|
-
/** 是否抵扣税费与附加费 */
|
|
99
|
-
deductTaxAndFee: boolean;
|
|
100
|
-
/** 适用商品ID列表 */
|
|
101
|
-
applicableProductIds: number[];
|
|
102
|
-
/** 不可用原因 */
|
|
103
|
-
reason?: string;
|
|
104
|
-
/** 不可用原因码 */
|
|
105
|
-
reasonCode?: string;
|
|
106
|
-
strategyResult?: EvaluationResult;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* 评估器输入参数
|
|
110
|
-
*/
|
|
111
|
-
export interface EvaluatorInput {
|
|
112
|
-
/** 订单总金额 */
|
|
113
|
-
orderTotalAmount: number;
|
|
114
|
-
/** 商品列表 */
|
|
115
|
-
products: Product[];
|
|
116
|
-
/** 代金券列表 */
|
|
117
|
-
vouchers: Voucher[];
|
|
118
|
-
/** 策略配置列表 */
|
|
119
|
-
strategyConfigs?: StrategyConfig<{
|
|
120
|
-
/** 最大抵扣金额 */
|
|
121
|
-
maxDeductionAmount: number;
|
|
122
|
-
/** 每单最多使用张数(同一 product_id 的券)。默认为 0,表示不限制数量。 */
|
|
123
|
-
maxUsagePerOrder: number;
|
|
124
|
-
/** 是否抵扣税费与附加费 */
|
|
125
|
-
deductTaxAndFee: boolean;
|
|
126
|
-
/** 适用粒度(多商品共用) 默认开启勾选项 */
|
|
127
|
-
allowCrossProduct: boolean;
|
|
128
|
-
/** 可用商品数量上限 (仅多商品) 默认为0,表示不限制商品数量。 */
|
|
129
|
-
applicableProductLimit: number;
|
|
130
|
-
}>[];
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* WalletPassAdapter 业务数据输入
|
|
134
|
-
*/
|
|
135
|
-
export interface WalletPassBusinessData {
|
|
136
|
-
/** 订单总金额 */
|
|
137
|
-
orderTotalAmount: number;
|
|
138
|
-
/** 商品列表 */
|
|
139
|
-
products: Product[];
|
|
140
|
-
/** 当前评估的 voucher */
|
|
141
|
-
voucher: Voucher;
|
|
142
|
-
/** 策略配置 */
|
|
143
|
-
strategyConfig: StrategyConfig;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* WalletPassAdapter 转换结果
|
|
147
|
-
*/
|
|
148
|
-
export interface WalletPassTransformResult {
|
|
149
|
-
/** 是否可用 */
|
|
150
|
-
isApplicable: boolean;
|
|
151
|
-
/** 每单可使用张数 */
|
|
152
|
-
canUseCount: number;
|
|
153
|
-
/** 最大抵扣金额 */
|
|
154
|
-
maxDeduction: number;
|
|
155
|
-
/** 是否抵扣税费与附加费 */
|
|
156
|
-
deductTaxAndFee: boolean;
|
|
157
|
-
/** 适用商品ID列表 */
|
|
158
|
-
applicableProductIds: number[];
|
|
159
|
-
/** 不可用原因 */
|
|
160
|
-
reason?: string;
|
|
161
|
-
/** 不可用原因码 */
|
|
162
|
-
reasonCode?: string;
|
|
163
|
-
/** 原始策略评估结果 */
|
|
164
|
-
strategyResult?: EvaluationResult;
|
|
165
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Product, Voucher } from './type';
|
|
2
|
-
export declare const getApplicableProductIds: (voucher: Voucher) => number[] | null;
|
|
3
|
-
/**
|
|
4
|
-
* 优惠券处理函数
|
|
5
|
-
* @param applicableVouchers 可用的券列表
|
|
6
|
-
* @param orderTotalAmount 订单总金额
|
|
7
|
-
* @param products 订单商品列表
|
|
8
|
-
* @returns 返回推荐券列表和全部列表,每个券包含 _available_max_amount 和 _unified_available_status
|
|
9
|
-
*/
|
|
10
|
-
export declare function processVouchers(applicableVouchers: Voucher[], orderTotalAmount: number, products: Product[]): {
|
|
11
|
-
recommended: any[];
|
|
12
|
-
transformList: any[];
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* 重新计算优惠券状态(基于已选券的增量计算)
|
|
16
|
-
* @param allVouchers 所有原始券列表
|
|
17
|
-
* @param selectedVouchers 已选中的券列表(按选中顺序)
|
|
18
|
-
* @param orderTotalAmount 订单总金额
|
|
19
|
-
* @param products 订单商品列表
|
|
20
|
-
* @returns 返回更新后的所有券列表和已选券的详细抵扣信息
|
|
21
|
-
*/
|
|
22
|
-
export declare function recalculateVouchers(allVouchers: any[], selectedVouchers: any[], orderTotalAmount: number, products: any[]): {
|
|
23
|
-
allWithUpdatedStatus: any[];
|
|
24
|
-
selectedWithDetails: any[];
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* 获取主商品价格
|
|
28
|
-
* @param product 商品
|
|
29
|
-
* @param isDeductTaxAndFee 是否抵扣税费与附加费
|
|
30
|
-
* @returns 商品价格
|
|
31
|
-
*/
|
|
32
|
-
export declare const getMainProductPrice: (product: Product, isDeductTaxAndFee: boolean) => number;
|
|
33
|
-
/**
|
|
34
|
-
* 获取套餐子商品价格
|
|
35
|
-
* @param bundleItem 套餐子商品
|
|
36
|
-
* @param parentQuantity 父商品数量
|
|
37
|
-
* @param isDeductTaxAndFee 是否抵扣税费与附加费
|
|
38
|
-
* @returns 子商品总价格
|
|
39
|
-
*/
|
|
40
|
-
export declare const getBundleItemPrice: (bundleItem: any, parentQuantity: number, isDeductTaxAndFee: boolean) => number;
|
|
41
|
-
/**
|
|
42
|
-
* 获取商品数量
|
|
43
|
-
* @param product 商品
|
|
44
|
-
* @returns 商品数量
|
|
45
|
-
*/
|
|
46
|
-
export declare const getProductQuantity: (product: any) => any;
|
|
47
|
-
export declare const getBundleItemIsOriginalPrice: (item: any) => boolean;
|
|
48
|
-
export declare const getBundleItemIsMarkupPrice: (item: any) => boolean;
|
|
49
|
-
export declare const getBundleItemIsDiscountPrice: (item: any) => boolean;
|
|
50
|
-
export declare const getBundleItemIsMarkupOrDiscountPrice: (item: any) => boolean;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { StrategyConfig, RuntimeContext, EvaluationResult, EngineOptions, OperatorHandler } from './type';
|
|
2
|
-
/**
|
|
3
|
-
* 策略模型 - 核心实现
|
|
4
|
-
*
|
|
5
|
-
* 完全业务无关的通用策略引擎
|
|
6
|
-
* 支持条件评估、动作匹配、结果返回
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* 策略引擎
|
|
10
|
-
*
|
|
11
|
-
* 核心职责:
|
|
12
|
-
* 1. 递归评估条件组
|
|
13
|
-
* 2. 收集满足条件的 actionIds
|
|
14
|
-
* 3. 根据 actionIds 获取 ActionEffect 对象
|
|
15
|
-
* 4. 按 priority 排序返回
|
|
16
|
-
*/
|
|
17
|
-
export declare class StrategyEngine {
|
|
18
|
-
private options;
|
|
19
|
-
private operatorHandlers;
|
|
20
|
-
constructor(options?: EngineOptions);
|
|
21
|
-
/**
|
|
22
|
-
* 评估策略
|
|
23
|
-
*/
|
|
24
|
-
evaluate(config: StrategyConfig, context: RuntimeContext): EvaluationResult;
|
|
25
|
-
/**
|
|
26
|
-
* 递归评估条件组
|
|
27
|
-
*
|
|
28
|
-
* @param group 条件组
|
|
29
|
-
* @param context 运行时上下文
|
|
30
|
-
* @returns 评估结果对象,包含条件是否满足和收集到的 actionIds
|
|
31
|
-
*/
|
|
32
|
-
private evaluateConditionGroup;
|
|
33
|
-
/**
|
|
34
|
-
* 评估条件组的逻辑运算
|
|
35
|
-
*/
|
|
36
|
-
private evaluateGroupLogic;
|
|
37
|
-
/**
|
|
38
|
-
* 评估单个规则
|
|
39
|
-
*/
|
|
40
|
-
private evaluateRule;
|
|
41
|
-
/**
|
|
42
|
-
* 评估代码模式条件
|
|
43
|
-
*/
|
|
44
|
-
private evaluateCodeCondition;
|
|
45
|
-
/**
|
|
46
|
-
* 评估运算符模式条件
|
|
47
|
-
*/
|
|
48
|
-
private evaluateOperatorCondition;
|
|
49
|
-
/**
|
|
50
|
-
* 获取字段值
|
|
51
|
-
*/
|
|
52
|
-
private getFieldValue;
|
|
53
|
-
/**
|
|
54
|
-
* 评估内置运算符
|
|
55
|
-
*/
|
|
56
|
-
private evaluateBuiltInOperator;
|
|
57
|
-
/**
|
|
58
|
-
* 根据 actionIds 获取 ActionEffect 对象
|
|
59
|
-
*/
|
|
60
|
-
private getActionsByIds;
|
|
61
|
-
/**
|
|
62
|
-
* 按 priority 排序(降序)
|
|
63
|
-
*/
|
|
64
|
-
private sortActionsByPriority;
|
|
65
|
-
/**
|
|
66
|
-
* 判断是否为条件组
|
|
67
|
-
*/
|
|
68
|
-
private isConditionGroup;
|
|
69
|
-
/**
|
|
70
|
-
* 验证配置
|
|
71
|
-
*/
|
|
72
|
-
private validateConfig;
|
|
73
|
-
/**
|
|
74
|
-
* 初始化内置运算符处理器
|
|
75
|
-
*/
|
|
76
|
-
private initializeBuiltInOperators;
|
|
77
|
-
/**
|
|
78
|
-
* 评估商品匹配运算符
|
|
79
|
-
*
|
|
80
|
-
* 匹配规则:
|
|
81
|
-
* - 首先匹配 product_id
|
|
82
|
-
* - 如果配置的 product_variant_id = 0,只需要 product_id 匹配(表示任意变体)
|
|
83
|
-
* - 如果配置的 product_variant_id != 0,还需要 product_variant_id 精确匹配
|
|
84
|
-
*
|
|
85
|
-
* @param fieldValue 实际商品 { product_id: number, product_variant_id: number }
|
|
86
|
-
* @param configValue 配置的商品列表 Array<{ product_id: number, product_variant_id: number }>
|
|
87
|
-
* @returns 是否匹配
|
|
88
|
-
*/
|
|
89
|
-
private evaluateProductMatch;
|
|
90
|
-
/**
|
|
91
|
-
* 注册自定义运算符
|
|
92
|
-
*/
|
|
93
|
-
registerOperator(operator: string, handler: OperatorHandler): void;
|
|
94
|
-
/**
|
|
95
|
-
* 获取调试信息
|
|
96
|
-
*/
|
|
97
|
-
getDebugInfo(): Record<string, any>;
|
|
98
|
-
}
|
|
99
|
-
export * from './adapter';
|
|
100
|
-
/**
|
|
101
|
-
* 创建策略引擎实例
|
|
102
|
-
*/
|
|
103
|
-
export declare function createStrategyEngine(options?: EngineOptions): StrategyEngine;
|
|
104
|
-
/**
|
|
105
|
-
* 快速评估(使用默认引擎配置)
|
|
106
|
-
*/
|
|
107
|
-
export declare function evaluate(config: StrategyConfig, context: RuntimeContext): EvaluationResult;
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 策略配置主结构
|
|
3
|
-
*/
|
|
4
|
-
export interface StrategyConfig<T = Record<string, any>> {
|
|
5
|
-
/** 元信息 */
|
|
6
|
-
metadata: StrategyMetadata<T>;
|
|
7
|
-
/** 条件组(可嵌套,每层可绑定动作) */
|
|
8
|
-
conditions: ConditionGroup;
|
|
9
|
-
/** 动作列表(带唯一ID) */
|
|
10
|
-
actions: ActionEffect[];
|
|
11
|
-
/** 展示配置(可选) */
|
|
12
|
-
display?: DisplayConfig;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 策略元信息
|
|
16
|
-
*/
|
|
17
|
-
export interface StrategyMetadata<T = Record<string, any>> {
|
|
18
|
-
/** 策略ID */
|
|
19
|
-
id: string;
|
|
20
|
-
/** 策略名称 */
|
|
21
|
-
name: string | Record<string, string>;
|
|
22
|
-
/** 策略类型(完全可扩展) */
|
|
23
|
-
type: string;
|
|
24
|
-
/** 计算类型 */
|
|
25
|
-
calculationType?: 'single' | 'cumulative';
|
|
26
|
-
/** 版本 */
|
|
27
|
-
version?: string;
|
|
28
|
-
/** 描述 */
|
|
29
|
-
description?: string | Record<string, string>;
|
|
30
|
-
/** 自定义元数据 */
|
|
31
|
-
custom?: T;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* 条件组(支持嵌套)
|
|
35
|
-
*/
|
|
36
|
-
export interface ConditionGroup {
|
|
37
|
-
/** 逻辑运算符 */
|
|
38
|
-
operator: 'and' | 'or' | 'not';
|
|
39
|
-
/** 条件规则列表(可以是单条件或嵌套的条件组) */
|
|
40
|
-
rules: Array<ConditionRule | ConditionGroup>;
|
|
41
|
-
/** 关联的动作ID列表(必填,可以为空数组) */
|
|
42
|
-
actionIds: string[];
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* 条件规则(原子条件)
|
|
46
|
-
* 支持 code 模式使用 eval 执行
|
|
47
|
-
*/
|
|
48
|
-
export interface ConditionRule {
|
|
49
|
-
/** 类型 */
|
|
50
|
-
type: 'code' | 'operator';
|
|
51
|
-
/** 代码(code模式使用,使用eval执行) */
|
|
52
|
-
code?: string;
|
|
53
|
-
/** 维度(完全可扩展) */
|
|
54
|
-
dimension?: string;
|
|
55
|
-
/** 字段名 */
|
|
56
|
-
field?: string;
|
|
57
|
-
/** 运算符 */
|
|
58
|
-
operator?: string;
|
|
59
|
-
/** 比较值 */
|
|
60
|
-
value?: any;
|
|
61
|
-
/** 值类型 */
|
|
62
|
-
valueType?: 'number' | 'string' | 'boolean' | 'array' | 'object' | 'date';
|
|
63
|
-
/** 值单位 */
|
|
64
|
-
valueUnit?: string;
|
|
65
|
-
/** 额外配置 */
|
|
66
|
-
config?: Record<string, any>;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* 动作效果
|
|
70
|
-
*/
|
|
71
|
-
export interface ActionEffect {
|
|
72
|
-
/** 动作的唯一标识 */
|
|
73
|
-
id: string;
|
|
74
|
-
/** 效果类型(完全可扩展) */
|
|
75
|
-
type: string;
|
|
76
|
-
/** 运算符(可选) */
|
|
77
|
-
operator?: string;
|
|
78
|
-
/** 值 */
|
|
79
|
-
value: any;
|
|
80
|
-
/** 值类型 */
|
|
81
|
-
valueType?: 'number' | 'string' | 'boolean' | 'array' | 'object';
|
|
82
|
-
/** 值单位 */
|
|
83
|
-
valueUnit?: string;
|
|
84
|
-
/** 作用目标 */
|
|
85
|
-
target: string;
|
|
86
|
-
/** 优先级(数字越大优先级越高) */
|
|
87
|
-
priority?: number;
|
|
88
|
-
/** 配置(完全可扩展) */
|
|
89
|
-
config?: Record<string, any>;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* 展示配置
|
|
93
|
-
*/
|
|
94
|
-
export interface DisplayConfig {
|
|
95
|
-
/** 商品卡片展示 */
|
|
96
|
-
productCard?: {
|
|
97
|
-
text: string | Record<string, string>;
|
|
98
|
-
type: 'tag' | 'badge' | 'label';
|
|
99
|
-
image?: string;
|
|
100
|
-
style?: Record<string, any>;
|
|
101
|
-
};
|
|
102
|
-
/** 详情页展示 */
|
|
103
|
-
detail?: {
|
|
104
|
-
title: string | Record<string, string>;
|
|
105
|
-
description: string | Record<string, string>;
|
|
106
|
-
image?: string;
|
|
107
|
-
};
|
|
108
|
-
/** 自定义展示配置 */
|
|
109
|
-
custom?: Record<string, any>;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* 运行时上下文结构
|
|
113
|
-
*/
|
|
114
|
-
export interface RuntimeContext {
|
|
115
|
-
/** 实体数据(完全开放,由业务层定义) */
|
|
116
|
-
entities: Record<string, any>;
|
|
117
|
-
/** 属性数据(扁平化的计算值,用于条件判断) */
|
|
118
|
-
attributes: Record<string, any>;
|
|
119
|
-
/** 上下文元数据 */
|
|
120
|
-
metadata: ContextMetadata;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* 上下文元数据
|
|
124
|
-
*/
|
|
125
|
-
export interface ContextMetadata {
|
|
126
|
-
/** 请求ID(用于追踪) */
|
|
127
|
-
requestId?: string;
|
|
128
|
-
/** 时间戳 */
|
|
129
|
-
timestamp: number;
|
|
130
|
-
/** 语言 */
|
|
131
|
-
locale?: string;
|
|
132
|
-
/** 自定义元数据 */
|
|
133
|
-
custom?: Record<string, any>;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* 评估结果结构
|
|
137
|
-
*/
|
|
138
|
-
export interface EvaluationResult {
|
|
139
|
-
/** 是否成功执行(引擎层面) */
|
|
140
|
-
success: boolean;
|
|
141
|
-
/** 策略是否适用(业务层面) */
|
|
142
|
-
applicable: boolean;
|
|
143
|
-
/** 结果码 */
|
|
144
|
-
code: string;
|
|
145
|
-
/** 消息(多语言key或直接文本) */
|
|
146
|
-
message?: string;
|
|
147
|
-
/** 匹配信息 */
|
|
148
|
-
matched: MatchedInfo;
|
|
149
|
-
/** 匹配的动作列表(按priority排序) */
|
|
150
|
-
matchedActions: ActionEffect[];
|
|
151
|
-
/** 输出结果(完全开放,由适配器定义) */
|
|
152
|
-
outputs: Record<string, any>;
|
|
153
|
-
/** 执行轨迹(可选,用于调试) */
|
|
154
|
-
trace?: ExecutionTrace;
|
|
155
|
-
/** 策略配置 */
|
|
156
|
-
config: StrategyConfig;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* 匹配信息
|
|
160
|
-
*/
|
|
161
|
-
export interface MatchedInfo {
|
|
162
|
-
/** 条件是否满足 */
|
|
163
|
-
conditions: boolean;
|
|
164
|
-
/** 收集到的 actionIds */
|
|
165
|
-
actionIds: string[];
|
|
166
|
-
/** 详细匹配信息 */
|
|
167
|
-
details: Record<string, any>;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* 执行轨迹
|
|
171
|
-
*/
|
|
172
|
-
export interface ExecutionTrace {
|
|
173
|
-
/** 执行步骤 */
|
|
174
|
-
steps: TraceStep[];
|
|
175
|
-
/** 总耗时(毫秒) */
|
|
176
|
-
duration: number;
|
|
177
|
-
/** 错误信息 */
|
|
178
|
-
errors?: Array<{
|
|
179
|
-
step: string;
|
|
180
|
-
error: string;
|
|
181
|
-
timestamp: number;
|
|
182
|
-
}>;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* 追踪步骤
|
|
186
|
-
*/
|
|
187
|
-
export interface TraceStep {
|
|
188
|
-
/** 步骤名称 */
|
|
189
|
-
step: string;
|
|
190
|
-
/** 步骤状态 */
|
|
191
|
-
status: 'success' | 'failed' | 'skipped';
|
|
192
|
-
/** 耗时(毫秒) */
|
|
193
|
-
duration: number;
|
|
194
|
-
/** 详细信息 */
|
|
195
|
-
details?: Record<string, any>;
|
|
196
|
-
}
|
|
197
|
-
/** 成功码 */
|
|
198
|
-
export declare const SUCCESS_CODES: {
|
|
199
|
-
readonly SUCCESS: "SUCCESS";
|
|
200
|
-
};
|
|
201
|
-
/** 不适用码 */
|
|
202
|
-
export declare const NOT_APPLICABLE_CODES: {
|
|
203
|
-
readonly CONDITION_NOT_MET: "CONDITION_NOT_MET";
|
|
204
|
-
};
|
|
205
|
-
/** 错误码 */
|
|
206
|
-
export declare const ERROR_CODES: {
|
|
207
|
-
readonly INVALID_CONFIG: "INVALID_CONFIG";
|
|
208
|
-
readonly INVALID_CONTEXT: "INVALID_CONTEXT";
|
|
209
|
-
readonly EVALUATION_ERROR: "EVALUATION_ERROR";
|
|
210
|
-
readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* 引擎配置选项
|
|
214
|
-
*/
|
|
215
|
-
export interface EngineOptions {
|
|
216
|
-
/** 是否启用调试模式 */
|
|
217
|
-
debug?: boolean;
|
|
218
|
-
/** 是否启用追踪 */
|
|
219
|
-
enableTrace?: boolean;
|
|
220
|
-
/** 运算符处理器映射 */
|
|
221
|
-
operatorHandlers?: Record<string, OperatorHandler>;
|
|
222
|
-
/** 自定义错误处理器 */
|
|
223
|
-
errorHandler?: (error: Error, context: RuntimeContext) => void;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* 运算符处理器
|
|
227
|
-
*/
|
|
228
|
-
export declare type OperatorHandler = (fieldValue: any, compareValue: any, rule: ConditionRule) => boolean;
|