@pisell/pisellos 2.2.310 → 2.2.312-vm.0
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.map +1 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/effects/index.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/inventory/index.d.ts +92 -0
- package/dist/inventory/index.d.ts.map +1 -0
- package/dist/inventory/index.js +509 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model/strategy/adapter/dataVariant/adapter.d.ts.map +1 -0
- package/dist/model/strategy/adapter/dataVariant/evaluator.d.ts.map +1 -0
- package/dist/model/strategy/adapter/dataVariant/examples.d.ts.map +1 -0
- package/dist/model/strategy/adapter/dataVariant/index.d.ts.map +1 -0
- package/dist/model/strategy/adapter/dataVariant/type.d.ts.map +1 -0
- package/dist/model/strategy/adapter/index.d.ts.map +1 -0
- package/dist/model/strategy/adapter/itemRule/adapter.d.ts.map +1 -0
- package/dist/model/strategy/adapter/itemRule/evaluator.d.ts.map +1 -0
- package/dist/model/strategy/adapter/itemRule/examples.d.ts.map +1 -0
- package/dist/model/strategy/adapter/itemRule/index.d.ts.map +1 -0
- package/dist/model/strategy/adapter/itemRule/type.d.ts.map +1 -0
- package/dist/model/strategy/adapter/promotion/adapter.d.ts.map +1 -0
- package/dist/model/strategy/adapter/promotion/evaluator.d.ts.map +1 -0
- package/dist/model/strategy/adapter/promotion/examples.d.ts.map +1 -0
- package/dist/model/strategy/adapter/promotion/index.d.ts.map +1 -0
- package/dist/model/strategy/adapter/promotion/index.js +0 -9
- package/dist/model/strategy/adapter/promotion/type.d.ts.map +1 -0
- package/dist/model/strategy/adapter/type.d.ts.map +1 -0
- package/dist/model/strategy/adapter/walletPass/evaluator.d.ts.map +1 -0
- package/dist/model/strategy/adapter/walletPass/example.d.ts.map +1 -0
- package/dist/model/strategy/adapter/walletPass/index.d.ts.map +1 -0
- package/dist/model/strategy/adapter/walletPass/locales.d.ts.map +1 -0
- package/dist/model/strategy/adapter/walletPass/type.d.ts.map +1 -0
- package/dist/model/strategy/adapter/walletPass/utils.d.ts.map +1 -0
- package/dist/model/strategy/engine.d.ts.map +1 -0
- package/dist/model/strategy/index.d.ts.map +1 -0
- package/dist/model/strategy/strategy-example.d.ts.map +1 -0
- package/dist/model/strategy/type.d.ts.map +1 -0
- package/dist/modules/Account/index.d.ts.map +1 -0
- package/dist/modules/Account/types.d.ts.map +1 -0
- package/dist/modules/AccountList/index.d.ts.map +1 -0
- package/dist/modules/AccountList/types.d.ts.map +1 -0
- package/dist/modules/AccountList/utils.d.ts.map +1 -0
- package/dist/modules/BaseModule.d.ts.map +1 -0
- package/dist/modules/BookingContext/index.d.ts.map +1 -0
- package/dist/modules/BookingContext/types.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/cacheItemToBookingInput.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/flexible.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/formatResourceList.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/index.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/noResource.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/orderLineDisplay.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/productExtend.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/resourceErrors.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/resourceSelection.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/resources.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/serviceTimes.d.ts.map +1 -0
- package/dist/modules/BookingContext/utils/timeSlices.d.ts.map +1 -0
- package/dist/modules/Cart/index.d.ts.map +1 -0
- package/dist/modules/Cart/types.d.ts.map +1 -0
- package/dist/modules/Cart/utils/cartAccount.d.ts.map +1 -0
- package/dist/modules/Cart/utils/cartDate.d.ts.map +1 -0
- package/dist/modules/Cart/utils/cartDiscount.d.ts.map +1 -0
- package/dist/modules/Cart/utils/cartNote.d.ts.map +1 -0
- package/dist/modules/Cart/utils/cartProduct.d.ts.map +1 -0
- package/dist/modules/Cart/utils/cartRelationForms.d.ts.map +1 -0
- package/dist/modules/Cart/utils/cartResource.d.ts.map +1 -0
- package/dist/modules/Cart/utils/changePrice.d.ts.map +1 -0
- package/dist/modules/Cart/utils/index.d.ts.map +1 -0
- package/dist/modules/Customer/constants.d.ts.map +1 -0
- package/dist/modules/Customer/index.d.ts.map +1 -0
- package/dist/modules/Customer/types.d.ts.map +1 -0
- package/dist/modules/Date/index.d.ts.map +1 -0
- package/dist/modules/Date/types.d.ts.map +1 -0
- package/dist/modules/Date/utils.d.ts.map +1 -0
- package/dist/modules/Discount/availability.d.ts.map +1 -0
- package/dist/modules/Discount/entitlementPass.d.ts.map +1 -0
- package/dist/modules/Discount/index.d.ts.map +1 -0
- package/dist/modules/Discount/index.js +1 -0
- package/dist/modules/Discount/types.d.ts.map +1 -0
- package/dist/modules/Guests/index.d.ts.map +1 -0
- package/dist/modules/Guests/types.d.ts.map +1 -0
- package/dist/modules/Holder/index.d.ts.map +1 -0
- package/dist/modules/Holder/types.d.ts.map +1 -0
- package/dist/modules/Holder/utils.d.ts.map +1 -0
- package/dist/modules/OpenData/index.d.ts.map +1 -0
- package/dist/modules/OpenData/types.d.ts.map +1 -0
- package/dist/modules/OpenData/utils.d.ts.map +1 -0
- package/dist/modules/Order/index.d.ts +25 -3
- package/dist/modules/Order/index.d.ts.map +1 -0
- package/dist/modules/Order/index.js +1647 -1211
- package/dist/modules/Order/payment-utils.d.ts.map +1 -0
- package/dist/modules/Order/salesNotes.d.ts.map +1 -0
- package/dist/modules/Order/types.d.ts +7 -0
- package/dist/modules/Order/types.d.ts.map +1 -0
- package/dist/modules/Order/utils/bundleDiscountHydration.d.ts.map +1 -0
- package/dist/modules/Order/utils/discountProductLineIdentity.d.ts.map +1 -0
- package/dist/modules/Order/utils/discountProductLineIdentity.js +2 -2
- package/dist/modules/Order/utils/manualProductDiscount.d.ts.map +1 -0
- package/dist/modules/Order/utils/orderCollectionIdentity.d.ts.map +1 -0
- package/dist/modules/Order/utils/productVoucherGroups.d.ts +15 -0
- package/dist/modules/Order/utils/productVoucherGroups.d.ts.map +1 -0
- package/dist/modules/Order/utils/productVoucherGroups.js +115 -0
- package/dist/modules/Order/utils/virtualSettlement.d.ts.map +1 -0
- package/dist/modules/Order/utils/weighedProduct.d.ts.map +1 -0
- package/dist/modules/Order/utils.d.ts +5 -3
- package/dist/modules/Order/utils.d.ts.map +1 -0
- package/dist/modules/Order/utils.js +32 -11
- package/dist/modules/Payment/cash.d.ts.map +1 -0
- package/dist/modules/Payment/cashRecommendationAlgorithm.d.ts.map +1 -0
- package/dist/modules/Payment/eftpos.d.ts.map +1 -0
- package/dist/modules/Payment/index.d.ts.map +1 -0
- package/dist/modules/Payment/mx51.d.ts.map +1 -0
- package/dist/modules/Payment/types.d.ts.map +1 -0
- package/dist/modules/Payment/utils.d.ts.map +1 -0
- package/dist/modules/Payment/walletpass.d.ts.map +1 -0
- package/dist/modules/Product/index.d.ts.map +1 -0
- package/dist/modules/Product/types.d.ts.map +1 -0
- package/dist/modules/Product/utils.d.ts.map +1 -0
- package/dist/modules/ProductList/clientDataVariants.d.ts.map +1 -0
- package/dist/modules/ProductList/index.d.ts.map +1 -0
- package/dist/modules/ProductList/index.js +33 -12
- package/dist/modules/ProductList/types.d.ts.map +1 -0
- package/dist/modules/Quotation/index.d.ts.map +1 -0
- package/dist/modules/Quotation/types.d.ts.map +1 -0
- package/dist/modules/Resource/index.d.ts.map +1 -0
- package/dist/modules/Resource/types.d.ts.map +1 -0
- package/dist/modules/Resource/utils.d.ts.map +1 -0
- package/dist/modules/ResourcePlanner/index.d.ts.map +1 -0
- package/dist/modules/ResourcePlanner/localClock.d.ts.map +1 -0
- package/dist/modules/ResourcePlanner/planner.d.ts.map +1 -0
- package/dist/modules/ResourcePlanner/types.d.ts.map +1 -0
- package/dist/modules/Rules/index.d.ts +2 -0
- package/dist/modules/Rules/index.d.ts.map +1 -0
- package/dist/modules/Rules/index.js +29 -21
- package/dist/modules/Rules/types.d.ts.map +1 -0
- package/dist/modules/SalesSummary/index.d.ts.map +1 -0
- package/dist/modules/SalesSummary/types.d.ts.map +1 -0
- package/dist/modules/SalesSummary/utils.d.ts.map +1 -0
- package/dist/modules/ScanOrderLogger/index.d.ts.map +1 -0
- package/dist/modules/ScanOrderLogger/providers/feishu.d.ts.map +1 -0
- package/dist/modules/ScanOrderLogger/providers/grafana.d.ts.map +1 -0
- package/dist/modules/ScanOrderLogger/types.d.ts.map +1 -0
- package/dist/modules/Schedule/getDateIsInSchedule.d.ts.map +1 -0
- package/dist/modules/Schedule/index.d.ts.map +1 -0
- package/dist/modules/Schedule/type.d.ts.map +1 -0
- package/dist/modules/Schedule/types.d.ts.map +1 -0
- package/dist/modules/Schedule/utils.d.ts.map +1 -0
- package/dist/modules/Step/index.d.ts.map +1 -0
- package/dist/modules/Step/tyeps.d.ts.map +1 -0
- package/dist/modules/Summary/index.d.ts.map +1 -0
- package/dist/modules/Summary/types.d.ts.map +1 -0
- package/dist/modules/Summary/utils.d.ts.map +1 -0
- package/dist/modules/SurchargeList/index.d.ts.map +1 -0
- package/dist/modules/SurchargeList/types.d.ts.map +1 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/plugins/app.d.ts.map +1 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/request.d.ts.map +1 -0
- package/dist/plugins/shopStore.d.ts.map +1 -0
- package/dist/plugins/user.d.ts.map +1 -0
- package/dist/plugins/window.d.ts.map +1 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/modules/floor-plan/index.d.ts.map +1 -0
- package/dist/server/modules/floor-plan/index.js +34 -3
- package/dist/server/modules/floor-plan/types.d.ts.map +1 -0
- package/dist/server/modules/index.d.ts.map +1 -0
- package/dist/server/modules/menu/index.d.ts.map +1 -0
- package/dist/server/modules/menu/types.d.ts.map +1 -0
- package/dist/server/modules/order/index.d.ts.map +1 -0
- package/dist/server/modules/order/types.d.ts.map +1 -0
- package/dist/server/modules/order/utils/filterBookings.d.ts.map +1 -0
- package/dist/server/modules/order/utils/filterOrders.d.ts.map +1 -0
- package/dist/server/modules/payment/index.d.ts.map +1 -0
- package/dist/server/modules/payment/types.d.ts.map +1 -0
- package/dist/server/modules/products/index.d.ts.map +1 -0
- package/dist/server/modules/products/types.d.ts.map +1 -0
- package/dist/server/modules/quotation/index.d.ts.map +1 -0
- package/dist/server/modules/quotation/types.d.ts.map +1 -0
- package/dist/server/modules/resource/index.d.ts.map +1 -0
- package/dist/server/modules/resource/types.d.ts.map +1 -0
- package/dist/server/modules/schedule/index.d.ts.map +1 -0
- package/dist/server/modules/schedule/types.d.ts.map +1 -0
- package/dist/server/modules/schedule/utils.d.ts.map +1 -0
- package/dist/server/types.d.ts.map +1 -0
- package/dist/server/utils/index.d.ts.map +1 -0
- package/dist/server/utils/product.d.ts.map +1 -0
- package/dist/server/utils/schedule.d.ts.map +1 -0
- package/dist/server/utils/small-ticket.d.ts.map +1 -0
- package/dist/server/utils/time.d.ts.map +1 -0
- package/dist/solution/BaseSales/index.d.ts +16 -1
- package/dist/solution/BaseSales/index.d.ts.map +1 -0
- package/dist/solution/BaseSales/index.js +1363 -1176
- package/dist/solution/BaseSales/types.d.ts.map +1 -0
- package/dist/solution/BaseSales/utils/cartPromotion.d.ts.map +1 -0
- package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts.map +1 -0
- package/dist/solution/BaseSales/utils/quotationPrice.d.ts.map +1 -0
- package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts.map +1 -0
- package/dist/solution/BaseSales/utils.d.ts.map +1 -0
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingByStep/index.d.ts.map +1 -0
- package/dist/solution/BookingByStep/types.d.ts.map +1 -0
- package/dist/solution/BookingByStep/utils/capacity.d.ts.map +1 -0
- package/dist/solution/BookingByStep/utils/products.d.ts.map +1 -0
- package/dist/solution/BookingByStep/utils/resources.d.ts.map +1 -0
- package/dist/solution/BookingByStep/utils/stock.d.ts.map +1 -0
- package/dist/solution/BookingByStep/utils/timeslots.d.ts.map +1 -0
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.d.ts.map +1 -0
- package/dist/solution/BookingTicket/index.js +198 -108
- package/dist/solution/BookingTicket/types.d.ts +14 -2
- package/dist/solution/BookingTicket/types.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/addProductDecision.d.ts +1 -1
- package/dist/solution/BookingTicket/utils/addProductDecision.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/addProductDecision.js +4 -3
- package/dist/solution/BookingTicket/utils/addTimeAvailability.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/bookingStatus.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/cartView.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/exampleData.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/orderCustomer.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.js +94 -58
- package/dist/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.d.ts +10 -0
- package/dist/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.js +117 -0
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.js +1 -0
- package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/scan/handleScan.js +2 -1
- package/dist/solution/BookingTicket/utils/scan/index.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/scan/scanCache.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/scan/scanProductValues.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/sessionCatalogStale.d.ts.map +1 -0
- package/dist/solution/BookingTicket/utils/weighingProductSku.d.ts.map +1 -0
- package/dist/solution/BuyTickets/index.d.ts.map +1 -0
- package/dist/solution/BuyTickets/types.d.ts.map +1 -0
- package/dist/solution/Checkout/index.d.ts.map +1 -0
- package/dist/solution/Checkout/types.d.ts.map +1 -0
- package/dist/solution/Checkout/utils/index.d.ts.map +1 -0
- package/dist/solution/PlaceOrder/index.d.ts.map +1 -0
- package/dist/solution/RegisterAndLogin/config.d.ts.map +1 -0
- package/dist/solution/RegisterAndLogin/index.d.ts.map +1 -0
- package/dist/solution/RegisterAndLogin/types.d.ts.map +1 -0
- package/dist/solution/RegisterAndLogin/utils.d.ts.map +1 -0
- package/dist/solution/Sales/index.d.ts.map +1 -0
- package/dist/solution/Sales/types.d.ts.map +1 -0
- package/dist/solution/ScanOrder/index.d.ts.map +1 -0
- package/dist/solution/ScanOrder/types.d.ts.map +1 -0
- package/dist/solution/ScanOrder/utils.d.ts.map +1 -0
- package/dist/solution/ShopDiscount/index.d.ts.map +1 -0
- package/dist/solution/ShopDiscount/types.d.ts.map +1 -0
- package/dist/solution/ShopDiscount/utils.d.ts.map +1 -0
- package/dist/solution/UnifiedBookingSales/index.d.ts +1 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts.map +1 -0
- package/dist/solution/UnifiedBookingSales/index.js +63 -43
- package/dist/solution/UnifiedBookingSales/remoteOccupancyCache.d.ts.map +1 -0
- package/dist/solution/UnifiedBookingSales/types.d.ts.map +1 -0
- package/dist/solution/VenueBooking/index.d.ts.map +1 -0
- package/dist/solution/VenueBooking/types.d.ts.map +1 -0
- package/dist/solution/VenueBooking/utils/dateSummary.d.ts.map +1 -0
- package/dist/solution/VenueBooking/utils/resource.d.ts.map +1 -0
- package/dist/solution/VenueBooking/utils/slotMerge.d.ts.map +1 -0
- package/dist/solution/VenueBooking/utils/timeSlot.d.ts.map +1 -0
- package/dist/solution/VenueBooking/utils.d.ts.map +1 -0
- package/dist/solution/index.d.ts.map +1 -0
- package/dist/store/createStore.d.ts.map +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/os-private-payload.d.ts.map +1 -0
- package/dist/utils/payment-number.d.ts.map +1 -0
- package/dist/utils/platform.d.ts +2 -0
- package/dist/utils/platform.d.ts.map +1 -0
- package/dist/utils/platform.js +6 -0
- package/dist/utils/task.d.ts.map +1 -0
- package/dist/utils/watch.d.ts.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +12 -0
- package/lib/inventory/index.d.ts +92 -0
- package/lib/inventory/index.js +287 -0
- package/lib/model/strategy/adapter/promotion/index.js +46 -1
- package/lib/modules/Discount/index.js +1 -0
- package/lib/modules/Order/index.d.ts +25 -3
- package/lib/modules/Order/index.js +145 -11
- package/lib/modules/Order/types.d.ts +7 -0
- package/lib/modules/Order/utils/discountProductLineIdentity.js +1 -1
- package/lib/modules/Order/utils/productVoucherGroups.d.ts +15 -0
- package/lib/modules/Order/utils/productVoucherGroups.js +64 -0
- package/lib/modules/Order/utils.d.ts +5 -3
- package/lib/modules/Order/utils.js +29 -10
- package/lib/modules/ProductList/index.js +15 -0
- package/lib/modules/Rules/index.d.ts +2 -0
- package/lib/modules/Rules/index.js +6 -0
- package/lib/server/modules/floor-plan/index.js +29 -1
- package/lib/solution/BaseSales/index.d.ts +16 -1
- package/lib/solution/BaseSales/index.js +89 -9
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.js +36 -2
- package/lib/solution/BookingTicket/types.d.ts +14 -2
- package/lib/solution/BookingTicket/utils/addProductDecision.d.ts +1 -1
- package/lib/solution/BookingTicket/utils/addProductDecision.js +4 -3
- package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.js +14 -2
- package/lib/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.d.ts +10 -0
- package/lib/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.js +71 -0
- package/lib/solution/BookingTicket/utils/scan/cloudSearch.js +1 -0
- package/lib/solution/BookingTicket/utils/scan/handleScan.js +2 -1
- package/lib/solution/UnifiedBookingSales/index.d.ts +1 -1
- package/lib/solution/UnifiedBookingSales/index.js +14 -3
- package/lib/utils/platform.d.ts +2 -0
- package/lib/utils/platform.js +7 -0
- package/package.json +4 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addProductDecision.d.ts","sourceRoot":"","sources":["../../../../src/solution/BookingTicket/utils/addProductDecision.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAUnB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAI/G;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAC1B;IAAE,MAAM,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,GAAG,CAAA;CAAE,GACjC;IAAE,MAAM,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,+BAA+B,CAAA;CAAE,GACtE;IACE,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,oCAAoC,CAAC;CAC/C;AACH,qEAAqE;GACnE;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAEhC,gCAAgC;AAChC,MAAM,WAAW,o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StartTimeFromDate, getProductExtend, getIsAutoClose, isSessionProduct, isBookingProduct, applySessionTimesToExtend, hasActualResourceSelection, productNeedsResourceExtend } from "../../../modules/BookingContext";
|
|
9
9
|
import { transformBaseProductToOrderProduct } from "../../BaseSales/utils/transformBaseProductToOrderProduct";
|
|
10
10
|
import { buildProductSkuFromCacheItem } from "./weighingProductSku";
|
|
11
|
+
import { isSelfServicePlatform } from "../../../utils/platform";
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* cart.addProduct 两阶段决策(与 ticketBooking `handleSelectProduct` 对齐):
|
|
14
15
|
*
|
|
15
16
|
* 1. `requiresDetail`:规格 / SKU / 套餐 / Session / 称重弹窗(门禁:`isOpenDetailModal` / `cartDetailValue` / `open_sold_weight`)
|
|
16
|
-
* 2. `requiresBookingEdit`:资源 /
|
|
17
|
+
* 2. `requiresBookingEdit`:资源 / 时间编辑抽屉(自助终端强制进入;其他渠道由 `getIsAutoClose` 决定)
|
|
17
18
|
* 3. `add`:两关均通过,直接 transform + 加车
|
|
18
19
|
*/
|
|
19
20
|
|
|
@@ -30,11 +31,11 @@ function needsSpecDetailModal(item) {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
|
-
* 第二段:预约商品是否仍需打开资源 /
|
|
34
|
+
* 第二段:预约商品是否仍需打开资源 / 时间编辑(自助终端强制打开,其他渠道与 info2 `cacheItem.autoClose` 等价)。
|
|
34
35
|
*/
|
|
35
36
|
function needsBookingEdit(cacheItem, ctx) {
|
|
36
37
|
if (isNormalBookingProduct(cacheItem)) return false;
|
|
37
|
-
if ((ctx === null || ctx === void 0 ? void 0 : ctx.channel)
|
|
38
|
+
if (isSelfServicePlatform(ctx === null || ctx === void 0 ? void 0 : ctx.channel)) return true;
|
|
38
39
|
var isAutoAllocationOn = (ctx === null || ctx === void 0 ? void 0 : ctx.isAutoAllocationOn) || function () {
|
|
39
40
|
return true;
|
|
40
41
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addTimeAvailability.d.ts","sourceRoot":"","sources":["../../../../src/solution/BookingTicket/utils/addTimeAvailability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAE9E,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,CAAC,CAAC;CAClE;AAED,MAAM,WAAW,8BAA+B,SAAQ,6BAA6B;IACnF,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,OAAO,EACP,aAAa,GACd,EAAE,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CA+B5D;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAWxF;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,EACnD,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAqCT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingStatus.d.ts","sourceRoot":"","sources":["../../../../src/solution/BookingTicket/utils/bookingStatus.ts"],"names":[],"mappings":"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AE,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GACjD,OAAO,CAQT;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,EACtC,SAAS,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,GAC/C,yBAAyB,GAAG,IAAI,CAiClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exampleData.d.ts","sourceRoot":"","sources":["../../../../src/solution/BookingTicket/utils/exampleData.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsMP,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orderCustomer.d.ts","sourceRoot":"","sources":["../../../../src/solution/BookingTicket/utils/orderCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAsBvE,0CAA0C;AAC1C,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,SAAS,GAAG,kBAAkB,CAkBhF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveBestAddTimePlan.d.ts","sourceRoot":"","sources":["../../../../src/solution/BookingTicket/utils/resolveBestAddTimePlan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsJG;AACH,MAAM,WAAW,cAAc;IAC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,EAAE,GAAG,CAAC;QACd,SAAS,EAAE,GAAG,CAAC;KAChB,CAAC;IACF,iBAAiB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7D,mBAAmB,CAAC,CAAC,MAAM,CAAC,EAAE;QAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;KACpC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,eAAe,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QACtC,IAAI,EAAE,YAAY,GAAG,YAAY,CAAC;QAClC,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC,CAAC;CACJ;AAmHD;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,mBAAmB,EACzB,SAAS,EAAE,yBAAyB,EACpC,MAAM,CAAC,EAAE,oBAAoB,GAC5B,OAAO,CAAC,sBAAsB,CAAC,CA2PjC"}
|
|
@@ -206,7 +206,7 @@ export function applyGlobalScan(_x14, _x15, _x16) {
|
|
|
206
206
|
}
|
|
207
207
|
function _applyGlobalScan() {
|
|
208
208
|
_applyGlobalScan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(host, formatted, bridge) {
|
|
209
|
-
var searchType, data, scanCode, formattedCustomerId, isCrossShopWallet, isWalletPassUnavailableAtStore, _getRealCustomerId, _bridge$onNotify5, currentCustomer, currentCustomerId, _customer, sourceCustomerId, _bridge$onNotify, _bridge$onNotify2, _customerId, _bridge$onNotify3, orderCustomer, switched, _bridge$onNotify4, _promotionResult$isAc, _bridge$onNotify6, snapshot, activeCustomer, bindWalletPassCustomer, trySelectWalletAsset, bindResult, walletSelection, promotionCustomerId, promotionResult, list, _bridge$onNotify12, addedCount, _iterator, _step, _item, outcome, _bridge$onNotify13, _data$order_id, _data$business_code, orderId, _bridge$onNotify14;
|
|
209
|
+
var searchType, data, scanCode, formattedCustomerId, isCrossShopWallet, isWalletPassUnavailableAtStore, _getRealCustomerId, _bridge$onNotify5, currentCustomer, currentCustomerId, _customer, sourceCustomerId, _bridge$onNotify, _bridge$onNotify2, _customerId, _bridge$onNotify3, orderCustomer, switched, _bridge$onNotify4, _collectionPromotion$, _promotionResult$isAc, _bridge$onNotify6, snapshot, activeCustomer, bindWalletPassCustomer, trySelectWalletAsset, bindResult, collectionPromotion, walletSelection, promotionCustomerId, promotionResult, list, _bridge$onNotify12, addedCount, _iterator, _step, _item, outcome, _bridge$onNotify13, _data$order_id, _data$business_code, orderId, _bridge$onNotify14;
|
|
210
210
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
211
211
|
while (1) switch (_context6.prev = _context6.next) {
|
|
212
212
|
case 0:
|
|
@@ -317,7 +317,7 @@ function _applyGlobalScan() {
|
|
|
317
317
|
});
|
|
318
318
|
case 44:
|
|
319
319
|
if (!(searchType === 'walletPass')) {
|
|
320
|
-
_context6.next =
|
|
320
|
+
_context6.next = 93;
|
|
321
321
|
break;
|
|
322
322
|
}
|
|
323
323
|
if (!isWalletPassUnavailableAtStore) {
|
|
@@ -491,75 +491,111 @@ function _applyGlobalScan() {
|
|
|
491
491
|
return bindWalletPassCustomer();
|
|
492
492
|
case 54:
|
|
493
493
|
bindResult = _context6.sent;
|
|
494
|
-
|
|
494
|
+
if (!((bridge === null || bridge === void 0 ? void 0 : bridge.scanScope) === 'product-voucher-collection' && bridge.applyPromotionCode)) {
|
|
495
|
+
_context6.next = 61;
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
_context6.next = 58;
|
|
499
|
+
return bridge.applyPromotionCode(scanCode, getRealCustomerId(activeCustomer), {
|
|
500
|
+
suppressFailureNotification: true,
|
|
501
|
+
productVouchersOnly: true
|
|
502
|
+
});
|
|
503
|
+
case 58:
|
|
504
|
+
_context6.t2 = _context6.sent;
|
|
505
|
+
_context6.next = 62;
|
|
506
|
+
break;
|
|
507
|
+
case 61:
|
|
508
|
+
_context6.t2 = undefined;
|
|
509
|
+
case 62:
|
|
510
|
+
collectionPromotion = _context6.t2;
|
|
511
|
+
if (!((_collectionPromotion$ = collectionPromotion === null || collectionPromotion === void 0 ? void 0 : collectionPromotion.isAccepted) !== null && _collectionPromotion$ !== void 0 ? _collectionPromotion$ : collectionPromotion === null || collectionPromotion === void 0 ? void 0 : collectionPromotion.isAvailable)) {
|
|
512
|
+
_context6.next = 65;
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
return _context6.abrupt("return", {
|
|
516
|
+
status: 'success',
|
|
517
|
+
kind: 'promotion'
|
|
518
|
+
});
|
|
519
|
+
case 65:
|
|
520
|
+
_context6.next = 67;
|
|
495
521
|
return trySelectWalletAsset();
|
|
496
|
-
case
|
|
522
|
+
case 67:
|
|
497
523
|
walletSelection = _context6.sent;
|
|
498
524
|
if (!walletSelection) {
|
|
499
|
-
_context6.next =
|
|
525
|
+
_context6.next = 70;
|
|
500
526
|
break;
|
|
501
527
|
}
|
|
502
528
|
return _context6.abrupt("return", walletSelection);
|
|
503
|
-
case
|
|
529
|
+
case 70:
|
|
504
530
|
if (bridge !== null && bridge !== void 0 && bridge.applyPromotionCode) {
|
|
505
|
-
_context6.next =
|
|
531
|
+
_context6.next = 72;
|
|
506
532
|
break;
|
|
507
533
|
}
|
|
508
534
|
return _context6.abrupt("return", {
|
|
509
535
|
status: 'failed',
|
|
510
536
|
reason: 'no_bridge'
|
|
511
537
|
});
|
|
512
|
-
case
|
|
538
|
+
case 72:
|
|
513
539
|
promotionCustomerId = getRealCustomerId(activeCustomer);
|
|
540
|
+
if (!(collectionPromotion !== null && collectionPromotion !== void 0)) {
|
|
541
|
+
_context6.next = 77;
|
|
542
|
+
break;
|
|
543
|
+
}
|
|
544
|
+
_context6.t3 = collectionPromotion;
|
|
545
|
+
_context6.next = 87;
|
|
546
|
+
break;
|
|
547
|
+
case 77:
|
|
514
548
|
if (!bindResult.customerBound) {
|
|
515
|
-
_context6.next =
|
|
549
|
+
_context6.next = 83;
|
|
516
550
|
break;
|
|
517
551
|
}
|
|
518
|
-
_context6.next =
|
|
552
|
+
_context6.next = 80;
|
|
519
553
|
return bridge.applyPromotionCode(scanCode, promotionCustomerId, {
|
|
520
554
|
suppressFailureNotification: true
|
|
521
555
|
});
|
|
522
|
-
case
|
|
523
|
-
_context6.
|
|
524
|
-
_context6.next =
|
|
556
|
+
case 80:
|
|
557
|
+
_context6.t4 = _context6.sent;
|
|
558
|
+
_context6.next = 86;
|
|
525
559
|
break;
|
|
526
|
-
case
|
|
527
|
-
_context6.next =
|
|
560
|
+
case 83:
|
|
561
|
+
_context6.next = 85;
|
|
528
562
|
return bridge.applyPromotionCode(scanCode, promotionCustomerId);
|
|
529
|
-
case
|
|
530
|
-
_context6.
|
|
531
|
-
case
|
|
532
|
-
|
|
563
|
+
case 85:
|
|
564
|
+
_context6.t4 = _context6.sent;
|
|
565
|
+
case 86:
|
|
566
|
+
_context6.t3 = _context6.t4;
|
|
567
|
+
case 87:
|
|
568
|
+
promotionResult = _context6.t3;
|
|
533
569
|
if (!((_promotionResult$isAc = promotionResult === null || promotionResult === void 0 ? void 0 : promotionResult.isAccepted) !== null && _promotionResult$isAc !== void 0 ? _promotionResult$isAc : promotionResult === null || promotionResult === void 0 ? void 0 : promotionResult.isAvailable)) {
|
|
534
|
-
_context6.next =
|
|
570
|
+
_context6.next = 90;
|
|
535
571
|
break;
|
|
536
572
|
}
|
|
537
573
|
return _context6.abrupt("return", {
|
|
538
574
|
status: 'success',
|
|
539
575
|
kind: 'promotion'
|
|
540
576
|
});
|
|
541
|
-
case
|
|
577
|
+
case 90:
|
|
542
578
|
if (!bindResult.customerBound) {
|
|
543
|
-
_context6.next =
|
|
579
|
+
_context6.next = 92;
|
|
544
580
|
break;
|
|
545
581
|
}
|
|
546
582
|
return _context6.abrupt("return", {
|
|
547
583
|
status: 'success',
|
|
548
584
|
kind: 'customer'
|
|
549
585
|
});
|
|
550
|
-
case
|
|
586
|
+
case 92:
|
|
551
587
|
return _context6.abrupt("return", {
|
|
552
588
|
status: 'failed',
|
|
553
589
|
reason: 'invalid_data'
|
|
554
590
|
});
|
|
555
|
-
case
|
|
591
|
+
case 93:
|
|
556
592
|
if (!(searchType === 'product' || searchType === 'local_product')) {
|
|
557
|
-
_context6.next =
|
|
593
|
+
_context6.next = 126;
|
|
558
594
|
break;
|
|
559
595
|
}
|
|
560
596
|
list = data === null || data === void 0 ? void 0 : data.list;
|
|
561
597
|
if (!(!Array.isArray(list) || list.length === 0)) {
|
|
562
|
-
_context6.next =
|
|
598
|
+
_context6.next = 98;
|
|
563
599
|
break;
|
|
564
600
|
}
|
|
565
601
|
bridge === null || bridge === void 0 || (_bridge$onNotify12 = bridge.onNotify) === null || _bridge$onNotify12 === void 0 || _bridge$onNotify12.call(bridge, 'fail', 'pisell2.text.scan-global-failed');
|
|
@@ -567,57 +603,57 @@ function _applyGlobalScan() {
|
|
|
567
603
|
status: 'failed',
|
|
568
604
|
reason: 'invalid_data'
|
|
569
605
|
});
|
|
570
|
-
case
|
|
606
|
+
case 98:
|
|
571
607
|
addedCount = 0;
|
|
572
608
|
_iterator = _createForOfIteratorHelper(list);
|
|
573
|
-
_context6.prev =
|
|
609
|
+
_context6.prev = 100;
|
|
574
610
|
_iterator.s();
|
|
575
|
-
case
|
|
611
|
+
case 102:
|
|
576
612
|
if ((_step = _iterator.n()).done) {
|
|
577
|
-
_context6.next =
|
|
613
|
+
_context6.next = 114;
|
|
578
614
|
break;
|
|
579
615
|
}
|
|
580
616
|
_item = _step.value;
|
|
581
|
-
_context6.next =
|
|
617
|
+
_context6.next = 106;
|
|
582
618
|
return processScannedProductItem(host, _item, scanCode, bridge);
|
|
583
|
-
case
|
|
619
|
+
case 106:
|
|
584
620
|
outcome = _context6.sent;
|
|
585
621
|
if (outcome === 'added') {
|
|
586
622
|
addedCount += 1;
|
|
587
623
|
}
|
|
588
624
|
if (!(outcome === 'cancelled')) {
|
|
589
|
-
_context6.next =
|
|
625
|
+
_context6.next = 110;
|
|
590
626
|
break;
|
|
591
627
|
}
|
|
592
628
|
return _context6.abrupt("return", {
|
|
593
629
|
status: 'cancelled'
|
|
594
630
|
});
|
|
595
|
-
case
|
|
631
|
+
case 110:
|
|
596
632
|
if (!(outcome === 'pending')) {
|
|
597
|
-
_context6.next =
|
|
633
|
+
_context6.next = 112;
|
|
598
634
|
break;
|
|
599
635
|
}
|
|
600
636
|
return _context6.abrupt("return", {
|
|
601
637
|
status: 'pending',
|
|
602
638
|
kind: 'requiresDetail'
|
|
603
639
|
});
|
|
604
|
-
case
|
|
605
|
-
_context6.next =
|
|
640
|
+
case 112:
|
|
641
|
+
_context6.next = 102;
|
|
606
642
|
break;
|
|
607
|
-
case
|
|
608
|
-
_context6.next =
|
|
643
|
+
case 114:
|
|
644
|
+
_context6.next = 119;
|
|
609
645
|
break;
|
|
610
|
-
case
|
|
611
|
-
_context6.prev =
|
|
612
|
-
_context6.
|
|
613
|
-
_iterator.e(_context6.
|
|
614
|
-
case
|
|
615
|
-
_context6.prev =
|
|
646
|
+
case 116:
|
|
647
|
+
_context6.prev = 116;
|
|
648
|
+
_context6.t5 = _context6["catch"](100);
|
|
649
|
+
_iterator.e(_context6.t5);
|
|
650
|
+
case 119:
|
|
651
|
+
_context6.prev = 119;
|
|
616
652
|
_iterator.f();
|
|
617
|
-
return _context6.finish(
|
|
618
|
-
case
|
|
653
|
+
return _context6.finish(119);
|
|
654
|
+
case 122:
|
|
619
655
|
if (!(addedCount > 0)) {
|
|
620
|
-
_context6.next =
|
|
656
|
+
_context6.next = 125;
|
|
621
657
|
break;
|
|
622
658
|
}
|
|
623
659
|
bridge === null || bridge === void 0 || (_bridge$onNotify13 = bridge.onNotify) === null || _bridge$onNotify13 === void 0 || _bridge$onNotify13.call(bridge, 'success');
|
|
@@ -628,19 +664,19 @@ function _applyGlobalScan() {
|
|
|
628
664
|
count: addedCount
|
|
629
665
|
}
|
|
630
666
|
});
|
|
631
|
-
case
|
|
667
|
+
case 125:
|
|
632
668
|
return _context6.abrupt("return", {
|
|
633
669
|
status: 'failed',
|
|
634
670
|
reason: 'no_bridge'
|
|
635
671
|
});
|
|
636
|
-
case
|
|
672
|
+
case 126:
|
|
637
673
|
if (!(searchType === 'order')) {
|
|
638
|
-
_context6.next =
|
|
674
|
+
_context6.next = 135;
|
|
639
675
|
break;
|
|
640
676
|
}
|
|
641
677
|
orderId = (_data$order_id = data === null || data === void 0 ? void 0 : data.order_id) !== null && _data$order_id !== void 0 ? _data$order_id : data === null || data === void 0 ? void 0 : data.id;
|
|
642
678
|
if (orderId) {
|
|
643
|
-
_context6.next =
|
|
679
|
+
_context6.next = 131;
|
|
644
680
|
break;
|
|
645
681
|
}
|
|
646
682
|
bridge === null || bridge === void 0 || (_bridge$onNotify14 = bridge.onNotify) === null || _bridge$onNotify14 === void 0 || _bridge$onNotify14.call(bridge, 'fail', 'pisell2.text.scan-global-failed');
|
|
@@ -648,16 +684,16 @@ function _applyGlobalScan() {
|
|
|
648
684
|
status: 'failed',
|
|
649
685
|
reason: 'invalid_data'
|
|
650
686
|
});
|
|
651
|
-
case
|
|
687
|
+
case 131:
|
|
652
688
|
if (bridge !== null && bridge !== void 0 && bridge.openOrder) {
|
|
653
|
-
_context6.next =
|
|
689
|
+
_context6.next = 133;
|
|
654
690
|
break;
|
|
655
691
|
}
|
|
656
692
|
return _context6.abrupt("return", {
|
|
657
693
|
status: 'pending',
|
|
658
694
|
kind: 'openOrder'
|
|
659
695
|
});
|
|
660
|
-
case
|
|
696
|
+
case 133:
|
|
661
697
|
bridge.openOrder({
|
|
662
698
|
order_id: Number(orderId),
|
|
663
699
|
business_code: (_data$business_code = data === null || data === void 0 ? void 0 : data.business_code) !== null && _data$business_code !== void 0 ? _data$business_code : host.getBusinessCode()
|
|
@@ -666,16 +702,16 @@ function _applyGlobalScan() {
|
|
|
666
702
|
status: 'pending',
|
|
667
703
|
kind: 'openOrder'
|
|
668
704
|
});
|
|
669
|
-
case
|
|
705
|
+
case 135:
|
|
670
706
|
return _context6.abrupt("return", {
|
|
671
707
|
status: 'failed',
|
|
672
708
|
reason: 'invalid_data'
|
|
673
709
|
});
|
|
674
|
-
case
|
|
710
|
+
case 136:
|
|
675
711
|
case "end":
|
|
676
712
|
return _context6.stop();
|
|
677
713
|
}
|
|
678
|
-
}, _callee6, null, [[10, 16], [30, 37], [
|
|
714
|
+
}, _callee6, null, [[10, 16], [30, 37], [100, 116, 119, 122]]);
|
|
679
715
|
}));
|
|
680
716
|
return _applyGlobalScan.apply(this, arguments);
|
|
681
717
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GlobalScanHandleResult, GlobalScanHostBridge } from '../../types';
|
|
2
|
+
import { type GlobalScanApplyHost } from './applyGlobalScan';
|
|
3
|
+
import type { GlobalScanFormattedResult } from './formatGlobalScan';
|
|
4
|
+
export interface ProductVoucherCollectionScanHost extends GlobalScanApplyHost {
|
|
5
|
+
waitForCustomerDiscounts(): Promise<void>;
|
|
6
|
+
loadCustomerDiscounts(): Promise<Record<string, any>[]>;
|
|
7
|
+
}
|
|
8
|
+
/** Collect voucher candidates after customer binding and coupon loading finish.
|
|
9
|
+
* Never expand a wristband's result to other orders of the same customer. */
|
|
10
|
+
export declare function applyProductVoucherCollectionScan(host: ProductVoucherCollectionScanHost, formatted: GlobalScanFormattedResult, bridge: GlobalScanHostBridge): Promise<GlobalScanHandleResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyProductVoucherCollectionScan.d.ts","sourceRoot":"","sources":["../../../../../src/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,EAAmB,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,WAAW,gCAAiC,SAAQ,mBAAmB;IAC3E,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;CACzD;AAED;6EAC6E;AAC7E,wBAAsB,iCAAiC,CACrD,IAAI,EAAE,gCAAgC,EACtC,SAAS,EAAE,yBAAyB,EACpC,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,sBAAsB,CAAC,CAiDjC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
9
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
|
+
import { applyGlobalScan } from "./applyGlobalScan";
|
|
11
|
+
/** Collect voucher candidates after customer binding and coupon loading finish.
|
|
12
|
+
* Never expand a wristband's result to other orders of the same customer. */
|
|
13
|
+
export function applyProductVoucherCollectionScan(_x, _x2, _x3) {
|
|
14
|
+
return _applyProductVoucherCollectionScan.apply(this, arguments);
|
|
15
|
+
}
|
|
16
|
+
function _applyProductVoucherCollectionScan() {
|
|
17
|
+
_applyProductVoucherCollectionScan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(host, formatted, bridge) {
|
|
18
|
+
var assertCurrent, vouchers, result;
|
|
19
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
21
|
+
case 0:
|
|
22
|
+
assertCurrent = function assertCurrent() {
|
|
23
|
+
var _bridge$isCurrent;
|
|
24
|
+
if (((_bridge$isCurrent = bridge.isCurrent) === null || _bridge$isCurrent === void 0 ? void 0 : _bridge$isCurrent.call(bridge)) === false) {
|
|
25
|
+
throw new DOMException('Scan session ended', 'AbortError');
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
vouchers = [];
|
|
29
|
+
assertCurrent();
|
|
30
|
+
_context2.next = 5;
|
|
31
|
+
return applyGlobalScan(_objectSpread(_objectSpread({}, host), {}, {
|
|
32
|
+
setOrderCustomer: function setOrderCustomer(customer) {
|
|
33
|
+
assertCurrent();
|
|
34
|
+
host.setOrderCustomer(customer);
|
|
35
|
+
},
|
|
36
|
+
addProductToOrder: function addProductToOrder(product, booking) {
|
|
37
|
+
assertCurrent();
|
|
38
|
+
return host.addProductToOrder(product, booking);
|
|
39
|
+
}
|
|
40
|
+
}), formatted, _objectSpread(_objectSpread({}, bridge), {}, {
|
|
41
|
+
applyPromotionCode: bridge.applyPromotionCode && ( /*#__PURE__*/function () {
|
|
42
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(code, customerId, options) {
|
|
43
|
+
var promotion;
|
|
44
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
45
|
+
while (1) switch (_context.prev = _context.next) {
|
|
46
|
+
case 0:
|
|
47
|
+
_context.next = 2;
|
|
48
|
+
return host.waitForCustomerDiscounts();
|
|
49
|
+
case 2:
|
|
50
|
+
assertCurrent();
|
|
51
|
+
_context.next = 5;
|
|
52
|
+
return bridge.applyPromotionCode(code, customerId, _objectSpread(_objectSpread({}, options), {}, {
|
|
53
|
+
productVouchersOnly: true,
|
|
54
|
+
suppressFailureNotification: true
|
|
55
|
+
}));
|
|
56
|
+
case 5:
|
|
57
|
+
promotion = _context.sent;
|
|
58
|
+
assertCurrent();
|
|
59
|
+
// An empty successful search is different from a swallowed request error.
|
|
60
|
+
if (Array.isArray(promotion.scannedDiscountList)) {
|
|
61
|
+
_context.next = 9;
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
throw new Error('Could not resolve scanned vouchers');
|
|
65
|
+
case 9:
|
|
66
|
+
vouchers = promotion.scannedDiscountList;
|
|
67
|
+
return _context.abrupt("return", promotion);
|
|
68
|
+
case 11:
|
|
69
|
+
case "end":
|
|
70
|
+
return _context.stop();
|
|
71
|
+
}
|
|
72
|
+
}, _callee);
|
|
73
|
+
}));
|
|
74
|
+
return function (_x4, _x5, _x6) {
|
|
75
|
+
return _ref.apply(this, arguments);
|
|
76
|
+
};
|
|
77
|
+
}())
|
|
78
|
+
}));
|
|
79
|
+
case 5:
|
|
80
|
+
result = _context2.sent;
|
|
81
|
+
assertCurrent();
|
|
82
|
+
if (!(formatted.searchType === 'wallet' && result.status === 'success')) {
|
|
83
|
+
_context2.next = 13;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
_context2.next = 10;
|
|
87
|
+
return host.loadCustomerDiscounts();
|
|
88
|
+
case 10:
|
|
89
|
+
vouchers = _context2.sent;
|
|
90
|
+
assertCurrent();
|
|
91
|
+
return _context2.abrupt("return", _objectSpread(_objectSpread({}, result), {}, {
|
|
92
|
+
redemption: {
|
|
93
|
+
source: 'wallet',
|
|
94
|
+
vouchers: vouchers
|
|
95
|
+
}
|
|
96
|
+
}));
|
|
97
|
+
case 13:
|
|
98
|
+
if (!(formatted.searchType === 'walletPass')) {
|
|
99
|
+
_context2.next = 15;
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
return _context2.abrupt("return", _objectSpread(_objectSpread({}, result), {}, {
|
|
103
|
+
redemption: {
|
|
104
|
+
source: 'scan',
|
|
105
|
+
vouchers: vouchers
|
|
106
|
+
}
|
|
107
|
+
}));
|
|
108
|
+
case 15:
|
|
109
|
+
return _context2.abrupt("return", result);
|
|
110
|
+
case 16:
|
|
111
|
+
case "end":
|
|
112
|
+
return _context2.stop();
|
|
113
|
+
}
|
|
114
|
+
}, _callee2);
|
|
115
|
+
}));
|
|
116
|
+
return _applyProductVoucherCollectionScan.apply(this, arguments);
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudSearch.d.ts","sourceRoot":"","sources":["../../../../../src/solution/BookingTicket/utils/scan/cloudSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAY,MAAM,qBAAqB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,gBAAgB,YAClB,aAAa,QAChB,MAAM;;;EAoCb,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,YAAmB,aAAa,QAAQ,MAAM;;;EAkBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,YAAmB,aAAa,QAAQ,MAAM;;;EA4BvE,CAAC;AAEF,eAAO,MAAM,WAAW,YAAmB,aAAa,QAAQ,MAAM;;;EAcrE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatGlobalScan.d.ts","sourceRoot":"","sources":["../../../../../src/solution/BookingTicket/utils/scan/formatGlobalScan.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,oBAAoB,GAC5B,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,eAAe,GACf,OAAO,CAAC;AAEZ,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,oBAAoB,CAAC;IACjC,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,wCAAwC;IACxC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,+BAA+B;IAC/B,8BAA8B,CAAC,EAAE,OAAO,CAAC;CAC1C;AAED,UAAU,mBAAmB;IAC3B,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,GAAG,CAAC;KACZ,CAAC;CACH;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,EAC3C,QAAQ,EAAE,MAAM,GACf,yBAAyB,GAAG,IAAI,CAmDlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleScan.d.ts","sourceRoot":"","sources":["../../../../../src/solution/BookingTicket/utils/scan/handleScan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAoGpD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,YAClB,aAAa,mBACL,MAAM,KAAK,GAAG,EAAE,YACvB,MAAM,kBA5DU;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,iBA+E1D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,yBAE9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,yBAE/B,CAAC"}
|
|
@@ -10,6 +10,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
10
10
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
11
11
|
import { searchWalletPass, searchWallet, searchProduct, searchOrder } from "./cloudSearch";
|
|
12
12
|
import scanCache from "./scanCache";
|
|
13
|
+
import { isSelfServicePlatform } from "../../../../utils/platform";
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* Promise.any 的替代实现
|
|
@@ -161,7 +162,7 @@ export var handleGlobalScan = function handleGlobalScan(request, localSearch, ch
|
|
|
161
162
|
if (value.startsWith('WL')) {
|
|
162
163
|
requestList = [searchWallet(request, value)];
|
|
163
164
|
} else {
|
|
164
|
-
requestList = [].concat(_toConsumableArray(channel
|
|
165
|
+
requestList = [].concat(_toConsumableArray(isSelfServicePlatform(channel) ? [] : [searchOrder(request, value)]), [searchWalletPass(request, value), searchWallet(request, value), searchProduct(request, value)]);
|
|
165
166
|
}
|
|
166
167
|
return requestList;
|
|
167
168
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/solution/BookingTicket/utils/scan/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAU3C,UAAU,UAAU;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC/B;AAED,aAAK,cAAc;IACjB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,aAAa,kBAAkB;CAChC;AAED,MAAM,CAAC,OAAO,OAAO,IAAI;IACvB,OAAO,CAAC,MAAM,CAAC,aAAa,CAAmB;IAC/C,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAS;IAElD,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,cAAc,CAA6B;gBAEvC,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM;IASzD;;;;;OAKG;IACH,uBAAuB;IAqBvB;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;IAiBlD;;;OAGG;IACH,YAAY;IASZ;;;;OAIG;IACH,WAAW,CACT,KAAK,EAAE,cAAc,EACrB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,GAAG,CAAC;;;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AE,MAAM,CAAA;KAAE;IAQ5D;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;CAQ7B;AAGD,QAAA,MAAM,SAAS,eAAsB,CAAC;AAEtC,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scanProductValues.d.ts","sourceRoot":"","sources":["../../../../../src/solution/BookingTicket/utils/scan/scanProductValues.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,WAAW;AACX,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEtD;AAED,kBAAkB;AAClB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEtD;AAmED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA0BjF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAIvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionCatalogStale.d.ts","sourceRoot":"","sources":["../../../../src/solution/BookingTicket/utils/sessionCatalogStale.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAwClE,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1C,WAAW,EAAE,OAAO,GACnB,OAAO,CAgBT;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1C,WAAW,EAAE,OAAO,GACnB,uBAAuB,CAQzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weighingProductSku.d.ts","sourceRoot":"","sources":["../../../../src/solution/BookingTicket/utils/weighingProductSku.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,GAChD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAgCjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/solution/BuyTickets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,cAAc,SAAS,CAAC;AAExB,qBAAa,cAAe,SAAQ,UAAW,YAAW,MAAM;IAE9D,SAAS,CAAC,WAAW,SAAgB;IACrC,SAAS,CAAC,cAAc,SAAW;IAEnC,UAAU,UAAQ;IAElB,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,KAAK,CAAe;IAE5B,OAAO,CAAC,WAAW,CAA2B;gBAElC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAIrC,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBzD,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE;IAqB/B,sBAAsB,CAAC,UAAU,EAAE,MAAM;IAEzC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAKxB,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAWrC,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAS5C,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;IAmBpC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IASpC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAO/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/solution/BuyTickets/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AACH,oBAAY,eAAe;IACzB,QAAQ,wBAAwB;IAChC,SAAS,yBAAyB;IAClC,oBAAoB,oCAAoC;IACxD,qBAAqB,qCAAqC;IAC1D,aAAa,6BAA6B;IAC1C,YAAY,4BAA4B;IACxC,YAAY,4BAA4B;IACxC,YAAY,2BAA2B;IACvC,gBAAgB,gCAAgC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,EAAE,WAAW,CAAC;IAC1B,aAAa,EAAE,WAAW,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/solution/Checkout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAA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