@pisell/pisellos 0.10.47 → 0.10.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/dist/apis/picoding.d.ts +0 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +6 -10
- package/dist/effects/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/model/index.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/adapter.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/evaluator.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/examples.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/index.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/type.d.ts +0 -1
- package/dist/model/strategy/adapter/index.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/adapter.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/evaluator.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/examples.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/index.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/type.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/adapter.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/evaluator.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/examples.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/index.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/type.d.ts +0 -1
- package/dist/model/strategy/adapter/type.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/evaluator.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/example.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/example.js +3 -26
- package/dist/model/strategy/adapter/walletPass/index.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/type.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/utils.d.ts +0 -1
- package/dist/model/strategy/engine.d.ts +0 -1
- package/dist/model/strategy/index.d.ts +0 -1
- package/dist/model/strategy/strategy-example.d.ts +0 -1
- package/dist/model/strategy/strategy-example.js +5 -19
- package/dist/model/strategy/type.d.ts +0 -1
- package/dist/modules/Account/index.d.ts +0 -1
- package/dist/modules/Account/types.d.ts +0 -1
- package/dist/modules/AccountList/index.d.ts +0 -1
- package/dist/modules/AccountList/types.d.ts +0 -1
- package/dist/modules/AccountList/utils.d.ts +0 -1
- package/dist/modules/BaseModule.d.ts +0 -1
- package/dist/modules/BookingContext/index.d.ts +0 -1
- package/dist/modules/BookingContext/types.d.ts +0 -1
- package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts +0 -1
- package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts +0 -1
- package/dist/modules/BookingContext/utils/cacheItemToBookingInput.d.ts +0 -1
- package/dist/modules/BookingContext/utils/flexible.d.ts +0 -1
- package/dist/modules/BookingContext/utils/formatResourceList.d.ts +0 -1
- package/dist/modules/BookingContext/utils/index.d.ts +0 -1
- package/dist/modules/BookingContext/utils/noResource.d.ts +0 -1
- package/dist/modules/BookingContext/utils/orderLineDisplay.d.ts +0 -1
- package/dist/modules/BookingContext/utils/productExtend.d.ts +0 -1
- package/dist/modules/BookingContext/utils/resourceErrors.d.ts +0 -1
- package/dist/modules/BookingContext/utils/resourceSelection.d.ts +0 -1
- package/dist/modules/BookingContext/utils/resources.d.ts +0 -1
- package/dist/modules/BookingContext/utils/serviceTimes.d.ts +0 -1
- package/dist/modules/BookingContext/utils/timeSlices.d.ts +0 -1
- package/dist/modules/Cart/index.d.ts +0 -1
- package/dist/modules/Cart/index.js +0 -3
- package/dist/modules/Cart/types.d.ts +0 -1
- package/dist/modules/Cart/utils/cartAccount.d.ts +0 -1
- package/dist/modules/Cart/utils/cartDate.d.ts +0 -1
- package/dist/modules/Cart/utils/cartDiscount.d.ts +0 -1
- package/dist/modules/Cart/utils/cartNote.d.ts +0 -1
- package/dist/modules/Cart/utils/cartProduct.d.ts +0 -1
- package/dist/modules/Cart/utils/cartProduct.js +0 -1
- package/dist/modules/Cart/utils/cartRelationForms.d.ts +0 -1
- package/dist/modules/Cart/utils/cartResource.d.ts +0 -1
- package/dist/modules/Cart/utils/changePrice.d.ts +0 -1
- package/dist/modules/Cart/utils/index.d.ts +0 -1
- package/dist/modules/Customer/constants.d.ts +0 -1
- package/dist/modules/Customer/index.d.ts +0 -1
- package/dist/modules/Customer/types.d.ts +0 -1
- package/dist/modules/Date/index.d.ts +0 -1
- package/dist/modules/Date/index.js +1 -5
- package/dist/modules/Date/types.d.ts +0 -1
- package/dist/modules/Date/utils.d.ts +0 -1
- package/dist/modules/Discount/availability.d.ts +0 -1
- package/dist/modules/Discount/entitlementPass.d.ts +0 -1
- package/dist/modules/Discount/index.d.ts +0 -1
- package/dist/modules/Discount/index.js +2 -4
- package/dist/modules/Discount/types.d.ts +2 -1
- package/dist/modules/Guests/index.d.ts +0 -1
- package/dist/modules/Guests/types.d.ts +0 -1
- package/dist/modules/Holder/index.d.ts +0 -1
- package/dist/modules/Holder/types.d.ts +0 -1
- package/dist/modules/Holder/utils.d.ts +0 -1
- package/dist/modules/OpenData/index.d.ts +0 -1
- package/dist/modules/OpenData/index.js +0 -2
- package/dist/modules/OpenData/types.d.ts +0 -1
- package/dist/modules/OpenData/utils.d.ts +0 -1
- package/dist/modules/Order/index.d.ts +0 -1
- package/dist/modules/Order/index.js +14 -41
- package/dist/modules/Order/payment-utils.d.ts +0 -1
- package/dist/modules/Order/salesNotes.d.ts +0 -1
- package/dist/modules/Order/types.d.ts +0 -1
- package/dist/modules/Order/utils/bundleDiscountHydration.d.ts +0 -1
- package/dist/modules/Order/utils/discountProductLineIdentity.d.ts +0 -1
- package/dist/modules/Order/utils/manualProductDiscount.d.ts +0 -1
- package/dist/modules/Order/utils/orderCollectionIdentity.d.ts +0 -1
- package/dist/modules/Order/utils/virtualSettlement.d.ts +0 -1
- package/dist/modules/Order/utils.d.ts +0 -1
- package/dist/modules/Payment/cash.d.ts +0 -1
- package/dist/modules/Payment/cashRecommendationAlgorithm.d.ts +0 -1
- package/dist/modules/Payment/eftpos.d.ts +0 -1
- package/dist/modules/Payment/index.d.ts +0 -1
- package/dist/modules/Payment/index.js +97 -162
- package/dist/modules/Payment/mx51.d.ts +0 -1
- package/dist/modules/Payment/types.d.ts +0 -1
- package/dist/modules/Payment/utils.d.ts +0 -1
- package/dist/modules/Payment/walletpass.d.ts +0 -1
- package/dist/modules/Product/index.d.ts +0 -1
- package/dist/modules/Product/types.d.ts +0 -1
- package/dist/modules/Product/utils.d.ts +0 -1
- package/dist/modules/ProductList/clientDataVariants.d.ts +0 -1
- package/dist/modules/ProductList/index.d.ts +0 -1
- package/dist/modules/ProductList/types.d.ts +0 -1
- package/dist/modules/Quotation/index.d.ts +0 -1
- package/dist/modules/Quotation/types.d.ts +0 -1
- package/dist/modules/Resource/index.d.ts +0 -1
- package/dist/modules/Resource/types.d.ts +0 -1
- package/dist/modules/Resource/utils.d.ts +0 -1
- package/dist/modules/ResourcePlanner/index.d.ts +0 -1
- package/dist/modules/ResourcePlanner/localClock.d.ts +0 -1
- package/dist/modules/ResourcePlanner/planner.d.ts +0 -1
- package/dist/modules/ResourcePlanner/types.d.ts +0 -1
- package/dist/modules/Rules/index.d.ts +0 -1
- package/dist/modules/Rules/index.js +60 -7
- package/dist/modules/Rules/types.d.ts +0 -1
- package/dist/modules/SalesSummary/index.d.ts +0 -1
- package/dist/modules/SalesSummary/types.d.ts +0 -1
- package/dist/modules/SalesSummary/utils.d.ts +0 -1
- package/dist/modules/ScanOrderLogger/index.d.ts +0 -1
- package/dist/modules/ScanOrderLogger/providers/feishu.d.ts +0 -1
- package/dist/modules/ScanOrderLogger/providers/grafana.d.ts +0 -1
- package/dist/modules/ScanOrderLogger/types.d.ts +0 -1
- package/dist/modules/Schedule/getDateIsInSchedule.d.ts +0 -1
- package/dist/modules/Schedule/index.d.ts +0 -1
- package/dist/modules/Schedule/index.js +0 -1
- package/dist/modules/Schedule/type.d.ts +0 -1
- package/dist/modules/Schedule/types.d.ts +0 -1
- package/dist/modules/Schedule/utils.d.ts +0 -1
- package/dist/modules/Schedule/utils.js +0 -1
- package/dist/modules/Step/index.d.ts +0 -1
- package/dist/modules/Step/index.js +0 -1
- package/dist/modules/Step/tyeps.d.ts +0 -1
- package/dist/modules/Summary/index.d.ts +0 -1
- package/dist/modules/Summary/types.d.ts +0 -1
- package/dist/modules/Summary/utils.d.ts +0 -1
- package/dist/modules/SurchargeList/index.d.ts +0 -1
- package/dist/modules/SurchargeList/types.d.ts +0 -1
- package/dist/modules/index.d.ts +0 -1
- package/dist/plugins/app.d.ts +0 -1
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/request.d.ts +0 -1
- package/dist/plugins/request.js +1 -4
- package/dist/plugins/shopStore.d.ts +0 -1
- package/dist/plugins/user.d.ts +0 -1
- package/dist/plugins/window.d.ts +0 -1
- package/dist/plugins/window.js +2 -6
- package/dist/server/index.d.ts +0 -1
- package/dist/server/index.js +97 -129
- package/dist/server/modules/floor-plan/index.d.ts +0 -1
- package/dist/server/modules/floor-plan/types.d.ts +0 -1
- package/dist/server/modules/index.d.ts +0 -1
- package/dist/server/modules/menu/index.d.ts +0 -1
- package/dist/server/modules/menu/index.js +32 -41
- package/dist/server/modules/menu/types.d.ts +0 -1
- package/dist/server/modules/order/index.d.ts +0 -1
- package/dist/server/modules/order/index.js +2 -4
- package/dist/server/modules/order/types.d.ts +2 -1
- package/dist/server/modules/order/utils/filterBookings.d.ts +0 -1
- package/dist/server/modules/order/utils/filterOrders.d.ts +0 -1
- package/dist/server/modules/payment/index.d.ts +0 -1
- package/dist/server/modules/payment/types.d.ts +0 -1
- package/dist/server/modules/products/index.d.ts +0 -1
- package/dist/server/modules/products/index.js +24 -42
- package/dist/server/modules/products/types.d.ts +0 -1
- package/dist/server/modules/quotation/index.d.ts +0 -1
- package/dist/server/modules/quotation/index.js +29 -38
- package/dist/server/modules/quotation/types.d.ts +0 -1
- package/dist/server/modules/resource/index.d.ts +0 -1
- package/dist/server/modules/resource/index.js +3 -4
- package/dist/server/modules/resource/types.d.ts +0 -1
- package/dist/server/modules/schedule/index.d.ts +0 -1
- package/dist/server/modules/schedule/index.js +27 -35
- package/dist/server/modules/schedule/types.d.ts +0 -1
- package/dist/server/modules/schedule/utils.d.ts +0 -1
- package/dist/server/types.d.ts +0 -1
- package/dist/server/utils/index.d.ts +0 -1
- package/dist/server/utils/product.d.ts +0 -1
- package/dist/server/utils/product.js +0 -1
- package/dist/server/utils/schedule.d.ts +0 -1
- package/dist/server/utils/small-ticket.d.ts +0 -1
- package/dist/server/utils/small-ticket.js +447 -64
- package/dist/server/utils/time.d.ts +0 -1
- package/dist/solution/BaseSales/index.d.ts +0 -1
- package/dist/solution/BaseSales/index.js +50 -53
- package/dist/solution/BaseSales/types.d.ts +0 -1
- package/dist/solution/BaseSales/utils/cartPromotion.d.ts +0 -1
- package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts +0 -1
- package/dist/solution/BaseSales/utils/quotationPrice.d.ts +0 -1
- package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +0 -1
- package/dist/solution/BaseSales/utils.d.ts +0 -1
- package/dist/solution/BookingByStep/index.d.ts +0 -1
- package/dist/solution/BookingByStep/index.js +7 -59
- package/dist/solution/BookingByStep/types.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/capacity.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/capacity.js +1 -11
- package/dist/solution/BookingByStep/utils/products.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/resources.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/resources.js +1 -3
- package/dist/solution/BookingByStep/utils/stock.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/timeslots.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/timeslots.js +2 -43
- package/dist/solution/BookingTicket/index.d.ts +0 -1
- package/dist/solution/BookingTicket/index.js +0 -2
- package/dist/solution/BookingTicket/types.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/addProductDecision.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/addTimeAvailability.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/bookingStatus.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/cartView.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/exampleData.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/orderCustomer.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.js +6 -7
- package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/handleScan.js +25 -31
- package/dist/solution/BookingTicket/utils/scan/index.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/index.js +6 -10
- package/dist/solution/BookingTicket/utils/scan/scanCache.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/scanProductValues.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/sessionCatalogStale.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/weighingProductSku.d.ts +0 -1
- package/dist/solution/BuyTickets/index.d.ts +0 -1
- package/dist/solution/BuyTickets/index.js +9 -12
- package/dist/solution/BuyTickets/types.d.ts +0 -1
- package/dist/solution/Checkout/index.d.ts +0 -1
- package/dist/solution/Checkout/index.js +177 -252
- package/dist/solution/Checkout/types.d.ts +0 -1
- package/dist/solution/Checkout/utils/index.d.ts +0 -1
- package/dist/solution/Checkout/utils/index.js +4 -16
- package/dist/solution/PlaceOrder/index.d.ts +0 -1
- package/dist/solution/RegisterAndLogin/config.d.ts +0 -1
- package/dist/solution/RegisterAndLogin/index.d.ts +0 -1
- package/dist/solution/RegisterAndLogin/index.js +30 -76
- package/dist/solution/RegisterAndLogin/types.d.ts +0 -1
- package/dist/solution/RegisterAndLogin/utils.d.ts +0 -1
- package/dist/solution/Sales/index.d.ts +0 -1
- package/dist/solution/Sales/types.d.ts +0 -1
- package/dist/solution/ScanOrder/index.d.ts +0 -1
- package/dist/solution/ScanOrder/index.js +50 -60
- package/dist/solution/ScanOrder/types.d.ts +0 -1
- package/dist/solution/ScanOrder/utils.d.ts +0 -1
- package/dist/solution/ShopDiscount/index.d.ts +0 -1
- package/dist/solution/ShopDiscount/index.js +2 -7
- package/dist/solution/ShopDiscount/types.d.ts +0 -1
- package/dist/solution/ShopDiscount/utils.d.ts +0 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts +0 -1
- package/dist/solution/UnifiedBookingSales/remoteOccupancyCache.d.ts +0 -1
- package/dist/solution/UnifiedBookingSales/types.d.ts +0 -1
- package/dist/solution/VenueBooking/index.d.ts +0 -1
- package/dist/solution/VenueBooking/index.js +45 -55
- package/dist/solution/VenueBooking/types.d.ts +0 -1
- package/dist/solution/VenueBooking/utils/dateSummary.d.ts +0 -1
- package/dist/solution/VenueBooking/utils/resource.d.ts +0 -1
- package/dist/solution/VenueBooking/utils/slotMerge.d.ts +0 -1
- package/dist/solution/VenueBooking/utils/timeSlot.d.ts +0 -1
- package/dist/solution/VenueBooking/utils.d.ts +0 -1
- package/dist/solution/index.d.ts +0 -1
- package/dist/store/createStore.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/os-private-payload.d.ts +0 -1
- package/dist/utils/payment-number.d.ts +0 -1
- package/dist/utils/platform.d.ts +0 -1
- package/dist/utils/task.d.ts +0 -1
- package/dist/utils/task.js +15 -18
- package/dist/utils/watch.d.ts +0 -1
- package/dist/utils/watch.js +0 -1
- package/lib/core/index.js +1 -5
- package/lib/model/strategy/strategy-example.js +5 -19
- package/lib/modules/Discount/types.d.ts +2 -0
- package/lib/modules/Rules/index.js +58 -2
- package/lib/server/modules/order/types.d.ts +2 -0
- package/lib/server/utils/small-ticket.js +335 -51
- package/package.json +1 -1
- package/dist/apis/picoding.d.ts.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/effects/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/model/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/adapter.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/examples.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/adapter.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/examples.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/adapter.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/examples.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/example.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/locales.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/utils.d.ts.map +0 -1
- package/dist/model/strategy/engine.d.ts.map +0 -1
- package/dist/model/strategy/index.d.ts.map +0 -1
- package/dist/model/strategy/strategy-example.d.ts.map +0 -1
- package/dist/model/strategy/type.d.ts.map +0 -1
- package/dist/modules/Account/index.d.ts.map +0 -1
- package/dist/modules/Account/types.d.ts.map +0 -1
- package/dist/modules/AccountList/index.d.ts.map +0 -1
- package/dist/modules/AccountList/types.d.ts.map +0 -1
- package/dist/modules/AccountList/utils.d.ts.map +0 -1
- package/dist/modules/BaseModule.d.ts.map +0 -1
- package/dist/modules/BookingContext/index.d.ts.map +0 -1
- package/dist/modules/BookingContext/types.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/cacheItemToBookingInput.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/flexible.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/formatResourceList.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/index.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/noResource.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/orderLineDisplay.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/productExtend.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/resourceErrors.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/resourceSelection.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/resources.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/serviceTimes.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/timeSlices.d.ts.map +0 -1
- package/dist/modules/Cart/index.d.ts.map +0 -1
- package/dist/modules/Cart/types.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartAccount.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartDate.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartDiscount.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartNote.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartProduct.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartRelationForms.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartResource.d.ts.map +0 -1
- package/dist/modules/Cart/utils/changePrice.d.ts.map +0 -1
- package/dist/modules/Cart/utils/index.d.ts.map +0 -1
- package/dist/modules/Customer/constants.d.ts.map +0 -1
- package/dist/modules/Customer/index.d.ts.map +0 -1
- package/dist/modules/Customer/types.d.ts.map +0 -1
- package/dist/modules/Date/index.d.ts.map +0 -1
- package/dist/modules/Date/types.d.ts.map +0 -1
- package/dist/modules/Date/utils.d.ts.map +0 -1
- package/dist/modules/Discount/availability.d.ts.map +0 -1
- package/dist/modules/Discount/entitlementPass.d.ts.map +0 -1
- package/dist/modules/Discount/index.d.ts.map +0 -1
- package/dist/modules/Discount/types.d.ts.map +0 -1
- package/dist/modules/Guests/index.d.ts.map +0 -1
- package/dist/modules/Guests/types.d.ts.map +0 -1
- package/dist/modules/Holder/index.d.ts.map +0 -1
- package/dist/modules/Holder/types.d.ts.map +0 -1
- package/dist/modules/Holder/utils.d.ts.map +0 -1
- package/dist/modules/OpenData/index.d.ts.map +0 -1
- package/dist/modules/OpenData/types.d.ts.map +0 -1
- package/dist/modules/OpenData/utils.d.ts.map +0 -1
- package/dist/modules/Order/index.d.ts.map +0 -1
- package/dist/modules/Order/payment-utils.d.ts.map +0 -1
- package/dist/modules/Order/salesNotes.d.ts.map +0 -1
- package/dist/modules/Order/types.d.ts.map +0 -1
- package/dist/modules/Order/utils/bundleDiscountHydration.d.ts.map +0 -1
- package/dist/modules/Order/utils/discountProductLineIdentity.d.ts.map +0 -1
- package/dist/modules/Order/utils/manualProductDiscount.d.ts.map +0 -1
- package/dist/modules/Order/utils/orderCollectionIdentity.d.ts.map +0 -1
- package/dist/modules/Order/utils/virtualSettlement.d.ts.map +0 -1
- package/dist/modules/Order/utils.d.ts.map +0 -1
- package/dist/modules/Payment/cash.d.ts.map +0 -1
- package/dist/modules/Payment/cashRecommendationAlgorithm.d.ts.map +0 -1
- package/dist/modules/Payment/eftpos.d.ts.map +0 -1
- package/dist/modules/Payment/index.d.ts.map +0 -1
- package/dist/modules/Payment/mx51.d.ts.map +0 -1
- package/dist/modules/Payment/types.d.ts.map +0 -1
- package/dist/modules/Payment/utils.d.ts.map +0 -1
- package/dist/modules/Payment/walletpass.d.ts.map +0 -1
- package/dist/modules/Product/index.d.ts.map +0 -1
- package/dist/modules/Product/types.d.ts.map +0 -1
- package/dist/modules/Product/utils.d.ts.map +0 -1
- package/dist/modules/ProductList/clientDataVariants.d.ts.map +0 -1
- package/dist/modules/ProductList/index.d.ts.map +0 -1
- package/dist/modules/ProductList/types.d.ts.map +0 -1
- package/dist/modules/Quotation/index.d.ts.map +0 -1
- package/dist/modules/Quotation/types.d.ts.map +0 -1
- package/dist/modules/Resource/index.d.ts.map +0 -1
- package/dist/modules/Resource/types.d.ts.map +0 -1
- package/dist/modules/Resource/utils.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/index.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/localClock.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/planner.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/types.d.ts.map +0 -1
- package/dist/modules/Rules/index.d.ts.map +0 -1
- package/dist/modules/Rules/types.d.ts.map +0 -1
- package/dist/modules/SalesSummary/index.d.ts.map +0 -1
- package/dist/modules/SalesSummary/types.d.ts.map +0 -1
- package/dist/modules/SalesSummary/utils.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/index.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/providers/feishu.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/providers/grafana.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/types.d.ts.map +0 -1
- package/dist/modules/Schedule/getDateIsInSchedule.d.ts.map +0 -1
- package/dist/modules/Schedule/index.d.ts.map +0 -1
- package/dist/modules/Schedule/type.d.ts.map +0 -1
- package/dist/modules/Schedule/types.d.ts.map +0 -1
- package/dist/modules/Schedule/utils.d.ts.map +0 -1
- package/dist/modules/Step/index.d.ts.map +0 -1
- package/dist/modules/Step/tyeps.d.ts.map +0 -1
- package/dist/modules/Summary/index.d.ts.map +0 -1
- package/dist/modules/Summary/types.d.ts.map +0 -1
- package/dist/modules/Summary/utils.d.ts.map +0 -1
- package/dist/modules/SurchargeList/index.d.ts.map +0 -1
- package/dist/modules/SurchargeList/types.d.ts.map +0 -1
- package/dist/modules/index.d.ts.map +0 -1
- package/dist/plugins/app.d.ts.map +0 -1
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/request.d.ts.map +0 -1
- package/dist/plugins/shopStore.d.ts.map +0 -1
- package/dist/plugins/user.d.ts.map +0 -1
- package/dist/plugins/window.d.ts.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/modules/floor-plan/index.d.ts.map +0 -1
- package/dist/server/modules/floor-plan/types.d.ts.map +0 -1
- package/dist/server/modules/index.d.ts.map +0 -1
- package/dist/server/modules/menu/index.d.ts.map +0 -1
- package/dist/server/modules/menu/types.d.ts.map +0 -1
- package/dist/server/modules/order/index.d.ts.map +0 -1
- package/dist/server/modules/order/types.d.ts.map +0 -1
- package/dist/server/modules/order/utils/filterBookings.d.ts.map +0 -1
- package/dist/server/modules/order/utils/filterOrders.d.ts.map +0 -1
- package/dist/server/modules/payment/index.d.ts.map +0 -1
- package/dist/server/modules/payment/types.d.ts.map +0 -1
- package/dist/server/modules/products/index.d.ts.map +0 -1
- package/dist/server/modules/products/types.d.ts.map +0 -1
- package/dist/server/modules/quotation/index.d.ts.map +0 -1
- package/dist/server/modules/quotation/types.d.ts.map +0 -1
- package/dist/server/modules/resource/index.d.ts.map +0 -1
- package/dist/server/modules/resource/types.d.ts.map +0 -1
- package/dist/server/modules/schedule/index.d.ts.map +0 -1
- package/dist/server/modules/schedule/types.d.ts.map +0 -1
- package/dist/server/modules/schedule/utils.d.ts.map +0 -1
- package/dist/server/types.d.ts.map +0 -1
- package/dist/server/utils/index.d.ts.map +0 -1
- package/dist/server/utils/product.d.ts.map +0 -1
- package/dist/server/utils/schedule.d.ts.map +0 -1
- package/dist/server/utils/small-ticket.d.ts.map +0 -1
- package/dist/server/utils/time.d.ts.map +0 -1
- package/dist/solution/BaseSales/index.d.ts.map +0 -1
- package/dist/solution/BaseSales/types.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/cartPromotion.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/quotationPrice.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils.d.ts.map +0 -1
- package/dist/solution/BookingByStep/index.d.ts.map +0 -1
- package/dist/solution/BookingByStep/types.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/capacity.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/products.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/resources.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/stock.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/timeslots.d.ts.map +0 -1
- package/dist/solution/BookingTicket/index.d.ts.map +0 -1
- package/dist/solution/BookingTicket/types.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/addProductDecision.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/addTimeAvailability.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/bookingStatus.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/cartView.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/exampleData.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/orderCustomer.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/index.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/scanCache.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/scanProductValues.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/sessionCatalogStale.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/weighingProductSku.d.ts.map +0 -1
- package/dist/solution/BuyTickets/index.d.ts.map +0 -1
- package/dist/solution/BuyTickets/types.d.ts.map +0 -1
- package/dist/solution/Checkout/index.d.ts.map +0 -1
- package/dist/solution/Checkout/types.d.ts.map +0 -1
- package/dist/solution/Checkout/utils/index.d.ts.map +0 -1
- package/dist/solution/PlaceOrder/index.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/config.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/index.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/types.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/utils.d.ts.map +0 -1
- package/dist/solution/Sales/index.d.ts.map +0 -1
- package/dist/solution/Sales/types.d.ts.map +0 -1
- package/dist/solution/ScanOrder/index.d.ts.map +0 -1
- package/dist/solution/ScanOrder/types.d.ts.map +0 -1
- package/dist/solution/ScanOrder/utils.d.ts.map +0 -1
- package/dist/solution/ShopDiscount/index.d.ts.map +0 -1
- package/dist/solution/ShopDiscount/types.d.ts.map +0 -1
- package/dist/solution/ShopDiscount/utils.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/remoteOccupancyCache.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/types.d.ts.map +0 -1
- package/dist/solution/VenueBooking/index.d.ts.map +0 -1
- package/dist/solution/VenueBooking/types.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/dateSummary.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/resource.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/slotMerge.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/timeSlot.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils.d.ts.map +0 -1
- package/dist/solution/index.d.ts.map +0 -1
- package/dist/store/createStore.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/os-private-payload.d.ts.map +0 -1
- package/dist/utils/payment-number.d.ts.map +0 -1
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/task.d.ts.map +0 -1
- package/dist/utils/watch.d.ts.map +0 -1
|
@@ -191,12 +191,7 @@ export var VenueBookingImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
191
191
|
payload: payload,
|
|
192
192
|
extra: extra
|
|
193
193
|
});
|
|
194
|
-
} else {
|
|
195
|
-
console.log('[VenueBooking][log-fallback]', params.title, {
|
|
196
|
-
payload: payload,
|
|
197
|
-
extra: extra
|
|
198
|
-
});
|
|
199
|
-
}
|
|
194
|
+
} else {}
|
|
200
195
|
return _context.abrupt("return");
|
|
201
196
|
case 6:
|
|
202
197
|
_context.next = 8;
|
|
@@ -826,47 +821,45 @@ export var VenueBookingImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
826
821
|
})
|
|
827
822
|
});
|
|
828
823
|
this.registerCustomerLoginListeners();
|
|
829
|
-
|
|
830
|
-
_context7.
|
|
831
|
-
_context7.next = 49;
|
|
824
|
+
_context7.prev = 45;
|
|
825
|
+
_context7.next = 48;
|
|
832
826
|
return (_this$store$order = this.store.order) === null || _this$store$order === void 0 ? void 0 : _this$store$order.recalculateSummary({
|
|
833
827
|
createIfMissing: false
|
|
834
828
|
});
|
|
835
|
-
case
|
|
829
|
+
case 48:
|
|
836
830
|
(_this$store$order2 = this.store.order) === null || _this$store$order2 === void 0 || _this$store$order2.persistTempOrder();
|
|
837
|
-
_context7.next =
|
|
831
|
+
_context7.next = 51;
|
|
838
832
|
return this.loadRuntimeConfigs();
|
|
839
|
-
case
|
|
833
|
+
case 51:
|
|
840
834
|
if (!this.store.schedule) {
|
|
841
|
-
_context7.next =
|
|
835
|
+
_context7.next = 56;
|
|
842
836
|
break;
|
|
843
837
|
}
|
|
844
|
-
_context7.next =
|
|
838
|
+
_context7.next = 54;
|
|
845
839
|
return this.store.schedule.loadAllSchedule();
|
|
846
|
-
case
|
|
840
|
+
case 54:
|
|
847
841
|
this.injectScheduleResolverToQuotation();
|
|
848
842
|
this.preloadQuotations({
|
|
849
843
|
channel: (_this$otherParams11 = this.otherParams) === null || _this$otherParams11 === void 0 ? void 0 : _this$otherParams11.channel
|
|
850
844
|
});
|
|
851
|
-
case
|
|
852
|
-
_context7.next =
|
|
845
|
+
case 56:
|
|
846
|
+
_context7.next = 58;
|
|
853
847
|
return this.refreshItemRuleQuantityLimits();
|
|
854
|
-
case
|
|
848
|
+
case 58:
|
|
855
849
|
this.store.status = 'ready';
|
|
856
|
-
|
|
857
|
-
_context7.next = 63;
|
|
850
|
+
_context7.next = 61;
|
|
858
851
|
return this.core.effects.emit(VenueBookingHooks.onInited, {
|
|
859
852
|
status: this.store.status
|
|
860
853
|
});
|
|
861
|
-
case
|
|
854
|
+
case 61:
|
|
862
855
|
this.logMethodSuccess('initialize', {
|
|
863
856
|
status: this.store.status
|
|
864
857
|
});
|
|
865
|
-
_context7.next =
|
|
858
|
+
_context7.next = 71;
|
|
866
859
|
break;
|
|
867
|
-
case
|
|
868
|
-
_context7.prev =
|
|
869
|
-
_context7.t0 = _context7["catch"](
|
|
860
|
+
case 64:
|
|
861
|
+
_context7.prev = 64;
|
|
862
|
+
_context7.t0 = _context7["catch"](45);
|
|
870
863
|
this.store.status = 'error';
|
|
871
864
|
this.store.error = _context7.t0 instanceof Error ? _context7.t0.message : '初始化失败';
|
|
872
865
|
console.error('[VenueBooking] 初始化失败', _context7.t0);
|
|
@@ -874,11 +867,11 @@ export var VenueBookingImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
874
867
|
status: this.store.status
|
|
875
868
|
});
|
|
876
869
|
throw _context7.t0;
|
|
877
|
-
case
|
|
870
|
+
case 71:
|
|
878
871
|
case "end":
|
|
879
872
|
return _context7.stop();
|
|
880
873
|
}
|
|
881
|
-
}, _callee7, this, [[
|
|
874
|
+
}, _callee7, this, [[45, 64]]);
|
|
882
875
|
}));
|
|
883
876
|
function initialize(_x6) {
|
|
884
877
|
return _initialize.apply(this, arguments);
|
|
@@ -897,9 +890,8 @@ export var VenueBookingImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
897
890
|
_context8.next = 4;
|
|
898
891
|
return this.core.effects.emit(VenueBookingHooks.onDestroy, {});
|
|
899
892
|
case 4:
|
|
900
|
-
console.log('[VenueBooking] 已销毁');
|
|
901
893
|
this.logMethodSuccess('destroy');
|
|
902
|
-
case
|
|
894
|
+
case 5:
|
|
903
895
|
case "end":
|
|
904
896
|
return _context8.stop();
|
|
905
897
|
}
|
|
@@ -918,27 +910,26 @@ export var VenueBookingImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
918
910
|
while (1) switch (_context9.prev = _context9.next) {
|
|
919
911
|
case 0:
|
|
920
912
|
this.logMethodStart('retryInit');
|
|
921
|
-
|
|
922
|
-
_context9.next = 4;
|
|
913
|
+
_context9.next = 3;
|
|
923
914
|
return this.core.effects.emit(VenueBookingHooks.onRetryInit, {});
|
|
924
|
-
case
|
|
925
|
-
_context9.prev =
|
|
926
|
-
_context9.next =
|
|
915
|
+
case 3:
|
|
916
|
+
_context9.prev = 3;
|
|
917
|
+
_context9.next = 6;
|
|
927
918
|
return this.initialize(this.core, this.initializeOptions);
|
|
928
|
-
case
|
|
919
|
+
case 6:
|
|
929
920
|
this.logMethodSuccess('retryInit');
|
|
930
|
-
_context9.next =
|
|
921
|
+
_context9.next = 13;
|
|
931
922
|
break;
|
|
932
|
-
case
|
|
933
|
-
_context9.prev =
|
|
934
|
-
_context9.t0 = _context9["catch"](
|
|
923
|
+
case 9:
|
|
924
|
+
_context9.prev = 9;
|
|
925
|
+
_context9.t0 = _context9["catch"](3);
|
|
935
926
|
this.logMethodError('retryInit', _context9.t0);
|
|
936
927
|
throw _context9.t0;
|
|
937
|
-
case
|
|
928
|
+
case 13:
|
|
938
929
|
case "end":
|
|
939
930
|
return _context9.stop();
|
|
940
931
|
}
|
|
941
|
-
}, _callee9, this, [[
|
|
932
|
+
}, _callee9, this, [[3, 9]]);
|
|
942
933
|
}));
|
|
943
934
|
function retryInit() {
|
|
944
935
|
return _retryInit.apply(this, arguments);
|
|
@@ -953,36 +944,35 @@ export var VenueBookingImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
953
944
|
while (1) switch (_context10.prev = _context10.next) {
|
|
954
945
|
case 0:
|
|
955
946
|
this.logMethodStart('refresh');
|
|
956
|
-
|
|
957
|
-
_context10.prev = 2;
|
|
947
|
+
_context10.prev = 1;
|
|
958
948
|
this.store.status = 'initializing';
|
|
959
|
-
_context10.next =
|
|
949
|
+
_context10.next = 5;
|
|
960
950
|
return this.loadRuntimeConfigs();
|
|
961
|
-
case
|
|
962
|
-
_context10.next =
|
|
951
|
+
case 5:
|
|
952
|
+
_context10.next = 7;
|
|
963
953
|
return this.refreshItemRuleQuantityLimits();
|
|
964
|
-
case
|
|
954
|
+
case 7:
|
|
965
955
|
this.store.status = 'ready';
|
|
966
|
-
_context10.next =
|
|
956
|
+
_context10.next = 10;
|
|
967
957
|
return this.core.effects.emit(VenueBookingHooks.onRefresh, {
|
|
968
958
|
status: this.store.status
|
|
969
959
|
});
|
|
970
|
-
case
|
|
960
|
+
case 10:
|
|
971
961
|
this.logMethodSuccess('refresh', {
|
|
972
962
|
status: this.store.status
|
|
973
963
|
});
|
|
974
|
-
_context10.next =
|
|
964
|
+
_context10.next = 17;
|
|
975
965
|
break;
|
|
976
|
-
case
|
|
977
|
-
_context10.prev =
|
|
978
|
-
_context10.t0 = _context10["catch"](
|
|
966
|
+
case 13:
|
|
967
|
+
_context10.prev = 13;
|
|
968
|
+
_context10.t0 = _context10["catch"](1);
|
|
979
969
|
this.logMethodError('refresh', _context10.t0);
|
|
980
970
|
throw _context10.t0;
|
|
981
|
-
case
|
|
971
|
+
case 17:
|
|
982
972
|
case "end":
|
|
983
973
|
return _context10.stop();
|
|
984
974
|
}
|
|
985
|
-
}, _callee10, this, [[
|
|
975
|
+
}, _callee10, this, [[1, 13]]);
|
|
986
976
|
}));
|
|
987
977
|
function refresh() {
|
|
988
978
|
return _refresh.apply(this, arguments);
|
|
@@ -12,4 +12,3 @@ export declare function extractResourceIds(products: ProductData[]): number[];
|
|
|
12
12
|
* Map 的 value 改为 ResourceProductMapping[],按商品出现顺序保留。
|
|
13
13
|
*/
|
|
14
14
|
export declare function buildResourceProductMap(products: ProductData[]): Map<number | string, ResourceProductMapping[]>;
|
|
15
|
-
//# sourceMappingURL=resource.d.ts.map
|
|
@@ -38,4 +38,3 @@ export declare function buildVenueBookingEntry(params: BuildVenueBookingParams):
|
|
|
38
38
|
* 回退到按 selling_price / slot_count 均分。
|
|
39
39
|
*/
|
|
40
40
|
export declare function expandMergedSlotToIndividual(product: ScanOrderOrderProduct, slotDurationMinutes: number): VenueSlotSelection[];
|
|
41
|
-
//# sourceMappingURL=slotMerge.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export { createEmptySummary, getSafeProductNum, toBoolean, toPositiveString, normalizeEnabledItemRuleIds, extractStrategyModelIdsFromTableConfig, normalizeItemRuleStrategies, toNonNegativeNumber, toNonNegativeInt, toPriceString, buildProductKey, getTopLevelProductId, getTopLevelVariantId, buildQuantityLimitIndex, resolveSkuMatchedQuantityLimits, aggregateItemRuleLimit, buildItemRuleBusinessData, attachItemRuleLimitsToTopLevelProducts, getProductIdentityIndex, isIdentityMatch, normalizeOrderProduct, } from '../ScanOrder/utils';
|
|
2
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/dist/solution/index.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export declare function resolvePaymentNumberDevicePrefixFromDeviceId(getAppData:
|
|
|
7
7
|
* Resolve the latest device segment when a new payment number is generated.
|
|
8
8
|
*/
|
|
9
9
|
export declare function resolvePaymentNumberDevicePrefix(getAppData: PaymentNumberAppDataGetter): Promise<string>;
|
|
10
|
-
//# sourceMappingURL=payment-number.d.ts.map
|
package/dist/utils/platform.d.ts
CHANGED
|
@@ -6,4 +6,3 @@ export declare function normalizeRuntimePlatform(platform: unknown): string;
|
|
|
6
6
|
* PC and H5 are authenticated-customer clients rather than staff terminals.
|
|
7
7
|
*/
|
|
8
8
|
export declare function isCustomerUserPlatform(platform: unknown): boolean;
|
|
9
|
-
//# sourceMappingURL=platform.d.ts.map
|
package/dist/utils/task.d.ts
CHANGED
package/dist/utils/task.js
CHANGED
|
@@ -94,7 +94,7 @@ var Tasks = /*#__PURE__*/function () {
|
|
|
94
94
|
// 遍历任务队列
|
|
95
95
|
case 6:
|
|
96
96
|
if (!(this.taskQueue.length > 0)) {
|
|
97
|
-
_context.next =
|
|
97
|
+
_context.next = 29;
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
100
|
// 获取任务,但是不删除
|
|
@@ -109,7 +109,7 @@ var Tasks = /*#__PURE__*/function () {
|
|
|
109
109
|
// 获取任务对应的action
|
|
110
110
|
action = this.actions.get(task.type); // 如果找到对应的action,则执行
|
|
111
111
|
if (!action) {
|
|
112
|
-
_context.next =
|
|
112
|
+
_context.next = 26;
|
|
113
113
|
break;
|
|
114
114
|
}
|
|
115
115
|
_context.prev = 13;
|
|
@@ -118,36 +118,33 @@ var Tasks = /*#__PURE__*/function () {
|
|
|
118
118
|
uuid: task === null || task === void 0 ? void 0 : task.uuid
|
|
119
119
|
}));
|
|
120
120
|
case 16:
|
|
121
|
-
|
|
122
|
-
_context.next = 22;
|
|
121
|
+
_context.next = 21;
|
|
123
122
|
break;
|
|
124
|
-
case
|
|
125
|
-
_context.prev =
|
|
123
|
+
case 18:
|
|
124
|
+
_context.prev = 18;
|
|
126
125
|
_context.t0 = _context["catch"](13);
|
|
127
126
|
console.error('task_error>>>>>>>', _context.t0);
|
|
128
|
-
case
|
|
129
|
-
_context.prev =
|
|
127
|
+
case 21:
|
|
128
|
+
_context.prev = 21;
|
|
130
129
|
// 将任务删除
|
|
131
130
|
_task = this.taskQueue.shift();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
_context.next = 30;
|
|
131
|
+
return _context.finish(21);
|
|
132
|
+
case 24:
|
|
133
|
+
_context.next = 27;
|
|
136
134
|
break;
|
|
137
|
-
case
|
|
135
|
+
case 26:
|
|
138
136
|
// 如果找不到对应的action,则删除任务
|
|
139
137
|
_task2 = this.taskQueue.shift();
|
|
140
|
-
|
|
141
|
-
case 30:
|
|
138
|
+
case 27:
|
|
142
139
|
_context.next = 6;
|
|
143
140
|
break;
|
|
144
|
-
case
|
|
141
|
+
case 29:
|
|
145
142
|
this.isRunning = false;
|
|
146
|
-
case
|
|
143
|
+
case 30:
|
|
147
144
|
case "end":
|
|
148
145
|
return _context.stop();
|
|
149
146
|
}
|
|
150
|
-
}, _callee, this, [[13,
|
|
147
|
+
}, _callee, this, [[13, 18, 21, 24]]);
|
|
151
148
|
}));
|
|
152
149
|
function run() {
|
|
153
150
|
return _run.apply(this, arguments);
|
package/dist/utils/watch.d.ts
CHANGED
package/dist/utils/watch.js
CHANGED
|
@@ -203,7 +203,6 @@ var Watch = /*#__PURE__*/function () {
|
|
|
203
203
|
key: "getLastEnableEventKey",
|
|
204
204
|
value: function getLastEnableEventKey(watchKey) {
|
|
205
205
|
var enableList = this.enableListMap.get(watchKey);
|
|
206
|
-
console.log('enableList', enableList);
|
|
207
206
|
if (!enableList) {
|
|
208
207
|
return undefined;
|
|
209
208
|
}
|
package/lib/core/index.js
CHANGED
|
@@ -30,7 +30,6 @@ class PisellOSCore {
|
|
|
30
30
|
this.serverOptions = options.server;
|
|
31
31
|
}
|
|
32
32
|
this.initialize(options);
|
|
33
|
-
console.log('constructor123456');
|
|
34
33
|
}
|
|
35
34
|
initialize(options) {
|
|
36
35
|
if (options?.plugins) {
|
|
@@ -93,7 +92,6 @@ class PisellOSCore {
|
|
|
93
92
|
if (this.serverOptions.modules) {
|
|
94
93
|
await this.server.initialize(this.serverOptions.modules, this.serverOptions.autoInitData !== false, options);
|
|
95
94
|
}
|
|
96
|
-
console.log('[PisellOS] ✅ Server 初始化完成,所有数据已预加载');
|
|
97
95
|
this.log('[PisellOS] Server 初始化完成');
|
|
98
96
|
} catch (error) {
|
|
99
97
|
console.error('[PisellOS] ❌ Server 初始化失败:', error);
|
|
@@ -110,11 +108,10 @@ class PisellOSCore {
|
|
|
110
108
|
const prefix = '[PisellOS]';
|
|
111
109
|
switch (level) {
|
|
112
110
|
case 'info':
|
|
113
|
-
console.log(`${prefix} ${message}`);
|
|
114
111
|
break;
|
|
115
112
|
case 'warn':
|
|
116
113
|
// 使用 console.log 避免显示堆栈跟踪,提升性能
|
|
117
|
-
|
|
114
|
+
|
|
118
115
|
break;
|
|
119
116
|
case 'error':
|
|
120
117
|
console.error(`${prefix} ${message}`);
|
|
@@ -186,7 +183,6 @@ class PisellOSCore {
|
|
|
186
183
|
const {
|
|
187
184
|
proxy
|
|
188
185
|
} = (0, _createStore.createStore)(options?.initialState || {}, module.name, (path, value) => {
|
|
189
|
-
console.log('core 检测到模块值更新', module.name, path, value);
|
|
190
186
|
this.effects.emit(`${module.name}:changed`, {
|
|
191
187
|
path,
|
|
192
188
|
value
|
|
@@ -252,8 +252,6 @@ const codeContext = {
|
|
|
252
252
|
// ============================================
|
|
253
253
|
|
|
254
254
|
function runExamples() {
|
|
255
|
-
console.log('====== 策略模型使用示例 ======\n');
|
|
256
|
-
|
|
257
255
|
// 创建引擎实例(开启调试和追踪)
|
|
258
256
|
const engine = (0, _index.createStrategyEngine)({
|
|
259
257
|
debug: true,
|
|
@@ -261,32 +259,23 @@ function runExamples() {
|
|
|
261
259
|
});
|
|
262
260
|
|
|
263
261
|
// 示例1: 代金券
|
|
264
|
-
|
|
262
|
+
|
|
265
263
|
const result1 = engine.evaluate(voucherConfig, voucherContext);
|
|
266
|
-
console.log('结果:', JSON.stringify(result1, null, 2));
|
|
267
|
-
console.log('\n');
|
|
268
264
|
|
|
269
265
|
// 示例2: 阶梯满减
|
|
270
|
-
|
|
266
|
+
|
|
271
267
|
const result2 = engine.evaluate(tieredDiscountConfig, tieredContext);
|
|
272
|
-
console.log('结果:', JSON.stringify(result2, null, 2));
|
|
273
|
-
console.log('\n');
|
|
274
268
|
|
|
275
269
|
// 示例3: Code 模式
|
|
276
|
-
|
|
270
|
+
|
|
277
271
|
const result3 = engine.evaluate(codeConditionConfig, codeContext);
|
|
278
|
-
console.log('结果:', JSON.stringify(result3, null, 2));
|
|
279
|
-
console.log('\n');
|
|
280
272
|
|
|
281
273
|
// 快速评估(不需要创建引擎实例)
|
|
282
|
-
|
|
274
|
+
|
|
283
275
|
const result4 = (0, _index.evaluate)(voucherConfig, voucherContext);
|
|
284
|
-
console.log('适用:', result4.applicable);
|
|
285
|
-
console.log('匹配动作数:', result4.matchedActions.length);
|
|
286
|
-
console.log('\n');
|
|
287
276
|
|
|
288
277
|
// 注册自定义运算符
|
|
289
|
-
|
|
278
|
+
|
|
290
279
|
engine.registerOperator('divisible_by', (fieldValue, compareValue) => {
|
|
291
280
|
return Number(fieldValue) % Number(compareValue) === 0;
|
|
292
281
|
});
|
|
@@ -323,11 +312,8 @@ function runExamples() {
|
|
|
323
312
|
}
|
|
324
313
|
};
|
|
325
314
|
const result5 = engine.evaluate(customOperatorConfig, customContext);
|
|
326
|
-
console.log('结果:', result5.applicable ? '适用' : '不适用');
|
|
327
|
-
console.log('匹配动作:', result5.matchedActions);
|
|
328
315
|
|
|
329
316
|
// 调试信息
|
|
330
|
-
console.log('\n引擎调试信息:', engine.getDebugInfo());
|
|
331
317
|
}
|
|
332
318
|
|
|
333
319
|
// 运行示例(如果直接执行此文件)
|
|
@@ -2126,9 +2126,65 @@ class RulesModule extends _BaseModule.BaseModule {
|
|
|
2126
2126
|
appliedProductDetails: committedAppliedProductDetails
|
|
2127
2127
|
};
|
|
2128
2128
|
});
|
|
2129
|
+
|
|
2130
|
+
// 整单分配完成后统一记录卡余额;历史使用已包含在服务端余额中,只扣本次新增次数。
|
|
2131
|
+
const entitlementBalances = new Map();
|
|
2132
|
+
addModeDiscount.forEach(discount => {
|
|
2133
|
+
const quota = (0, _entitlementPass.resolveEntitlementQuota)(discount);
|
|
2134
|
+
if (!quota) return;
|
|
2135
|
+
entitlementBalances.set(String(discount.id), quota.type === 'unlimited' ? null : Math.max(quota.balance - (entitlementUsageCounts.get(discount.id) || 0), 0));
|
|
2136
|
+
});
|
|
2137
|
+
const getEntitlementBalance = detail => {
|
|
2138
|
+
if (!(0, _entitlementPass.isEntitlementPass)(detail)) return undefined;
|
|
2139
|
+
const resourceId = detail?.discount?.resource_id ?? detail?.resource_id;
|
|
2140
|
+
return entitlementBalances.get(String(resourceId));
|
|
2141
|
+
};
|
|
2142
|
+
const needsEntitlementBalance = detail => {
|
|
2143
|
+
const balance = getEntitlementBalance(detail);
|
|
2144
|
+
return balance !== undefined && detail?.metadata?.balance !== balance;
|
|
2145
|
+
};
|
|
2146
|
+
const withEntitlementBalance = detail => {
|
|
2147
|
+
if (!needsEntitlementBalance(detail)) return detail;
|
|
2148
|
+
return {
|
|
2149
|
+
...detail,
|
|
2150
|
+
metadata: {
|
|
2151
|
+
...(detail.metadata || {}),
|
|
2152
|
+
balance: getEntitlementBalance(detail)
|
|
2153
|
+
}
|
|
2154
|
+
};
|
|
2155
|
+
};
|
|
2156
|
+
const getProductDiscountDetails = originProduct => {
|
|
2157
|
+
const product = this.hooks.getProduct(originProduct);
|
|
2158
|
+
return [...(product.discount_list || []), ...(product.bundle || []).flatMap(bundle => bundle.discount_list || [])];
|
|
2159
|
+
};
|
|
2160
|
+
const productsWithEntitlementBalances = entitlementBalances.size ? processedProductList.map(product => {
|
|
2161
|
+
if (!getProductDiscountDetails(product).some(needsEntitlementBalance)) {
|
|
2162
|
+
return product;
|
|
2163
|
+
}
|
|
2164
|
+
// 历史商品及套餐可能仍引用输入快照;仅复制有变化的行,并直接更新 metadata。
|
|
2165
|
+
// 不再次调用价格换算钩子,避免只补余额时改变商品价格。
|
|
2166
|
+
const nextProduct = (0, _lodashEs.cloneDeep)(product);
|
|
2167
|
+
getProductDiscountDetails(nextProduct).forEach(detail => {
|
|
2168
|
+
if (!needsEntitlementBalance(detail)) return;
|
|
2169
|
+
detail.metadata = withEntitlementBalance(detail).metadata;
|
|
2170
|
+
});
|
|
2171
|
+
return nextProduct;
|
|
2172
|
+
}) : processedProductList;
|
|
2173
|
+
const discountsWithEntitlementBalances = [...editModeDiscount, ...updatedDiscountList].map(discount => {
|
|
2174
|
+
if (!(0, _entitlementPass.isEntitlementPass)(discount) || !entitlementBalances.has(String(discount.id))) {
|
|
2175
|
+
return discount;
|
|
2176
|
+
}
|
|
2177
|
+
return {
|
|
2178
|
+
...discount,
|
|
2179
|
+
appliedProductDetails: (discount.appliedProductDetails || []).map(withEntitlementBalance),
|
|
2180
|
+
...(discount.committedAppliedProductDetails ? {
|
|
2181
|
+
committedAppliedProductDetails: discount.committedAppliedProductDetails.map(withEntitlementBalance)
|
|
2182
|
+
} : {})
|
|
2183
|
+
};
|
|
2184
|
+
});
|
|
2129
2185
|
return {
|
|
2130
|
-
productList:
|
|
2131
|
-
discountList:
|
|
2186
|
+
productList: productsWithEntitlementBalances,
|
|
2187
|
+
discountList: discountsWithEntitlementBalances
|
|
2132
2188
|
};
|
|
2133
2189
|
}
|
|
2134
2190
|
|
|
@@ -36,6 +36,8 @@ export type OrderSurchargeType = string;
|
|
|
36
36
|
export interface OrderProductDiscountMetadata {
|
|
37
37
|
/** 设备端本地唯一标识,用于与服务端记录对齐 */
|
|
38
38
|
unique_identification_number?: string;
|
|
39
|
+
/** 月卡扣除本单新增使用后的剩余次数;不限次数时为 null。 */
|
|
40
|
+
balance?: number | null;
|
|
39
41
|
[key: string]: unknown;
|
|
40
42
|
}
|
|
41
43
|
/**
|