@daffodil/cart 0.87.2 → 0.89.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/index.d.ts +382 -1
- package/driver/index.d.ts +364 -1
- package/driver/magento/index.d.ts +995 -1
- package/driver/magento/testing/index.d.ts +188 -1
- package/driver/testing/index.d.ts +163 -1
- package/fesm2022/daffodil-cart-driver-in-memory.mjs +81 -77
- package/fesm2022/daffodil-cart-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs +32 -32
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento.mjs +78 -78
- package/fesm2022/daffodil-cart-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-testing.mjs +37 -37
- package/fesm2022/daffodil-cart-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver.mjs +3 -3
- package/fesm2022/daffodil-cart-driver.mjs.map +1 -1
- package/fesm2022/daffodil-cart-routing.mjs +37 -37
- package/fesm2022/daffodil-cart-routing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state-testing.mjs +16 -16
- package/fesm2022/daffodil-cart-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state.mjs +90 -69
- package/fesm2022/daffodil-cart-state.mjs.map +1 -1
- package/fesm2022/daffodil-cart-testing.mjs +29 -29
- package/fesm2022/daffodil-cart-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart.mjs +3 -3
- package/fesm2022/daffodil-cart.mjs.map +1 -1
- package/index.d.ts +459 -1
- package/package.json +1 -1
- package/routing/index.d.ts +240 -1
- package/state/index.d.ts +1704 -1
- package/state/testing/index.d.ts +130 -1
- package/testing/index.d.ts +169 -1
- package/driver/errors/cart-not-found.d.ts +0 -9
- package/driver/errors/codes.enum.d.ts +0 -12
- package/driver/errors/expired-payment-token.d.ts +0 -11
- package/driver/errors/invalid-api-response.d.ts +0 -10
- package/driver/errors/invalid-country.d.ts +0 -9
- package/driver/errors/invalid-coupon-code.d.ts +0 -11
- package/driver/errors/invalid-email.d.ts +0 -8
- package/driver/errors/invalid-region.d.ts +0 -9
- package/driver/errors/item-exceeds-max-qty.d.ts +0 -9
- package/driver/errors/map.d.ts +0 -25
- package/driver/errors/product-out-of-stock.d.ts +0 -9
- package/driver/errors/public_api.d.ts +0 -12
- package/driver/errors/unauthorized-for-cart.d.ts +0 -8
- package/driver/in-memory/backend/cart/cart.service.d.ts +0 -28
- package/driver/in-memory/backend/cart-address/cart-address.service.d.ts +0 -17
- package/driver/in-memory/backend/cart-billing-address/cart-billing-address.service.d.ts +0 -19
- package/driver/in-memory/backend/cart-coupon/cart-coupon.service.d.ts +0 -26
- package/driver/in-memory/backend/cart-items/cart-items.service.d.ts +0 -33
- package/driver/in-memory/backend/cart-order/cart-order.service.d.ts +0 -13
- package/driver/in-memory/backend/cart-payment/cart-payment.service.d.ts +0 -21
- package/driver/in-memory/backend/cart-payment-methods/cart-payment-methods.service.d.ts +0 -14
- package/driver/in-memory/backend/cart-root.service.d.ts +0 -34
- package/driver/in-memory/backend/cart-shipping-address/cart-shipping-address.service.d.ts +0 -19
- package/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.d.ts +0 -23
- package/driver/in-memory/backend/cart-shipping-methods/cart-shipping-methods.service.d.ts +0 -17
- package/driver/in-memory/backend/public_api.d.ts +0 -12
- package/driver/in-memory/collection-names.d.ts +0 -11
- package/driver/in-memory/drivers/cart/cart.service.d.ts +0 -24
- package/driver/in-memory/drivers/cart-address/cart-address.service.d.ts +0 -17
- package/driver/in-memory/drivers/cart-billing-address/cart-billing-address.service.d.ts +0 -18
- package/driver/in-memory/drivers/cart-coupon/cart-coupon.service.d.ts +0 -20
- package/driver/in-memory/drivers/cart-driver.module.d.ts +0 -9
- package/driver/in-memory/drivers/cart-item/cart-item.service.d.ts +0 -21
- package/driver/in-memory/drivers/cart-order/cart-order.service.d.ts +0 -17
- package/driver/in-memory/drivers/cart-payment/cart-payment.service.d.ts +0 -20
- package/driver/in-memory/drivers/cart-payment-methods/cart-payment-methods.service.d.ts +0 -17
- package/driver/in-memory/drivers/cart-shipping-address/cart-shipping-address.service.d.ts +0 -18
- package/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.d.ts +0 -19
- package/driver/in-memory/drivers/cart-shipping-methods/cart-shipping-methods.service.d.ts +0 -17
- package/driver/in-memory/drivers/public_api.d.ts +0 -11
- package/driver/in-memory/helpers/compute-cart-item-prices.d.ts +0 -3
- package/driver/in-memory/helpers/compute-cart-totals.d.ts +0 -3
- package/driver/in-memory/injection-tokens/extra-attributes-hook.token.d.ts +0 -4
- package/driver/in-memory/injection-tokens/public_api.d.ts +0 -1
- package/driver/in-memory/public_api.d.ts +0 -4
- package/driver/injection-tokens/free-payment-method.d.ts +0 -2
- package/driver/injection-tokens/public_api.d.ts +0 -1
- package/driver/interfaces/cart-address-service.interface.d.ts +0 -12
- package/driver/interfaces/cart-billing-address-service.interface.d.ts +0 -16
- package/driver/interfaces/cart-coupon-service.interface.d.ts +0 -24
- package/driver/interfaces/cart-item-service.interface.d.ts +0 -28
- package/driver/interfaces/cart-order-service.interface.d.ts +0 -12
- package/driver/interfaces/cart-payment-methods-service.interface.d.ts +0 -12
- package/driver/interfaces/cart-payment-service.interface.d.ts +0 -22
- package/driver/interfaces/cart-service.interface.d.ts +0 -29
- package/driver/interfaces/cart-shipping-address-service.interface.d.ts +0 -16
- package/driver/interfaces/cart-shipping-information-service.interface.d.ts +0 -21
- package/driver/interfaces/cart-shipping-methods-service.interface.d.ts +0 -12
- package/driver/interfaces/public_api.d.ts +0 -11
- package/driver/magento/cart-address.service.d.ts +0 -26
- package/driver/magento/cart-billing-address.service.d.ts +0 -30
- package/driver/magento/cart-coupon.service.d.ts +0 -24
- package/driver/magento/cart-driver.module.d.ts +0 -9
- package/driver/magento/cart-item.service.d.ts +0 -35
- package/driver/magento/cart-order.service.d.ts +0 -17
- package/driver/magento/cart-payment-methods.service.d.ts +0 -21
- package/driver/magento/cart-payment.service.d.ts +0 -34
- package/driver/magento/cart-shipping-address.service.d.ts +0 -30
- package/driver/magento/cart-shipping-information.service.d.ts +0 -29
- package/driver/magento/cart-shipping-methods.service.d.ts +0 -21
- package/driver/magento/cart.service.d.ts +0 -32
- package/driver/magento/errors/codes.d.ts +0 -5
- package/driver/magento/errors/map.d.ts +0 -11
- package/driver/magento/errors/transform.d.ts +0 -15
- package/driver/magento/injection-tokens/cart-mutation-queue.token.d.ts +0 -2
- package/driver/magento/injection-tokens/fragments/cart.d.ts +0 -2
- package/driver/magento/injection-tokens/public_api.d.ts +0 -3
- package/driver/magento/injection-tokens/transforms/cart/token.d.ts +0 -2
- package/driver/magento/injection-tokens/transforms/cart-item/token.d.ts +0 -2
- package/driver/magento/interfaces/cart-item-transform.type.d.ts +0 -3
- package/driver/magento/interfaces/cart-transform.type.d.ts +0 -6
- package/driver/magento/interfaces/public_api.d.ts +0 -2
- package/driver/magento/models/public_api.d.ts +0 -2
- package/driver/magento/models/requests/billing-address.d.ts +0 -5
- package/driver/magento/models/requests/cart-address-base.d.ts +0 -5
- package/driver/magento/models/requests/cart-address.d.ts +0 -12
- package/driver/magento/models/requests/cart-item-update.d.ts +0 -4
- package/driver/magento/models/requests/cart-item.d.ts +0 -11
- package/driver/magento/models/requests/payment-method.d.ts +0 -4
- package/driver/magento/models/requests/public_api.d.ts +0 -8
- package/driver/magento/models/requests/shipping-address.d.ts +0 -4
- package/driver/magento/models/requests/shipping-method.d.ts +0 -4
- package/driver/magento/models/responses/cart-address.d.ts +0 -19
- package/driver/magento/models/responses/cart-coupon.d.ts +0 -3
- package/driver/magento/models/responses/cart-item.d.ts +0 -60
- package/driver/magento/models/responses/cart-payment-method.d.ts +0 -6
- package/driver/magento/models/responses/cart-shipping-method.d.ts +0 -8
- package/driver/magento/models/responses/cart.d.ts +0 -33
- package/driver/magento/models/responses/public_api.d.ts +0 -9
- package/driver/magento/models/responses/shipping-address.d.ts +0 -6
- package/driver/magento/models/responses/user-error.enum.d.ts +0 -6
- package/driver/magento/models/responses/user-error.type.d.ts +0 -5
- package/driver/magento/public_api.d.ts +0 -16
- package/driver/magento/queries/add-item/public_api.d.ts +0 -3
- package/driver/magento/queries/add-item/query.d.ts +0 -4
- package/driver/magento/queries/add-item/response.type.d.ts +0 -9
- package/driver/magento/queries/add-item/variables.type.d.ts +0 -5
- package/driver/magento/queries/apply-coupon/public_api.d.ts +0 -3
- package/driver/magento/queries/apply-coupon/query.d.ts +0 -4
- package/driver/magento/queries/apply-coupon/response.type.d.ts +0 -6
- package/driver/magento/queries/apply-coupon/variables.type.d.ts +0 -4
- package/driver/magento/queries/create-cart/public_api.d.ts +0 -3
- package/driver/magento/queries/create-cart/query.d.ts +0 -1
- package/driver/magento/queries/create-cart/response.type.d.ts +0 -4
- package/driver/magento/queries/create-cart/variables.type.d.ts +0 -2
- package/driver/magento/queries/fragments/available-payment-method.d.ts +0 -1
- package/driver/magento/queries/fragments/available-shipping-method.d.ts +0 -1
- package/driver/magento/queries/fragments/cart-address.d.ts +0 -1
- package/driver/magento/queries/fragments/cart-coupon.d.ts +0 -1
- package/driver/magento/queries/fragments/cart-item.d.ts +0 -2
- package/driver/magento/queries/fragments/cart.d.ts +0 -1
- package/driver/magento/queries/fragments/prices.d.ts +0 -1
- package/driver/magento/queries/fragments/public_api.d.ts +0 -10
- package/driver/magento/queries/fragments/selected-payment-method.d.ts +0 -1
- package/driver/magento/queries/fragments/selected-shipping-method.d.ts +0 -1
- package/driver/magento/queries/fragments/user-error.d.ts +0 -1
- package/driver/magento/queries/get-billing-address/public_api.d.ts +0 -3
- package/driver/magento/queries/get-billing-address/query.d.ts +0 -4
- package/driver/magento/queries/get-billing-address/response.type.d.ts +0 -8
- package/driver/magento/queries/get-billing-address/variables.type.d.ts +0 -3
- package/driver/magento/queries/get-cart/public_api.d.ts +0 -3
- package/driver/magento/queries/get-cart/query.d.ts +0 -4
- package/driver/magento/queries/get-cart/response.type.d.ts +0 -5
- package/driver/magento/queries/get-cart/variables.type.d.ts +0 -3
- package/driver/magento/queries/get-selected-payment-method/public_api.d.ts +0 -3
- package/driver/magento/queries/get-selected-payment-method/query.d.ts +0 -4
- package/driver/magento/queries/get-selected-payment-method/response.type.d.ts +0 -7
- package/driver/magento/queries/get-selected-payment-method/variables.type.d.ts +0 -3
- package/driver/magento/queries/get-selected-shipping-method/public_api.d.ts +0 -3
- package/driver/magento/queries/get-selected-shipping-method/query.d.ts +0 -4
- package/driver/magento/queries/get-selected-shipping-method/response.type.d.ts +0 -10
- package/driver/magento/queries/get-selected-shipping-method/variables.type.d.ts +0 -3
- package/driver/magento/queries/get-shipping-address/public_api.d.ts +0 -3
- package/driver/magento/queries/get-shipping-address/query.d.ts +0 -4
- package/driver/magento/queries/get-shipping-address/response.type.d.ts +0 -8
- package/driver/magento/queries/get-shipping-address/variables.type.d.ts +0 -3
- package/driver/magento/queries/list-coupons/public_api.d.ts +0 -3
- package/driver/magento/queries/list-coupons/query.d.ts +0 -4
- package/driver/magento/queries/list-coupons/response.type.d.ts +0 -6
- package/driver/magento/queries/list-coupons/variables.type.d.ts +0 -3
- package/driver/magento/queries/list-items/public_api.d.ts +0 -3
- package/driver/magento/queries/list-items/query.d.ts +0 -4
- package/driver/magento/queries/list-items/response.type.d.ts +0 -7
- package/driver/magento/queries/list-items/variables.type.d.ts +0 -3
- package/driver/magento/queries/list-payment-methods/public_api.d.ts +0 -3
- package/driver/magento/queries/list-payment-methods/query.d.ts +0 -4
- package/driver/magento/queries/list-payment-methods/response.type.d.ts +0 -7
- package/driver/magento/queries/list-payment-methods/variables.type.d.ts +0 -3
- package/driver/magento/queries/list-shipping-methods/public_api.d.ts +0 -3
- package/driver/magento/queries/list-shipping-methods/query.d.ts +0 -3
- package/driver/magento/queries/list-shipping-methods/response.type.d.ts +0 -7
- package/driver/magento/queries/list-shipping-methods/variables.type.d.ts +0 -3
- package/driver/magento/queries/merge-carts/public_api.d.ts +0 -3
- package/driver/magento/queries/merge-carts/query.d.ts +0 -4
- package/driver/magento/queries/merge-carts/response.type.d.ts +0 -4
- package/driver/magento/queries/merge-carts/variables.type.d.ts +0 -4
- package/driver/magento/queries/place-order/public_api.d.ts +0 -3
- package/driver/magento/queries/place-order/query.d.ts +0 -2
- package/driver/magento/queries/place-order/response.type.d.ts +0 -12
- package/driver/magento/queries/place-order/variables.type.d.ts +0 -3
- package/driver/magento/queries/public_api.d.ts +0 -28
- package/driver/magento/queries/remove-all-coupons/public_api.d.ts +0 -3
- package/driver/magento/queries/remove-all-coupons/query.d.ts +0 -4
- package/driver/magento/queries/remove-all-coupons/response.type.d.ts +0 -6
- package/driver/magento/queries/remove-all-coupons/variables.type.d.ts +0 -3
- package/driver/magento/queries/remove-item/public_api.d.ts +0 -3
- package/driver/magento/queries/remove-item/query.d.ts +0 -4
- package/driver/magento/queries/remove-item/response.type.d.ts +0 -4
- package/driver/magento/queries/remove-item/variables.type.d.ts +0 -4
- package/driver/magento/queries/set-selected-payment-method/public_api.d.ts +0 -3
- package/driver/magento/queries/set-selected-payment-method/query.d.ts +0 -4
- package/driver/magento/queries/set-selected-payment-method/response.type.d.ts +0 -4
- package/driver/magento/queries/set-selected-payment-method/variables.type.d.ts +0 -5
- package/driver/magento/queries/set-selected-payment-method-with-billing/public_api.d.ts +0 -3
- package/driver/magento/queries/set-selected-payment-method-with-billing/query.d.ts +0 -4
- package/driver/magento/queries/set-selected-payment-method-with-billing/response.type.d.ts +0 -10
- package/driver/magento/queries/set-selected-payment-method-with-billing/variables.type.d.ts +0 -6
- package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/public_api.d.ts +0 -3
- package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/query.d.ts +0 -4
- package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/response.type.d.ts +0 -16
- package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/variables.type.d.ts +0 -7
- package/driver/magento/queries/set-selected-shipping-method/public_api.d.ts +0 -3
- package/driver/magento/queries/set-selected-shipping-method/query.d.ts +0 -4
- package/driver/magento/queries/set-selected-shipping-method/response.type.d.ts +0 -4
- package/driver/magento/queries/set-selected-shipping-method/variables.type.d.ts +0 -5
- package/driver/magento/queries/update-address/public_api.d.ts +0 -3
- package/driver/magento/queries/update-address/query.d.ts +0 -11
- package/driver/magento/queries/update-address/response.type.d.ts +0 -11
- package/driver/magento/queries/update-address/variables.type.d.ts +0 -6
- package/driver/magento/queries/update-address-with-email/public_api.d.ts +0 -3
- package/driver/magento/queries/update-address-with-email/query.d.ts +0 -11
- package/driver/magento/queries/update-address-with-email/response.type.d.ts +0 -18
- package/driver/magento/queries/update-address-with-email/variables.type.d.ts +0 -7
- package/driver/magento/queries/update-billing-address/public_api.d.ts +0 -3
- package/driver/magento/queries/update-billing-address/query.d.ts +0 -4
- package/driver/magento/queries/update-billing-address/response.type.d.ts +0 -4
- package/driver/magento/queries/update-billing-address/variables.type.d.ts +0 -5
- package/driver/magento/queries/update-billing-address-with-email/public_api.d.ts +0 -3
- package/driver/magento/queries/update-billing-address-with-email/query.d.ts +0 -4
- package/driver/magento/queries/update-billing-address-with-email/response.type.d.ts +0 -11
- package/driver/magento/queries/update-billing-address-with-email/variables.type.d.ts +0 -6
- package/driver/magento/queries/update-item/public_api.d.ts +0 -3
- package/driver/magento/queries/update-item/query.d.ts +0 -4
- package/driver/magento/queries/update-item/response.type.d.ts +0 -4
- package/driver/magento/queries/update-item/variables.type.d.ts +0 -5
- package/driver/magento/queries/update-shipping-address/public_api.d.ts +0 -3
- package/driver/magento/queries/update-shipping-address/query.d.ts +0 -4
- package/driver/magento/queries/update-shipping-address/response.type.d.ts +0 -4
- package/driver/magento/queries/update-shipping-address/variables.type.d.ts +0 -5
- package/driver/magento/queries/update-shipping-address-with-email/public_api.d.ts +0 -3
- package/driver/magento/queries/update-shipping-address-with-email/query.d.ts +0 -4
- package/driver/magento/queries/update-shipping-address-with-email/response.type.d.ts +0 -11
- package/driver/magento/queries/update-shipping-address-with-email/variables.type.d.ts +0 -6
- package/driver/magento/testing/factories/cart-address-input.factory.d.ts +0 -20
- package/driver/magento/testing/factories/cart-address.factory.d.ts +0 -30
- package/driver/magento/testing/factories/cart-coupon.factory.d.ts +0 -11
- package/driver/magento/testing/factories/cart-item/bundle-cart-item.factory.d.ts +0 -25
- package/driver/magento/testing/factories/cart-item/cart-item.factory.d.ts +0 -24
- package/driver/magento/testing/factories/cart-item/configurable-cart-item.factory.d.ts +0 -16
- package/driver/magento/testing/factories/cart-payment-method.factory.d.ts +0 -13
- package/driver/magento/testing/factories/cart-shipping-method.factory.d.ts +0 -17
- package/driver/magento/testing/factories/cart.factory.d.ts +0 -38
- package/driver/magento/testing/factories/public_api.d.ts +0 -10
- package/driver/magento/testing/factories/shipping-address.factory.d.ts +0 -14
- package/driver/magento/testing/public_api.d.ts +0 -1
- package/driver/magento/transforms/inputs/billing-address.service.d.ts +0 -11
- package/driver/magento/transforms/inputs/cart-address.service.d.ts +0 -8
- package/driver/magento/transforms/inputs/cart-item-input-transformers.d.ts +0 -5
- package/driver/magento/transforms/inputs/cart-item-update.service.d.ts +0 -8
- package/driver/magento/transforms/inputs/payment-method.service.d.ts +0 -8
- package/driver/magento/transforms/inputs/shipping-address.service.d.ts +0 -11
- package/driver/magento/transforms/inputs/shipping-method.service.d.ts +0 -8
- package/driver/magento/transforms/outputs/billing-address.service.d.ts +0 -19
- package/driver/magento/transforms/outputs/cart-address.service.d.ts +0 -16
- package/driver/magento/transforms/outputs/cart-coupon-response.service.d.ts +0 -21
- package/driver/magento/transforms/outputs/cart-coupon.d.ts +0 -3
- package/driver/magento/transforms/outputs/cart-item/bundle-cart-item-transformer.d.ts +0 -8
- package/driver/magento/transforms/outputs/cart-item/cart-item-transformer.d.ts +0 -11
- package/driver/magento/transforms/outputs/cart-item/configurable-cart-item-transformer.d.ts +0 -8
- package/driver/magento/transforms/outputs/cart-item/simple-cart-item-transformer.d.ts +0 -8
- package/driver/magento/transforms/outputs/cart-payment.service.d.ts +0 -16
- package/driver/magento/transforms/outputs/cart-shipping-rate.service.d.ts +0 -16
- package/driver/magento/transforms/outputs/cart-totals-transformer.d.ts +0 -5
- package/driver/magento/transforms/outputs/cart.service.d.ts +0 -36
- package/driver/magento/transforms/outputs/shipping-address.service.d.ts +0 -19
- package/driver/magento/transforms/public_api.d.ts +0 -12
- package/driver/operators/handle-cart-not-found.d.ts +0 -8
- package/driver/operators/public_api.d.ts +0 -1
- package/driver/public_api.d.ts +0 -5
- package/driver/services/public_api.d.ts +0 -1
- package/driver/services/resolve.service.d.ts +0 -25
- package/driver/testing/drivers/cart/cart.service.d.ts +0 -22
- package/driver/testing/drivers/cart-address/cart-address.service.d.ts +0 -16
- package/driver/testing/drivers/cart-billing-address/cart-billing-address.service.d.ts +0 -17
- package/driver/testing/drivers/cart-coupon/cart-coupon.service.d.ts +0 -19
- package/driver/testing/drivers/cart-driver.module.d.ts +0 -9
- package/driver/testing/drivers/cart-item/cart-item.service.d.ts +0 -20
- package/driver/testing/drivers/cart-order/cart-order.service.d.ts +0 -12
- package/driver/testing/drivers/cart-payment/cart-payment.service.d.ts +0 -19
- package/driver/testing/drivers/cart-payment-methods/cart-payment-methods.service.d.ts +0 -15
- package/driver/testing/drivers/cart-shipping-address/cart-shipping-address.service.d.ts +0 -17
- package/driver/testing/drivers/cart-shipping-information/cart-shipping-information.service.d.ts +0 -18
- package/driver/testing/drivers/cart-shipping-methods/cart-shipping-methods.service.d.ts +0 -15
- package/driver/testing/drivers/public_api.d.ts +0 -12
- package/driver/testing/public_api.d.ts +0 -1
- package/errors/codes.enum.d.ts +0 -10
- package/errors/map.d.ts +0 -10
- package/errors/public_api.d.ts +0 -3
- package/errors/resolution/cart-not-found-or-created-resolution.d.ts +0 -11
- package/errors/resolution/cart-resolution.d.ts +0 -10
- package/errors/resolution/cart-server-side-resolution.d.ts +0 -12
- package/errors/resolution/cart-storage-resolution.d.ts +0 -11
- package/errors/resolution/public_api.d.ts +0 -4
- package/helpers/get-affected-item.d.ts +0 -5
- package/helpers/get-item-total-discount.d.ts +0 -5
- package/helpers/input-to-item-transform.d.ts +0 -5
- package/helpers/public_api.d.ts +0 -3
- package/injection-tokens/payment-method-map.d.ts +0 -7
- package/injection-tokens/public_api.d.ts +0 -1
- package/models/cart-address.d.ts +0 -11
- package/models/cart-coupon.d.ts +0 -15
- package/models/cart-item-input.d.ts +0 -70
- package/models/cart-item.d.ts +0 -63
- package/models/cart-order-result.d.ts +0 -15
- package/models/cart-payment.d.ts +0 -15
- package/models/cart-shipping-rate.d.ts +0 -30
- package/models/cart-total.d.ts +0 -37
- package/models/cart.d.ts +0 -55
- package/models/composite-cart-item.d.ts +0 -24
- package/models/configurable-cart-item.d.ts +0 -23
- package/models/public_api.d.ts +0 -11
- package/public_api.d.ts +0 -5
- package/routing/cart-routing.module.d.ts +0 -9
- package/routing/config/config.d.ts +0 -16
- package/routing/config/resolution/config.d.ts +0 -15
- package/routing/guards/billing-address/billing-address-guard-redirect.token.d.ts +0 -1
- package/routing/guards/billing-address/billing-address.guard.d.ts +0 -19
- package/routing/guards/cart-items/cart-items-guard-redirect.token.d.ts +0 -1
- package/routing/guards/cart-items/cart-items.guard.d.ts +0 -20
- package/routing/guards/in-stock-items/in-stock-items-guard-redirect.token.d.ts +0 -1
- package/routing/guards/in-stock-items/in-stock-items.guard.d.ts +0 -21
- package/routing/guards/order-result/order-result-guard-redirect.token.d.ts +0 -1
- package/routing/guards/order-result/order-result.guard.d.ts +0 -17
- package/routing/guards/payment-method/payment-method-guard-redirect.token.d.ts +0 -1
- package/routing/guards/payment-method/payment-method.guard.d.ts +0 -19
- package/routing/guards/public_api.d.ts +0 -17
- package/routing/guards/resolve-cart/redirect.token.d.ts +0 -1
- package/routing/guards/resolve-cart/resolve-cart.guard.d.ts +0 -22
- package/routing/guards/resolved-cart/resolved-cart.guard.d.ts +0 -21
- package/routing/guards/shipping-address/shipping-address-guard-redirect.token.d.ts +0 -1
- package/routing/guards/shipping-address/shipping-address.guard.d.ts +0 -19
- package/routing/guards/shipping-method/shipping-method-guard-redirect.token.d.ts +0 -1
- package/routing/guards/shipping-method/shipping-method.guard.d.ts +0 -19
- package/routing/public_api.d.ts +0 -5
- package/routing/resolvers/cart-resolver.service.d.ts +0 -20
- package/routing/resolvers/empty-cart-resolver.service.d.ts +0 -20
- package/routing/resolvers/public_api.d.ts +0 -4
- package/routing/resolvers/tokens/cart-resolver-redirect.token.d.ts +0 -1
- package/routing/resolvers/tokens/empty-cart-resolver-redirect.token.d.ts +0 -1
- package/state/actions/cart-address.actions.d.ts +0 -40
- package/state/actions/cart-billing-address.actions.d.ts +0 -65
- package/state/actions/cart-coupon.actions.d.ts +0 -124
- package/state/actions/cart-item.actions.d.ts +0 -188
- package/state/actions/cart-order.actions.d.ts +0 -39
- package/state/actions/cart-payment-methods.actions.d.ts +0 -38
- package/state/actions/cart-payment.actions.d.ts +0 -135
- package/state/actions/cart-retrieval.d.ts +0 -5
- package/state/actions/cart-shipping-address.actions.d.ts +0 -65
- package/state/actions/cart-shipping-information.actions.d.ts +0 -86
- package/state/actions/cart-shipping-methods.actions.d.ts +0 -32
- package/state/actions/cart.actions.d.ts +0 -184
- package/state/actions/public_api.d.ts +0 -12
- package/state/cart-retrieval/get-response.d.ts +0 -8
- package/state/cart-retrieval/public_api.d.ts +0 -3
- package/state/cart-retrieval/token.d.ts +0 -2
- package/state/cart-retrieval/type.d.ts +0 -40
- package/state/cart-state.module.d.ts +0 -8
- package/state/effects/cart-address.effects.d.ts +0 -16
- package/state/effects/cart-billing-address.effects.d.ts +0 -17
- package/state/effects/cart-coupon.effects.d.ts +0 -19
- package/state/effects/cart-item.effects.d.ts +0 -26
- package/state/effects/cart-order.effects.d.ts +0 -17
- package/state/effects/cart-payment-methods.effects.d.ts +0 -16
- package/state/effects/cart-payment-processor.effects.d.ts +0 -40
- package/state/effects/cart-payment.effects.d.ts +0 -19
- package/state/effects/cart-resolver.effects.d.ts +0 -27
- package/state/effects/cart-shipping-address.effects.d.ts +0 -17
- package/state/effects/cart-shipping-information.effects.d.ts +0 -18
- package/state/effects/cart-shipping-methods.effects.d.ts +0 -16
- package/state/effects/cart.effects.d.ts +0 -19
- package/state/effects/public_api.d.ts +0 -1
- package/state/facades/cart/cart-facade.interface.d.ts +0 -212
- package/state/facades/cart/cart.facade.d.ts +0 -90
- package/state/helpers/cart-items-entity-transform.d.ts +0 -12
- package/state/helpers/public_api.d.ts +0 -1
- package/state/injection-tokens/cart-item-state-debounce-time.d.ts +0 -1
- package/state/injection-tokens/error-matcher.token.d.ts +0 -2
- package/state/injection-tokens/public_api.d.ts +0 -2
- package/state/models/public_api.d.ts +0 -1
- package/state/models/stateful-cart.d.ts +0 -8
- package/state/public_api.d.ts +0 -10
- package/state/reducers/action-types.type.d.ts +0 -3
- package/state/reducers/cart/cart.reducer.d.ts +0 -4
- package/state/reducers/cart/retrieval-actions.reducer.d.ts +0 -9
- package/state/reducers/cart-billing-address/cart-billing-address.reducer.d.ts +0 -4
- package/state/reducers/cart-coupon/cart-coupon.reducer.d.ts +0 -4
- package/state/reducers/cart-initial-state.d.ts +0 -2
- package/state/reducers/cart-item/cart-item.reducer.d.ts +0 -4
- package/state/reducers/cart-item-entities/adapter.d.ts +0 -6
- package/state/reducers/cart-item-entities/cart-item-entities.reducer.d.ts +0 -11
- package/state/reducers/cart-item-entities/retrieval-actions.reducer.d.ts +0 -9
- package/state/reducers/cart-item-entities/set-state-meta-reducer.d.ts +0 -10
- package/state/reducers/cart-operation-type.enum.d.ts +0 -15
- package/state/reducers/cart-order/cart-order-initial-state.d.ts +0 -2
- package/state/reducers/cart-order/cart-order-state.interface.d.ts +0 -7
- package/state/reducers/cart-order/cart-order.reducer.d.ts +0 -4
- package/state/reducers/cart-payment/cart-payment.reducer.d.ts +0 -4
- package/state/reducers/cart-payment/payment.reducer.d.ts +0 -3
- package/state/reducers/cart-payment-methods/cart-payment-methods.reducer.d.ts +0 -4
- package/state/reducers/cart-reducers-state.interface.d.ts +0 -13
- package/state/reducers/cart-reducers.d.ts +0 -3
- package/state/reducers/cart-resolve/cart-resolve-state.enum.d.ts +0 -7
- package/state/reducers/cart-resolve/cart-resolve.reducer.d.ts +0 -4
- package/state/reducers/cart-shipping-address/cart-shipping-address.reducer.d.ts +0 -4
- package/state/reducers/cart-shipping-information/cart-shipping-information.reducer.d.ts +0 -4
- package/state/reducers/cart-shipping-methods/cart-shipping-methods.reducer.d.ts +0 -4
- package/state/reducers/cart-state.interface.d.ts +0 -10
- package/state/reducers/cart-store-feature-key.d.ts +0 -1
- package/state/reducers/cart.reducer.d.ts +0 -8
- package/state/reducers/errors/cart-errors.type.d.ts +0 -5
- package/state/reducers/errors/error-state-helpers.d.ts +0 -29
- package/state/reducers/loading/cart-loading.type.d.ts +0 -27
- package/state/reducers/public_api.d.ts +0 -17
- package/state/reducers/token/config.token.d.ts +0 -8
- package/state/reducers/token/extra.token.d.ts +0 -3
- package/state/reducers/token/meta.token.d.ts +0 -3
- package/state/reducers/token/public_api.d.ts +0 -2
- package/state/reducers/token/reducers.token.d.ts +0 -3
- package/state/selectors/cart/cart.selector.d.ts +0 -178
- package/state/selectors/cart-feature.selector.d.ts +0 -7
- package/state/selectors/cart-item-entities/cart-item-entities.selectors.d.ts +0 -26
- package/state/selectors/cart-order/cart-order.selector.d.ts +0 -20
- package/state/selectors/cart.selector.d.ts +0 -8
- package/state/selectors/public_api.d.ts +0 -1
- package/state/testing/cart-testing.module.d.ts +0 -6
- package/state/testing/factories/stateful-cart-item.factory.d.ts +0 -18
- package/state/testing/factories/stateful-composite-cart-item.factory.d.ts +0 -18
- package/state/testing/factories/stateful-configurable-cart-item.factory.d.ts +0 -18
- package/state/testing/mock-cart-facade.d.ts +0 -77
- package/state/testing/public_api.d.ts +0 -5
- package/storage/cart-storage.service.d.ts +0 -23
- package/testing/factories/cart-address.factory.d.ts +0 -26
- package/testing/factories/cart-coupon.factory.d.ts +0 -13
- package/testing/factories/cart-item/cart-item.factory.d.ts +0 -30
- package/testing/factories/cart-item/composite-cart-item.factory.d.ts +0 -20
- package/testing/factories/cart-item/configurable-cart-item.factory.d.ts +0 -19
- package/testing/factories/cart-payment.factory.d.ts +0 -11
- package/testing/factories/cart-shipping-rate.factory.d.ts +0 -17
- package/testing/factories/cart-total.factory.d.ts +0 -23
- package/testing/factories/cart.factory.d.ts +0 -26
- package/testing/factories/public_api.d.ts +0 -9
- package/testing/public_api.d.ts +0 -1
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { ActionTypes } from '../action-types.type';
|
|
3
|
-
import { DaffCartReducerState } from '../cart-state.interface';
|
|
4
|
-
export declare function cartItemReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DaffCartItem } from '@daffodil/cart';
|
|
2
|
-
import { DaffOperationEntityStateAdapter } from '@daffodil/core/state';
|
|
3
|
-
/**
|
|
4
|
-
* Cart Item Entities Adapter for changing/overwriting entity state.
|
|
5
|
-
*/
|
|
6
|
-
export declare const daffCartItemEntitiesAdapter: <T extends DaffCartItem = DaffCartItem>() => DaffOperationEntityStateAdapter<T>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DaffCartItemInput, DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { DaffOperationEntityState } from '@daffodil/core/state';
|
|
3
|
-
import { DaffCartActions, DaffCartItemActions } from '../../actions/public_api';
|
|
4
|
-
/**
|
|
5
|
-
* Reducer function that catches actions and changes/overwrites product entities state.
|
|
6
|
-
*
|
|
7
|
-
* @param state current State of the redux store
|
|
8
|
-
* @param action CartItemGrid, BestSellers, or CartItem actions
|
|
9
|
-
* @returns CartItem entities state
|
|
10
|
-
*/
|
|
11
|
-
export declare function daffCartItemEntitiesReducer<T extends DaffCart = DaffCart, U extends DaffCartItemInput = DaffCartItemInput>(state: DaffOperationEntityState<T["items"][number]>, action: DaffCartItemActions<T, U> | DaffCartActions<T>): DaffOperationEntityState<T['items'][number]>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCart } from '@daffodil/cart';
|
|
3
|
-
import { DaffOperationEntityState } from '@daffodil/core/state';
|
|
4
|
-
import { DaffCartRetrievalActionInjection } from '../../cart-retrieval/public_api';
|
|
5
|
-
/**
|
|
6
|
-
* Reducer function factory that updates cart item entities according to a list of passed cart retrieval actions.
|
|
7
|
-
* See {@link DaffCartRetrievalActionInjection}.
|
|
8
|
-
*/
|
|
9
|
-
export declare function daffCartItemEntitiesRetrievalActionsReducerFactory<T extends DaffCart = DaffCart>(retrievalActions: DaffCartRetrievalActionInjection[]): (state: DaffOperationEntityState<T["items"][number]>, action: Action) => DaffOperationEntityState<T["items"][number]>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ActionReducer } from '@ngrx/store';
|
|
2
|
-
import { DaffCart } from '@daffodil/cart';
|
|
3
|
-
import { DaffCartItemActions } from '../../actions/public_api';
|
|
4
|
-
import { DaffCartReducersState } from '../cart-reducers-state.interface';
|
|
5
|
-
type Reducer<T extends DaffCart = DaffCart> = ActionReducer<DaffCartReducersState<T>, DaffCartItemActions<T>>;
|
|
6
|
-
/**
|
|
7
|
-
* A meta reducer for determining and setting the correct `daffState` values on cart items.
|
|
8
|
-
*/
|
|
9
|
-
export declare function daffCartSetItemStateMetaReducer<T extends DaffCart = DaffCart>(reducer: Reducer<T>): Reducer<T>;
|
|
10
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The particular segment of DaffCart that an operation applies to.
|
|
3
|
-
* Errors and loading are tracked separately for each type of cart operation.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum DaffCartOperationType {
|
|
6
|
-
Cart = "Cart",
|
|
7
|
-
Item = "Item",
|
|
8
|
-
BillingAddress = "Billing Address",
|
|
9
|
-
ShippingAddress = "Shipping Address",
|
|
10
|
-
Payment = "Payment",
|
|
11
|
-
PaymentMethods = "Payment Methods",
|
|
12
|
-
ShippingInformation = "Shipping Information",
|
|
13
|
-
ShippingMethods = "Shipping Methods",
|
|
14
|
-
Coupon = "Coupon"
|
|
15
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DaffCartOrderResult } from '@daffodil/cart';
|
|
2
|
-
import { DaffStateError, DaffMutableLoadingState } from '@daffodil/core/state';
|
|
3
|
-
export interface DaffCartOrderReducerState<T extends DaffCartOrderResult = DaffCartOrderResult> {
|
|
4
|
-
cartOrderResult: T;
|
|
5
|
-
loading: DaffMutableLoadingState;
|
|
6
|
-
errors: DaffStateError[];
|
|
7
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DaffCart, DaffCartItemInput, DaffCartOrderResult } from '@daffodil/cart';
|
|
2
|
-
import { DaffCartOrderReducerState } from './cart-order-state.interface';
|
|
3
|
-
import { ActionTypes } from '../action-types.type';
|
|
4
|
-
export declare function daffCartOrderReducer<T extends DaffCartOrderResult = DaffCartOrderResult>(state: DaffCartOrderReducerState<any>, action: ActionTypes<DaffCart, DaffCartItemInput, T>): DaffCartOrderReducerState<T>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { ActionTypes } from '../action-types.type';
|
|
3
|
-
import { DaffCartReducerState } from '../cart-state.interface';
|
|
4
|
-
export declare function cartPaymentReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { ActionTypes } from '../action-types.type';
|
|
3
|
-
import { DaffCartReducerState } from '../cart-state.interface';
|
|
4
|
-
export declare function cartPaymentMethodsReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DaffCart, DaffCartOrderResult } from '@daffodil/cart';
|
|
2
|
-
import { DaffOperationEntityState } from '@daffodil/core/state';
|
|
3
|
-
import { DaffCartOrderReducerState } from './cart-order/cart-order-state.interface';
|
|
4
|
-
import { DaffCartReducerState } from './cart-state.interface';
|
|
5
|
-
import { DAFF_CART_STORE_FEATURE_KEY } from './cart-store-feature-key';
|
|
6
|
-
export interface DaffCartReducersState<T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult> {
|
|
7
|
-
cart: DaffCartReducerState<T>;
|
|
8
|
-
cartItems: DaffOperationEntityState<T['items'][number]>;
|
|
9
|
-
order: DaffCartOrderReducerState<V>;
|
|
10
|
-
}
|
|
11
|
-
export interface DaffCartStateRootSlice<T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult> {
|
|
12
|
-
[DAFF_CART_STORE_FEATURE_KEY]: DaffCartReducersState<T, V>;
|
|
13
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { ActionTypes } from '../action-types.type';
|
|
3
|
-
import { DaffCartReducerState } from '../cart-state.interface';
|
|
4
|
-
export declare function cartResolveReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { ActionTypes } from '../action-types.type';
|
|
3
|
-
import { DaffCartReducerState } from '../cart-state.interface';
|
|
4
|
-
export declare function cartShippingAddressReducer<T extends DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes): DaffCartReducerState<T>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { ActionTypes } from '../action-types.type';
|
|
3
|
-
import { DaffCartReducerState } from '../cart-state.interface';
|
|
4
|
-
export declare function cartShippingInformationReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { ActionTypes } from '../action-types.type';
|
|
3
|
-
import { DaffCartReducerState } from '../cart-state.interface';
|
|
4
|
-
export declare function cartShippingMethodsReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { DaffCartResolveState } from './cart-resolve/cart-resolve-state.enum';
|
|
3
|
-
import { DaffCartErrors } from './errors/cart-errors.type';
|
|
4
|
-
import { DaffCartLoading } from './loading/cart-loading.type';
|
|
5
|
-
export interface DaffCartReducerState<T extends DaffCart = DaffCart> {
|
|
6
|
-
cart: T;
|
|
7
|
-
loading: DaffCartLoading;
|
|
8
|
-
errors: DaffCartErrors;
|
|
9
|
-
resolved: DaffCartResolveState;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DAFF_CART_STORE_FEATURE_KEY = "daffCart";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DaffCart } from '@daffodil/cart';
|
|
2
|
-
import { ActionTypes } from './action-types.type';
|
|
3
|
-
import { DaffCartReducerState } from './cart-state.interface';
|
|
4
|
-
/**
|
|
5
|
-
* Calls each of the individual cart reducers in turn,
|
|
6
|
-
* passing the returned state into the next.
|
|
7
|
-
*/
|
|
8
|
-
export declare function daffCartReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
2
|
-
import { DaffCartErrors } from './cart-errors.type';
|
|
3
|
-
import { DaffCartOperationType } from '../cart-operation-type.enum';
|
|
4
|
-
export declare const initializeErrorAdder: (errorSpace: DaffCartOperationType) => (errors: DaffCartErrors, ...errorsToAdd: DaffStateError[]) => {
|
|
5
|
-
errors: {
|
|
6
|
-
Cart: DaffStateError[];
|
|
7
|
-
Item: DaffStateError[];
|
|
8
|
-
"Billing Address": DaffStateError[];
|
|
9
|
-
"Shipping Address": DaffStateError[];
|
|
10
|
-
Payment: DaffStateError[];
|
|
11
|
-
"Payment Methods": DaffStateError[];
|
|
12
|
-
"Shipping Information": DaffStateError[];
|
|
13
|
-
"Shipping Methods": DaffStateError[];
|
|
14
|
-
Coupon: DaffStateError[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const initializeErrorResetter: (errorSpace: DaffCartOperationType) => (errors: DaffCartErrors) => {
|
|
18
|
-
errors: {
|
|
19
|
-
Cart: DaffStateError[];
|
|
20
|
-
Item: DaffStateError[];
|
|
21
|
-
"Billing Address": DaffStateError[];
|
|
22
|
-
"Shipping Address": DaffStateError[];
|
|
23
|
-
Payment: DaffStateError[];
|
|
24
|
-
"Payment Methods": DaffStateError[];
|
|
25
|
-
"Shipping Information": DaffStateError[];
|
|
26
|
-
"Shipping Methods": DaffStateError[];
|
|
27
|
-
Coupon: DaffStateError[];
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { DaffLoadingState, DaffMutableLoadingState, DaffState } from '@daffodil/core/state';
|
|
2
|
-
import { DaffCartOperationType } from '../cart-operation-type.enum';
|
|
3
|
-
export interface DaffCartLoading {
|
|
4
|
-
[DaffCartOperationType.Cart]: DaffMutableLoadingState;
|
|
5
|
-
[DaffCartOperationType.Item]: DaffCartItemLoadingState;
|
|
6
|
-
[DaffCartOperationType.BillingAddress]: DaffMutableLoadingState;
|
|
7
|
-
[DaffCartOperationType.ShippingAddress]: DaffMutableLoadingState;
|
|
8
|
-
[DaffCartOperationType.Payment]: DaffMutableLoadingState;
|
|
9
|
-
[DaffCartOperationType.PaymentMethods]: DaffLoadingState;
|
|
10
|
-
[DaffCartOperationType.ShippingInformation]: DaffMutableLoadingState;
|
|
11
|
-
[DaffCartOperationType.ShippingMethods]: DaffLoadingState;
|
|
12
|
-
[DaffCartOperationType.Coupon]: DaffMutableLoadingState;
|
|
13
|
-
}
|
|
14
|
-
export type DaffCartItemLoadingState = DaffMutableLoadingState | DaffState.Adding;
|
|
15
|
-
export declare const initializeLoadingSetter: (loadingSpace: DaffCartOperationType) => (loadingObj: DaffCartLoading, loading: DaffLoadingState | DaffMutableLoadingState | DaffCartItemLoadingState) => {
|
|
16
|
-
loading: {
|
|
17
|
-
Cart: DaffMutableLoadingState;
|
|
18
|
-
Item: DaffCartItemLoadingState;
|
|
19
|
-
"Billing Address": DaffMutableLoadingState;
|
|
20
|
-
"Shipping Address": DaffMutableLoadingState;
|
|
21
|
-
Payment: DaffMutableLoadingState;
|
|
22
|
-
"Payment Methods": DaffLoadingState;
|
|
23
|
-
"Shipping Information": DaffMutableLoadingState;
|
|
24
|
-
"Shipping Methods": DaffLoadingState;
|
|
25
|
-
Coupon: DaffMutableLoadingState;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { daffCartReducers } from './cart-reducers';
|
|
2
|
-
export { DaffCartReducersState, DaffCartStateRootSlice, } from './cart-reducers-state.interface';
|
|
3
|
-
export * from './loading/cart-loading.type';
|
|
4
|
-
export { DaffCartErrors } from './errors/cart-errors.type';
|
|
5
|
-
export { DaffCartOperationType } from './cart-operation-type.enum';
|
|
6
|
-
export { DaffCartResolveState } from './cart-resolve/cart-resolve-state.enum';
|
|
7
|
-
export { daffCartReducer } from './cart.reducer';
|
|
8
|
-
export { DaffCartReducerState } from './cart-state.interface';
|
|
9
|
-
export { daffCartReducerInitialState } from './cart-initial-state';
|
|
10
|
-
export { daffCartOrderReducer } from './cart-order/cart-order.reducer';
|
|
11
|
-
export { DaffCartOrderReducerState } from './cart-order/cart-order-state.interface';
|
|
12
|
-
export { daffCartOrderInitialState } from './cart-order/cart-order-initial-state';
|
|
13
|
-
export { DAFF_CART_STORE_FEATURE_KEY } from './cart-store-feature-key';
|
|
14
|
-
export { daffCartItemEntitiesAdapter } from './cart-item-entities/adapter';
|
|
15
|
-
export { daffCartItemEntitiesRetrievalActionsReducerFactory } from './cart-item-entities/retrieval-actions.reducer';
|
|
16
|
-
export { daffCartRetrievalActionsReducerFactory } from './cart/retrieval-actions.reducer';
|
|
17
|
-
export * from './token/public_api';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StoreConfig } from '@ngrx/store';
|
|
2
|
-
import { DaffCartReducersState } from '../cart-reducers-state.interface';
|
|
3
|
-
/**
|
|
4
|
-
* An internal token to hold the Daffodil cart feature store config.
|
|
5
|
-
*
|
|
6
|
-
* @docs-private
|
|
7
|
-
*/
|
|
8
|
-
export declare const DAFF_CART_STORE_CONFIG: import("@angular/core").InjectionToken<StoreConfig<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>, import("@ngrx/store").Action<string>>>, provideDaffCartStoreConfig: <R extends StoreConfig<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>, import("@ngrx/store").Action<string>> = StoreConfig<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>, import("@ngrx/store").Action<string>>>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ActionReducer } from '@ngrx/store';
|
|
2
|
-
import { DaffCartReducersState } from '../cart-reducers-state.interface';
|
|
3
|
-
export declare const DAFF_CART_EXTRA_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>, import("@ngrx/store").Action<string>>[]>, daffCartProvideExtraReducers: <R extends ActionReducer<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>, import("@ngrx/store").Action<string>> = ActionReducer<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>, import("@ngrx/store").Action<string>>>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { MetaReducer } from '@ngrx/store';
|
|
2
|
-
import { DaffCartReducersState } from '../cart-reducers-state.interface';
|
|
3
|
-
export declare const DAFF_CART_META_REDUCERS: import("@angular/core").InjectionToken<MetaReducer<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>>[]>, daffCartProvideMetaReducers: <R extends MetaReducer<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>> = MetaReducer<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>>>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ActionReducer } from '@ngrx/store';
|
|
2
|
-
import { DaffCartReducersState } from '../cart-reducers-state.interface';
|
|
3
|
-
export declare const DAFF_CART_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>, import("@ngrx/store").Action<string>>>, provideDaffCartReducers: <R extends ActionReducer<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>, import("@ngrx/store").Action<string>> = ActionReducer<DaffCartReducersState<import("@daffodil/cart").DaffCart, import("@daffodil/cart").DaffCartOrderResult>, import("@ngrx/store").Action<string>>>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { MemoizedSelector, DefaultProjectorFn } from '@ngrx/store';
|
|
2
|
-
import { DaffCart, DaffCartOrderResult } from '@daffodil/cart';
|
|
3
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
import { DaffCartResolveState } from '../../reducers/cart-resolve/cart-resolve-state.enum';
|
|
5
|
-
import { DaffCartReducerState, DaffCartStateRootSlice } from '../../reducers/public_api';
|
|
6
|
-
export interface DaffCartStateMemoizedSelectors<T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult> {
|
|
7
|
-
selectCartState: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartReducerState<T>>;
|
|
8
|
-
selectCartValue: MemoizedSelector<DaffCartStateRootSlice<T, V>, T>;
|
|
9
|
-
selectCartResolved: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartResolveState>;
|
|
10
|
-
/**
|
|
11
|
-
* The object that holds all the loading states for cart operations.
|
|
12
|
-
*/
|
|
13
|
-
selectCartLoadingObject: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartReducerState<T>['loading']>;
|
|
14
|
-
/**
|
|
15
|
-
* Selects whether there is any cart operation in progress.
|
|
16
|
-
* This includes operations specifically for cart subfields.
|
|
17
|
-
*/
|
|
18
|
-
selectCartFeatureLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Selects whether there is any cart resolve operation in progress.
|
|
21
|
-
* This includes operations for cart subfields.
|
|
22
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
23
|
-
*/
|
|
24
|
-
selectCartFeatureResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
25
|
-
/**
|
|
26
|
-
* Selects whether there is any cart mutate operation in progress.
|
|
27
|
-
* This includes operations for cart subfields.
|
|
28
|
-
* This pertains only to requests that mutate data such as "update".
|
|
29
|
-
*/
|
|
30
|
-
selectCartFeatureMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
31
|
-
/**
|
|
32
|
-
* Selects whether there is a cart operation in progress.
|
|
33
|
-
* This does not include operations specifically for cart subfields.
|
|
34
|
-
*/
|
|
35
|
-
selectCartLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* Selects whether there is a cart resolve operation in progress.
|
|
38
|
-
* This does not include operations specifically for cart subfields.
|
|
39
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
40
|
-
*/
|
|
41
|
-
selectCartResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
42
|
-
/**
|
|
43
|
-
* Selects whether there is a cart mutate operation in progress.
|
|
44
|
-
* This does not include operations specifically for cart subfields.
|
|
45
|
-
* This pertains only to requests that mutate data such as "update".
|
|
46
|
-
*/
|
|
47
|
-
selectCartMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
48
|
-
/**
|
|
49
|
-
* Selects whether there is a cart billing address operation in progress.
|
|
50
|
-
*/
|
|
51
|
-
selectBillingAddressLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
52
|
-
/**
|
|
53
|
-
* Selects whether there is a cart billing address resolve operation in progress.
|
|
54
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
55
|
-
*/
|
|
56
|
-
selectBillingAddressResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
57
|
-
/**
|
|
58
|
-
* Selects whether there is a cart billing address mutate operation in progress.
|
|
59
|
-
* This pertains only to requests that mutate data such as "update".
|
|
60
|
-
*/
|
|
61
|
-
selectBillingAddressMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
62
|
-
/**
|
|
63
|
-
* Selects whether there is a cart shipping address operation in progress.
|
|
64
|
-
*/
|
|
65
|
-
selectShippingAddressLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
66
|
-
/**
|
|
67
|
-
* Selects whether there is a cart shipping address resolve operation in progress.
|
|
68
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
69
|
-
*/
|
|
70
|
-
selectShippingAddressResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
71
|
-
/**
|
|
72
|
-
* Selects whether there is a cart shipping address mutate operation in progress.
|
|
73
|
-
* This pertains only to requests that mutate data such as "update".
|
|
74
|
-
*/
|
|
75
|
-
selectShippingAddressMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
76
|
-
/**
|
|
77
|
-
* Selects whether there is a cart shipping information operation in progress.
|
|
78
|
-
*/
|
|
79
|
-
selectShippingInformationLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* Selects whether there is a cart shipping information resolve operation in progress.
|
|
82
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
83
|
-
*/
|
|
84
|
-
selectShippingInformationResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
85
|
-
/**
|
|
86
|
-
* Selects whether there is a cart shipping information mutate operation in progress.
|
|
87
|
-
* This pertains only to requests that mutate data such as "update".
|
|
88
|
-
*/
|
|
89
|
-
selectShippingInformationMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
90
|
-
/**
|
|
91
|
-
* Selects whether there is a cart shipping methods operation in progress.
|
|
92
|
-
*/
|
|
93
|
-
selectShippingMethodsLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
94
|
-
/**
|
|
95
|
-
* Selects whether there is a cart shipping methods resolve operation in progress.
|
|
96
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
97
|
-
*/
|
|
98
|
-
selectShippingMethodsResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
99
|
-
/**
|
|
100
|
-
* Selects whether there is a cart payment operation in progress.
|
|
101
|
-
*/
|
|
102
|
-
selectPaymentLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
103
|
-
/**
|
|
104
|
-
* Selects whether there is a cart payment resolve operation in progress.
|
|
105
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
106
|
-
*/
|
|
107
|
-
selectPaymentResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
108
|
-
/**
|
|
109
|
-
* Selects whether there is a cart payment mutate operation in progress.
|
|
110
|
-
* This pertains only to requests that mutate data such as "update".
|
|
111
|
-
*/
|
|
112
|
-
selectPaymentMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
113
|
-
/**
|
|
114
|
-
* Selects whether there is a cart payment methods operation in progress.
|
|
115
|
-
*/
|
|
116
|
-
selectPaymentMethodsLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
117
|
-
/**
|
|
118
|
-
* Selects whether there is a cart payment methods resolve operation in progress.
|
|
119
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
120
|
-
*/
|
|
121
|
-
selectPaymentMethodsResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
122
|
-
/**
|
|
123
|
-
* Selects whether there is a cart coupon operation in progress.
|
|
124
|
-
*/
|
|
125
|
-
selectCouponLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
126
|
-
/**
|
|
127
|
-
* Selects whether there is a cart coupon resolve operation in progress.
|
|
128
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
129
|
-
*/
|
|
130
|
-
selectCouponResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
131
|
-
/**
|
|
132
|
-
* Selects whether there is a cart coupon mutate operation in progress.
|
|
133
|
-
* This pertains only to requests that mutate data such as "update".
|
|
134
|
-
*/
|
|
135
|
-
selectCouponMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
136
|
-
/**
|
|
137
|
-
* Selects whether there is a cart item operation in progress.
|
|
138
|
-
*/
|
|
139
|
-
selectItemLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
140
|
-
/**
|
|
141
|
-
* Selects whether there is a cart item add operation in progress.
|
|
142
|
-
*/
|
|
143
|
-
selectItemAdding: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
144
|
-
/**
|
|
145
|
-
* Selects whether there is a cart item resolve operation in progress.
|
|
146
|
-
* This pertains only to requests that do not mutate data such as "load" or "list".
|
|
147
|
-
*/
|
|
148
|
-
selectItemResolving: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
149
|
-
/**
|
|
150
|
-
* Selects whether there is a cart item mutate operation in progress.
|
|
151
|
-
* This pertains only to requests that mutate existing data such as update.
|
|
152
|
-
* This does not apply to add requests. see {@link selectItemAdding} for that.
|
|
153
|
-
*/
|
|
154
|
-
selectItemMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
155
|
-
selectCartErrorsObject: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartReducerState<T>['errors']>;
|
|
156
|
-
selectCartErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffStateError[]>;
|
|
157
|
-
selectBillingAddressErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffStateError[]>;
|
|
158
|
-
selectShippingAddressErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffStateError[]>;
|
|
159
|
-
selectShippingInformationErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffStateError[]>;
|
|
160
|
-
selectShippingMethodsErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffStateError[]>;
|
|
161
|
-
selectPaymentErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffStateError[]>;
|
|
162
|
-
selectPaymentMethodsErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffStateError[]>;
|
|
163
|
-
selectCouponErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffStateError[]>;
|
|
164
|
-
selectItemErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffStateError[]>;
|
|
165
|
-
selectCartHasOutOfStockItems: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
166
|
-
selectIsCartEmpty: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
167
|
-
/**
|
|
168
|
-
* Selects whether the cart's shipping address equals the billing address.
|
|
169
|
-
* Returns false if either address is null or undefined.
|
|
170
|
-
*/
|
|
171
|
-
selectIsBillingSameAsShipping: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
172
|
-
selectHasBillingAddress: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
173
|
-
selectHasShippingAddress: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
174
|
-
selectHasShippingMethod: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
175
|
-
selectHasPaymentMethod: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
176
|
-
selectCanPlaceOrder: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean, DefaultProjectorFn<boolean>>;
|
|
177
|
-
}
|
|
178
|
-
export declare const getCartSelectors: <T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult>() => DaffCartStateMemoizedSelectors<T>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MemoizedSelector } from '@ngrx/store';
|
|
2
|
-
import { DaffCart, DaffCartOrderResult } from '@daffodil/cart';
|
|
3
|
-
import { DaffCartStateRootSlice, DaffCartReducersState } from '../reducers/public_api';
|
|
4
|
-
export interface DaffCartFeatureMemoizedSelectors<T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult> {
|
|
5
|
-
selectCartFeatureState: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartReducersState<T, V>>;
|
|
6
|
-
}
|
|
7
|
-
export declare const getDaffCartFeatureSelector: <T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult>() => DaffCartFeatureMemoizedSelectors<T, V>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { MemoizedSelector } from '@ngrx/store';
|
|
2
|
-
import { DaffConfigurableCartItemAttribute, DaffCompositeCartItemOption, DaffCart, DaffCartOrderResult } from '@daffodil/cart';
|
|
3
|
-
import { DaffOperationEntity, DaffOperationEntityState } from '@daffodil/core/state';
|
|
4
|
-
import { DaffCartStateRootSlice } from '../../reducers/public_api';
|
|
5
|
-
export interface DaffCartItemEntitiesMemoizedSelectors<T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult> {
|
|
6
|
-
selectCartItemEntitiesState: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffOperationEntityState<T['items'][number]>>;
|
|
7
|
-
selectCartItemIds: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffOperationEntityState<T['items'][number]>['ids']>;
|
|
8
|
-
selectCartItemEntities: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffOperationEntityState<T['items'][number]>['entities']>;
|
|
9
|
-
selectAllCartItems: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffOperationEntity<T['items'][number]>[]>;
|
|
10
|
-
selectCartItemTotal: MemoizedSelector<DaffCartStateRootSlice<T, V>, number>;
|
|
11
|
-
selectCartItem: (id: T['items'][number]['id']) => MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffOperationEntity<T['items'][number]>>;
|
|
12
|
-
selectTotalNumberOfCartItems: MemoizedSelector<DaffCartStateRootSlice<T, V>, number>;
|
|
13
|
-
selectCartItemConfiguredAttributes: (id: T['items'][number]['id']) => MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffConfigurableCartItemAttribute[]>;
|
|
14
|
-
selectCartItemCompositeOptions: (id: T['items'][number]['id']) => MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCompositeCartItemOption[]>;
|
|
15
|
-
selectIsCartItemOutOfStock: (id: T['items'][number]['id']) => MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
16
|
-
/**
|
|
17
|
-
* Selects all cart items that are out of stock.
|
|
18
|
-
*/
|
|
19
|
-
selectOutOfStockCartItems: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffOperationEntity<T['items'][number]>[]>;
|
|
20
|
-
/**
|
|
21
|
-
* Selects all cart items that are in stock.
|
|
22
|
-
*/
|
|
23
|
-
selectInStockCartItems: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffOperationEntity<T['items'][number]>[]>;
|
|
24
|
-
selectCartItemMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
25
|
-
}
|
|
26
|
-
export declare const getDaffCartItemEntitiesSelectors: <T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult>() => DaffCartItemEntitiesMemoizedSelectors<T, V>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MemoizedSelector } from '@ngrx/store';
|
|
2
|
-
import { DaffCartOrderResult, DaffCart } from '@daffodil/cart';
|
|
3
|
-
import { DaffCartOrderReducerState, DaffCartStateRootSlice } from '../../reducers/public_api';
|
|
4
|
-
export interface DaffCartOrderMemoizedSelectors<T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult> {
|
|
5
|
-
selectCartOrderState: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartOrderReducerState<V>>;
|
|
6
|
-
/**
|
|
7
|
-
* Selects whether there is a cart order operation in progress.
|
|
8
|
-
*/
|
|
9
|
-
selectCartOrderLoading: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
10
|
-
/**
|
|
11
|
-
* Selects whether there is a place order operation in progress.
|
|
12
|
-
*/
|
|
13
|
-
selectCartOrderMutating: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
14
|
-
selectCartOrderErrors: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartOrderReducerState<V>['errors']>;
|
|
15
|
-
selectCartOrderValue: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartOrderReducerState<V>['cartOrderResult']>;
|
|
16
|
-
selectCartOrderId: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartOrderReducerState<V>['cartOrderResult']['orderId']>;
|
|
17
|
-
selectCartOrderCartId: MemoizedSelector<DaffCartStateRootSlice<T, V>, DaffCartOrderReducerState<V>['cartOrderResult']['cartId']>;
|
|
18
|
-
selectHasOrderResult: MemoizedSelector<DaffCartStateRootSlice<T, V>, boolean>;
|
|
19
|
-
}
|
|
20
|
-
export declare const getCartOrderSelectors: <T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult>() => DaffCartOrderMemoizedSelectors<T, V>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DaffCart, DaffCartOrderResult } from '@daffodil/cart';
|
|
2
|
-
import { DaffCartStateMemoizedSelectors } from './cart/cart.selector';
|
|
3
|
-
import { DaffCartFeatureMemoizedSelectors } from './cart-feature.selector';
|
|
4
|
-
import { DaffCartItemEntitiesMemoizedSelectors } from './cart-item-entities/cart-item-entities.selectors';
|
|
5
|
-
import { DaffCartOrderMemoizedSelectors } from './cart-order/cart-order.selector';
|
|
6
|
-
export interface DaffCartMemoizedSelectors<T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult> extends DaffCartFeatureMemoizedSelectors<T, V>, DaffCartOrderMemoizedSelectors<T, V>, DaffCartStateMemoizedSelectors<T>, DaffCartItemEntitiesMemoizedSelectors<T, V> {
|
|
7
|
-
}
|
|
8
|
-
export declare const getDaffCartSelectors: <T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult>() => DaffCartMemoizedSelectors<T, V>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './cart.selector';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DaffCartStateTestingModule {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartStateTestingModule, never>;
|
|
4
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCartStateTestingModule, never, never, never>;
|
|
5
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCartStateTestingModule>;
|
|
6
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DaffCartItem } from '@daffodil/cart';
|
|
2
|
-
import { DaffMockCartItem } from '@daffodil/cart/testing';
|
|
3
|
-
import { DaffOperationEntity, DaffState } from '@daffodil/core/state';
|
|
4
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* @role mock
|
|
8
|
-
*/
|
|
9
|
-
export declare class DaffMockStatefulCartItem extends DaffMockCartItem implements DaffOperationEntity<DaffCartItem> {
|
|
10
|
-
daffState: DaffState;
|
|
11
|
-
daffErrors: any[];
|
|
12
|
-
daffTemp: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare class DaffStatefulCartItemFactory extends DaffModelFactory<DaffOperationEntity<DaffCartItem>> {
|
|
15
|
-
constructor();
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffStatefulCartItemFactory, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffStatefulCartItemFactory>;
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DaffCompositeCartItem } from '@daffodil/cart';
|
|
2
|
-
import { DaffMockCompositeCartItem } from '@daffodil/cart/testing';
|
|
3
|
-
import { DaffOperationEntity, DaffState } from '@daffodil/core/state';
|
|
4
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* @role mock
|
|
8
|
-
*/
|
|
9
|
-
export declare class DaffMockStatefulCompositeCartItem extends DaffMockCompositeCartItem implements DaffOperationEntity<DaffCompositeCartItem> {
|
|
10
|
-
daffState: DaffState;
|
|
11
|
-
daffErrors: any[];
|
|
12
|
-
daffTemp: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare class DaffStatefulCompositeCartItemFactory extends DaffModelFactory<DaffOperationEntity<DaffCompositeCartItem>> {
|
|
15
|
-
constructor();
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffStatefulCompositeCartItemFactory, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffStatefulCompositeCartItemFactory>;
|
|
18
|
-
}
|