@pisell/private-materials 6.11.48 → 6.11.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +5 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +26 -3
- package/es/components/booking/info/service2/Group/utils.js +8 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +2 -23
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +5 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +29 -6
- package/lib/components/booking/info/service2/Group/utils.js +8 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +8 -22
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/Sales/Cart/utils.d.ts +0 -68
- package/es/components/Sales/Checkout/utils.d.ts +0 -41
- package/es/components/Sales/Summary/index.d.ts +0 -37
- package/es/components/Sales/Summary/utils.d.ts +0 -58
- package/es/components/appointmentBooking/locales.d.ts +0 -606
- package/es/components/booking/components/voucher/utils.d.ts +0 -4
- package/es/components/booking/dashboard/serve.d.ts +0 -2
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/booking/forms/serve.d.ts +0 -18
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/client/serve.d.ts +0 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
- package/es/components/booking/info/pet/serve.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/serve.d.ts +0 -34
- 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/serve.d.ts +0 -6
- package/es/components/booking/info2/service/openNormalService.d.ts +0 -37
- package/es/components/booking/locales.d.ts +0 -1586
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- 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/components/CupActionModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -36
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/es/components/ecocup/components/SettingModal/const.d.ts +0 -6
- package/es/components/ecocup/cupList/const.d.ts +0 -144
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/ecocup/customerList/const.d.ts +0 -44
- package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/es/components/ecocup/hooks.d.ts +0 -57
- package/es/components/ecocup/locales.d.ts +0 -653
- package/es/components/ecocup/types.d.ts +0 -103
- package/es/components/ecocup/utils/download.d.ts +0 -7
- package/es/components/ecocup/utils/index.d.ts +0 -2
- package/es/components/ecocup/utils/scanListener.d.ts +0 -20
- package/es/components/eftpos/const.d.ts +0 -64
- package/es/components/eftpos/hooks.d.ts +0 -33
- package/es/components/eftpos/locales.d.ts +0 -163
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/es/components/eftposPay/const.d.ts +0 -195
- package/es/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/es/components/eftposPay/huifu/types.d.ts +0 -14
- package/es/components/eftposPay/locales.d.ts +0 -608
- package/es/components/eftposPay/manufacturer.d.ts +0 -8
- package/es/components/eftposPay/store/index.d.ts +0 -362
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -61
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/es/components/kioskSkuDetail/locales.d.ts +0 -43
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- 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/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/types/index.d.ts +0 -81
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
- 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 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
- package/es/components/pay/toC/locales.d.ts +0 -511
- 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/Provider.d.ts +0 -3
- 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 -58
- package/es/components/subTotal/locales.d.ts +0 -71
- package/es/components/systemSettings/registry/locales.d.ts +0 -525
- package/es/components/systemSettings/registry/services.d.ts +0 -97
- package/es/components/systemSettings/registry/types.d.ts +0 -139
- 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/bookingDataPanel/bookingList/utils.d.ts +0 -6
- 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/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/es/components/ticketBooking/locales.d.ts +0 -340
- package/es/components/ticketBooking/utils/edit.d.ts +0 -1
- 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/useLocale.d.ts +0 -2
- package/es/hooks/useLogger.d.ts +0 -2
- package/es/hooks/useThemeTokens.d.ts +0 -7
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/plus/clientCard/types.d.ts +0 -135
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- 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/pisellSalesGrid/locales.d.ts +0 -9
- package/es/plus/pisellSalesGrid/types.d.ts +0 -170
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +0 -15
- package/es/plus/pisellSalesManagement/locales.d.ts +0 -303
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/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/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/ProductCard/utils.d.ts +0 -49
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/es/plus/productSelect/ProductList/index.d.ts +0 -22
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/es/plus/saasAttendance/locales.d.ts +0 -591
- package/es/plus/saasAttendance/settings/types.d.ts +0 -136
- package/es/plus/saasTeamMembers/locales.d.ts +0 -546
- package/es/plus/selectHolder/locales.d.ts +0 -38
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +0 -3
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +0 -2
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -53
- package/es/plus/skuOptionsSelection/store/actions.d.ts +0 -22
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
- package/es/plus/skuOptionsSelection/store/index.d.ts +0 -2
- package/es/plus/skuOptionsSelection/store/store.d.ts +0 -4
- package/es/plus/skuOptionsSelection/types.d.ts +0 -445
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +0 -37
- package/es/plus/skuOptionsSelection/utils/index.d.ts +0 -7
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/es/plus/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/locales.d.ts +0 -12
- package/es/pro/Cards/components/SKUCard/types.d.ts +0 -73
- package/es/pro/Login2.0/locales.d.ts +0 -903
- package/es/pro/Login2.0/shared/types.d.ts +0 -234
- package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/es/pro/Selector/Selector.stories.d.ts +0 -78
- package/es/pro/Selector/components/Card/index.d.ts +0 -57
- package/es/pro/Selector/components/Card/types.d.ts +0 -1
- package/es/pro/Selector/components/Indicator/index.d.ts +0 -20
- package/es/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -18
- package/es/pro/Selector/components/Media/index.d.ts +0 -6
- package/es/pro/Selector/components/Media/types.d.ts +0 -47
- package/es/pro/Selector/components/index.d.ts +0 -4
- package/es/pro/Selector/demo.d.ts +0 -3
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
- package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/es/pro/Selector/locales.d.ts +0 -58
- package/es/pro/Selector/types.d.ts +0 -223
- package/es/pro/Selector/utils/index.d.ts +0 -49
- package/es/pro/keyboards/locales.d.ts +0 -38
- package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- 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/skuDetailModal/locales.d.ts +0 -159
- package/es/pro/skuDetailModal/types.d.ts +0 -395
- package/es/pro/skuDetailModal/utils.d.ts +0 -4
- package/es/test/setup.d.ts +0 -1
- package/lib/components/Sales/Cart/utils.d.ts +0 -68
- package/lib/components/Sales/Checkout/utils.d.ts +0 -41
- package/lib/components/Sales/Summary/index.d.ts +0 -37
- package/lib/components/Sales/Summary/utils.d.ts +0 -58
- package/lib/components/appointmentBooking/locales.d.ts +0 -606
- package/lib/components/booking/components/voucher/utils.d.ts +0 -4
- package/lib/components/booking/dashboard/serve.d.ts +0 -2
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/booking/forms/serve.d.ts +0 -18
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/client/serve.d.ts +0 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
- package/lib/components/booking/info/pet/serve.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/serve.d.ts +0 -34
- 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/serve.d.ts +0 -6
- package/lib/components/booking/info2/service/openNormalService.d.ts +0 -37
- package/lib/components/booking/locales.d.ts +0 -1586
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- 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/components/CupActionModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -36
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/lib/components/ecocup/components/SettingModal/const.d.ts +0 -6
- package/lib/components/ecocup/cupList/const.d.ts +0 -144
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/ecocup/customerList/const.d.ts +0 -44
- package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/lib/components/ecocup/hooks.d.ts +0 -57
- package/lib/components/ecocup/locales.d.ts +0 -653
- package/lib/components/ecocup/types.d.ts +0 -103
- package/lib/components/ecocup/utils/download.d.ts +0 -7
- package/lib/components/ecocup/utils/index.d.ts +0 -2
- package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
- package/lib/components/eftpos/const.d.ts +0 -64
- package/lib/components/eftpos/hooks.d.ts +0 -33
- package/lib/components/eftpos/locales.d.ts +0 -163
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/lib/components/eftposPay/const.d.ts +0 -195
- package/lib/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/lib/components/eftposPay/huifu/types.d.ts +0 -14
- package/lib/components/eftposPay/locales.d.ts +0 -608
- package/lib/components/eftposPay/manufacturer.d.ts +0 -8
- package/lib/components/eftposPay/store/index.d.ts +0 -362
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -61
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -43
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- 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/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/types/index.d.ts +0 -81
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
- 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 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
- package/lib/components/pay/toC/locales.d.ts +0 -511
- 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/Provider.d.ts +0 -3
- 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 -58
- package/lib/components/subTotal/locales.d.ts +0 -71
- package/lib/components/systemSettings/registry/locales.d.ts +0 -525
- package/lib/components/systemSettings/registry/services.d.ts +0 -97
- package/lib/components/systemSettings/registry/types.d.ts +0 -139
- 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/bookingDataPanel/bookingList/utils.d.ts +0 -6
- 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/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/lib/components/ticketBooking/locales.d.ts +0 -340
- package/lib/components/ticketBooking/utils/edit.d.ts +0 -1
- 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/useLocale.d.ts +0 -2
- package/lib/hooks/useLogger.d.ts +0 -2
- package/lib/hooks/useThemeTokens.d.ts +0 -7
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/plus/clientCard/types.d.ts +0 -135
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- 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/pisellSalesGrid/locales.d.ts +0 -9
- package/lib/plus/pisellSalesGrid/types.d.ts +0 -170
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +0 -15
- package/lib/plus/pisellSalesManagement/locales.d.ts +0 -303
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/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/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/ProductCard/utils.d.ts +0 -49
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/lib/plus/productSelect/ProductList/index.d.ts +0 -22
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/lib/plus/saasAttendance/locales.d.ts +0 -591
- package/lib/plus/saasAttendance/settings/types.d.ts +0 -136
- package/lib/plus/saasTeamMembers/locales.d.ts +0 -546
- package/lib/plus/selectHolder/locales.d.ts +0 -38
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +0 -3
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -53
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +0 -22
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
- package/lib/plus/skuOptionsSelection/store/index.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/store/store.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/types.d.ts +0 -445
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +0 -37
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +0 -7
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/lib/plus/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/locales.d.ts +0 -12
- package/lib/pro/Cards/components/SKUCard/types.d.ts +0 -73
- package/lib/pro/Login2.0/locales.d.ts +0 -903
- package/lib/pro/Login2.0/shared/types.d.ts +0 -234
- package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/lib/pro/Selector/Selector.stories.d.ts +0 -78
- package/lib/pro/Selector/components/Card/index.d.ts +0 -57
- package/lib/pro/Selector/components/Card/types.d.ts +0 -1
- package/lib/pro/Selector/components/Indicator/index.d.ts +0 -20
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -18
- package/lib/pro/Selector/components/Media/index.d.ts +0 -6
- package/lib/pro/Selector/components/Media/types.d.ts +0 -47
- package/lib/pro/Selector/components/index.d.ts +0 -4
- package/lib/pro/Selector/demo.d.ts +0 -3
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/lib/pro/Selector/locales.d.ts +0 -58
- package/lib/pro/Selector/types.d.ts +0 -223
- package/lib/pro/Selector/utils/index.d.ts +0 -49
- package/lib/pro/keyboards/locales.d.ts +0 -38
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- 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/skuDetailModal/locales.d.ts +0 -159
- package/lib/pro/skuDetailModal/types.d.ts +0 -395
- package/lib/pro/skuDetailModal/utils.d.ts +0 -4
- package/lib/test/setup.d.ts +0 -1
|
@@ -1,420 +0,0 @@
|
|
|
1
|
-
import { StrategyConfig } from '../../type';
|
|
2
|
-
/**
|
|
3
|
-
* Promotion 策略类型定义
|
|
4
|
-
*
|
|
5
|
-
* 定义促销活动相关的 Action 类型、值结构和配置
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* 促销活动 Action 类型
|
|
9
|
-
*/
|
|
10
|
-
export declare const PROMOTION_ACTION_TYPES: {
|
|
11
|
-
/** X件Y元(每X件固定价格Y元,可累计) */
|
|
12
|
-
readonly X_ITEMS_FOR_Y_PRICE: "X_ITEMS_FOR_Y_PRICE";
|
|
13
|
-
/** 买X送Y(买X件送Y件,可累计) */
|
|
14
|
-
readonly BUY_X_GET_Y_FREE: "BUY_X_GET_Y_FREE";
|
|
15
|
-
/** 固定折扣 */
|
|
16
|
-
readonly DISCOUNT_RATE: "DISCOUNT_RATE";
|
|
17
|
-
/** 固定减价 */
|
|
18
|
-
readonly DEDUCT_AMOUNT: "DEDUCT_AMOUNT";
|
|
19
|
-
};
|
|
20
|
-
export declare type PromotionActionType = (typeof PROMOTION_ACTION_TYPES)[keyof typeof PROMOTION_ACTION_TYPES];
|
|
21
|
-
/**
|
|
22
|
-
* X件Y元 - Action Value
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* value: { x: 2, price: 10 } // 每2件10元
|
|
26
|
-
*/
|
|
27
|
-
export interface XItemsForYPriceValue {
|
|
28
|
-
/** 每X件(需要凑满的数量) */
|
|
29
|
-
x: number;
|
|
30
|
-
/** 固定价格Y元 */
|
|
31
|
-
price: number;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* X件Y元 - Action Config
|
|
35
|
-
*/
|
|
36
|
-
export interface XItemsForYPriceConfig {
|
|
37
|
-
/** 允许跨商品组合(A+B可以凑成一组) */
|
|
38
|
-
allowCrossProduct?: boolean;
|
|
39
|
-
/** 可累计(买5件 = 2组优惠 + 1件原价) */
|
|
40
|
-
cumulative?: boolean;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* 买X送Y - Action Value
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* value: { buyQuantity: 1, freeQuantity: 1 } // 买1送1
|
|
47
|
-
*/
|
|
48
|
-
export interface BuyXGetYFreeValue {
|
|
49
|
-
/** 买X件 */
|
|
50
|
-
buyQuantity: number;
|
|
51
|
-
/** 送Y件 */
|
|
52
|
-
freeQuantity: number;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* 赠品选择模式
|
|
56
|
-
*/
|
|
57
|
-
export declare type GiftSelectionMode = 'user_select' | 'auto' | 'cheapest';
|
|
58
|
-
/**
|
|
59
|
-
* 买X送Y - Action Config
|
|
60
|
-
*/
|
|
61
|
-
export interface BuyXGetYFreeConfig {
|
|
62
|
-
/** 赠品选择模式 */
|
|
63
|
-
giftSelectionMode?: GiftSelectionMode;
|
|
64
|
-
/** 可累计(买2送2、买3送3...) */
|
|
65
|
-
cumulative?: boolean;
|
|
66
|
-
/** 可选的赠品列表 */
|
|
67
|
-
giftProducts?: ProductIdentifier[];
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* 商品标识
|
|
71
|
-
*
|
|
72
|
-
* 匹配规则:
|
|
73
|
-
* - product_variant_id = 0 表示匹配任意变体
|
|
74
|
-
* - product_variant_id != 0 表示精确匹配该变体
|
|
75
|
-
*/
|
|
76
|
-
export interface ProductIdentifier {
|
|
77
|
-
/** 商品ID */
|
|
78
|
-
product_id: number;
|
|
79
|
-
/**
|
|
80
|
-
* 变体ID
|
|
81
|
-
* - 0 表示匹配任意变体
|
|
82
|
-
* - 非0 表示精确匹配该变体
|
|
83
|
-
*/
|
|
84
|
-
product_variant_id: number;
|
|
85
|
-
}
|
|
86
|
-
import { ActionEffect } from '../../type';
|
|
87
|
-
/**
|
|
88
|
-
* X件Y元 Action
|
|
89
|
-
*/
|
|
90
|
-
export interface XItemsForYPriceAction extends Omit<ActionEffect, 'type' | 'value' | 'config'> {
|
|
91
|
-
type: typeof PROMOTION_ACTION_TYPES.X_ITEMS_FOR_Y_PRICE;
|
|
92
|
-
value: XItemsForYPriceValue;
|
|
93
|
-
valueType: 'object';
|
|
94
|
-
config?: XItemsForYPriceConfig;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* 买X送Y Action
|
|
98
|
-
*/
|
|
99
|
-
export interface BuyXGetYFreeAction extends Omit<ActionEffect, 'type' | 'value' | 'config'> {
|
|
100
|
-
type: typeof PROMOTION_ACTION_TYPES.BUY_X_GET_Y_FREE;
|
|
101
|
-
value: BuyXGetYFreeValue;
|
|
102
|
-
valueType: 'object';
|
|
103
|
-
config?: BuyXGetYFreeConfig;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* 促销活动 Action 联合类型
|
|
107
|
-
*/
|
|
108
|
-
export declare type PromotionAction = XItemsForYPriceAction | BuyXGetYFreeAction;
|
|
109
|
-
/**
|
|
110
|
-
* 促销相关运算符
|
|
111
|
-
*/
|
|
112
|
-
export declare const PROMOTION_OPERATORS: {
|
|
113
|
-
/**
|
|
114
|
-
* 商品匹配运算符
|
|
115
|
-
*
|
|
116
|
-
* 匹配规则:
|
|
117
|
-
* - 首先匹配 product_id
|
|
118
|
-
* - 如果配置的 product_variant_id = 0,只需要 product_id 匹配
|
|
119
|
-
* - 如果配置的 product_variant_id != 0,还需要 product_variant_id 匹配
|
|
120
|
-
*/
|
|
121
|
-
readonly PRODUCT_MATCH: "product_match";
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* 促销活动业务数据
|
|
125
|
-
*
|
|
126
|
-
* 由业务层传入,用于策略评估
|
|
127
|
-
*/
|
|
128
|
-
export interface PromotionBusinessData {
|
|
129
|
-
/** 商品列表 */
|
|
130
|
-
products: PromotionProduct[];
|
|
131
|
-
/** 当前评估的商品(用于单商品场景,如商品卡片展示) */
|
|
132
|
-
currentProduct?: PromotionProduct;
|
|
133
|
-
/** 渠道 */
|
|
134
|
-
channel?: string;
|
|
135
|
-
/** 自定义属性 */
|
|
136
|
-
custom?: Record<string, any>;
|
|
137
|
-
}
|
|
138
|
-
declare type ProductBundleItem = {
|
|
139
|
-
/** 商品ID */
|
|
140
|
-
product_id: number;
|
|
141
|
-
/** 变体ID(0 表示无变体) */
|
|
142
|
-
product_variant_id: number;
|
|
143
|
-
/** 数量 */
|
|
144
|
-
quantity: number;
|
|
145
|
-
/** 单价 */
|
|
146
|
-
price: number;
|
|
147
|
-
/** 原价 */
|
|
148
|
-
original_price?: number;
|
|
149
|
-
/** 套餐明细id */
|
|
150
|
-
id: number;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* 促销商品信息
|
|
154
|
-
*/
|
|
155
|
-
export interface PromotionProduct {
|
|
156
|
-
id: number;
|
|
157
|
-
/** 商品ID */
|
|
158
|
-
product_id: number;
|
|
159
|
-
/** 变体ID(0 表示无变体) */
|
|
160
|
-
product_variant_id: number;
|
|
161
|
-
/** 商品名称 */
|
|
162
|
-
name?: string;
|
|
163
|
-
/** 单价 */
|
|
164
|
-
price: number;
|
|
165
|
-
/** 商品套餐 */
|
|
166
|
-
bundle: ProductBundleItem[];
|
|
167
|
-
/** 数量 */
|
|
168
|
-
quantity: number;
|
|
169
|
-
/** 原价 */
|
|
170
|
-
original_price?: number;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* 促销活动适配器转换结果
|
|
174
|
-
*
|
|
175
|
-
* 返回给业务层,包含策略匹配信息
|
|
176
|
-
*/
|
|
177
|
-
export interface PromotionTransformResult {
|
|
178
|
-
/** 策略是否适用 */
|
|
179
|
-
isApplicable: boolean;
|
|
180
|
-
/** 匹配的 Action 类型 */
|
|
181
|
-
actionType?: PromotionActionType;
|
|
182
|
-
/** 匹配的 Action 详情 */
|
|
183
|
-
actionDetail?: PromotionActionDetail;
|
|
184
|
-
/** 适用的商品列表(从购物车商品中筛选出的适用商品) */
|
|
185
|
-
applicableProducts: PromotionProduct[];
|
|
186
|
-
/** 不适用的原因 */
|
|
187
|
-
reason?: string;
|
|
188
|
-
/** 不适用的原因码 */
|
|
189
|
-
reasonCode?: string;
|
|
190
|
-
/** 原始策略引擎结果 */
|
|
191
|
-
strategyResult: import('../../type').EvaluationResult;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Action 详情联合类型
|
|
195
|
-
*/
|
|
196
|
-
export declare type PromotionActionDetail = XItemsForYPriceActionDetail | BuyXGetYFreeActionDetail;
|
|
197
|
-
/**
|
|
198
|
-
* X件Y元 Action 详情
|
|
199
|
-
*/
|
|
200
|
-
export interface XItemsForYPriceActionDetail {
|
|
201
|
-
type: typeof PROMOTION_ACTION_TYPES.X_ITEMS_FOR_Y_PRICE;
|
|
202
|
-
/** 每X件 */
|
|
203
|
-
x: number;
|
|
204
|
-
/** 固定价格Y元 */
|
|
205
|
-
price: number;
|
|
206
|
-
/** 允许跨商品组合 */
|
|
207
|
-
allowCrossProduct: boolean;
|
|
208
|
-
/** 可累计 */
|
|
209
|
-
cumulative: boolean;
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* 买X送Y Action 详情
|
|
213
|
-
*/
|
|
214
|
-
export interface BuyXGetYFreeActionDetail {
|
|
215
|
-
type: typeof PROMOTION_ACTION_TYPES.BUY_X_GET_Y_FREE;
|
|
216
|
-
/** 买X件 */
|
|
217
|
-
buyQuantity: number;
|
|
218
|
-
/** 送Y件 */
|
|
219
|
-
freeQuantity: number;
|
|
220
|
-
/** 赠品选择模式 */
|
|
221
|
-
giftSelectionMode: GiftSelectionMode;
|
|
222
|
-
/** 可累计 */
|
|
223
|
-
cumulative: boolean;
|
|
224
|
-
/** 可选的赠品列表 */
|
|
225
|
-
giftProducts: ProductIdentifier[];
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* X件Y元 - 业务层计算结果
|
|
229
|
-
*
|
|
230
|
-
* 由业务层根据 matchedAction 计算后返回
|
|
231
|
-
*/
|
|
232
|
-
export interface XItemsForYPriceResult {
|
|
233
|
-
/** 满足条件的组数 */
|
|
234
|
-
groupCount: number;
|
|
235
|
-
/** 剩余件数(原价) */
|
|
236
|
-
remainingCount: number;
|
|
237
|
-
/** 优惠金额 */
|
|
238
|
-
discountAmount: number;
|
|
239
|
-
/** 分组详情 */
|
|
240
|
-
groups: Array<{
|
|
241
|
-
products: Array<{
|
|
242
|
-
product_id: number;
|
|
243
|
-
product_variant_id: number;
|
|
244
|
-
originalPrice: number;
|
|
245
|
-
}>;
|
|
246
|
-
originalTotal: number;
|
|
247
|
-
discountedPrice: number;
|
|
248
|
-
}>;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* 买X送Y - 业务层计算结果
|
|
252
|
-
*
|
|
253
|
-
* 由业务层根据 matchedAction 计算后返回
|
|
254
|
-
*/
|
|
255
|
-
export interface BuyXGetYFreeResult {
|
|
256
|
-
/** 可送的赠品数量 */
|
|
257
|
-
freeCount: number;
|
|
258
|
-
/** 需要用户选择的赠品数量 */
|
|
259
|
-
pendingSelectCount: number;
|
|
260
|
-
/** 已选择的赠品 */
|
|
261
|
-
selectedGifts: ProductIdentifier[];
|
|
262
|
-
/** 可选的赠品列表 */
|
|
263
|
-
availableGifts: ProductIdentifier[];
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* 评估器输入
|
|
267
|
-
*/
|
|
268
|
-
export interface PromotionEvaluatorInput {
|
|
269
|
-
/** 商品列表 */
|
|
270
|
-
products: PromotionProduct[];
|
|
271
|
-
/** 策略配置列表(可选,如果不传则使用 setStrategyConfigs 设置的) */
|
|
272
|
-
strategyConfigs?: StrategyConfig[];
|
|
273
|
-
/** 渠道 */
|
|
274
|
-
channel?: string;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* 单商品评估结果
|
|
278
|
-
*/
|
|
279
|
-
export interface ProductPromotionResult {
|
|
280
|
-
/** 商品信息 */
|
|
281
|
-
product: PromotionProduct;
|
|
282
|
-
/** 适用的促销列表 */
|
|
283
|
-
applicablePromotions: ApplicablePromotion[];
|
|
284
|
-
/** 是否有适用的促销 */
|
|
285
|
-
hasPromotion: boolean;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* 适用的促销信息
|
|
289
|
-
*/
|
|
290
|
-
export interface ApplicablePromotion {
|
|
291
|
-
/** 策略ID */
|
|
292
|
-
strategyId: string;
|
|
293
|
-
/** 策略名称 */
|
|
294
|
-
strategyName: string | Record<string, string>;
|
|
295
|
-
/** Action 类型 */
|
|
296
|
-
actionType: string;
|
|
297
|
-
/** Action 详情 */
|
|
298
|
-
actionDetail: PromotionActionDetail;
|
|
299
|
-
/** 展示配置 */
|
|
300
|
-
display?: {
|
|
301
|
-
text: string | Record<string, string>;
|
|
302
|
-
type: string;
|
|
303
|
-
};
|
|
304
|
-
/** 原始策略配置 */
|
|
305
|
-
strategyConfig: StrategyConfig;
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* 购物车评估结果
|
|
309
|
-
*/
|
|
310
|
-
export interface CartEvaluationResult {
|
|
311
|
-
/** 每个商品的促销结果 */
|
|
312
|
-
productResults: ProductPromotionResult[];
|
|
313
|
-
/** 购物车中所有适用的促销(去重) */
|
|
314
|
-
applicablePromotions: CartApplicablePromotion[];
|
|
315
|
-
/** 按促销分组的商品 */
|
|
316
|
-
promotionGroups: PromotionGroup[];
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* 购物车适用的促销
|
|
320
|
-
*/
|
|
321
|
-
export interface CartApplicablePromotion extends ApplicablePromotion {
|
|
322
|
-
/** 适用此促销的商品列表 */
|
|
323
|
-
applicableProducts: PromotionProduct[];
|
|
324
|
-
/** 适用商品的总数量 */
|
|
325
|
-
totalQuantity: number;
|
|
326
|
-
/** 适用商品的总金额 */
|
|
327
|
-
totalAmount: number;
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* 促销分组
|
|
331
|
-
*/
|
|
332
|
-
export interface PromotionGroup {
|
|
333
|
-
/** 策略ID */
|
|
334
|
-
strategyId: string;
|
|
335
|
-
/** 策略名称 */
|
|
336
|
-
strategyName: string | Record<string, string>;
|
|
337
|
-
/** Action 类型 */
|
|
338
|
-
actionType: string;
|
|
339
|
-
/** Action 详情 */
|
|
340
|
-
actionDetail: PromotionActionDetail;
|
|
341
|
-
/** 分组内的商品 */
|
|
342
|
-
products: PromotionProduct[];
|
|
343
|
-
/** 商品总数量 */
|
|
344
|
-
totalQuantity: number;
|
|
345
|
-
/** 商品总金额 */
|
|
346
|
-
totalAmount: number;
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* 带定价的商品
|
|
350
|
-
*
|
|
351
|
-
* 在 PromotionProduct 基础上增加了均摊后的最终价格和促销信息
|
|
352
|
-
*/
|
|
353
|
-
export interface PricedProduct extends PromotionProduct {
|
|
354
|
-
/**
|
|
355
|
-
* 原始商品ID
|
|
356
|
-
* 当商品被拆分时,此字段记录拆分前的原始商品id
|
|
357
|
-
* 例如 A*5 拆成 A*4(参与促销)+ A*1(原价),A*4 的 originalId 指向原始 A 的 id
|
|
358
|
-
*/
|
|
359
|
-
originalId?: number;
|
|
360
|
-
/**
|
|
361
|
-
* 最终单价(均摊后)
|
|
362
|
-
* - 参与促销的商品:按原价比例均摊后的价格
|
|
363
|
-
* - 未参与促销的商品:等于 price
|
|
364
|
-
*/
|
|
365
|
-
finalPrice: number;
|
|
366
|
-
/**
|
|
367
|
-
* 应用的策略ID
|
|
368
|
-
* 如果商品参与了促销,记录对应的策略ID
|
|
369
|
-
*/
|
|
370
|
-
strategyId?: string;
|
|
371
|
-
/**
|
|
372
|
-
* 是否参与了促销
|
|
373
|
-
*/
|
|
374
|
-
inPromotion: boolean;
|
|
375
|
-
/**
|
|
376
|
-
* 是否为拆分出来的商品
|
|
377
|
-
* true 表示这是从原商品拆分出来的新记录
|
|
378
|
-
*/
|
|
379
|
-
isSplit?: boolean;
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* 赠品信息
|
|
383
|
-
*
|
|
384
|
-
* 记录某个促销产生的赠品数量和可选赠品列表
|
|
385
|
-
*/
|
|
386
|
-
export interface GiftInfo {
|
|
387
|
-
/** 策略ID */
|
|
388
|
-
strategyId: string;
|
|
389
|
-
/** 策略名称 */
|
|
390
|
-
strategyName: string | Record<string, string>;
|
|
391
|
-
/** 可送赠品数量 */
|
|
392
|
-
giftCount: number;
|
|
393
|
-
/** 可选赠品列表 */
|
|
394
|
-
giftOptions: ProductIdentifier[];
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* 带定价的购物车评估结果
|
|
398
|
-
*
|
|
399
|
-
* evaluateCartWithPricing 方法的返回结果
|
|
400
|
-
*/
|
|
401
|
-
export interface CartWithPricingResult {
|
|
402
|
-
/**
|
|
403
|
-
* 处理后的商品数组
|
|
404
|
-
* - 包含所有商品(参与促销和未参与促销的)
|
|
405
|
-
* - 参与促销的商品可能被拆分(如 A*5 拆成 A*4 + A*1)
|
|
406
|
-
* - 每个商品都有 finalPrice 字段
|
|
407
|
-
*/
|
|
408
|
-
products: PricedProduct[];
|
|
409
|
-
/**
|
|
410
|
-
* 赠品信息列表
|
|
411
|
-
* 按促销分组,每个促销对应一个 GiftInfo
|
|
412
|
-
*/
|
|
413
|
-
gifts: GiftInfo[];
|
|
414
|
-
/**
|
|
415
|
-
* 总优惠金额
|
|
416
|
-
* 所有商品的原价总和 - 所有商品的 finalPrice 总和
|
|
417
|
-
*/
|
|
418
|
-
totalDiscount: number;
|
|
419
|
-
}
|
|
420
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { EvaluationResult, RuntimeContext } from '../type';
|
|
2
|
-
export interface BusinessAdapter {
|
|
3
|
-
/**
|
|
4
|
-
* 适配器名称
|
|
5
|
-
*/
|
|
6
|
-
name: string;
|
|
7
|
-
/**
|
|
8
|
-
* 适配器版本
|
|
9
|
-
*/
|
|
10
|
-
version: string;
|
|
11
|
-
/**
|
|
12
|
-
* 准备运行时上下文
|
|
13
|
-
* 将业务数据转换为策略引擎可识别的上下文
|
|
14
|
-
*/
|
|
15
|
-
prepareContext(businessData: any): RuntimeContext;
|
|
16
|
-
/**
|
|
17
|
-
* 转换执行结果
|
|
18
|
-
* 将策略引擎的通用结果转换为业务层需要的格式
|
|
19
|
-
*/
|
|
20
|
-
transformResult(result: EvaluationResult, businessData?: any): any;
|
|
21
|
-
/**
|
|
22
|
-
* 根据业务数据重新格式化配置
|
|
23
|
-
*/
|
|
24
|
-
formatConfig(result: EvaluationResult, businessData?: any): {
|
|
25
|
-
result: EvaluationResult;
|
|
26
|
-
businessData?: any;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
@@ -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>>;
|