@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,19 +0,0 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DaffCartFacade } from '@daffodil/cart/state';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* A routing guard that will redirect to a given url if the shipping address on the cart is not defined.
|
|
7
|
-
* The url is `/` by default, but can be overridden with the DaffCartShippingAddressGuardRedirectUrl injection token.
|
|
8
|
-
* The guard will not wait until the cart has been resolved before performing the check and emitting.
|
|
9
|
-
* Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
|
|
10
|
-
*/
|
|
11
|
-
export declare class DaffShippingAddressGuard {
|
|
12
|
-
private facade;
|
|
13
|
-
private router;
|
|
14
|
-
private redirectUrl;
|
|
15
|
-
constructor(facade: DaffCartFacade, router: Router, redirectUrl: string);
|
|
16
|
-
canActivate(): Observable<boolean>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffShippingAddressGuard, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffShippingAddressGuard>;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DaffCartShippingMethodGuardRedirectUrl: import("@angular/core").InjectionToken<string>, provideDaffCartShippingMethodGuardRedirectUrl: <R extends string = string>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DaffCartFacade } from '@daffodil/cart/state';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* A routing guard that will redirect to a given url if the shipping method on the cart is not defined.
|
|
7
|
-
* The url is `/` by default, but can be overridden with the DaffCartShippingMethodGuardRedirectUrl injection token.
|
|
8
|
-
* The guard will not wait until the cart has been resolved before performing the check and emitting.
|
|
9
|
-
* Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
|
|
10
|
-
*/
|
|
11
|
-
export declare class DaffShippingMethodGuard {
|
|
12
|
-
private facade;
|
|
13
|
-
private router;
|
|
14
|
-
private redirectUrl;
|
|
15
|
-
constructor(facade: DaffCartFacade, router: Router, redirectUrl: string);
|
|
16
|
-
canActivate(): Observable<boolean>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffShippingMethodGuard, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffShippingMethodGuard>;
|
|
19
|
-
}
|
package/routing/public_api.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { Store, ActionsSubject } from '@ngrx/store';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { DaffCart } from '@daffodil/cart';
|
|
5
|
-
import { DaffCartStateRootSlice } from '@daffodil/cart/state';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Resolves the cart before navigation. Redirects to a given url when a failure occurs during Cart Load.
|
|
9
|
-
* This url is `/` by default but can be overridden with the DaffCartResolverRedirectUrl injection token.
|
|
10
|
-
*/
|
|
11
|
-
export declare class DaffCartResolver {
|
|
12
|
-
private store;
|
|
13
|
-
private dispatcher;
|
|
14
|
-
private router;
|
|
15
|
-
private redirectUrl;
|
|
16
|
-
constructor(store: Store<DaffCartStateRootSlice>, dispatcher: ActionsSubject, router: Router, redirectUrl: string);
|
|
17
|
-
resolve(): Observable<DaffCart>;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartResolver, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartResolver>;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DaffCart } from '@daffodil/cart';
|
|
4
|
-
import { DaffCartResolver } from './cart-resolver.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Resolves the cart before navigation. Redirects to a given url when a failure occurs during Cart Load.
|
|
8
|
-
* This url is `/` by default but can be overridden with the DaffCartResolverRedirectUrl injection token.
|
|
9
|
-
* This resolver also redirects to a different url when the cart is empty after successfully loading.
|
|
10
|
-
* This url is also `/` by default, but can be overridden with the DaffEmptyCartResolverRedirectUrl
|
|
11
|
-
*/
|
|
12
|
-
export declare class DaffEmptyCartResolver {
|
|
13
|
-
private cartResolver;
|
|
14
|
-
private router;
|
|
15
|
-
private redirectUrl;
|
|
16
|
-
constructor(cartResolver: DaffCartResolver, router: Router, redirectUrl: string);
|
|
17
|
-
resolve(): Observable<DaffCart>;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffEmptyCartResolver, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffEmptyCartResolver>;
|
|
20
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { DaffCartResolver } from './cart-resolver.service';
|
|
2
|
-
export { DaffEmptyCartResolver } from './empty-cart-resolver.service';
|
|
3
|
-
export { DaffCartResolverRedirectUrl } from './tokens/cart-resolver-redirect.token';
|
|
4
|
-
export { DaffEmptyCartResolverRedirectUrl } from './tokens/empty-cart-resolver-redirect.token';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DaffCartResolverRedirectUrl: import("@angular/core").InjectionToken<string>, provideDaffCartResolverRedirectUrl: <R extends string = string>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DaffEmptyCartResolverRedirectUrl: import("@angular/core").InjectionToken<string>, provideDaffEmptyCartResolverRedirectUrl: <R extends string = string>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCartAddress, 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 address action types.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum DaffCartAddressActionTypes {
|
|
9
|
-
CartAddressUpdateAction = "[@daffodil/cart] Cart Address Update Action",
|
|
10
|
-
CartAddressUpdateSuccessAction = "[@daffodil/cart] Cart Address Update Success Action",
|
|
11
|
-
CartAddressUpdateFailureAction = "[@daffodil/cart] Cart Address Update Failure Action"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Triggers the update of both the shipping and billing address of the cart.
|
|
15
|
-
*/
|
|
16
|
-
export declare class DaffCartAddressUpdate<T extends DaffCartAddress = DaffCartAddress> implements Action {
|
|
17
|
-
payload: Partial<T>;
|
|
18
|
-
readonly type = DaffCartAddressActionTypes.CartAddressUpdateAction;
|
|
19
|
-
constructor(payload: Partial<T>);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Indicates the successful update of both the shipping and billing address of the cart.
|
|
23
|
-
*/
|
|
24
|
-
export declare class DaffCartAddressUpdateSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
25
|
-
payload: Partial<T>;
|
|
26
|
-
readonly type = DaffCartAddressActionTypes.CartAddressUpdateSuccessAction;
|
|
27
|
-
constructor(payload: Partial<T>);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Indicates the failed update of either the shipping or billing address of the cart.
|
|
31
|
-
*/
|
|
32
|
-
export declare class DaffCartAddressUpdateFailure implements DaffFailureAction {
|
|
33
|
-
payload: DaffStateError[];
|
|
34
|
-
readonly type = DaffCartAddressActionTypes.CartAddressUpdateFailureAction;
|
|
35
|
-
constructor(payload: DaffStateError[]);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* A union of all the cart address action classes.
|
|
39
|
-
*/
|
|
40
|
-
export type DaffCartAddressActions<T extends DaffCart = DaffCart> = DaffCartAddressUpdate<T['shipping_address'] | T['billing_address']> | DaffCartAddressUpdateSuccess<T> | DaffCartAddressUpdateFailure;
|
|
@@ -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 billing address action types.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum DaffCartBillingAddressActionTypes {
|
|
9
|
-
CartBillingAddressLoadAction = "[@daffodil/cart] Billing Address Load Action",
|
|
10
|
-
CartBillingAddressLoadSuccessAction = "[@daffodil/cart] Billing Address Load Success Action",
|
|
11
|
-
CartBillingAddressLoadFailureAction = "[@daffodil/cart] Billing Address Load Failure Action",
|
|
12
|
-
CartBillingAddressUpdateAction = "[@daffodil/cart] Billing Address Update Action",
|
|
13
|
-
CartBillingAddressUpdateSuccessAction = "[@daffodil/cart] Billing Address Update Success Action",
|
|
14
|
-
CartBillingAddressUpdateFailureAction = "[@daffodil/cart] Billing Address Update Failure Action"
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Triggers the load of the cart's billing address.
|
|
18
|
-
*/
|
|
19
|
-
export declare class DaffCartBillingAddressLoad implements Action {
|
|
20
|
-
readonly type = DaffCartBillingAddressActionTypes.CartBillingAddressLoadAction;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Indicates the successful load of the cart's billing address.
|
|
24
|
-
*/
|
|
25
|
-
export declare class DaffCartBillingAddressLoadSuccess<T extends DaffCart = DaffCart> implements Action {
|
|
26
|
-
payload: T['billing_address'];
|
|
27
|
-
readonly type = DaffCartBillingAddressActionTypes.CartBillingAddressLoadSuccessAction;
|
|
28
|
-
constructor(payload: T['billing_address']);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Indicates the failed load of the cart's billing address.
|
|
32
|
-
*/
|
|
33
|
-
export declare class DaffCartBillingAddressLoadFailure implements DaffFailureAction {
|
|
34
|
-
payload: DaffStateError[];
|
|
35
|
-
readonly type = DaffCartBillingAddressActionTypes.CartBillingAddressLoadFailureAction;
|
|
36
|
-
constructor(payload: DaffStateError[]);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Triggers the update of the cart's billing address.
|
|
40
|
-
*/
|
|
41
|
-
export declare class DaffCartBillingAddressUpdate<T extends DaffCart = DaffCart> implements Action {
|
|
42
|
-
payload: Partial<T['billing_address']>;
|
|
43
|
-
readonly type = DaffCartBillingAddressActionTypes.CartBillingAddressUpdateAction;
|
|
44
|
-
constructor(payload: Partial<T['billing_address']>);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Indicates the successful update of the cart's billing address.
|
|
48
|
-
*/
|
|
49
|
-
export declare class DaffCartBillingAddressUpdateSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
50
|
-
payload: Partial<T>;
|
|
51
|
-
readonly type = DaffCartBillingAddressActionTypes.CartBillingAddressUpdateSuccessAction;
|
|
52
|
-
constructor(payload: Partial<T>);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Indicates the failed update of the cart's billing address.
|
|
56
|
-
*/
|
|
57
|
-
export declare class DaffCartBillingAddressUpdateFailure implements DaffFailureAction {
|
|
58
|
-
payload: DaffStateError[];
|
|
59
|
-
readonly type = DaffCartBillingAddressActionTypes.CartBillingAddressUpdateFailureAction;
|
|
60
|
-
constructor(payload: DaffStateError[]);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* A union of all the cart billing address action classes.
|
|
64
|
-
*/
|
|
65
|
-
export type DaffCartBillingAddressActions<T extends DaffCart = DaffCart> = DaffCartBillingAddressLoad | DaffCartBillingAddressLoadSuccess<T> | DaffCartBillingAddressLoadFailure | DaffCartBillingAddressUpdate<T> | DaffCartBillingAddressUpdateSuccess<T> | DaffCartBillingAddressUpdateFailure;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCartCoupon, 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 coupon action types.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum DaffCartCouponActionTypes {
|
|
9
|
-
CartCouponApplyAction = "[@daffodil/cart] Cart Coupon Apply Action",
|
|
10
|
-
CartCouponApplySuccessAction = "[@daffodil/cart] Cart Coupon Apply Success Action",
|
|
11
|
-
CartCouponApplyFailureAction = "[@daffodil/cart] Cart Coupon Apply Failure Action",
|
|
12
|
-
CartCouponListAction = "[@daffodil/cart] Cart Coupon List Action",
|
|
13
|
-
CartCouponListSuccessAction = "[@daffodil/cart] Cart Coupon List Success Action",
|
|
14
|
-
CartCouponListFailureAction = "[@daffodil/cart] Cart Coupon List Failure Action",
|
|
15
|
-
CartCouponRemoveAction = "[@daffodil/cart] Cart Coupon Remove Action",
|
|
16
|
-
CartCouponRemoveSuccessAction = "[@daffodil/cart] Cart Coupon Remove Success Action",
|
|
17
|
-
CartCouponRemoveFailureAction = "[@daffodil/cart] Cart Coupon Remove Failure Action",
|
|
18
|
-
CartCouponRemoveAllAction = "[@daffodil/cart] Cart Coupon Remove All Action",
|
|
19
|
-
CartCouponRemoveAllSuccessAction = "[@daffodil/cart] Cart Coupon Remove All Success Action",
|
|
20
|
-
CartCouponRemoveAllFailureAction = "[@daffodil/cart] Cart Coupon Remove All Failure Action",
|
|
21
|
-
CartCouponClearErrorsAction = "[@daffodil/cart] Cart Coupon Clear Errors Action"
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Triggers the application of a cart coupon.
|
|
25
|
-
*/
|
|
26
|
-
export declare class DaffCartCouponApply<T extends DaffCartCoupon = DaffCartCoupon> implements Action {
|
|
27
|
-
payload: T;
|
|
28
|
-
readonly type = DaffCartCouponActionTypes.CartCouponApplyAction;
|
|
29
|
-
constructor(payload: T);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Indicates the successful application of a cart coupon.
|
|
33
|
-
*/
|
|
34
|
-
export declare class DaffCartCouponApplySuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
35
|
-
payload: Partial<T>;
|
|
36
|
-
readonly type = DaffCartCouponActionTypes.CartCouponApplySuccessAction;
|
|
37
|
-
constructor(payload: Partial<T>);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Indicates the failed application of a cart coupon.
|
|
41
|
-
*/
|
|
42
|
-
export declare class DaffCartCouponApplyFailure implements DaffFailureAction {
|
|
43
|
-
payload: DaffStateError[];
|
|
44
|
-
readonly type = DaffCartCouponActionTypes.CartCouponApplyFailureAction;
|
|
45
|
-
constructor(payload: DaffStateError[]);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Triggers the load of the cart's coupons.
|
|
49
|
-
*/
|
|
50
|
-
export declare class DaffCartCouponList implements Action {
|
|
51
|
-
readonly type = DaffCartCouponActionTypes.CartCouponListAction;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Indicates the successful load of the cart's coupons.
|
|
55
|
-
*/
|
|
56
|
-
export declare class DaffCartCouponListSuccess<T extends DaffCartCoupon = DaffCartCoupon> implements Action {
|
|
57
|
-
payload: T[];
|
|
58
|
-
readonly type = DaffCartCouponActionTypes.CartCouponListSuccessAction;
|
|
59
|
-
constructor(payload: T[]);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Indicates the failed load of the cart's coupons.
|
|
63
|
-
*/
|
|
64
|
-
export declare class DaffCartCouponListFailure implements DaffFailureAction {
|
|
65
|
-
payload: DaffStateError[];
|
|
66
|
-
readonly type = DaffCartCouponActionTypes.CartCouponListFailureAction;
|
|
67
|
-
constructor(payload: DaffStateError[]);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Triggers the removal of a cart coupon.
|
|
71
|
-
*/
|
|
72
|
-
export declare class DaffCartCouponRemove<T extends DaffCartCoupon = DaffCartCoupon> implements Action {
|
|
73
|
-
payload: T;
|
|
74
|
-
readonly type = DaffCartCouponActionTypes.CartCouponRemoveAction;
|
|
75
|
-
constructor(payload: T);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Indicates the successful removal of a cart coupon.
|
|
79
|
-
*/
|
|
80
|
-
export declare class DaffCartCouponRemoveSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
81
|
-
payload: Partial<T>;
|
|
82
|
-
readonly type = DaffCartCouponActionTypes.CartCouponRemoveSuccessAction;
|
|
83
|
-
constructor(payload: Partial<T>);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Indicates the failed removal of a cart coupon.
|
|
87
|
-
*/
|
|
88
|
-
export declare class DaffCartCouponRemoveFailure implements DaffFailureAction {
|
|
89
|
-
payload: DaffStateError[];
|
|
90
|
-
readonly type = DaffCartCouponActionTypes.CartCouponRemoveFailureAction;
|
|
91
|
-
constructor(payload: DaffStateError[]);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Triggers the removal of all of the cart's coupons.
|
|
95
|
-
*/
|
|
96
|
-
export declare class DaffCartCouponRemoveAll implements Action {
|
|
97
|
-
readonly type = DaffCartCouponActionTypes.CartCouponRemoveAllAction;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Indicates the successful removal of all of the cart's coupons.
|
|
101
|
-
*/
|
|
102
|
-
export declare class DaffCartCouponRemoveAllSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
103
|
-
payload: Partial<T>;
|
|
104
|
-
readonly type = DaffCartCouponActionTypes.CartCouponRemoveAllSuccessAction;
|
|
105
|
-
constructor(payload: Partial<T>);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Indicates the failed removal of all of the cart's coupons.
|
|
109
|
-
*/
|
|
110
|
-
export declare class DaffCartCouponRemoveAllFailure implements DaffFailureAction {
|
|
111
|
-
payload: DaffStateError[];
|
|
112
|
-
readonly type = DaffCartCouponActionTypes.CartCouponRemoveAllFailureAction;
|
|
113
|
-
constructor(payload: DaffStateError[]);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Removes the errors in cart coupon state.
|
|
117
|
-
*/
|
|
118
|
-
export declare class DaffCartCouponClearErrors implements Action {
|
|
119
|
-
readonly type = DaffCartCouponActionTypes.CartCouponClearErrorsAction;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* A union of all the cart coupon action classes.
|
|
123
|
-
*/
|
|
124
|
-
export type DaffCartCouponActions<T extends DaffCart = DaffCart> = DaffCartCouponApply<T['coupons'][number]> | DaffCartCouponApplySuccess<T> | DaffCartCouponApplyFailure | DaffCartCouponList | DaffCartCouponListSuccess<T['coupons'][number]> | DaffCartCouponListFailure | DaffCartCouponRemove<T['coupons'][number]> | DaffCartCouponRemoveSuccess<T> | DaffCartCouponRemoveFailure | DaffCartCouponRemoveAll | DaffCartCouponRemoveAllSuccess<T> | DaffCartCouponRemoveAllFailure | DaffCartCouponClearErrors;
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCart, DaffCartItem, DaffCartItemInput } 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 item action types.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum DaffCartItemActionTypes {
|
|
9
|
-
CartItemListAction = "[@daffodil/cart] Cart Items List Action",
|
|
10
|
-
CartItemListSuccessAction = "[@daffodil/cart] Cart Items List Success Action",
|
|
11
|
-
CartItemListFailureAction = "[@daffodil/cart] Cart Items List Failure Action",
|
|
12
|
-
CartItemLoadAction = "[@daffodil/cart] Cart Item Load Action",
|
|
13
|
-
CartItemLoadSuccessAction = "[@daffodil/cart] Cart Item Load Success Action",
|
|
14
|
-
CartItemLoadFailureAction = "[@daffodil/cart] Cart Item Load Failure Action",
|
|
15
|
-
CartItemUpdateAction = "[@daffodil/cart] Cart Item Update Action",
|
|
16
|
-
CartItemUpdateSuccessAction = "[@daffodil/cart] Cart Item Update Success Action",
|
|
17
|
-
CartItemUpdateFailureAction = "[@daffodil/cart] Cart Item Update Failure Action",
|
|
18
|
-
CartItemAddAction = "[@daffodil/cart] Cart Item Add Action",
|
|
19
|
-
CartItemAddSuccessAction = "[@daffodil/cart] Cart Item Add Success Action",
|
|
20
|
-
CartItemAddFailureAction = "[@daffodil/cart] Cart Item Add Failure Action",
|
|
21
|
-
CartItemDeleteAction = "[@daffodil/cart] Cart Item Remove Action",
|
|
22
|
-
CartItemDeleteSuccessAction = "[@daffodil/cart] Cart Item Remove Success Action",
|
|
23
|
-
CartItemDeleteFailureAction = "[@daffodil/cart] Cart Item Remove Failure Action",
|
|
24
|
-
CartItemDeleteOutOfStockAction = "[@daffodil/cart] Cart Item Delete Out Of Stock Action",
|
|
25
|
-
CartItemDeleteOutOfStockSuccessAction = "[@daffodil/cart] Cart Item Delete Out Of Stock Success Action",
|
|
26
|
-
CartItemDeleteOutOfStockFailureAction = "[@daffodil/cart] Cart Item Delete Out Of Stock Failure Action",
|
|
27
|
-
CartItemStateResetAction = "[@daffodil/cart] Cart Item State Reset Action"
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Triggers the load of the cart's items.
|
|
31
|
-
*/
|
|
32
|
-
export declare class DaffCartItemList implements Action {
|
|
33
|
-
readonly type = DaffCartItemActionTypes.CartItemListAction;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Indicates the successful load of the cart's items.
|
|
37
|
-
*/
|
|
38
|
-
export declare class DaffCartItemListSuccess<T extends DaffCartItem = DaffCartItem> implements Action {
|
|
39
|
-
payload: T[];
|
|
40
|
-
readonly type = DaffCartItemActionTypes.CartItemListSuccessAction;
|
|
41
|
-
constructor(payload: T[]);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Indicates the failed load of the cart's items.
|
|
45
|
-
*/
|
|
46
|
-
export declare class DaffCartItemListFailure implements DaffFailureAction {
|
|
47
|
-
payload: DaffStateError[];
|
|
48
|
-
readonly type = DaffCartItemActionTypes.CartItemListFailureAction;
|
|
49
|
-
constructor(payload: DaffStateError[]);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Triggers the load of a specific cart item.
|
|
53
|
-
*/
|
|
54
|
-
export declare class DaffCartItemLoad<T extends DaffCartItem = DaffCartItem> implements Action {
|
|
55
|
-
itemId: T['id'];
|
|
56
|
-
readonly type = DaffCartItemActionTypes.CartItemLoadAction;
|
|
57
|
-
constructor(itemId: T['id']);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Indicates the successful load of a specific cart item.
|
|
61
|
-
*/
|
|
62
|
-
export declare class DaffCartItemLoadSuccess<T extends DaffCartItem = DaffCartItem> implements Action {
|
|
63
|
-
payload: T;
|
|
64
|
-
readonly type = DaffCartItemActionTypes.CartItemLoadSuccessAction;
|
|
65
|
-
constructor(payload: T);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Indicates the failed load of a specific cart item.
|
|
69
|
-
*/
|
|
70
|
-
export declare class DaffCartItemLoadFailure implements Action {
|
|
71
|
-
payload: DaffStateError[];
|
|
72
|
-
itemId: DaffCartItem['id'];
|
|
73
|
-
readonly type = DaffCartItemActionTypes.CartItemLoadFailureAction;
|
|
74
|
-
constructor(payload: DaffStateError[], itemId: DaffCartItem['id']);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Triggers the update of a specific cart item.
|
|
78
|
-
*/
|
|
79
|
-
export declare class DaffCartItemUpdate<T extends DaffCartItem = DaffCartItem> implements Action {
|
|
80
|
-
itemId: T['id'];
|
|
81
|
-
changes: Partial<T>;
|
|
82
|
-
readonly type = DaffCartItemActionTypes.CartItemUpdateAction;
|
|
83
|
-
constructor(itemId: T['id'], changes: Partial<T>);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Indicates the successful update of a specific cart item.
|
|
87
|
-
*/
|
|
88
|
-
export declare class DaffCartItemUpdateSuccess<T extends DaffCart = DaffCart> implements Action {
|
|
89
|
-
payload: Partial<T>;
|
|
90
|
-
itemId: T['items'][number]['id'];
|
|
91
|
-
readonly type = DaffCartItemActionTypes.CartItemUpdateSuccessAction;
|
|
92
|
-
constructor(payload: Partial<T>, itemId: T['items'][number]['id']);
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Indicates the failed update of a specific cart item.
|
|
96
|
-
*/
|
|
97
|
-
export declare class DaffCartItemUpdateFailure implements Action {
|
|
98
|
-
payload: DaffStateError[];
|
|
99
|
-
itemId: DaffCartItem['id'];
|
|
100
|
-
readonly type = DaffCartItemActionTypes.CartItemUpdateFailureAction;
|
|
101
|
-
constructor(payload: DaffStateError[], itemId: DaffCartItem['id']);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Triggers the addition of a product to the cart.
|
|
105
|
-
*/
|
|
106
|
-
export declare class DaffCartItemAdd<T extends DaffCartItemInput = DaffCartItemInput> implements Action {
|
|
107
|
-
input: T;
|
|
108
|
-
placeholderId?: string;
|
|
109
|
-
readonly type = DaffCartItemActionTypes.CartItemAddAction;
|
|
110
|
-
constructor(input: T, placeholderId?: string);
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Indicates the successful addition of a product to the cart.
|
|
114
|
-
*/
|
|
115
|
-
export declare class DaffCartItemAddSuccess<T extends DaffCart = DaffCart> implements DaffCartRetrievalAction<T> {
|
|
116
|
-
payload: Partial<T>;
|
|
117
|
-
itemId: DaffCartItem['id'];
|
|
118
|
-
readonly type = DaffCartItemActionTypes.CartItemAddSuccessAction;
|
|
119
|
-
constructor(payload: Partial<T>, itemId: DaffCartItem['id']);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Indicates the failed addition of a product to the cart.
|
|
123
|
-
*/
|
|
124
|
-
export declare class DaffCartItemAddFailure implements DaffFailureAction {
|
|
125
|
-
payload: DaffStateError[];
|
|
126
|
-
placeholderId?: string;
|
|
127
|
-
readonly type = DaffCartItemActionTypes.CartItemAddFailureAction;
|
|
128
|
-
constructor(payload: DaffStateError[], placeholderId?: string);
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Triggers the deletion of a specific cart item.
|
|
132
|
-
*/
|
|
133
|
-
export declare class DaffCartItemDelete<T extends DaffCartItem = DaffCartItem> implements Action {
|
|
134
|
-
itemId: T['id'];
|
|
135
|
-
readonly type = DaffCartItemActionTypes.CartItemDeleteAction;
|
|
136
|
-
constructor(itemId: T['id']);
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Indicates the successful deletion of a specific cart item.
|
|
140
|
-
*/
|
|
141
|
-
export declare class DaffCartItemDeleteSuccess<T extends DaffCart = DaffCart> implements Action {
|
|
142
|
-
payload: Partial<T>;
|
|
143
|
-
readonly type = DaffCartItemActionTypes.CartItemDeleteSuccessAction;
|
|
144
|
-
constructor(payload: Partial<T>);
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Indicates the failed deletion of a specific cart item.
|
|
148
|
-
*/
|
|
149
|
-
export declare class DaffCartItemDeleteFailure implements Action {
|
|
150
|
-
payload: DaffStateError[];
|
|
151
|
-
itemId: DaffCartItem['id'];
|
|
152
|
-
readonly type = DaffCartItemActionTypes.CartItemDeleteFailureAction;
|
|
153
|
-
constructor(payload: DaffStateError[], itemId: DaffCartItem['id']);
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Triggers the deletion of all out of stock cart items.
|
|
157
|
-
*/
|
|
158
|
-
export declare class DaffCartItemDeleteOutOfStock implements Action {
|
|
159
|
-
readonly type = DaffCartItemActionTypes.CartItemDeleteOutOfStockAction;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Indicates the successful deletion of all out of stock cart items.
|
|
163
|
-
*/
|
|
164
|
-
export declare class DaffCartItemDeleteOutOfStockSuccess<T extends DaffCart = DaffCart> implements Action {
|
|
165
|
-
payload: Partial<T>;
|
|
166
|
-
readonly type = DaffCartItemActionTypes.CartItemDeleteOutOfStockSuccessAction;
|
|
167
|
-
constructor(payload: Partial<T>);
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Indicates the failed deletion of all out of stock cart items.
|
|
171
|
-
*/
|
|
172
|
-
export declare class DaffCartItemDeleteOutOfStockFailure implements DaffFailureAction {
|
|
173
|
-
payload: DaffStateError[];
|
|
174
|
-
readonly type = DaffCartItemActionTypes.CartItemDeleteOutOfStockFailureAction;
|
|
175
|
-
constructor(payload: DaffStateError[]);
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Resets cart item "new" or "updated" states to default.
|
|
179
|
-
*/
|
|
180
|
-
export declare class DaffCartItemStateReset implements Action {
|
|
181
|
-
itemId: DaffCartItem['id'];
|
|
182
|
-
readonly type = DaffCartItemActionTypes.CartItemStateResetAction;
|
|
183
|
-
constructor(itemId: DaffCartItem['id']);
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* A union of all the cart item action classes.
|
|
187
|
-
*/
|
|
188
|
-
export type DaffCartItemActions<T extends DaffCart = DaffCart, U extends DaffCartItemInput = DaffCartItemInput> = DaffCartItemList | DaffCartItemListSuccess<T['items'][number]> | DaffCartItemListFailure | DaffCartItemLoad<T['items'][number]> | DaffCartItemLoadSuccess<T['items'][number]> | DaffCartItemLoadFailure | DaffCartItemUpdate<T['items'][number]> | DaffCartItemUpdateSuccess<T> | DaffCartItemUpdateFailure | DaffCartItemAdd<U> | DaffCartItemAddSuccess<T> | DaffCartItemAddFailure | DaffCartItemDelete<T['items'][number]> | DaffCartItemDeleteSuccess<T> | DaffCartItemDeleteFailure | DaffCartItemDeleteOutOfStock | DaffCartItemDeleteOutOfStockSuccess<T> | DaffCartItemDeleteOutOfStockFailure | DaffCartItemStateReset;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCartPaymentMethod, DaffCartOrderResult, DaffCart } from '@daffodil/cart';
|
|
3
|
-
import { DaffFailureAction, DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
/**
|
|
5
|
-
* An enum for the cart order action types.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum DaffCartOrderActionTypes {
|
|
8
|
-
CartPlaceOrderAction = "[@daffodil/cart] Cart Place Order Action",
|
|
9
|
-
CartPlaceOrderSuccessAction = "[@daffodil/cart] Cart Place Order Success Action",
|
|
10
|
-
CartPlaceOrderFailureAction = "[@daffodil/cart] Cart Place Order Failure Action"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Triggers the order placement for a cart.
|
|
14
|
-
*/
|
|
15
|
-
export declare class DaffCartPlaceOrder<T extends DaffCartPaymentMethod = DaffCartPaymentMethod> implements Action {
|
|
16
|
-
payload?: T;
|
|
17
|
-
readonly type = DaffCartOrderActionTypes.CartPlaceOrderAction;
|
|
18
|
-
constructor(payload?: T);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Indicates the successful order placement for a cart.
|
|
22
|
-
*/
|
|
23
|
-
export declare class DaffCartPlaceOrderSuccess<T extends DaffCartOrderResult = DaffCartOrderResult> implements Action {
|
|
24
|
-
payload: T;
|
|
25
|
-
readonly type = DaffCartOrderActionTypes.CartPlaceOrderSuccessAction;
|
|
26
|
-
constructor(payload: T);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Indicates the failed order placement for a cart.
|
|
30
|
-
*/
|
|
31
|
-
export declare class DaffCartPlaceOrderFailure implements DaffFailureAction {
|
|
32
|
-
payload: DaffStateError[];
|
|
33
|
-
readonly type = DaffCartOrderActionTypes.CartPlaceOrderFailureAction;
|
|
34
|
-
constructor(payload: DaffStateError[]);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* A union of all the cart order action classes.
|
|
38
|
-
*/
|
|
39
|
-
export type DaffCartOrderActions<T extends DaffCartOrderResult = DaffCartOrderResult, V extends DaffCart = DaffCart> = DaffCartPlaceOrder<V['payment']> | DaffCartPlaceOrderSuccess<T> | DaffCartPlaceOrderFailure;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffCartPaymentMethod } from '@daffodil/cart';
|
|
3
|
-
import { DaffFailureAction, DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
/**
|
|
5
|
-
* An enum for the cart payment methods action types.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum DaffCartPaymentMethodsActionTypes {
|
|
8
|
-
CartPaymentMethodsLoadAction = "[@daffodil/cart] Payment Methods Load Action",
|
|
9
|
-
CartPaymentMethodsLoadSuccessAction = "[@daffodil/cart] Payment Methods Load Success Action",
|
|
10
|
-
CartPaymentMethodsLoadFailureAction = "[@daffodil/cart] Payment Methods Load Failure Action"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Triggers the load of the cart's available payment methods.
|
|
14
|
-
*/
|
|
15
|
-
export declare class DaffCartPaymentMethodsLoad implements Action {
|
|
16
|
-
readonly type = DaffCartPaymentMethodsActionTypes.CartPaymentMethodsLoadAction;
|
|
17
|
-
constructor();
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Indicates the successful load of the cart's available payment methods.
|
|
21
|
-
*/
|
|
22
|
-
export declare class DaffCartPaymentMethodsLoadSuccess<T extends DaffCartPaymentMethod = DaffCartPaymentMethod> implements Action {
|
|
23
|
-
payload: T[];
|
|
24
|
-
readonly type = DaffCartPaymentMethodsActionTypes.CartPaymentMethodsLoadSuccessAction;
|
|
25
|
-
constructor(payload: T[]);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Indicates the failed load of the cart's available payment methods.
|
|
29
|
-
*/
|
|
30
|
-
export declare class DaffCartPaymentMethodsLoadFailure implements DaffFailureAction {
|
|
31
|
-
payload: DaffStateError[];
|
|
32
|
-
readonly type = DaffCartPaymentMethodsActionTypes.CartPaymentMethodsLoadFailureAction;
|
|
33
|
-
constructor(payload: DaffStateError[]);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* A union of all the cart payment methods action classes.
|
|
37
|
-
*/
|
|
38
|
-
export type DaffCartPaymentMethodsActions<T extends DaffCartPaymentMethod = DaffCartPaymentMethod> = DaffCartPaymentMethodsLoad | DaffCartPaymentMethodsLoadSuccess<T> | DaffCartPaymentMethodsLoadFailure;
|