@daffodil/cart 0.66.1 → 0.67.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/driver/in-memory/injection-tokens/extra-attributes-hook.token.d.ts +1 -1
- package/driver/magento/injection-tokens/transforms/cart/token.d.ts +1 -2
- package/driver/magento/injection-tokens/transforms/cart-item/token.d.ts +1 -2
- package/driver/magento/interfaces/cart-item-transform.type.d.ts +1 -1
- package/driver/magento/interfaces/cart-transform.type.d.ts +1 -1
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart/cart.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-address/cart-address.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-billing-address/cart-billing-address.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-coupon/cart-coupon.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-items/cart-items.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-order/cart-order.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-payment/cart-payment.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-payment-methods/cart-payment-methods.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-root.service.mjs +129 -0
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-shipping-address/cart-shipping-address.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/in-memory/backend/cart-shipping-methods/cart-shipping-methods.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart/cart.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-address/cart-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-billing-address/cart-billing-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-coupon/cart-coupon.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-driver.module.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-item/cart-item.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-order/cart-order.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-payment/cart-payment.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-payment-methods/cart-payment-methods.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-shipping-address/cart-shipping-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/cart-address.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart-billing-address.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart-coupon.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart-driver.module.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/cart-item.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart-order.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart-payment-methods.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart-payment.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart-shipping-address.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart-shipping-information.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart-shipping-methods.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/cart.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-address-input.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-address.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-coupon.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-item/bundle-cart-item.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-item/cart-item.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-item/configurable-cart-item.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-payment-method.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-shipping-method.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/testing/factories/cart.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/testing/factories/shipping-address.factory.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/transforms/inputs/billing-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/transforms/inputs/cart-address.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/magento/transforms/inputs/cart-item-update.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/magento/transforms/inputs/payment-method.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/magento/transforms/inputs/shipping-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/transforms/inputs/shipping-method.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/magento/transforms/outputs/billing-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-address.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-coupon-response.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-payment.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-shipping-information.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-shipping-rate.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/magento/transforms/outputs/shipping-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/services/resolve.service.mjs +6 -6
- package/{esm2020 → esm2022}/driver/testing/drivers/cart/cart.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-address/cart-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-billing-address/cart-billing-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-coupon/cart-coupon.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-driver.module.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-item/cart-item.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-order/cart-order.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-payment/cart-payment.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-payment-methods/cart-payment-methods.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-shipping-address/cart-shipping-address.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-shipping-information/cart-shipping-information.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +5 -5
- package/{esm2020 → esm2022}/routing/cart-routing.module.mjs +15 -15
- package/esm2022/routing/guards/billing-address/billing-address.guard.mjs +40 -0
- package/esm2022/routing/guards/cart-items/cart-items.guard.mjs +41 -0
- package/{esm2020 → esm2022}/routing/guards/in-stock-items/in-stock-items.guard.mjs +6 -6
- package/{esm2020 → esm2022}/routing/guards/order-result/order-result.guard.mjs +7 -7
- package/esm2022/routing/guards/payment-method/payment-method.guard.mjs +40 -0
- package/{esm2020 → esm2022}/routing/guards/resolve-cart/resolve-cart.guard.mjs +6 -6
- package/{esm2020 → esm2022}/routing/guards/resolved-cart/resolved-cart.guard.mjs +6 -6
- package/{esm2020 → esm2022}/routing/guards/shipping-address/shipping-address.guard.mjs +7 -7
- package/esm2022/routing/guards/shipping-method/shipping-method.guard.mjs +40 -0
- package/{esm2020 → esm2022}/routing/resolvers/cart-resolver.service.mjs +7 -7
- package/esm2022/routing/resolvers/empty-cart-resolver.service.mjs +41 -0
- package/esm2022/state/cart-state.module.mjs +84 -0
- package/{esm2020 → esm2022}/state/effects/cart-address.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-billing-address.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-coupon.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-item.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-order.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-payment-methods.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-payment-processor.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-payment.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-resolver.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-shipping-address.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-shipping-information.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart-shipping-methods.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/effects/cart.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/facades/cart/cart.facade.mjs +6 -6
- package/esm2022/state/reducers/cart-item-entities/set-state.meta-reducer.mjs +56 -0
- package/{esm2020 → esm2022}/state/testing/cart-testing.module.mjs +7 -7
- package/{esm2020 → esm2022}/state/testing/factories/stateful-cart-item.factory.mjs +5 -5
- package/{esm2020 → esm2022}/state/testing/factories/stateful-composite-cart-item.factory.mjs +5 -5
- package/{esm2020 → esm2022}/state/testing/factories/stateful-configurable-cart-item.factory.mjs +5 -5
- package/{esm2020 → esm2022}/state/testing/mock-cart-facade.mjs +4 -4
- package/{esm2020 → esm2022}/storage/cart-storage.service.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart-address.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart-coupon.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart-item/cart-item.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart-item/composite-cart-item.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart-item/configurable-cart-item.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart-payment.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart-shipping-information.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart-shipping-rate.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart-total.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/cart.factory.mjs +5 -5
- package/{fesm2020 → fesm2022}/daffodil-cart-driver-in-memory.mjs +119 -119
- package/{fesm2020 → fesm2022}/daffodil-cart-driver-in-memory.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-cart-driver-magento-testing.mjs +40 -40
- package/{fesm2020 → fesm2022}/daffodil-cart-driver-magento-testing.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-cart-driver-magento.mjs +110 -110
- package/{fesm2020 → fesm2022}/daffodil-cart-driver-magento.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/daffodil-cart-driver-testing.mjs +47 -47
- package/{fesm2020 → fesm2022}/daffodil-cart-driver-testing.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-cart-driver.mjs +5 -5
- package/{fesm2020 → fesm2022}/daffodil-cart-driver.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-cart-routing.mjs +69 -69
- package/fesm2022/daffodil-cart-routing.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/daffodil-cart-state-testing.mjs +21 -21
- package/{fesm2020 → fesm2022}/daffodil-cart-state-testing.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-cart-state.mjs +118 -108
- package/{fesm2020 → fesm2022}/daffodil-cart-state.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/daffodil-cart-testing.mjs +77 -77
- package/{fesm2020 → fesm2022}/daffodil-cart-testing.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-cart.mjs +4 -4
- package/{fesm2020 → fesm2022}/daffodil-cart.mjs.map +1 -1
- package/package.json +1 -1
- package/routing/guards/billing-address/billing-address.guard.d.ts +2 -2
- package/routing/guards/cart-items/cart-items.guard.d.ts +2 -2
- package/routing/guards/in-stock-items/in-stock-items.guard.d.ts +2 -2
- package/routing/guards/order-result/order-result.guard.d.ts +2 -2
- package/routing/guards/payment-method/payment-method.guard.d.ts +2 -2
- package/routing/guards/resolve-cart/resolve-cart.guard.d.ts +2 -2
- package/routing/guards/resolved-cart/resolved-cart.guard.d.ts +2 -2
- package/routing/guards/shipping-address/shipping-address.guard.d.ts +2 -2
- package/routing/guards/shipping-method/shipping-method.guard.d.ts +2 -2
- package/routing/resolvers/cart-resolver.service.d.ts +2 -2
- package/routing/resolvers/empty-cart-resolver.service.d.ts +2 -2
- package/state/actions/cart-address.actions.d.ts +1 -1
- package/state/actions/cart-billing-address.actions.d.ts +1 -1
- package/state/actions/cart-coupon.actions.d.ts +1 -1
- package/state/actions/cart-item.actions.d.ts +1 -1
- package/state/actions/cart-order.actions.d.ts +1 -1
- package/state/actions/cart-payment-methods.actions.d.ts +1 -1
- package/state/actions/cart-payment.actions.d.ts +1 -1
- package/state/actions/cart-shipping-address.actions.d.ts +1 -1
- package/state/actions/cart-shipping-information.actions.d.ts +1 -1
- package/state/actions/cart-shipping-methods.actions.d.ts +1 -1
- package/state/actions/cart.actions.d.ts +1 -1
- package/state/cart-retrieval/type.d.ts +1 -1
- package/state/reducers/action-types.type.d.ts +1 -1
- package/state/reducers/cart-item-entities/set-state.meta-reducer.d.ts +1 -1
- package/state/reducers/errors/cart-errors.type.d.ts +1 -1
- package/state/reducers/loading/cart-loading.type.d.ts +1 -1
- package/state/reducers/token/meta.token.d.ts +1 -1
- package/esm2020/driver/in-memory/backend/cart-root.service.mjs +0 -129
- package/esm2020/routing/guards/billing-address/billing-address.guard.mjs +0 -40
- package/esm2020/routing/guards/cart-items/cart-items.guard.mjs +0 -41
- package/esm2020/routing/guards/payment-method/payment-method.guard.mjs +0 -40
- package/esm2020/routing/guards/shipping-method/shipping-method.guard.mjs +0 -40
- package/esm2020/routing/resolvers/empty-cart-resolver.service.mjs +0 -41
- package/esm2020/state/cart-state.module.mjs +0 -84
- package/esm2020/state/reducers/cart-item-entities/set-state.meta-reducer.mjs +0 -46
- package/fesm2015/daffodil-cart-driver-in-memory.mjs +0 -1190
- package/fesm2015/daffodil-cart-driver-in-memory.mjs.map +0 -1
- package/fesm2015/daffodil-cart-driver-magento-testing.mjs +0 -332
- package/fesm2015/daffodil-cart-driver-magento-testing.mjs.map +0 -1
- package/fesm2015/daffodil-cart-driver-magento.mjs +0 -2306
- package/fesm2015/daffodil-cart-driver-magento.mjs.map +0 -1
- package/fesm2015/daffodil-cart-driver-testing.mjs.map +0 -1
- package/fesm2015/daffodil-cart-driver.mjs +0 -266
- package/fesm2015/daffodil-cart-driver.mjs.map +0 -1
- package/fesm2015/daffodil-cart-routing.mjs +0 -526
- package/fesm2015/daffodil-cart-routing.mjs.map +0 -1
- package/fesm2015/daffodil-cart-state-testing.mjs.map +0 -1
- package/fesm2015/daffodil-cart-state.mjs +0 -2777
- package/fesm2015/daffodil-cart-state.mjs.map +0 -1
- package/fesm2015/daffodil-cart-testing.mjs.map +0 -1
- package/fesm2015/daffodil-cart.mjs +0 -167
- package/fesm2015/daffodil-cart.mjs.map +0 -1
- package/fesm2020/daffodil-cart-driver-testing.mjs +0 -369
- package/fesm2020/daffodil-cart-routing.mjs.map +0 -1
- package/fesm2020/daffodil-cart-state-testing.mjs +0 -218
- package/fesm2020/daffodil-cart-testing.mjs +0 -365
- /package/{esm2020 → esm2022}/daffodil-cart.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/daffodil-cart-driver.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/cart-not-found.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/codes.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/expired-payment-token.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/invalid-api-response.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/invalid-country.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/invalid-coupon-code.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/invalid-email.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/invalid-region.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/item-exceeds-max-qty.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/map.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/product-not-found.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/product-out-of-stock.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/unauthorized-for-cart.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/backend/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/daffodil-cart-driver-in-memory.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/drivers/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/helpers/compute-cart-item-prices.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/helpers/compute-cart-totals.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/index.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/injection-tokens/extra-attributes-hook.token.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/injection-tokens/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/index.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/injection-tokens/free-payment-method.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/injection-tokens/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-address-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-billing-address-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-coupon-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-item-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-order-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-payment-methods-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-payment-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-shipping-address-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-shipping-information-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/cart-shipping-methods-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/daffodil-cart-driver-magento.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/errors/codes.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/errors/map.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/errors/transform.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/index.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/injection-tokens/cart-mutation-queue.token.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/injection-tokens/fragments/cart.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/injection-tokens/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/injection-tokens/transforms/cart/token.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/injection-tokens/transforms/cart-item/token.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/interfaces/cart-item-transform.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/interfaces/cart-transform.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/interfaces/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/requests/billing-address.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/requests/cart-address-base.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/requests/cart-address.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/requests/cart-item-update.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/requests/cart-item.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/requests/payment-method.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/requests/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/requests/shipping-address.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/requests/shipping-method.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-address.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-coupon.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-item.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-payment-method.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-shipping-method.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/cart.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/shipping-address.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/user-error.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/user-error.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/add-item/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/add-item/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/add-item/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/add-item/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/apply-coupon/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/apply-coupon/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/apply-coupon/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/apply-coupon/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/create-cart/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/create-cart/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/create-cart/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/create-cart/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/available-payment-method.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/available-shipping-method.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/cart-address.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/cart-coupon.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/cart-item.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/cart.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/prices.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/selected-payment-method.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/selected-shipping-method.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/user-error.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-billing-address/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-billing-address/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-billing-address/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-billing-address/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-cart/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-cart/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-cart/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-cart/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-payment-method/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-payment-method/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-payment-method/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-payment-method/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-shipping-method/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-shipping-method/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-shipping-method/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-shipping-method/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-shipping-address/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-shipping-address/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-shipping-address/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-shipping-address/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-coupons/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-coupons/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-coupons/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-coupons/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-items/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-items/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-items/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-items/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-payment-methods/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-payment-methods/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-payment-methods/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-payment-methods/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-shipping-methods/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-shipping-methods/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-shipping-methods/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/list-shipping-methods/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/merge-carts/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/merge-carts/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/merge-carts/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/merge-carts/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/place-order/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/place-order/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/place-order/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/place-order/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/remove-all-coupons/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/remove-all-coupons/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/remove-all-coupons/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/remove-all-coupons/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/remove-item/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/remove-item/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/remove-item/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/remove-item/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing-and-email/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing-and-email/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing-and-email/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing-and-email/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-shipping-method/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-shipping-method/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-shipping-method/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-shipping-method/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-address/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-address/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-address/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-address/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-address-with-email/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-address-with-email/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-address-with-email/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-address-with-email/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address-with-email/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address-with-email/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address-with-email/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address-with-email/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-item/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-item/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-item/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-item/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address-with-email/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address-with-email/query.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address-with-email/response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address-with-email/variables.type.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/testing/daffodil-cart-driver-magento-testing.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/testing/factories/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/testing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/testing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/transforms/inputs/cart-item-input-transformers.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-coupon.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-item/bundle-cart-item-transformer.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-item/cart-item-transformer.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-item/configurable-cart-item-transformer.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-item/simple-cart-item-transformer.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-totals-transformer.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/transforms/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/operators/handle-cart-not-found.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/operators/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/services/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/testing/daffodil-cart-driver-testing.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/testing/drivers/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/testing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/testing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/codes.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/map.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/resolution/cart-not-found-or-created-resolution.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/resolution/cart-resolution.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/resolution/cart-server-side-resolution.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/resolution/cart-storage-resolution.mjs +0 -0
- /package/{esm2020 → esm2022}/errors/resolution/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/injection-tokens/payment-method-map.mjs +0 -0
- /package/{esm2020 → esm2022}/injection-tokens/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart-address.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart-coupon.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart-item-input.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart-item.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart-order-result.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart-payment.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart-shipping-info.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart-shipping-rate.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart-total.mjs +0 -0
- /package/{esm2020 → esm2022}/models/cart.mjs +0 -0
- /package/{esm2020 → esm2022}/models/composite-cart-item.mjs +0 -0
- /package/{esm2020 → esm2022}/models/configurable-cart-item.mjs +0 -0
- /package/{esm2020 → esm2022}/models/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/config/config.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/config/resolution/config.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/daffodil-cart-routing.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/guards/billing-address/billing-address-guard-redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/guards/cart-items/cart-items-guard-redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/guards/in-stock-items/in-stock-items-guard-redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/guards/order-result/order-result-guard-redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/guards/payment-method/payment-method-guard-redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/guards/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/guards/resolve-cart/redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/guards/shipping-address/shipping-address-guard-redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/guards/shipping-method/shipping-method-guard-redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/resolvers/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/resolvers/tokens/cart-resolver-redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/routing/resolvers/tokens/empty-cart-resolver-redirect.token.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-address.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-billing-address.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-coupon.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-item.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-order.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-payment-methods.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-payment.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-retrieval.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-shipping-address.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-shipping-information.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart-shipping-methods.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/cart.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/cart-retrieval/get-response.mjs +0 -0
- /package/{esm2020 → esm2022}/state/cart-retrieval/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/cart-retrieval/token.mjs +0 -0
- /package/{esm2020 → esm2022}/state/cart-retrieval/type.mjs +0 -0
- /package/{esm2020 → esm2022}/state/daffodil-cart-state.mjs +0 -0
- /package/{esm2020 → esm2022}/state/facades/cart/cart-facade.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/index.mjs +0 -0
- /package/{esm2020 → esm2022}/state/injection-tokens/cart-item-state-debounce-time.mjs +0 -0
- /package/{esm2020 → esm2022}/state/injection-tokens/error-matcher.token.mjs +0 -0
- /package/{esm2020 → esm2022}/state/injection-tokens/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/models/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/models/stateful-cart-item.mjs +0 -0
- /package/{esm2020 → esm2022}/state/models/stateful-cart.mjs +0 -0
- /package/{esm2020 → esm2022}/state/models/stateful-composite-cart-item.mjs +0 -0
- /package/{esm2020 → esm2022}/state/models/stateful-configurable-cart-item.mjs +0 -0
- /package/{esm2020 → esm2022}/state/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/action-types.type.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart/cart.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart/retrieval-actions.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-billing-address/cart-billing-address.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-coupon/cart-coupon.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-initial-state.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-item/cart-item.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-item-entities/cart-item-entities-reducer-adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-item-entities/cart-item-entities.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-item-entities/retrieval-actions.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-operation-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-order/cart-order-initial-state.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-order/cart-order-state.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-order/cart-order.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-payment/cart-payment.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-payment/payment.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-payment-methods/cart-payment-methods.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-reducers-state.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-reducers.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-resolve/cart-resolve-state.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-resolve/cart-resolve.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-shipping-address/cart-shipping-address.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-shipping-information/cart-shipping-information.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-shipping-methods/cart-shipping-methods.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-state.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart-store-feature-key.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/cart.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/errors/cart-errors.type.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/errors/error-state-helpers.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/loading/cart-loading.type.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/token/config.token.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/token/extra.token.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/token/meta.token.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/token/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/token/reducers.token.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/cart/cart.selector.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/cart-feature.selector.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/cart-item-entities/cart-item-entities.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/cart-order/cart-order.selector.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/cart.selector.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/testing/daffodil-cart-state-testing.mjs +0 -0
- /package/{esm2020 → esm2022}/state/testing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/state/testing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/daffodil-cart-testing.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Router, UrlTree } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { DaffCartFacade } from '@daffodil/cart/state';
|
|
4
4
|
import { DaffCartRoutingConfiguration } from '../../config/config';
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* Specify a redirect path with the {@link DaffResolvedCartGuardRedirectUrl} injection token.
|
|
11
11
|
* The guard will wait until the cart has been resolved before performing the check and emitting.
|
|
12
12
|
*/
|
|
13
|
-
export declare class DaffResolvedCartGuard
|
|
13
|
+
export declare class DaffResolvedCartGuard {
|
|
14
14
|
private facade;
|
|
15
15
|
private router;
|
|
16
16
|
private config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { DaffCartFacade } from '@daffodil/cart/state';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* The guard will not wait until the cart has been resolved before performing the check and emitting.
|
|
9
9
|
* Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
|
|
10
10
|
*/
|
|
11
|
-
export declare class DaffShippingAddressGuard
|
|
11
|
+
export declare class DaffShippingAddressGuard {
|
|
12
12
|
private facade;
|
|
13
13
|
private router;
|
|
14
14
|
private redirectUrl;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { DaffCartFacade } from '@daffodil/cart/state';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* The guard will not wait until the cart has been resolved before performing the check and emitting.
|
|
9
9
|
* Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
|
|
10
10
|
*/
|
|
11
|
-
export declare class DaffShippingMethodGuard
|
|
11
|
+
export declare class DaffShippingMethodGuard {
|
|
12
12
|
private facade;
|
|
13
13
|
private router;
|
|
14
14
|
private redirectUrl;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
2
|
import { Store, ActionsSubject } from '@ngrx/store';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { DaffCart } from '@daffodil/cart';
|
|
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Resolves the cart before navigation. Redirects to a given url when a failure occurs during Cart Load.
|
|
9
9
|
* This url is `/` by default but can be overridden with the DaffCartResolverRedirectUrl injection token.
|
|
10
10
|
*/
|
|
11
|
-
export declare class DaffCartResolver
|
|
11
|
+
export declare class DaffCartResolver {
|
|
12
12
|
private store;
|
|
13
13
|
private dispatcher;
|
|
14
14
|
private router;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { DaffCart } from '@daffodil/cart';
|
|
4
4
|
import { DaffCartResolver } from './cart-resolver.service';
|
|
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* This resolver also redirects to a different url when the cart is empty after successfully loading.
|
|
10
10
|
* This url is also `/` by default, but can be overridden with the DaffEmptyCartResolverRedirectUrl
|
|
11
11
|
*/
|
|
12
|
-
export declare class DaffEmptyCartResolver
|
|
12
|
+
export declare class DaffEmptyCartResolver {
|
|
13
13
|
private cartResolver;
|
|
14
14
|
private router;
|
|
15
15
|
private redirectUrl;
|
|
@@ -37,4 +37,4 @@ export declare class DaffCartAddressUpdateFailure implements DaffFailureAction {
|
|
|
37
37
|
/**
|
|
38
38
|
* A union of all the cart address action classes.
|
|
39
39
|
*/
|
|
40
|
-
export
|
|
40
|
+
export type DaffCartAddressActions<T extends DaffCartAddress = DaffCartAddress, V extends DaffCart = DaffCart> = DaffCartAddressUpdate<T> | DaffCartAddressUpdateSuccess<V> | DaffCartAddressUpdateFailure;
|
|
@@ -62,4 +62,4 @@ export declare class DaffCartBillingAddressUpdateFailure implements DaffFailureA
|
|
|
62
62
|
/**
|
|
63
63
|
* A union of all the cart billing address action classes.
|
|
64
64
|
*/
|
|
65
|
-
export
|
|
65
|
+
export type DaffCartBillingAddressActions<T extends DaffCartAddress = DaffCartAddress, V extends DaffCart = DaffCart> = DaffCartBillingAddressLoad | DaffCartBillingAddressLoadSuccess<T> | DaffCartBillingAddressLoadFailure | DaffCartBillingAddressUpdate<T> | DaffCartBillingAddressUpdateSuccess<V> | DaffCartBillingAddressUpdateFailure;
|
|
@@ -121,4 +121,4 @@ export declare class DaffCartCouponClearErrors implements Action {
|
|
|
121
121
|
/**
|
|
122
122
|
* A union of all the cart coupon action classes.
|
|
123
123
|
*/
|
|
124
|
-
export
|
|
124
|
+
export type DaffCartCouponActions<T extends DaffCart = DaffCart, V extends DaffCartCoupon = DaffCartCoupon> = DaffCartCouponApply<V> | DaffCartCouponApplySuccess<T> | DaffCartCouponApplyFailure | DaffCartCouponList | DaffCartCouponListSuccess<V> | DaffCartCouponListFailure | DaffCartCouponRemove<V> | DaffCartCouponRemoveSuccess<T> | DaffCartCouponRemoveFailure | DaffCartCouponRemoveAll | DaffCartCouponRemoveAllSuccess<T> | DaffCartCouponRemoveAllFailure | DaffCartCouponClearErrors;
|
|
@@ -181,4 +181,4 @@ export declare class DaffCartItemStateReset implements Action {
|
|
|
181
181
|
/**
|
|
182
182
|
* A union of all the cart item action classes.
|
|
183
183
|
*/
|
|
184
|
-
export
|
|
184
|
+
export type DaffCartItemActions<T extends DaffStatefulCartItem = DaffStatefulCartItem, U extends DaffCartItemInput = DaffCartItemInput, V extends DaffCart = DaffCart> = DaffCartItemList | DaffCartItemListSuccess<T> | DaffCartItemListFailure | DaffCartItemLoad<T> | DaffCartItemLoadSuccess<T> | DaffCartItemLoadFailure<T> | DaffCartItemUpdate<T> | DaffCartItemUpdateSuccess<V, T> | DaffCartItemUpdateFailure<T> | DaffCartItemAdd<U> | DaffCartItemAddSuccess<V> | DaffCartItemAddFailure | DaffCartItemDelete<T> | DaffCartItemDeleteSuccess<V> | DaffCartItemDeleteFailure<T> | DaffCartItemDeleteOutOfStock | DaffCartItemDeleteOutOfStockSuccess<V> | DaffCartItemDeleteOutOfStockFailure | DaffCartItemStateReset;
|
|
@@ -36,4 +36,4 @@ export declare class DaffCartPlaceOrderFailure implements DaffFailureAction {
|
|
|
36
36
|
/**
|
|
37
37
|
* A union of all the cart order action classes.
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type DaffCartOrderActions<T extends DaffCartOrderResult = DaffCartOrderResult, V extends DaffCartPaymentMethod = DaffCartPaymentMethod> = DaffCartPlaceOrder<V> | DaffCartPlaceOrderSuccess<T> | DaffCartPlaceOrderFailure;
|
|
@@ -35,4 +35,4 @@ export declare class DaffCartPaymentMethodsLoadFailure implements DaffFailureAct
|
|
|
35
35
|
/**
|
|
36
36
|
* A union of all the cart payment methods action classes.
|
|
37
37
|
*/
|
|
38
|
-
export
|
|
38
|
+
export type DaffCartPaymentMethodsActions<T extends DaffCartPaymentMethod = DaffCartPaymentMethod> = DaffCartPaymentMethodsLoad | DaffCartPaymentMethodsLoadSuccess<T> | DaffCartPaymentMethodsLoadFailure;
|
|
@@ -132,4 +132,4 @@ export declare class DaffCartPaymentMethodAdd<T extends DaffCartPaymentMethod =
|
|
|
132
132
|
/**
|
|
133
133
|
* A union of all the cart payment action classes.
|
|
134
134
|
*/
|
|
135
|
-
export
|
|
135
|
+
export type DaffCartPaymentActions<T extends DaffCartPaymentMethod = DaffCartPaymentMethod, V extends DaffCart = DaffCart, R extends DaffCartAddress = DaffCartAddress> = DaffCartPaymentLoad | DaffCartPaymentLoadSuccess<T> | DaffCartPaymentLoadFailure | DaffCartPaymentUpdate<T> | DaffCartPaymentUpdateSuccess<V> | DaffCartPaymentUpdateFailure | DaffCartPaymentUpdateWithBilling<T, R> | DaffCartPaymentUpdateWithBillingSuccess<V> | DaffCartPaymentUpdateWithBillingFailure | DaffCartPaymentRemove | DaffCartPaymentRemoveSuccess | DaffCartPaymentRemoveFailure | DaffCartPaymentMethodAdd<T>;
|
|
@@ -62,4 +62,4 @@ export declare class DaffCartShippingAddressUpdateFailure implements DaffFailure
|
|
|
62
62
|
/**
|
|
63
63
|
* A union of all the cart shipping address action classes.
|
|
64
64
|
*/
|
|
65
|
-
export
|
|
65
|
+
export type DaffCartShippingAddressActions<T extends DaffCartAddress = DaffCartAddress, V extends DaffCart = DaffCart> = DaffCartShippingAddressLoad | DaffCartShippingAddressLoadSuccess<T> | DaffCartShippingAddressLoadFailure | DaffCartShippingAddressUpdate<T> | DaffCartShippingAddressUpdateSuccess<V> | DaffCartShippingAddressUpdateFailure;
|
|
@@ -83,4 +83,4 @@ export declare class DaffCartShippingInformationDeleteFailure implements DaffFai
|
|
|
83
83
|
/**
|
|
84
84
|
* A union of all the cart shipping information action classes.
|
|
85
85
|
*/
|
|
86
|
-
export
|
|
86
|
+
export type DaffCartShippingInformationActions<T extends DaffCartShippingRate = DaffCartShippingRate, V extends DaffCart = DaffCart> = DaffCartShippingInformationLoad | DaffCartShippingInformationLoadSuccess<T> | DaffCartShippingInformationLoadFailure | DaffCartShippingInformationUpdate<T> | DaffCartShippingInformationUpdateSuccess<V> | DaffCartShippingInformationUpdateFailure | DaffCartShippingInformationDelete<T> | DaffCartShippingInformationDeleteSuccess<V> | DaffCartShippingInformationDeleteFailure;
|
|
@@ -29,4 +29,4 @@ export declare class DaffCartShippingMethodsLoadFailure implements DaffFailureAc
|
|
|
29
29
|
/**
|
|
30
30
|
* A union of all the cart shipping methods action classes.
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export type DaffCartShippingMethodsActions<T extends DaffCartShippingRate = DaffCartShippingRate> = DaffCartShippingMethodsLoad | DaffCartShippingMethodsLoadSuccess<T> | DaffCartShippingMethodsLoadFailure;
|
|
@@ -181,4 +181,4 @@ export declare class DaffResolveCartServerSide implements Action {
|
|
|
181
181
|
/**
|
|
182
182
|
* A union of all the cart action classes.
|
|
183
183
|
*/
|
|
184
|
-
export
|
|
184
|
+
export type DaffCartActions<T extends DaffCart = DaffCart> = DaffCartStorageFailure | DaffCartLoad | DaffCartLoadSuccess<T> | DaffCartLoadPartialSuccess<T> | DaffCartLoadFailure | DaffCartCreate | DaffCartCreateSuccess<T> | DaffCartCreateFailure | DaffAddToCart | DaffAddToCartSuccess | DaffAddToCartFailure | DaffCartClear | DaffCartClearSuccess<T> | DaffCartClearFailure | DaffResolveCart | DaffResolveCartSuccess<T> | DaffResolveCartPartialSuccess<T> | DaffResolveCartServerSide | DaffResolveCartFailure;
|
|
@@ -37,4 +37,4 @@ export interface DaffCartRetrievalActionTransformedInjection<T extends Action =
|
|
|
37
37
|
* Actions provided to {@link DAFF_CART_RETRIEVAL_ACTIONS} are natively understood by Daffodil reducers and will automatically
|
|
38
38
|
* populate the appropriate pieces of state when they are dispatched.
|
|
39
39
|
*/
|
|
40
|
-
export
|
|
40
|
+
export type DaffCartRetrievalActionInjection = DaffCartRetrievalActionDirectInjection | DaffCartRetrievalActionTransformedInjection;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DaffCart, DaffCartAddress, DaffCartCoupon, DaffCartItemInput, DaffCartOrderResult, DaffCartPaymentMethod, DaffCartShippingRate } from '@daffodil/cart';
|
|
2
2
|
import { DaffCartActions, DaffCartItemActions, DaffCartBillingAddressActions, DaffCartShippingAddressActions, DaffCartShippingMethodsActions, DaffCartShippingInformationActions, DaffCartPaymentActions, DaffCartPaymentMethodsActions, DaffCartCouponActions, DaffCartAddressActions, DaffCartOrderActions } from '../actions/public_api';
|
|
3
3
|
import { DaffStatefulCartItem } from '../models/public_api';
|
|
4
|
-
export
|
|
4
|
+
export type ActionTypes<T extends DaffCart = DaffCart, V extends DaffStatefulCartItem = DaffStatefulCartItem, U extends DaffCartItemInput = DaffCartItemInput, W extends DaffCartAddress = DaffCartAddress, X extends DaffCartShippingRate = DaffCartShippingRate, Y extends DaffCartPaymentMethod = DaffCartPaymentMethod, Z extends DaffCartCoupon = DaffCartCoupon, TOrderResult extends DaffCartOrderResult = DaffCartOrderResult> = DaffCartActions<T> | DaffCartItemActions<V, U, T> | DaffCartBillingAddressActions<W, T> | DaffCartShippingAddressActions<W, T> | DaffCartAddressActions<W, T> | DaffCartShippingMethodsActions<X> | DaffCartShippingInformationActions<X, T> | DaffCartPaymentActions<Y, T, W> | DaffCartPaymentMethodsActions<Y> | DaffCartOrderActions<TOrderResult> | DaffCartCouponActions<T, Z>;
|
|
@@ -3,7 +3,7 @@ import { DaffCart, DaffCartOrderResult } from '@daffodil/cart';
|
|
|
3
3
|
import { DaffCartItemActions } from '../../actions/public_api';
|
|
4
4
|
import { DaffStatefulCartItem } from '../../models/public_api';
|
|
5
5
|
import { DaffCartReducersState } from '../cart-reducers-state.interface';
|
|
6
|
-
|
|
6
|
+
type Reducer<T extends DaffStatefulCartItem = DaffStatefulCartItem> = ActionReducer<DaffCartReducersState<DaffCart, DaffCartOrderResult, T>, DaffCartItemActions<T>>;
|
|
7
7
|
/**
|
|
8
8
|
* A meta reducer for determining and setting the correct `daffState` values on cart items.
|
|
9
9
|
*/
|
|
@@ -11,7 +11,7 @@ export interface DaffCartLoading {
|
|
|
11
11
|
[DaffCartOperationType.ShippingMethods]: DaffLoadingState;
|
|
12
12
|
[DaffCartOperationType.Coupon]: DaffMutableLoadingState;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type DaffCartItemLoadingState = DaffMutableLoadingState | DaffState.Adding;
|
|
15
15
|
export declare const initializeLoadingSetter: (loadingSpace: DaffCartOperationType) => (loadingObj: DaffCartLoading, loading: DaffLoadingState | DaffMutableLoadingState | DaffCartItemLoadingState) => {
|
|
16
16
|
loading: {
|
|
17
17
|
Cart: DaffMutableLoadingState;
|
|
@@ -7,7 +7,7 @@ import { DaffCartReducersState } from '../cart-reducers-state.interface';
|
|
|
7
7
|
*
|
|
8
8
|
* Prefer using {@link daffCartProvideMetaReducers}.
|
|
9
9
|
*/
|
|
10
|
-
export declare const DAFF_CART_META_REDUCERS: InjectionToken<MetaReducer<DaffCartReducersState<DaffCart, import("@daffodil/cart").DaffCartOrderResult, import("@daffodil/cart/state").DaffStatefulCartItem
|
|
10
|
+
export declare const DAFF_CART_META_REDUCERS: InjectionToken<MetaReducer<DaffCartReducersState<DaffCart, import("@daffodil/cart").DaffCartOrderResult, import("@daffodil/cart/state").DaffStatefulCartItem>>[]>;
|
|
11
11
|
/**
|
|
12
12
|
* Provides additional meta-reducers that run after the standard Daffodil cart meta-reducers.
|
|
13
13
|
*
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { STATUS, } from 'angular-in-memory-web-api';
|
|
3
|
-
import { DaffInMemoryBackendCartService } from './cart/cart.service';
|
|
4
|
-
import { DaffInMemoryBackendCartAddressService } from './cart-address/cart-address.service';
|
|
5
|
-
import { DaffInMemoryBackendCartBillingAddressService } from './cart-billing-address/cart-billing-address.service';
|
|
6
|
-
import { DaffInMemoryBackendCartCouponService } from './cart-coupon/cart-coupon.service';
|
|
7
|
-
import { DaffInMemoryBackendCartItemsService } from './cart-items/cart-items.service';
|
|
8
|
-
import { DaffInMemoryBackendCartOrderService } from './cart-order/cart-order.service';
|
|
9
|
-
import { DaffInMemoryBackendCartPaymentService } from './cart-payment/cart-payment.service';
|
|
10
|
-
import { DaffInMemoryBackendCartPaymentMethodsService } from './cart-payment-methods/cart-payment-methods.service';
|
|
11
|
-
import { DaffInMemoryBackendCartShippingAddressService } from './cart-shipping-address/cart-shipping-address.service';
|
|
12
|
-
import { DaffInMemoryBackendCartShippingInformationService } from './cart-shipping-information/cart-shipping-information.service';
|
|
13
|
-
import { DaffInMemoryBackendCartShippingMethodsService } from './cart-shipping-methods/cart-shipping-methods.service';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
import * as i1 from "./cart/cart.service";
|
|
16
|
-
import * as i2 from "./cart-items/cart-items.service";
|
|
17
|
-
import * as i3 from "./cart-order/cart-order.service";
|
|
18
|
-
import * as i4 from "./cart-coupon/cart-coupon.service";
|
|
19
|
-
import * as i5 from "./cart-address/cart-address.service";
|
|
20
|
-
import * as i6 from "./cart-shipping-address/cart-shipping-address.service";
|
|
21
|
-
import * as i7 from "./cart-billing-address/cart-billing-address.service";
|
|
22
|
-
import * as i8 from "./cart-payment-methods/cart-payment-methods.service";
|
|
23
|
-
import * as i9 from "./cart-shipping-methods/cart-shipping-methods.service";
|
|
24
|
-
import * as i10 from "./cart-payment/cart-payment.service";
|
|
25
|
-
import * as i11 from "./cart-shipping-information/cart-shipping-information.service";
|
|
26
|
-
/**
|
|
27
|
-
* The root cart in-memory backend.
|
|
28
|
-
* Creates the database and delegates requests to child backends.
|
|
29
|
-
*/
|
|
30
|
-
export class DaffInMemoryBackendCartRootService {
|
|
31
|
-
constructor(cartService, cartItemsService, cartOrderService, cartCouponService, cartAddressService, cartShippingAddressService, cartBillingAddressService, cartPaymentMethodsService, cartShippingMethodsService, cartPaymentService, cartShippingInformationService) {
|
|
32
|
-
this.cartService = cartService;
|
|
33
|
-
this.cartItemsService = cartItemsService;
|
|
34
|
-
this.cartOrderService = cartOrderService;
|
|
35
|
-
this.cartCouponService = cartCouponService;
|
|
36
|
-
this.cartAddressService = cartAddressService;
|
|
37
|
-
this.cartShippingAddressService = cartShippingAddressService;
|
|
38
|
-
this.cartBillingAddressService = cartBillingAddressService;
|
|
39
|
-
this.cartPaymentMethodsService = cartPaymentMethodsService;
|
|
40
|
-
this.cartShippingMethodsService = cartShippingMethodsService;
|
|
41
|
-
this.cartPaymentService = cartPaymentService;
|
|
42
|
-
this.cartShippingInformationService = cartShippingInformationService;
|
|
43
|
-
/**
|
|
44
|
-
* The collection of carts in the backend.
|
|
45
|
-
*/
|
|
46
|
-
this.carts = [];
|
|
47
|
-
}
|
|
48
|
-
createDb(reqInfo) {
|
|
49
|
-
if (reqInfo) {
|
|
50
|
-
const seedData = reqInfo.utils.getJsonBody(reqInfo.req).carts;
|
|
51
|
-
if (seedData) {
|
|
52
|
-
this.carts = seedData;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
cart: this.carts,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
get(reqInfo) {
|
|
60
|
-
return this.delegateRequest(reqInfo);
|
|
61
|
-
}
|
|
62
|
-
post(reqInfo) {
|
|
63
|
-
return this.delegateRequest(reqInfo);
|
|
64
|
-
}
|
|
65
|
-
put(reqInfo) {
|
|
66
|
-
return this.delegateRequest(reqInfo);
|
|
67
|
-
}
|
|
68
|
-
delete(reqInfo) {
|
|
69
|
-
return this.delegateRequest(reqInfo);
|
|
70
|
-
}
|
|
71
|
-
delegateRequest(reqInfo) {
|
|
72
|
-
reqInfo.collection = this.carts;
|
|
73
|
-
switch (reqInfo.collectionName) {
|
|
74
|
-
case 'cart':
|
|
75
|
-
return this.cartService[reqInfo.method](reqInfo);
|
|
76
|
-
case 'cart-items':
|
|
77
|
-
return this.cartItemsService[reqInfo.method](reqInfo);
|
|
78
|
-
case 'cart-order':
|
|
79
|
-
return this.cartOrderService[reqInfo.method](reqInfo);
|
|
80
|
-
case 'cart-coupon':
|
|
81
|
-
return this.cartCouponService[reqInfo.method](reqInfo);
|
|
82
|
-
case 'cart-address':
|
|
83
|
-
return this.cartAddressService[reqInfo.method](reqInfo);
|
|
84
|
-
case 'cart-shipping-address':
|
|
85
|
-
return this.cartShippingAddressService[reqInfo.method](reqInfo);
|
|
86
|
-
case 'cart-billing-address':
|
|
87
|
-
return this.cartBillingAddressService[reqInfo.method](reqInfo);
|
|
88
|
-
case 'cart-payment-methods':
|
|
89
|
-
return this.cartPaymentMethodsService[reqInfo.method](reqInfo);
|
|
90
|
-
case 'cart-shipping-methods':
|
|
91
|
-
return this.cartShippingMethodsService[reqInfo.method](reqInfo);
|
|
92
|
-
case 'cart-payment':
|
|
93
|
-
return this.cartPaymentService[reqInfo.method](reqInfo);
|
|
94
|
-
case 'cart-shipping-information':
|
|
95
|
-
return this.cartShippingInformationService[reqInfo.method](reqInfo);
|
|
96
|
-
default:
|
|
97
|
-
return reqInfo.utils.createResponse$(() => ({
|
|
98
|
-
body: {},
|
|
99
|
-
status: STATUS.OK,
|
|
100
|
-
}));
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* The collections that the root service manages.
|
|
106
|
-
* Useful for a higher-level backend that delegates to this one based on collection name.
|
|
107
|
-
*/
|
|
108
|
-
DaffInMemoryBackendCartRootService.COLLECTION_NAMES = [
|
|
109
|
-
'cart',
|
|
110
|
-
'cart-items',
|
|
111
|
-
'cart-order',
|
|
112
|
-
'cart-coupon',
|
|
113
|
-
'cart-address',
|
|
114
|
-
'cart-shipping-address',
|
|
115
|
-
'cart-billing-address',
|
|
116
|
-
'cart-payment-methods',
|
|
117
|
-
'cart-shipping-methods',
|
|
118
|
-
'cart-payment',
|
|
119
|
-
'cart-shipping-information',
|
|
120
|
-
];
|
|
121
|
-
/** @nocollapse */ DaffInMemoryBackendCartRootService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartRootService, deps: [{ token: i1.DaffInMemoryBackendCartService }, { token: i2.DaffInMemoryBackendCartItemsService }, { token: i3.DaffInMemoryBackendCartOrderService }, { token: i4.DaffInMemoryBackendCartCouponService }, { token: i5.DaffInMemoryBackendCartAddressService }, { token: i6.DaffInMemoryBackendCartShippingAddressService }, { token: i7.DaffInMemoryBackendCartBillingAddressService }, { token: i8.DaffInMemoryBackendCartPaymentMethodsService }, { token: i9.DaffInMemoryBackendCartShippingMethodsService }, { token: i10.DaffInMemoryBackendCartPaymentService }, { token: i11.DaffInMemoryBackendCartShippingInformationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
122
|
-
/** @nocollapse */ DaffInMemoryBackendCartRootService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartRootService, providedIn: 'root' });
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartRootService, decorators: [{
|
|
124
|
-
type: Injectable,
|
|
125
|
-
args: [{
|
|
126
|
-
providedIn: 'root',
|
|
127
|
-
}]
|
|
128
|
-
}], ctorParameters: function () { return [{ type: i1.DaffInMemoryBackendCartService }, { type: i2.DaffInMemoryBackendCartItemsService }, { type: i3.DaffInMemoryBackendCartOrderService }, { type: i4.DaffInMemoryBackendCartCouponService }, { type: i5.DaffInMemoryBackendCartAddressService }, { type: i6.DaffInMemoryBackendCartShippingAddressService }, { type: i7.DaffInMemoryBackendCartBillingAddressService }, { type: i8.DaffInMemoryBackendCartPaymentMethodsService }, { type: i9.DaffInMemoryBackendCartShippingMethodsService }, { type: i10.DaffInMemoryBackendCartPaymentService }, { type: i11.DaffInMemoryBackendCartShippingInformationService }]; } });
|
|
129
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FydC1yb290LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NhcnQvZHJpdmVyL2luLW1lbW9yeS9zcmMvYmFja2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LW1ldGhvZHMnOlxuICAgICAgICByZXR1cm4gdGhpcy5jYXJ0U2hpcHBpbmdNZXRob2RzU2VydmljZVtyZXFJbmZvLm1ldGhvZF0ocmVxSW5mbyk7XG5cbiAgICAgIGNhc2UgJ2NhcnQtcGF5bWVudCc6XG4gICAgICAgIHJldHVybiB0aGlzLmNhcnRQYXltZW50U2VydmljZVtyZXFJbmZvLm1ldGhvZF0ocmVxSW5mbyk7XG5cbiAgICAgIGNhc2UgJ2NhcnQtc2hpcHBpbmctaW5mb3JtYXRpb24nOlxuICAgICAgICByZXR1cm4gdGhpcy5jYXJ0U2hpcHBpbmdJbmZvcm1hdGlvblNlcnZpY2VbcmVxSW5mby5tZXRob2RdKHJlcUluZm8pO1xuXG4gICAgICBkZWZhdWx0OlxuICAgICAgICByZXR1cm4gcmVxSW5mby51dGlscy5jcmVhdGVSZXNwb25zZSQoKCkgPT4gKHtcbiAgICAgICAgICBib2R5OiB7fSxcbiAgICAgICAgICBzdGF0dXM6IFNUQVRVUy5PSyxcbiAgICAgICAgfSkpO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Injectable, Inject, } from '@angular/core';
|
|
2
|
-
import { Router, } from '@angular/router';
|
|
3
|
-
import { tap, take, } from 'rxjs/operators';
|
|
4
|
-
import { DaffCartFacade } from '@daffodil/cart/state';
|
|
5
|
-
import { DaffCartBillingAddressGuardRedirectUrl } from './billing-address-guard-redirect.token';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@daffodil/cart/state";
|
|
8
|
-
import * as i2 from "@angular/router";
|
|
9
|
-
/**
|
|
10
|
-
* A routing guard that will redirect to a given url if the billing address on the cart is not defined.
|
|
11
|
-
* The url is `/` by default, but can be overridden with the DaffCartBillingAddressGuardRedirectUrl injection token.
|
|
12
|
-
* The guard will not wait until the cart has been resolved before performing the check and emitting.
|
|
13
|
-
* Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
|
|
14
|
-
*/
|
|
15
|
-
export class DaffBillingAddressGuard {
|
|
16
|
-
constructor(facade, router, redirectUrl) {
|
|
17
|
-
this.facade = facade;
|
|
18
|
-
this.router = router;
|
|
19
|
-
this.redirectUrl = redirectUrl;
|
|
20
|
-
}
|
|
21
|
-
canActivate() {
|
|
22
|
-
return this.facade.hasBillingAddress$.pipe(take(1), tap(hasBillingAddress => {
|
|
23
|
-
if (!hasBillingAddress) {
|
|
24
|
-
this.router.navigateByUrl(this.redirectUrl);
|
|
25
|
-
}
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/** @nocollapse */ DaffBillingAddressGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffBillingAddressGuard, deps: [{ token: i1.DaffCartFacade }, { token: i2.Router }, { token: DaffCartBillingAddressGuardRedirectUrl }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
-
/** @nocollapse */ DaffBillingAddressGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffBillingAddressGuard, providedIn: 'root' });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffBillingAddressGuard, decorators: [{
|
|
32
|
-
type: Injectable,
|
|
33
|
-
args: [{
|
|
34
|
-
providedIn: 'root',
|
|
35
|
-
}]
|
|
36
|
-
}], ctorParameters: function () { return [{ type: i1.DaffCartFacade }, { type: i2.Router }, { type: undefined, decorators: [{
|
|
37
|
-
type: Inject,
|
|
38
|
-
args: [DaffCartBillingAddressGuardRedirectUrl]
|
|
39
|
-
}] }]; } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlsbGluZy1hZGRyZXNzLmd1YXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXM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FzIGJlZW4gcmVzb2x2ZWQgYmVmb3JlIHBlcmZvcm1pbmcgdGhlIGNoZWNrIGFuZCBlbWl0dGluZy5cbiAqIEVuc3VyZSB0aGF0IHRoZSBjYXJ0IGlzIHJlc29sdmVkIHByaW9yIHRvIHJ1bm5pbmcgdGhpcyBndWFyZCB3aXRoIHRoZSB7QGxpbmsgRGFmZlJlc29sdmVkQ2FydEd1YXJkfS5cbiAqL1xuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIERhZmZCaWxsaW5nQWRkcmVzc0d1YXJkIGltcGxlbWVudHMgQ2FuQWN0aXZhdGUge1xuICBjb25zdHJ1Y3RvcihcbiAgICBwcml2YXRlIGZhY2FkZTogRGFmZkNhcnRGYWNhZGUsXG4gICAgcHJpdmF0ZSByb3V0ZXI6IFJvdXRlcixcbiAgICBASW5qZWN0KERhZmZDYXJ0QmlsbGluZ0FkZHJlc3NHdWFyZFJlZGlyZWN0VXJsKSBwcml2YXRlIHJlZGlyZWN0VXJsOiBzdHJpbmcsXG4gICkge31cblxuICBjYW5BY3RpdmF0ZSgpOiBPYnNlcnZhYmxlPGJvb2xlYW4+IHtcbiAgICByZXR1cm4gdGhpcy5mYWNhZGUuaGFzQmlsbGluZ0FkZHJlc3MkLnBpcGUoXG4gICAgICB0YWtlKDEpLFxuICAgICAgdGFwKGhhc0JpbGxpbmdBZGRyZXNzID0+IHtcbiAgICAgICAgaWYgKCFoYXNCaWxsaW5nQWRkcmVzcykge1xuICAgICAgICAgIHRoaXMucm91dGVyLm5hdmlnYXRlQnlVcmwodGhpcy5yZWRpcmVjdFVybCk7XG4gICAgICAgIH1cbiAgICAgIH0pLFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Injectable, Inject, } from '@angular/core';
|
|
2
|
-
import { Router, } from '@angular/router';
|
|
3
|
-
import { tap, take, map, } from 'rxjs/operators';
|
|
4
|
-
import { DaffCartFacade } from '@daffodil/cart/state';
|
|
5
|
-
import { DaffCartItemsGuardRedirectUrl } from './cart-items-guard-redirect.token';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@daffodil/cart/state";
|
|
8
|
-
import * as i2 from "@angular/router";
|
|
9
|
-
/**
|
|
10
|
-
* A routing guard that will ensure that the cart is not empty before allowing activation of a route.
|
|
11
|
-
* If the cart has items in it, then `canActivate` will emit true. If not, it will emit false and redirect to a specific path.
|
|
12
|
-
* The url is `/` by default but can be overridden with the {@link DaffCartItemsGuardRedirectUrl} injection token.
|
|
13
|
-
* The guard will not wait until the cart has been resolved before performing the check and emitting.
|
|
14
|
-
* Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
|
|
15
|
-
*/
|
|
16
|
-
export class DaffCartItemsGuard {
|
|
17
|
-
constructor(facade, router, redirectUrl) {
|
|
18
|
-
this.facade = facade;
|
|
19
|
-
this.router = router;
|
|
20
|
-
this.redirectUrl = redirectUrl;
|
|
21
|
-
}
|
|
22
|
-
canActivate() {
|
|
23
|
-
return this.facade.isCartEmpty$.pipe(map(isCartEmpty => !isCartEmpty), take(1), tap(hasNonEmptyCart => {
|
|
24
|
-
if (!hasNonEmptyCart) {
|
|
25
|
-
this.router.navigateByUrl(this.redirectUrl);
|
|
26
|
-
}
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/** @nocollapse */ DaffCartItemsGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCartItemsGuard, deps: [{ token: i1.DaffCartFacade }, { token: i2.Router }, { token: DaffCartItemsGuardRedirectUrl }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
-
/** @nocollapse */ DaffCartItemsGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCartItemsGuard, providedIn: 'root' });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCartItemsGuard, decorators: [{
|
|
33
|
-
type: Injectable,
|
|
34
|
-
args: [{
|
|
35
|
-
providedIn: 'root',
|
|
36
|
-
}]
|
|
37
|
-
}], ctorParameters: function () { return [{ type: i1.DaffCartFacade }, { type: i2.Router }, { type: undefined, decorators: [{
|
|
38
|
-
type: Inject,
|
|
39
|
-
args: [DaffCartItemsGuardRedirectUrl]
|
|
40
|
-
}] }]; } });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FydC1pdGVtcy5ndWFyZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY2FydC9yb3V0aW5nL3NyYy9ndWFyZHMvY2FydC1pdGVtcy9jYXJ0LWl0ZW1zLmd1YXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxVQUFVLEVBQ1YsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFFTCxNQUFNLEdBQ1AsTUFBTSxpQkFBaUIsQ0FBQztBQUV6QixPQUFPLEVBQ0wsR0FBRyxFQUNILElBQUksRUFDSixHQUFHLEdBQ0osTUFBTSxnQkFBZ0IsQ0FBQztBQUV4QixPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFdEQsT0FBTyxFQUFFLDZCQUE2QixFQUFFLE1BQU0sbUNBQW1DLENBQUM7Ozs7QUFFbEY7Ozs7OztHQU1HO0FBSUgsTUFBTSxPQUFPLGtCQUFrQjtJQUM3QixZQUNVLE1BQXNCLEVBQ3RCLE1BQWMsRUFDeUIsV0FBbUI7UUFGMUQsV0FBTSxHQUFOLE1BQU0sQ0FBZ0I7UUFDdEIsV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XJ0RmFjYWRlLFxuICAgIHByaXZhdGUgcm91dGVyOiBSb3V0ZXIsXG4gICAgQEluamVjdChEYWZmQ2FydEl0ZW1zR3VhcmRSZWRpcmVjdFVybCkgcHJpdmF0ZSByZWRpcmVjdFVybDogc3RyaW5nLFxuICApIHt9XG5cbiAgY2FuQWN0aXZhdGUoKTogT2JzZXJ2YWJsZTxib29sZWFuPiB7XG4gICAgcmV0dXJuIHRoaXMuZmFjYWRlLmlzQ2FydEVtcHR5JC5waXBlKFxuICAgICAgbWFwKGlzQ2FydEVtcHR5ID0+ICFpc0NhcnRFbXB0eSksXG4gICAgICB0YWtlKDEpLFxuICAgICAgdGFwKGhhc05vbkVtcHR5Q2FydCA9PiB7XG4gICAgICAgIGlmICghaGFzTm9uRW1wdHlDYXJ0KSB7XG4gICAgICAgICAgdGhpcy5yb3V0ZXIubmF2aWdhdGVCeVVybCh0aGlzLnJlZGlyZWN0VXJsKTtcbiAgICAgICAgfVxuICAgICAgfSksXG4gICAgKTtcbiAgfVxufVxuIl19
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Injectable, Inject, } from '@angular/core';
|
|
2
|
-
import { Router, } from '@angular/router';
|
|
3
|
-
import { tap, take, } from 'rxjs/operators';
|
|
4
|
-
import { DaffCartFacade } from '@daffodil/cart/state';
|
|
5
|
-
import { DaffCartPaymentMethodGuardRedirectUrl } from './payment-method-guard-redirect.token';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@daffodil/cart/state";
|
|
8
|
-
import * as i2 from "@angular/router";
|
|
9
|
-
/**
|
|
10
|
-
* A routing guard that will redirect to a given url if the payment method on the cart is not defined.
|
|
11
|
-
* The url is `/` by default, but can be overridden with the DaffCartPaymentMethodGuardRedirectUrl injection token.
|
|
12
|
-
* The guard will not wait until the cart has been resolved before performing the check and emitting.
|
|
13
|
-
* Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
|
|
14
|
-
*/
|
|
15
|
-
export class DaffPaymentMethodGuard {
|
|
16
|
-
constructor(facade, router, redirectUrl) {
|
|
17
|
-
this.facade = facade;
|
|
18
|
-
this.router = router;
|
|
19
|
-
this.redirectUrl = redirectUrl;
|
|
20
|
-
}
|
|
21
|
-
canActivate() {
|
|
22
|
-
return this.facade.hasPaymentMethod$.pipe(take(1), tap(hasPaymentMethod => {
|
|
23
|
-
if (!hasPaymentMethod) {
|
|
24
|
-
this.router.navigateByUrl(this.redirectUrl);
|
|
25
|
-
}
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/** @nocollapse */ DaffPaymentMethodGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentMethodGuard, deps: [{ token: i1.DaffCartFacade }, { token: i2.Router }, { token: DaffCartPaymentMethodGuardRedirectUrl }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
-
/** @nocollapse */ DaffPaymentMethodGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentMethodGuard, providedIn: 'root' });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentMethodGuard, decorators: [{
|
|
32
|
-
type: Injectable,
|
|
33
|
-
args: [{
|
|
34
|
-
providedIn: 'root',
|
|
35
|
-
}]
|
|
36
|
-
}], ctorParameters: function () { return [{ type: i1.DaffCartFacade }, { type: i2.Router }, { type: undefined, decorators: [{
|
|
37
|
-
type: Inject,
|
|
38
|
-
args: [DaffCartPaymentMethodGuardRedirectUrl]
|
|
39
|
-
}] }]; } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1tZXRob2QuZ3VhcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8u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lY2sgYW5kIGVtaXR0aW5nLlxuICogRW5zdXJlIHRoYXQgdGhlIGNhcnQgaXMgcmVzb2x2ZWQgcHJpb3IgdG8gcnVubmluZyB0aGlzIGd1YXJkIHdpdGggdGhlIHtAbGluayBEYWZmUmVzb2x2ZWRDYXJ0R3VhcmR9LlxuICovXG5ASW5qZWN0YWJsZSh7XG4gIHByb3ZpZGVkSW46ICdyb290Jyxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZlBheW1lbnRNZXRob2RHdWFyZCBpbXBsZW1lbnRzIENhbkFjdGl2YXRlIHtcbiAgY29uc3RydWN0b3IoXG4gICAgcHJpdmF0ZSBmYWNhZGU6IERhZmZDYXJ0RmFjYWRlLFxuICAgIHByaXZhdGUgcm91dGVyOiBSb3V0ZXIsXG4gICAgQEluamVjdChEYWZmQ2FydFBheW1lbnRNZXRob2RHdWFyZFJlZGlyZWN0VXJsKSBwcml2YXRlIHJlZGlyZWN0VXJsOiBzdHJpbmcsXG4gICkge31cblxuICBjYW5BY3RpdmF0ZSgpOiBPYnNlcnZhYmxlPGJvb2xlYW4+IHtcbiAgICByZXR1cm4gdGhpcy5mYWNhZGUuaGFzUGF5bWVudE1ldGhvZCQucGlwZShcbiAgICAgIHRha2UoMSksXG4gICAgICB0YXAoaGFzUGF5bWVudE1ldGhvZCA9PiB7XG4gICAgICAgIGlmICghaGFzUGF5bWVudE1ldGhvZCkge1xuICAgICAgICAgIHRoaXMucm91dGVyLm5hdmlnYXRlQnlVcmwodGhpcy5yZWRpcmVjdFVybCk7XG4gICAgICAgIH1cbiAgICAgIH0pLFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Injectable, Inject, } from '@angular/core';
|
|
2
|
-
import { Router, } from '@angular/router';
|
|
3
|
-
import { tap, take, } from 'rxjs/operators';
|
|
4
|
-
import { DaffCartFacade } from '@daffodil/cart/state';
|
|
5
|
-
import { DaffCartShippingMethodGuardRedirectUrl } from './shipping-method-guard-redirect.token';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@daffodil/cart/state";
|
|
8
|
-
import * as i2 from "@angular/router";
|
|
9
|
-
/**
|
|
10
|
-
* A routing guard that will redirect to a given url if the shipping method on the cart is not defined.
|
|
11
|
-
* The url is `/` by default, but can be overridden with the DaffCartShippingMethodGuardRedirectUrl injection token.
|
|
12
|
-
* The guard will not wait until the cart has been resolved before performing the check and emitting.
|
|
13
|
-
* Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
|
|
14
|
-
*/
|
|
15
|
-
export class DaffShippingMethodGuard {
|
|
16
|
-
constructor(facade, router, redirectUrl) {
|
|
17
|
-
this.facade = facade;
|
|
18
|
-
this.router = router;
|
|
19
|
-
this.redirectUrl = redirectUrl;
|
|
20
|
-
}
|
|
21
|
-
canActivate() {
|
|
22
|
-
return this.facade.hasShippingMethod$.pipe(take(1), tap(hasShippingMethod => {
|
|
23
|
-
if (!hasShippingMethod) {
|
|
24
|
-
this.router.navigateByUrl(this.redirectUrl);
|
|
25
|
-
}
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/** @nocollapse */ DaffShippingMethodGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffShippingMethodGuard, deps: [{ token: i1.DaffCartFacade }, { token: i2.Router }, { token: DaffCartShippingMethodGuardRedirectUrl }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
-
/** @nocollapse */ DaffShippingMethodGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffShippingMethodGuard, providedIn: 'root' });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffShippingMethodGuard, decorators: [{
|
|
32
|
-
type: Injectable,
|
|
33
|
-
args: [{
|
|
34
|
-
providedIn: 'root',
|
|
35
|
-
}]
|
|
36
|
-
}], ctorParameters: function () { return [{ type: i1.DaffCartFacade }, { type: i2.Router }, { type: undefined, decorators: [{
|
|
37
|
-
type: Inject,
|
|
38
|
-
args: [DaffCartShippingMethodGuardRedirectUrl]
|
|
39
|
-
}] }]; } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hpcHBpbmctbWV0aG9kLmd1YXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jYXJ0L3JvdXRpbmcvc3JjL2d1YXJkcy9zaGlwcGluZy1tZXRob2Qvc2hpcHBpbmctbWV0aG9kLmd1YXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxVQUFVLEVBQ1YsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFFTCxNQUFNLEdBQ1AsTUFBTSxpQkFBaUIsQ0FBQztBQUV6QixPQUFPLEVBQ0wsR0FBRyxFQUNILElBQUksR0FDTCxNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUV0RCxPQUFPLEVBQUUsc0NBQXNDLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQzs7OztBQUVoRzs7Ozs7R0FLRztBQUlILE1BQU0sT0FBTyx1QkFBdUI7SUFDbEMsWUFDVSxNQUFzQixFQUN0QixNQUFjLEVBQ2tDLFdBQW1CO1FBRm5FLFdBQU0sR0FBTixNQUFNLENBQWdCO1FBQ3RCLFdBQU0sR0FBTixNQUFNLENBQVE7UUFDa0MsZ0JBQVcsR0FBWCxXQUFXLENBQVE7SUFDMUUsQ0FBQztJQUVKLFdBQVc7UUFDVCxPQUFPLElBQUksQ0FBQyxNQUFNLENBQUMsa0JB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