@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,4 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoSetSelectedPaymentMethodWithBillingResponse } from './response.type';
|
|
3
|
-
import { MagentoCartSetSelectedPaymentMethodWithBillingQueryVariables } from './variables.type';
|
|
4
|
-
export declare const setSelectedPaymentMethodWithBilling: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoSetSelectedPaymentMethodWithBillingResponse, MagentoCartSetSelectedPaymentMethodWithBillingQueryVariables>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MagentoGetCartResponse } from '../get-cart/public_api';
|
|
2
|
-
export interface MagentoSetSelectedPaymentMethodWithBillingResponse {
|
|
3
|
-
setBillingAddressOnCart: {
|
|
4
|
-
__typename: string;
|
|
5
|
-
cart: {
|
|
6
|
-
id: MagentoGetCartResponse['cart']['id'];
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
setPaymentMethodOnCart: MagentoGetCartResponse;
|
|
10
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MagentoBillingAddressInput, MagentoPaymentMethodInput } from '../../models/public_api';
|
|
2
|
-
export interface MagentoCartSetSelectedPaymentMethodWithBillingQueryVariables {
|
|
3
|
-
cartId: string;
|
|
4
|
-
payment: MagentoPaymentMethodInput;
|
|
5
|
-
address: MagentoBillingAddressInput;
|
|
6
|
-
}
|
package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/query.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoSetSelectedPaymentMethodWithBillingAndEmailResponse } from './response.type';
|
|
3
|
-
import { MagentoCartSetSelectedPaymentMethodWithBillingAndEmailQueryVariables } from './variables.type';
|
|
4
|
-
export declare const setSelectedPaymentMethodWithBillingAndEmail: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoSetSelectedPaymentMethodWithBillingAndEmailResponse, MagentoCartSetSelectedPaymentMethodWithBillingAndEmailQueryVariables>;
|
package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/response.type.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MagentoGetCartResponse } from '../get-cart/public_api';
|
|
2
|
-
export interface MagentoSetSelectedPaymentMethodWithBillingAndEmailResponse {
|
|
3
|
-
setPaymentMethodOnCart: {
|
|
4
|
-
__typename: string;
|
|
5
|
-
cart: {
|
|
6
|
-
id: MagentoGetCartResponse['cart']['id'];
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
setBillingAddressOnCart: {
|
|
10
|
-
__typename: string;
|
|
11
|
-
cart: {
|
|
12
|
-
id: MagentoGetCartResponse['cart']['id'];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
setGuestEmailOnCart: MagentoGetCartResponse;
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MagentoBillingAddressInput, MagentoPaymentMethodInput } from '../../models/public_api';
|
|
2
|
-
export interface MagentoCartSetSelectedPaymentMethodWithBillingAndEmailQueryVariables {
|
|
3
|
-
cartId: string;
|
|
4
|
-
payment: MagentoPaymentMethodInput;
|
|
5
|
-
address: MagentoBillingAddressInput;
|
|
6
|
-
email: string;
|
|
7
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoSetSelectedShippingMethodResponse } from './response.type';
|
|
3
|
-
import { MagentoCartSetSelectedShippingMethodQueryVariables } from './variables.type';
|
|
4
|
-
export declare const setSelectedShippingMethod: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoSetSelectedShippingMethodResponse, MagentoCartSetSelectedShippingMethodQueryVariables>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoUpdateAddressResponse } from './response.type';
|
|
3
|
-
import { MagentoCartUpdateAddressQueryVariables } from './variables.type';
|
|
4
|
-
/**
|
|
5
|
-
* Update the shipping and billing address of the cart.
|
|
6
|
-
* At the time of writing, Magento 2 processes compound queries in the order they are defined.
|
|
7
|
-
* We rely on this fact and only use the return of the last query.
|
|
8
|
-
* This helps us keep query complexity down and save some server CPU cycles.
|
|
9
|
-
* Driver behavior is not guaranteed if Magento no longer processes compound queries in the order they are defined.
|
|
10
|
-
*/
|
|
11
|
-
export declare const updateAddress: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoUpdateAddressResponse, MagentoCartUpdateAddressQueryVariables>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MagentoGetCartResponse } from '../get-cart/public_api';
|
|
2
|
-
export interface MagentoUpdateAddressResponse {
|
|
3
|
-
setBillingAddressOnCart: {
|
|
4
|
-
__typename?: string;
|
|
5
|
-
cart: {
|
|
6
|
-
__typename?: string;
|
|
7
|
-
id: MagentoGetCartResponse['cart']['id'];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
setShippingAddressesOnCart: MagentoGetCartResponse;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoUpdateAddressWithEmailResponse } from './response.type';
|
|
3
|
-
import { MagentoCartUpdateAddressWithEmailQueryVariables } from './variables.type';
|
|
4
|
-
/**
|
|
5
|
-
* Update the shipping and billing address of the cart.
|
|
6
|
-
* At the time of writing, Magento 2 processes compound queries in the order they are defined.
|
|
7
|
-
* We rely on this fact and only use the return of the last query.
|
|
8
|
-
* This helps us keep query complexity down and save some server CPU cycles.
|
|
9
|
-
* Driver behavior is not guaranteed if Magento no longer processes compound queries in the order they are defined.
|
|
10
|
-
*/
|
|
11
|
-
export declare const updateAddressWithEmail: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoUpdateAddressWithEmailResponse, MagentoCartUpdateAddressWithEmailQueryVariables>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MagentoGetCartResponse } from '../get-cart/public_api';
|
|
2
|
-
export interface MagentoUpdateAddressWithEmailResponse {
|
|
3
|
-
setBillingAddressOnCart: {
|
|
4
|
-
__typename?: string;
|
|
5
|
-
cart: {
|
|
6
|
-
__typename?: string;
|
|
7
|
-
id: MagentoGetCartResponse['cart']['id'];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
setShippingAddressesOnCart: {
|
|
11
|
-
__typename?: string;
|
|
12
|
-
cart: {
|
|
13
|
-
__typename?: string;
|
|
14
|
-
id: MagentoGetCartResponse['cart']['id'];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
setGuestEmailOnCart: MagentoGetCartResponse;
|
|
18
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoUpdateBillingAddressResponse } from './response.type';
|
|
3
|
-
import { MagentoCartUpdateBillingAddressQueryVariables } from './variables.type';
|
|
4
|
-
export declare const updateBillingAddress: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoUpdateBillingAddressResponse, MagentoCartUpdateBillingAddressQueryVariables>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoUpdateBillingAddressWithEmailResponse } from './response.type';
|
|
3
|
-
import { MagentoCartUpdateBillingAddressWithEmailQueryVariables } from './variables.type';
|
|
4
|
-
export declare const updateBillingAddressWithEmail: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoUpdateBillingAddressWithEmailResponse, MagentoCartUpdateBillingAddressWithEmailQueryVariables>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MagentoGetCartResponse } from '../get-cart/public_api';
|
|
2
|
-
export interface MagentoUpdateBillingAddressWithEmailResponse {
|
|
3
|
-
setBillingAddressOnCart: MagentoGetCartResponse;
|
|
4
|
-
setGuestEmailOnCart: {
|
|
5
|
-
__typename?: string;
|
|
6
|
-
cart: {
|
|
7
|
-
__typename?: string;
|
|
8
|
-
email: MagentoGetCartResponse['cart']['email'];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoUpdateCartItemResponse } from './response.type';
|
|
3
|
-
import { MagentoCartUpdateItemQueryVariables } from './variables.type';
|
|
4
|
-
export declare const updateCartItem: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoUpdateCartItemResponse, MagentoCartUpdateItemQueryVariables>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoUpdateShippingAddressResponse } from './response.type';
|
|
3
|
-
import { MagentoCartUpdateShippingAddressQueryVariables } from './variables.type';
|
|
4
|
-
export declare const updateShippingAddress: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoUpdateShippingAddressResponse, MagentoCartUpdateShippingAddressQueryVariables>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DocumentNode } from 'graphql';
|
|
2
|
-
import { MagentoUpdateShippingAddressWithEmailResponse } from './response.type';
|
|
3
|
-
import { MagentoCartUpdateShippingAddressWithEmailQueryVariables } from './variables.type';
|
|
4
|
-
export declare const updateShippingAddressWithEmail: (extraCartFragments?: DocumentNode[]) => import("apollo-angular").TypedDocumentNode<MagentoUpdateShippingAddressWithEmailResponse, MagentoCartUpdateShippingAddressWithEmailQueryVariables>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MagentoGetCartResponse } from '../get-cart/public_api';
|
|
2
|
-
export interface MagentoUpdateShippingAddressWithEmailResponse {
|
|
3
|
-
setShippingAddressesOnCart: MagentoGetCartResponse;
|
|
4
|
-
setGuestEmailOnCart: {
|
|
5
|
-
__typename?: string;
|
|
6
|
-
cart: {
|
|
7
|
-
__typename?: string;
|
|
8
|
-
email: MagentoGetCartResponse['cart']['email'];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MagentoCartAddressInput } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MockMagentoCartAddressInput implements MagentoCartAddressInput {
|
|
5
|
-
region_id: number;
|
|
6
|
-
country_code: string;
|
|
7
|
-
street: string[];
|
|
8
|
-
company: string;
|
|
9
|
-
telephone: string;
|
|
10
|
-
postcode: string;
|
|
11
|
-
city: string;
|
|
12
|
-
firstname: string;
|
|
13
|
-
lastname: string;
|
|
14
|
-
save_in_address_book: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class MagentoCartAddressInputFactory extends DaffModelFactory<MagentoCartAddressInput> {
|
|
17
|
-
constructor();
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartAddressInputFactory, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartAddressInputFactory>;
|
|
20
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { MagentoCartAddress } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MockMagentoCartAddress implements MagentoCartAddress {
|
|
5
|
-
__typename: string;
|
|
6
|
-
customer_address_id: number;
|
|
7
|
-
region: {
|
|
8
|
-
__typename: string;
|
|
9
|
-
region_id: number;
|
|
10
|
-
code: string;
|
|
11
|
-
};
|
|
12
|
-
country: {
|
|
13
|
-
__typename: string;
|
|
14
|
-
code: string;
|
|
15
|
-
label: string;
|
|
16
|
-
};
|
|
17
|
-
street: string[];
|
|
18
|
-
company: string;
|
|
19
|
-
telephone: string;
|
|
20
|
-
postcode: string;
|
|
21
|
-
city: string;
|
|
22
|
-
firstname: string;
|
|
23
|
-
lastname: string;
|
|
24
|
-
email: string;
|
|
25
|
-
}
|
|
26
|
-
export declare class MagentoCartAddressFactory extends DaffModelFactory<MagentoCartAddress> {
|
|
27
|
-
constructor();
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartAddressFactory, never>;
|
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartAddressFactory>;
|
|
30
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MagentoCartCoupon } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MockMagentoCartCoupon implements MagentoCartCoupon {
|
|
5
|
-
code: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class MagentoCartCouponFactory extends DaffModelFactory<MagentoCartCoupon> {
|
|
8
|
-
constructor();
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartCouponFactory, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartCouponFactory>;
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MagentoCartItemTypeEnum, MagentoBundleCartItem } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import { MockMagentoCartItem } from './cart-item.factory';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MockMagentoBundleCartItem extends MockMagentoCartItem implements MagentoBundleCartItem {
|
|
6
|
-
__typename: MagentoCartItemTypeEnum;
|
|
7
|
-
bundle_options: {
|
|
8
|
-
id: number;
|
|
9
|
-
type: string;
|
|
10
|
-
label: string;
|
|
11
|
-
price: number;
|
|
12
|
-
quantity: number;
|
|
13
|
-
values: {
|
|
14
|
-
id: number;
|
|
15
|
-
label: string;
|
|
16
|
-
price: number;
|
|
17
|
-
quantity: number;
|
|
18
|
-
}[];
|
|
19
|
-
}[];
|
|
20
|
-
}
|
|
21
|
-
export declare class MagentoBundleCartItemFactory extends DaffModelFactory<MagentoBundleCartItem> {
|
|
22
|
-
constructor();
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoBundleCartItemFactory, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoBundleCartItemFactory>;
|
|
25
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MagentoCartItem, MagentoCartItemTypeEnum, MagentoCartItemProduct } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import { MagentoMoney, MagentoDiscount } from '@daffodil/driver/magento';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MockMagentoCartItem implements MagentoCartItem {
|
|
6
|
-
__typename: MagentoCartItemTypeEnum;
|
|
7
|
-
id: string;
|
|
8
|
-
prices: {
|
|
9
|
-
__typename: string;
|
|
10
|
-
price: MagentoMoney;
|
|
11
|
-
row_total: MagentoMoney;
|
|
12
|
-
discounts: MagentoDiscount[];
|
|
13
|
-
};
|
|
14
|
-
product: MagentoCartItemProduct;
|
|
15
|
-
quantity: number;
|
|
16
|
-
private createProduct;
|
|
17
|
-
private money;
|
|
18
|
-
private discounts;
|
|
19
|
-
}
|
|
20
|
-
export declare class MagentoCartItemFactory extends DaffModelFactory<MagentoCartItem> {
|
|
21
|
-
constructor();
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartItemFactory, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartItemFactory>;
|
|
24
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MagentoCartItemTypeEnum, MagentoConfigurableCartItem } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import { MockMagentoCartItem } from './cart-item.factory';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MockMagentoConfigurableCartItem extends MockMagentoCartItem implements MagentoConfigurableCartItem {
|
|
6
|
-
__typename: MagentoCartItemTypeEnum;
|
|
7
|
-
configurable_options: {
|
|
8
|
-
option_label: string;
|
|
9
|
-
value_label: string;
|
|
10
|
-
}[];
|
|
11
|
-
}
|
|
12
|
-
export declare class MagentoConfigurableCartItemFactory extends DaffModelFactory<MagentoConfigurableCartItem> {
|
|
13
|
-
constructor();
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoConfigurableCartItemFactory, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoConfigurableCartItemFactory>;
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MagentoCartPaymentMethod } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MockMagentoCartPaymentMethod implements MagentoCartPaymentMethod {
|
|
5
|
-
code: string;
|
|
6
|
-
title: string;
|
|
7
|
-
purchase_order_number: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class MagentoCartPaymentMethodFactory extends DaffModelFactory<MagentoCartPaymentMethod> {
|
|
10
|
-
constructor();
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartPaymentMethodFactory, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartPaymentMethodFactory>;
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MagentoCartShippingMethod } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import { MagentoMoney } from '@daffodil/driver/magento';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MockCartShippingMethod implements MagentoCartShippingMethod {
|
|
6
|
-
carrier_code: string;
|
|
7
|
-
carrier_title: string;
|
|
8
|
-
method_title: string;
|
|
9
|
-
method_code: string;
|
|
10
|
-
amount: MagentoMoney;
|
|
11
|
-
private money;
|
|
12
|
-
}
|
|
13
|
-
export declare class MagentoCartShippingMethodFactory extends DaffModelFactory<MagentoCartShippingMethod> {
|
|
14
|
-
constructor();
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartShippingMethodFactory, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartShippingMethodFactory>;
|
|
17
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { MagentoCart } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import { MagentoMoney } from '@daffodil/driver/magento';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MockMagentoCart implements MagentoCart {
|
|
6
|
-
__typename: string;
|
|
7
|
-
id: string;
|
|
8
|
-
prices: {
|
|
9
|
-
__typename: string;
|
|
10
|
-
subtotal_excluding_tax: MagentoMoney;
|
|
11
|
-
grand_total: MagentoMoney;
|
|
12
|
-
subtotal_including_tax: MagentoMoney;
|
|
13
|
-
subtotal_with_discount_excluding_tax: MagentoMoney;
|
|
14
|
-
applied_taxes: {
|
|
15
|
-
__typename: string;
|
|
16
|
-
amount: MagentoMoney;
|
|
17
|
-
label: string;
|
|
18
|
-
}[];
|
|
19
|
-
discounts: {
|
|
20
|
-
__typename: string;
|
|
21
|
-
amount: MagentoMoney;
|
|
22
|
-
label: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
applied_coupons: any[];
|
|
26
|
-
items: any[];
|
|
27
|
-
billing_address: any;
|
|
28
|
-
shipping_addresses: any[];
|
|
29
|
-
available_payment_methods: any[];
|
|
30
|
-
selected_payment_method: any;
|
|
31
|
-
email: string;
|
|
32
|
-
private money;
|
|
33
|
-
}
|
|
34
|
-
export declare class MagentoCartFactory extends DaffModelFactory<MagentoCart> {
|
|
35
|
-
constructor();
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartFactory, never>;
|
|
37
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartFactory>;
|
|
38
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './cart-address.factory';
|
|
2
|
-
export * from './cart-address-input.factory';
|
|
3
|
-
export * from './cart-coupon.factory';
|
|
4
|
-
export * from './cart-payment-method.factory';
|
|
5
|
-
export * from './cart-shipping-method.factory';
|
|
6
|
-
export * from './cart.factory';
|
|
7
|
-
export * from './cart-item/cart-item.factory';
|
|
8
|
-
export * from './cart-item/bundle-cart-item.factory';
|
|
9
|
-
export * from './cart-item/configurable-cart-item.factory';
|
|
10
|
-
export * from './shipping-address.factory';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MagentoShippingAddress } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import { MockMagentoCartAddress } from './cart-address.factory';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MockMagentoShippingAddress extends MockMagentoCartAddress implements MagentoShippingAddress {
|
|
6
|
-
__typename: string;
|
|
7
|
-
available_shipping_methods: any[];
|
|
8
|
-
selected_shipping_method: any;
|
|
9
|
-
}
|
|
10
|
-
export declare class MagentoShippingAddressFactory extends DaffModelFactory<MagentoShippingAddress> {
|
|
11
|
-
constructor();
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoShippingAddressFactory, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoShippingAddressFactory>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './factories/public_api';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DaffCartAddress } from '@daffodil/cart';
|
|
2
|
-
import { DaffMagentoCartAddressInputTransformer } from './cart-address.service';
|
|
3
|
-
import { MagentoBillingAddressInput } from '../../models/requests/billing-address';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DaffMagentoBillingAddressInputTransformer {
|
|
6
|
-
private cartAddressTransformer;
|
|
7
|
-
constructor(cartAddressTransformer: DaffMagentoCartAddressInputTransformer);
|
|
8
|
-
transform(cartAddress: Partial<DaffCartAddress>): MagentoBillingAddressInput;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoBillingAddressInputTransformer, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoBillingAddressInputTransformer>;
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DaffCartAddress } from '@daffodil/cart';
|
|
2
|
-
import { MagentoCartAddressInput } from '../../models/requests/cart-address';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DaffMagentoCartAddressInputTransformer {
|
|
5
|
-
transform(cartAddress: Partial<DaffCartAddress>): MagentoCartAddressInput;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoCartAddressInputTransformer, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoCartAddressInputTransformer>;
|
|
8
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DaffCartItemInput, DaffCompositeCartItemInput, DaffConfigurableCartItemInput } from '@daffodil/cart';
|
|
2
|
-
import { MagentoCartItemInput } from '../../models/requests/cart-item';
|
|
3
|
-
export declare function transformSimpleCartItem(item: DaffCartItemInput): MagentoCartItemInput;
|
|
4
|
-
export declare function transformCompositeCartItem(item: DaffCompositeCartItemInput): MagentoCartItemInput;
|
|
5
|
-
export declare function transformConfigurableCartItem(item: DaffConfigurableCartItemInput): MagentoCartItemInput;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DaffCartItem } from '@daffodil/cart';
|
|
2
|
-
import { MagentoCartItemUpdateInput } from '../../models/requests/cart-item-update';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DaffMagentoCartItemUpdateInputTransformer {
|
|
5
|
-
transform(item: Partial<DaffCartItem>): MagentoCartItemUpdateInput;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoCartItemUpdateInputTransformer, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoCartItemUpdateInputTransformer>;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DaffCartPaymentMethod } from '@daffodil/cart';
|
|
2
|
-
import { MagentoPaymentMethodInput } from '../../models/requests/payment-method';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DaffMagentoPaymentMethodInputTransformer {
|
|
5
|
-
transform(payment: Partial<DaffCartPaymentMethod>): MagentoPaymentMethodInput;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoPaymentMethodInputTransformer, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoPaymentMethodInputTransformer>;
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DaffCartAddress } from '@daffodil/cart';
|
|
2
|
-
import { DaffMagentoCartAddressInputTransformer } from './cart-address.service';
|
|
3
|
-
import { MagentoShippingAddressInput } from '../../models/requests/shipping-address';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DaffMagentoShippingAddressInputTransformer {
|
|
6
|
-
private cartAddressTransformer;
|
|
7
|
-
constructor(cartAddressTransformer: DaffMagentoCartAddressInputTransformer);
|
|
8
|
-
transform(cartAddress: Partial<DaffCartAddress>): MagentoShippingAddressInput;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoShippingAddressInputTransformer, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoShippingAddressInputTransformer>;
|
|
11
|
-
}
|