@daffodil/cart 0.88.1 → 0.90.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 +73 -73
- package/fesm2022/daffodil-cart-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs +30 -30
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento.mjs +76 -76
- 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 +46 -46
- package/fesm2022/daffodil-cart-state.mjs.map +1 -1
- package/fesm2022/daffodil-cart-testing.mjs +27 -28
- 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 -35
- 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 -51
- 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 -18
- 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,135 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCart } from '@daffodil/cart';
|
|
3
|
-
import { DaffFailureAction, DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
import { DaffCartRetrievalAction } from '../cart-retrieval/public_api';
|
|
5
|
-
/**
|
|
6
|
-
* An enum for the cart payment action types.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum DaffCartPaymentActionTypes {
|
|
9
|
-
CartPaymentLoadAction = "[@daffodil/cart] Payment Load Action",
|
|
10
|
-
CartPaymentLoadSuccessAction = "[@daffodil/cart] Payment Load Success Action",
|
|
11
|
-
CartPaymentLoadFailureAction = "[@daffodil/cart] Payment Load Failure Action",
|
|
12
|
-
CartPaymentUpdateAction = "[@daffodil/cart] Payment Update Action",
|
|
13
|
-
CartPaymentUpdateSuccessAction = "[@daffodil/cart] Payment Update Success Action",
|
|
14
|
-
CartPaymentUpdateFailureAction = "[@daffodil/cart] Payment Update Failure Action",
|
|
15
|
-
CartPaymentUpdateWithBillingAction = "[@daffodil/cart] Payment Update With Billing Action",
|
|
16
|
-
CartPaymentUpdateWithBillingSuccessAction = "[@daffodil/cart] Payment Update With Billing Success Action",
|
|
17
|
-
CartPaymentUpdateWithBillingFailureAction = "[@daffodil/cart] Payment Update With Billing Failure Action",
|
|
18
|
-
CartPaymentRemoveAction = "[@daffodil/cart] Payment Remove Action",
|
|
19
|
-
CartPaymentRemoveSuccessAction = "[@daffodil/cart] Payment Remove Success Action",
|
|
20
|
-
CartPaymentRemoveFailureAction = "[@daffodil/cart] Payment Remove Failure Action",
|
|
21
|
-
CartPaymentMethodAddAction = "[@daffodil/cart] Payment Method Add Action"
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Triggers the load of the cart's selected payment method.
|
|
25
|
-
*/
|
|
26
|
-
export declare class DaffCartPaymentLoad implements Action {
|
|
27
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentLoadAction;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Indicates the successful load of the cart's selected payment method.
|
|
31
|
-
*/
|
|
32
|
-
export declare class DaffCartPaymentLoadSuccess<T extends DaffCart = DaffCart> implements Action {
|
|
33
|
-
payload: T['payment'];
|
|
34
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentLoadSuccessAction;
|
|
35
|
-
constructor(payload: T['payment']);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Indicates the failed load of the cart's selected payment method.
|
|
39
|
-
*/
|
|
40
|
-
export declare class DaffCartPaymentLoadFailure implements DaffFailureAction {
|
|
41
|
-
payload: DaffStateError[];
|
|
42
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentLoadFailureAction;
|
|
43
|
-
constructor(payload: DaffStateError[]);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Triggers the update of the cart's selected payment method.
|
|
47
|
-
*/
|
|
48
|
-
export declare class DaffCartPaymentUpdate<T extends DaffCart = DaffCart> implements Action {
|
|
49
|
-
payload: Partial<T['payment']>;
|
|
50
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentUpdateAction;
|
|
51
|
-
constructor(payload: Partial<T['payment']>);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Indicates the successful update of the cart's selected payment method.
|
|
55
|
-
*/
|
|
56
|
-
export declare class DaffCartPaymentUpdateSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
57
|
-
payload: Partial<T>;
|
|
58
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentUpdateSuccessAction;
|
|
59
|
-
constructor(payload: Partial<T>);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Indicates the failed update of the cart's selected payment method.
|
|
63
|
-
*/
|
|
64
|
-
export declare class DaffCartPaymentUpdateFailure implements DaffFailureAction {
|
|
65
|
-
payload: DaffStateError[];
|
|
66
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentUpdateFailureAction;
|
|
67
|
-
constructor(payload: DaffStateError[]);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Triggers an update of the cart's selected payment method and billing address.
|
|
71
|
-
*
|
|
72
|
-
* @param payment The payment method.
|
|
73
|
-
* @param address The billing address.
|
|
74
|
-
*/
|
|
75
|
-
export declare class DaffCartPaymentUpdateWithBilling<T extends DaffCart = DaffCart> implements Action {
|
|
76
|
-
payment: Partial<T['payment']>;
|
|
77
|
-
address: Partial<T['billing_address']>;
|
|
78
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingAction;
|
|
79
|
-
constructor(payment: Partial<T['payment']>, address: Partial<T['billing_address']>);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Indicates the success of an update of the cart's selected payment method and billing address.
|
|
83
|
-
*
|
|
84
|
-
* @param payload The updated cart.
|
|
85
|
-
*/
|
|
86
|
-
export declare class DaffCartPaymentUpdateWithBillingSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
87
|
-
payload: Partial<T>;
|
|
88
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingSuccessAction;
|
|
89
|
-
constructor(payload: Partial<T>);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Indicates the failure of an update of the cart's selected payment method and billing address.
|
|
93
|
-
*
|
|
94
|
-
* @param payload The error message.
|
|
95
|
-
*/
|
|
96
|
-
export declare class DaffCartPaymentUpdateWithBillingFailure implements DaffFailureAction {
|
|
97
|
-
payload: DaffStateError[];
|
|
98
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingFailureAction;
|
|
99
|
-
constructor(payload: DaffStateError[]);
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Triggers the removal of the cart's selected payment method.
|
|
103
|
-
*/
|
|
104
|
-
export declare class DaffCartPaymentRemove implements Action {
|
|
105
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentRemoveAction;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Indicates the successful removal of the cart's selected payment method.
|
|
109
|
-
*/
|
|
110
|
-
export declare class DaffCartPaymentRemoveSuccess implements Action {
|
|
111
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentRemoveSuccessAction;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Indicates the failed removal of the cart's selected payment method.
|
|
115
|
-
*/
|
|
116
|
-
export declare class DaffCartPaymentRemoveFailure implements DaffFailureAction {
|
|
117
|
-
payload: DaffStateError[];
|
|
118
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentRemoveFailureAction;
|
|
119
|
-
constructor(payload: DaffStateError[]);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* This action is temporary until custom reducers can be injected by the @daffodil/paymentSource modules. Right now,
|
|
123
|
-
* the payment modules need a way to update cart state with a payment token.
|
|
124
|
-
*
|
|
125
|
-
* todo: remove when possible.
|
|
126
|
-
*/
|
|
127
|
-
export declare class DaffCartPaymentMethodAdd<T extends DaffCart = DaffCart> implements Action {
|
|
128
|
-
payload: T['payment'];
|
|
129
|
-
readonly type = DaffCartPaymentActionTypes.CartPaymentMethodAddAction;
|
|
130
|
-
constructor(payload: T['payment']);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* A union of all the cart payment action classes.
|
|
134
|
-
*/
|
|
135
|
-
export type DaffCartPaymentActions<T extends DaffCart = DaffCart> = DaffCartPaymentLoad | DaffCartPaymentLoadSuccess<T> | DaffCartPaymentLoadFailure | DaffCartPaymentUpdate<T> | DaffCartPaymentUpdateSuccess<T> | DaffCartPaymentUpdateFailure | DaffCartPaymentUpdateWithBilling<T> | DaffCartPaymentUpdateWithBillingSuccess<T> | DaffCartPaymentUpdateWithBillingFailure | DaffCartPaymentRemove | DaffCartPaymentRemoveSuccess | DaffCartPaymentRemoveFailure | DaffCartPaymentMethodAdd<T>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCart } from '@daffodil/cart';
|
|
3
|
-
import { DaffFailureAction, DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
import { DaffCartRetrievalAction } from '../cart-retrieval/public_api';
|
|
5
|
-
/**
|
|
6
|
-
* An enum for the cart shipping address action types.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum DaffCartShippingAddressActionTypes {
|
|
9
|
-
CartShippingAddressLoadAction = "[@daffodil/cart] Shipping Address Load Action",
|
|
10
|
-
CartShippingAddressLoadSuccessAction = "[@daffodil/cart] Shipping Address Load Success Action",
|
|
11
|
-
CartShippingAddressLoadFailureAction = "[@daffodil/cart] Shipping Address Load Failure Action",
|
|
12
|
-
CartShippingAddressUpdateAction = "[@daffodil/cart] Shipping Address Update Action",
|
|
13
|
-
CartShippingAddressUpdateSuccessAction = "[@daffodil/cart] Shipping Address Update Success Action",
|
|
14
|
-
CartShippingAddressUpdateFailureAction = "[@daffodil/cart] Shipping Address Update Failure Action"
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Triggers the load of the cart's shipping address.
|
|
18
|
-
*/
|
|
19
|
-
export declare class DaffCartShippingAddressLoad implements Action {
|
|
20
|
-
readonly type = DaffCartShippingAddressActionTypes.CartShippingAddressLoadAction;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Indicates the successful load of the cart's shipping address.
|
|
24
|
-
*/
|
|
25
|
-
export declare class DaffCartShippingAddressLoadSuccess<T extends DaffCart = DaffCart> implements Action {
|
|
26
|
-
payload: T['shipping_address'];
|
|
27
|
-
readonly type = DaffCartShippingAddressActionTypes.CartShippingAddressLoadSuccessAction;
|
|
28
|
-
constructor(payload: T['shipping_address']);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Indicates the failed load of the cart's shipping address.
|
|
32
|
-
*/
|
|
33
|
-
export declare class DaffCartShippingAddressLoadFailure implements DaffFailureAction {
|
|
34
|
-
payload: DaffStateError[];
|
|
35
|
-
readonly type = DaffCartShippingAddressActionTypes.CartShippingAddressLoadFailureAction;
|
|
36
|
-
constructor(payload: DaffStateError[]);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Triggers the update of the cart's shipping address.
|
|
40
|
-
*/
|
|
41
|
-
export declare class DaffCartShippingAddressUpdate<T extends DaffCart = DaffCart> implements Action {
|
|
42
|
-
payload: Partial<T['shipping_address']>;
|
|
43
|
-
readonly type = DaffCartShippingAddressActionTypes.CartShippingAddressUpdateAction;
|
|
44
|
-
constructor(payload: Partial<T['shipping_address']>);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Indicates the successful update of the cart's shipping address.
|
|
48
|
-
*/
|
|
49
|
-
export declare class DaffCartShippingAddressUpdateSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
50
|
-
payload: Partial<T>;
|
|
51
|
-
readonly type = DaffCartShippingAddressActionTypes.CartShippingAddressUpdateSuccessAction;
|
|
52
|
-
constructor(payload: Partial<T>);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Indicates the failed update of the cart's shipping address.
|
|
56
|
-
*/
|
|
57
|
-
export declare class DaffCartShippingAddressUpdateFailure implements DaffFailureAction {
|
|
58
|
-
payload: DaffStateError[];
|
|
59
|
-
readonly type = DaffCartShippingAddressActionTypes.CartShippingAddressUpdateFailureAction;
|
|
60
|
-
constructor(payload: DaffStateError[]);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* A union of all the cart shipping address action classes.
|
|
64
|
-
*/
|
|
65
|
-
export type DaffCartShippingAddressActions<T extends DaffCart = DaffCart> = DaffCartShippingAddressLoad | DaffCartShippingAddressLoadSuccess<T> | DaffCartShippingAddressLoadFailure | DaffCartShippingAddressUpdate<T> | DaffCartShippingAddressUpdateSuccess<T> | DaffCartShippingAddressUpdateFailure;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCartShippingRate, DaffCart } from '@daffodil/cart';
|
|
3
|
-
import { DaffFailureAction, DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
import { DaffCartRetrievalAction } from '../cart-retrieval/public_api';
|
|
5
|
-
/**
|
|
6
|
-
* An enum for the cart shipping information action types.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum DaffCartShippingInformationActionTypes {
|
|
9
|
-
CartShippingInformationLoadAction = "[@daffodil/cart] Shipping Information Load Action",
|
|
10
|
-
CartShippingInformationLoadSuccessAction = "[@daffodil/cart] Shipping Information Load Success Action",
|
|
11
|
-
CartShippingInformationLoadFailureAction = "[@daffodil/cart] Shipping Information Load Failure Action",
|
|
12
|
-
CartShippingInformationUpdateAction = "[@daffodil/cart] Shipping Information Update Action",
|
|
13
|
-
CartShippingInformationUpdateSuccessAction = "[@daffodil/cart] Shipping Information Update Success Action",
|
|
14
|
-
CartShippingInformationUpdateFailureAction = "[@daffodil/cart] Shipping Information Update Failure Action",
|
|
15
|
-
CartShippingInformationDeleteAction = "[@daffodil/cart] Shipping Information Remove Action",
|
|
16
|
-
CartShippingInformationDeleteSuccessAction = "[@daffodil/cart] Shipping Information Remove Success Action",
|
|
17
|
-
CartShippingInformationDeleteFailureAction = "[@daffodil/cart] Shipping Information Remove Failure Action"
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Triggers the load of the cart's shipping information.
|
|
21
|
-
*/
|
|
22
|
-
export declare class DaffCartShippingInformationLoad implements Action {
|
|
23
|
-
readonly type = DaffCartShippingInformationActionTypes.CartShippingInformationLoadAction;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Indicates the successful load of the cart's shipping information.
|
|
27
|
-
*/
|
|
28
|
-
export declare class DaffCartShippingInformationLoadSuccess<T extends DaffCartShippingRate = DaffCartShippingRate> implements Action {
|
|
29
|
-
payload: T;
|
|
30
|
-
readonly type = DaffCartShippingInformationActionTypes.CartShippingInformationLoadSuccessAction;
|
|
31
|
-
constructor(payload: T);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Indicates the failed load of the cart's shipping information.
|
|
35
|
-
*/
|
|
36
|
-
export declare class DaffCartShippingInformationLoadFailure implements DaffFailureAction {
|
|
37
|
-
payload: DaffStateError[];
|
|
38
|
-
readonly type = DaffCartShippingInformationActionTypes.CartShippingInformationLoadFailureAction;
|
|
39
|
-
constructor(payload: DaffStateError[]);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Triggers the update of the cart's shipping information.
|
|
43
|
-
*/
|
|
44
|
-
export declare class DaffCartShippingInformationUpdate<T extends DaffCartShippingRate = DaffCartShippingRate> implements Action {
|
|
45
|
-
payload: Partial<T>;
|
|
46
|
-
readonly type = DaffCartShippingInformationActionTypes.CartShippingInformationUpdateAction;
|
|
47
|
-
constructor(payload: Partial<T>);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Indicates the successful update of the cart's shipping information.
|
|
51
|
-
*/
|
|
52
|
-
export declare class DaffCartShippingInformationUpdateSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
53
|
-
payload: Partial<T>;
|
|
54
|
-
readonly type = DaffCartShippingInformationActionTypes.CartShippingInformationUpdateSuccessAction;
|
|
55
|
-
constructor(payload: Partial<T>);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Indicates the failed update of the cart's shipping information.
|
|
59
|
-
*/
|
|
60
|
-
export declare class DaffCartShippingInformationUpdateFailure implements DaffFailureAction {
|
|
61
|
-
payload: DaffStateError[];
|
|
62
|
-
readonly type = DaffCartShippingInformationActionTypes.CartShippingInformationUpdateFailureAction;
|
|
63
|
-
constructor(payload: DaffStateError[]);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Triggers the deletion of the cart's shipping information.
|
|
67
|
-
*/
|
|
68
|
-
export declare class DaffCartShippingInformationDelete implements Action {
|
|
69
|
-
id?: DaffCartShippingRate['id'];
|
|
70
|
-
readonly type = DaffCartShippingInformationActionTypes.CartShippingInformationDeleteAction;
|
|
71
|
-
constructor(id?: DaffCartShippingRate['id']);
|
|
72
|
-
}
|
|
73
|
-
export declare class DaffCartShippingInformationDeleteSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
74
|
-
payload: Partial<T>;
|
|
75
|
-
readonly type = DaffCartShippingInformationActionTypes.CartShippingInformationDeleteSuccessAction;
|
|
76
|
-
constructor(payload: Partial<T>);
|
|
77
|
-
}
|
|
78
|
-
export declare class DaffCartShippingInformationDeleteFailure implements DaffFailureAction {
|
|
79
|
-
payload: DaffStateError[];
|
|
80
|
-
readonly type = DaffCartShippingInformationActionTypes.CartShippingInformationDeleteFailureAction;
|
|
81
|
-
constructor(payload: DaffStateError[]);
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* A union of all the cart shipping information action classes.
|
|
85
|
-
*/
|
|
86
|
-
export type DaffCartShippingInformationActions<T extends DaffCart = DaffCart> = DaffCartShippingInformationLoad | DaffCartShippingInformationLoadSuccess<T['shipping_information']> | DaffCartShippingInformationLoadFailure | DaffCartShippingInformationUpdate<T['shipping_information']> | DaffCartShippingInformationUpdateSuccess<T> | DaffCartShippingInformationUpdateFailure | DaffCartShippingInformationDelete | DaffCartShippingInformationDeleteSuccess<T> | DaffCartShippingInformationDeleteFailure;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCartShippingRate } from '@daffodil/cart';
|
|
3
|
-
import { DaffFailureAction, DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
/**
|
|
5
|
-
* An enum for the cart shipping methods action types.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum DaffCartShippingMethodsActionTypes {
|
|
8
|
-
CartShippingMethodsLoadAction = "[@daffodil/cart] Shipping Methods Load Action",
|
|
9
|
-
CartShippingMethodsLoadSuccessAction = "[@daffodil/cart] Shipping Methods Load Success Action",
|
|
10
|
-
CartShippingMethodsLoadFailureAction = "[@daffodil/cart] Shipping Methods Load Failure Action"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Triggers the load of the cart's available shipping methods.
|
|
14
|
-
*/
|
|
15
|
-
export declare class DaffCartShippingMethodsLoad implements Action {
|
|
16
|
-
readonly type = DaffCartShippingMethodsActionTypes.CartShippingMethodsLoadAction;
|
|
17
|
-
constructor();
|
|
18
|
-
}
|
|
19
|
-
export declare class DaffCartShippingMethodsLoadSuccess<T extends DaffCartShippingRate = DaffCartShippingRate> implements Action {
|
|
20
|
-
payload: T[];
|
|
21
|
-
readonly type = DaffCartShippingMethodsActionTypes.CartShippingMethodsLoadSuccessAction;
|
|
22
|
-
constructor(payload: T[]);
|
|
23
|
-
}
|
|
24
|
-
export declare class DaffCartShippingMethodsLoadFailure implements DaffFailureAction {
|
|
25
|
-
payload: DaffStateError[];
|
|
26
|
-
readonly type = DaffCartShippingMethodsActionTypes.CartShippingMethodsLoadFailureAction;
|
|
27
|
-
constructor(payload: DaffStateError[]);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* A union of all the cart shipping methods action classes.
|
|
31
|
-
*/
|
|
32
|
-
export type DaffCartShippingMethodsActions<T extends DaffCartShippingRate = DaffCartShippingRate> = DaffCartShippingMethodsLoad | DaffCartShippingMethodsLoadSuccess<T> | DaffCartShippingMethodsLoadFailure;
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCart } from '@daffodil/cart';
|
|
3
|
-
import { DaffFailureAction, DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
import { DaffProduct } from '@daffodil/product';
|
|
5
|
-
import { DaffCartRetrievalAction } from '../cart-retrieval/public_api';
|
|
6
|
-
/**
|
|
7
|
-
* An enum for the cart action types.
|
|
8
|
-
*/
|
|
9
|
-
export declare enum DaffCartActionTypes {
|
|
10
|
-
CartStorageFailureAction = "[@daffodil/cart] Cart Storage Failure Action",
|
|
11
|
-
CartLoadAction = "[@daffodil/cart] Cart Load Action",
|
|
12
|
-
CartLoadSuccessAction = "[@daffodil/cart] Cart Load Success Action",
|
|
13
|
-
CartLoadPartialSuccessAction = "[@daffodil/cart] Cart Load Partial Success Action",
|
|
14
|
-
CartLoadFailureAction = "[@daffodil/cart] Cart Load Failure Action",
|
|
15
|
-
CartCreateAction = "[@daffodil/cart] Cart Create Action",
|
|
16
|
-
CartCreateSuccessAction = "[@daffodil/cart] Cart Create Success Action",
|
|
17
|
-
CartCreateFailureAction = "[@daffodil/cart] Cart Create Failure Action",
|
|
18
|
-
AddToCartAction = "[@daffodil/cart] Cart Add To Cart Action",
|
|
19
|
-
AddToCartSuccessAction = "[@daffodil/cart] Cart Add to Cart Success Action",
|
|
20
|
-
AddToCartFailureAction = "[@daffodil/cart] Cart Add to Cart Failure Action",
|
|
21
|
-
CartClearAction = "[@daffodil/cart] Cart Reset Action",
|
|
22
|
-
CartClearSuccessAction = "[@daffodil/cart] Cart Reset Success Action",
|
|
23
|
-
CartClearFailureAction = "[@daffodil/cart] Cart Reset Failure Action",
|
|
24
|
-
ResolveCartAction = "[@daffodil/cart] Resolve Cart Action",
|
|
25
|
-
ResolveCartSuccessAction = "[@daffodil/cart] Resolve Cart Success Action",
|
|
26
|
-
ResolveCartPartialSuccessAction = "[@daffodil/cart] Resolve Cart Partial Success Action",
|
|
27
|
-
ResolveCartServerSideAction = "[@daffodil/cart] Resolve Cart Server Side Action",
|
|
28
|
-
ResolveCartFailureAction = "[@daffodil/cart] Resolve Cart Failure Action"
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Indicates that an error occured while either reading or writing the cart ID to or from storage.
|
|
32
|
-
*/
|
|
33
|
-
export declare class DaffCartStorageFailure implements DaffFailureAction {
|
|
34
|
-
payload: DaffStateError[];
|
|
35
|
-
readonly type = DaffCartActionTypes.CartStorageFailureAction;
|
|
36
|
-
constructor(payload: DaffStateError[]);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Triggers the load of the cart.
|
|
40
|
-
*/
|
|
41
|
-
export declare class DaffCartLoad implements Action {
|
|
42
|
-
readonly type = DaffCartActionTypes.CartLoadAction;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Indicates the successful load of the cart.
|
|
46
|
-
*/
|
|
47
|
-
export declare class DaffCartLoadSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
48
|
-
payload: T;
|
|
49
|
-
readonly type = DaffCartActionTypes.CartLoadSuccessAction;
|
|
50
|
-
constructor(payload: T);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* An action that indicates a user's cart is loaded but recoverable errors occurred.
|
|
54
|
-
* There should be enough data to render the cart
|
|
55
|
-
* but the user should probably be shown error messages as well.
|
|
56
|
-
* A common example is some cart items being out of stock.
|
|
57
|
-
*/
|
|
58
|
-
export declare class DaffCartLoadPartialSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
59
|
-
payload: T;
|
|
60
|
-
errors: DaffStateError[];
|
|
61
|
-
readonly type = DaffCartActionTypes.CartLoadPartialSuccessAction;
|
|
62
|
-
constructor(payload: T, errors: DaffStateError[]);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Indicates the failed load of the cart.
|
|
66
|
-
*/
|
|
67
|
-
export declare class DaffCartLoadFailure implements DaffFailureAction {
|
|
68
|
-
payload: DaffStateError[];
|
|
69
|
-
readonly type = DaffCartActionTypes.CartLoadFailureAction;
|
|
70
|
-
constructor(payload: DaffStateError[]);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Triggers the creation of a new cart.
|
|
74
|
-
*/
|
|
75
|
-
export declare class DaffCartCreate implements Action {
|
|
76
|
-
readonly type = DaffCartActionTypes.CartCreateAction;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Indicates the successful creation of a new cart.
|
|
80
|
-
*/
|
|
81
|
-
export declare class DaffCartCreateSuccess<T extends DaffCart = DaffCart> implements Action {
|
|
82
|
-
payload: Pick<T, 'id'>;
|
|
83
|
-
readonly type = DaffCartActionTypes.CartCreateSuccessAction;
|
|
84
|
-
constructor(payload: Pick<T, 'id'>);
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Indicates the failed creation of a new cart.
|
|
88
|
-
*/
|
|
89
|
-
export declare class DaffCartCreateFailure implements DaffFailureAction {
|
|
90
|
-
payload: DaffStateError[];
|
|
91
|
-
readonly type = DaffCartActionTypes.CartCreateFailureAction;
|
|
92
|
-
constructor(payload: DaffStateError[]);
|
|
93
|
-
}
|
|
94
|
-
export declare class DaffAddToCart implements Action {
|
|
95
|
-
payload: {
|
|
96
|
-
productId: DaffProduct['id'];
|
|
97
|
-
qty: number;
|
|
98
|
-
};
|
|
99
|
-
readonly type = DaffCartActionTypes.AddToCartAction;
|
|
100
|
-
constructor(payload: {
|
|
101
|
-
productId: DaffProduct['id'];
|
|
102
|
-
qty: number;
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
export declare class DaffAddToCartSuccess implements Action {
|
|
106
|
-
payload: DaffCart;
|
|
107
|
-
readonly type = DaffCartActionTypes.AddToCartSuccessAction;
|
|
108
|
-
constructor(payload: DaffCart);
|
|
109
|
-
}
|
|
110
|
-
export declare class DaffAddToCartFailure implements DaffFailureAction {
|
|
111
|
-
payload: DaffStateError[];
|
|
112
|
-
readonly type = DaffCartActionTypes.AddToCartFailureAction;
|
|
113
|
-
constructor(payload: DaffStateError[]);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Triggers the removal of all items from the cart.
|
|
117
|
-
*/
|
|
118
|
-
export declare class DaffCartClear implements Action {
|
|
119
|
-
readonly type = DaffCartActionTypes.CartClearAction;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Indicates the successful removal of all items from the cart.
|
|
123
|
-
*/
|
|
124
|
-
export declare class DaffCartClearSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
125
|
-
payload: Partial<T>;
|
|
126
|
-
readonly type = DaffCartActionTypes.CartClearSuccessAction;
|
|
127
|
-
constructor(payload: Partial<T>);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Indicates the failed removal of all items from the cart.
|
|
131
|
-
*/
|
|
132
|
-
export declare class DaffCartClearFailure implements DaffFailureAction {
|
|
133
|
-
payload: DaffStateError[];
|
|
134
|
-
readonly type = DaffCartActionTypes.CartClearFailureAction;
|
|
135
|
-
constructor(payload: DaffStateError[]);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Triggers cart resolution.
|
|
139
|
-
* Will attempt to load a cart if it exists and create a cart otherwise.
|
|
140
|
-
*/
|
|
141
|
-
export declare class DaffResolveCart implements Action {
|
|
142
|
-
readonly type = DaffCartActionTypes.ResolveCartAction;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* An action that indicates a user's cart is resolved successfully.
|
|
146
|
-
*/
|
|
147
|
-
export declare class DaffResolveCartSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
148
|
-
payload: T;
|
|
149
|
-
readonly type = DaffCartActionTypes.ResolveCartSuccessAction;
|
|
150
|
-
constructor(payload: T);
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* An action that indicates a user's cart is resolved but recoverable errors occurred.
|
|
154
|
-
* There should be enough data to render the cart
|
|
155
|
-
* but the user should probably be shown error messages as well.
|
|
156
|
-
* A common example is some cart items being out of stock.
|
|
157
|
-
*/
|
|
158
|
-
export declare class DaffResolveCartPartialSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
159
|
-
payload: T;
|
|
160
|
-
errors: DaffStateError[];
|
|
161
|
-
readonly type = DaffCartActionTypes.ResolveCartPartialSuccessAction;
|
|
162
|
-
constructor(payload: T, errors: DaffStateError[]);
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* An action that indicates that a cart failed to resolve.
|
|
166
|
-
*/
|
|
167
|
-
export declare class DaffResolveCartFailure implements DaffFailureAction {
|
|
168
|
-
payload: DaffStateError[];
|
|
169
|
-
readonly type = DaffCartActionTypes.ResolveCartFailureAction;
|
|
170
|
-
constructor(payload: DaffStateError[]);
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* An action indicating that the cart resolution terminated as a result
|
|
174
|
-
* of an attempted resolution on the server.
|
|
175
|
-
*/
|
|
176
|
-
export declare class DaffResolveCartServerSide implements Action {
|
|
177
|
-
payload: DaffStateError[];
|
|
178
|
-
readonly type = DaffCartActionTypes.ResolveCartServerSideAction;
|
|
179
|
-
constructor(payload: DaffStateError[]);
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* A union of all the cart action classes.
|
|
183
|
-
*/
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './cart.actions';
|
|
2
|
-
export * from './cart-item.actions';
|
|
3
|
-
export * from './cart-billing-address.actions';
|
|
4
|
-
export * from './cart-shipping-address.actions';
|
|
5
|
-
export * from './cart-address.actions';
|
|
6
|
-
export * from './cart-shipping-information.actions';
|
|
7
|
-
export * from './cart-shipping-methods.actions';
|
|
8
|
-
export * from './cart-payment.actions';
|
|
9
|
-
export * from './cart-payment-methods.actions';
|
|
10
|
-
export * from './cart-order.actions';
|
|
11
|
-
export * from './cart-coupon.actions';
|
|
12
|
-
export * from './cart-retrieval';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCart } from '@daffodil/cart';
|
|
3
|
-
import { DaffCartRetrievalActionInjection } from './type';
|
|
4
|
-
/**
|
|
5
|
-
* Gets the cart from the passed action if it is a recognized retrieval action and applies the transformation if needed.
|
|
6
|
-
* If the action is not recognized as a retrieval action, returns `null`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function daffCartRetrievalGetResponse<T extends DaffCart = DaffCart>(action: Action, retrievalActions: DaffCartRetrievalActionInjection[]): Partial<T> | null;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { DaffCartRetrievalActionInjection } from './type';
|
|
2
|
-
export declare const DAFF_CART_RETRIEVAL_ACTIONS: import("@angular/core").InjectionToken<DaffCartRetrievalActionInjection[]>, daffCartProvideRetrievalActions: <R extends DaffCartRetrievalActionInjection = DaffCartRetrievalActionInjection>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCart } from '@daffodil/cart';
|
|
3
|
-
/**
|
|
4
|
-
* Represents an action that loads a portion of the cart.
|
|
5
|
-
*/
|
|
6
|
-
export interface DaffCartRetrievalAction<T extends DaffCart = DaffCart> extends Action {
|
|
7
|
-
readonly payload: Partial<T>;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Represents an injection of a retrieval action that implements the {@link DaffCartRetrievalAction} interface
|
|
11
|
-
* and therefore does not need transformation.
|
|
12
|
-
* If the injected action needs transformation, use {@link DaffCartRetrievalActionTransformedInjection}
|
|
13
|
-
*/
|
|
14
|
-
export interface DaffCartRetrievalActionDirectInjection<T extends DaffCartRetrievalAction = DaffCartRetrievalAction> {
|
|
15
|
-
/**
|
|
16
|
-
* The action type.
|
|
17
|
-
*/
|
|
18
|
-
type: T['type'];
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Represents an injection of a retrieval action that doesn't implement the {@link DaffCartRetrievalAction} interface.
|
|
22
|
-
* Contains a way to get the cart from the action.
|
|
23
|
-
*/
|
|
24
|
-
export interface DaffCartRetrievalActionTransformedInjection<T extends Action = Action> {
|
|
25
|
-
/**
|
|
26
|
-
* The action type.
|
|
27
|
-
*/
|
|
28
|
-
type: T['type'];
|
|
29
|
-
/**
|
|
30
|
-
* A function that gets the retrieved cart from the action.
|
|
31
|
-
*/
|
|
32
|
-
transform: <TCart extends DaffCart = DaffCart>(action: T) => Partial<TCart>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Represents an injection of a cart retrieval action.
|
|
36
|
-
* These actions are typically dispatched when an operation that mutates or loads the cart completes.
|
|
37
|
-
* Actions provided to {@link DAFF_CART_RETRIEVAL_ACTIONS} are natively understood by Daffodil reducers and will automatically
|
|
38
|
-
* populate the appropriate pieces of state when they are dispatched.
|
|
39
|
-
*/
|
|
40
|
-
export type DaffCartRetrievalActionInjection = DaffCartRetrievalActionDirectInjection | DaffCartRetrievalActionTransformedInjection;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@ngrx/store";
|
|
3
|
-
import * as i2 from "@ngrx/effects";
|
|
4
|
-
export declare class DaffCartStateModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartStateModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCartStateModule, never, [typeof i1.StoreFeatureModule, typeof i2.EffectsFeatureModule], never>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCartStateModule>;
|
|
8
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Actions } from '@ngrx/effects';
|
|
2
|
-
import { DaffCart, DaffCartStorageService } from '@daffodil/cart';
|
|
3
|
-
import { DaffCartAddressServiceInterface } from '@daffodil/cart/driver';
|
|
4
|
-
import { ErrorTransformer } from '@daffodil/core/state';
|
|
5
|
-
import { DaffCartAddressUpdateFailure, DaffCartStorageFailure, DaffCartAddressActions } from '../actions/public_api';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DaffCartAddressEffects<T extends DaffCart = DaffCart> {
|
|
8
|
-
private actions$;
|
|
9
|
-
private errorMatcher;
|
|
10
|
-
private driver;
|
|
11
|
-
private storage;
|
|
12
|
-
constructor(actions$: Actions<DaffCartAddressActions>, errorMatcher: ErrorTransformer, driver: DaffCartAddressServiceInterface<T>, storage: DaffCartStorageService);
|
|
13
|
-
update$: import("rxjs").Observable<DaffCartStorageFailure | DaffCartAddressUpdateFailure> & import("@ngrx/effects").CreateEffectMetadata;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartAddressEffects<any>, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartAddressEffects<any>>;
|
|
16
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Actions } from '@ngrx/effects';
|
|
2
|
-
import { DaffCart, DaffCartStorageService } from '@daffodil/cart';
|
|
3
|
-
import { DaffCartBillingAddressServiceInterface } from '@daffodil/cart/driver';
|
|
4
|
-
import { ErrorTransformer } from '@daffodil/core/state';
|
|
5
|
-
import { DaffCartBillingAddressLoadFailure, DaffCartBillingAddressUpdateFailure, DaffCartBillingAddressActions } from '../actions/public_api';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DaffCartBillingAddressEffects<T extends DaffCart = DaffCart> {
|
|
8
|
-
private actions$;
|
|
9
|
-
private errorMatcher;
|
|
10
|
-
private driver;
|
|
11
|
-
private storage;
|
|
12
|
-
constructor(actions$: Actions<DaffCartBillingAddressActions<T>>, errorMatcher: ErrorTransformer, driver: DaffCartBillingAddressServiceInterface<T>, storage: DaffCartStorageService);
|
|
13
|
-
get$: import("rxjs").Observable<DaffCartBillingAddressLoadFailure> & import("@ngrx/effects").CreateEffectMetadata;
|
|
14
|
-
update$: import("rxjs").Observable<DaffCartBillingAddressUpdateFailure> & import("@ngrx/effects").CreateEffectMetadata;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartBillingAddressEffects<any>, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartBillingAddressEffects<any>>;
|
|
17
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Actions } from '@ngrx/effects';
|
|
2
|
-
import { DaffCart, DaffCartStorageService } from '@daffodil/cart';
|
|
3
|
-
import { DaffCartCouponServiceInterface } from '@daffodil/cart/driver';
|
|
4
|
-
import { ErrorTransformer } from '@daffodil/core/state';
|
|
5
|
-
import { DaffCartCouponListFailure, DaffCartCouponRemoveFailure, DaffCartCouponRemoveAllFailure, DaffCartCouponApplyFailure, DaffCartStorageFailure, DaffCartCouponActions } from '../actions/public_api';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DaffCartCouponEffects<T extends DaffCart = DaffCart> {
|
|
8
|
-
private actions$;
|
|
9
|
-
private errorMatcher;
|
|
10
|
-
private driver;
|
|
11
|
-
private storage;
|
|
12
|
-
constructor(actions$: Actions<DaffCartCouponActions>, errorMatcher: ErrorTransformer, driver: DaffCartCouponServiceInterface<T>, storage: DaffCartStorageService);
|
|
13
|
-
apply$: import("rxjs").Observable<DaffCartStorageFailure | DaffCartCouponApplyFailure> & import("@ngrx/effects").CreateEffectMetadata;
|
|
14
|
-
list$: import("rxjs").Observable<DaffCartStorageFailure | DaffCartCouponListFailure> & import("@ngrx/effects").CreateEffectMetadata;
|
|
15
|
-
remove$: import("rxjs").Observable<DaffCartStorageFailure | DaffCartCouponRemoveFailure> & import("@ngrx/effects").CreateEffectMetadata;
|
|
16
|
-
removeAll$: import("rxjs").Observable<DaffCartStorageFailure | DaffCartCouponRemoveAllFailure> & import("@ngrx/effects").CreateEffectMetadata;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartCouponEffects<any>, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartCouponEffects<any>>;
|
|
19
|
-
}
|