@daffodil/order 0.39.13 → 0.40.1
Sign up to get free protection for your applications and to get access to all the features.
- package/daffodil-order.d.ts +1 -0
- package/driver/daffodil-order-driver.d.ts +1 -0
- package/driver/in-memory/backend/order.service.d.ts +3 -0
- package/driver/in-memory/daffodil-order-driver-in-memory.d.ts +1 -0
- package/driver/in-memory/drivers/order-driver.module.d.ts +5 -0
- package/driver/in-memory/drivers/order.service.d.ts +3 -0
- package/driver/in-memory/package.json +5 -6
- package/driver/magento/2.4.0/README.md +5 -0
- package/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.d.ts +1 -0
- package/driver/magento/2.4.0/errors/transform.d.ts +1 -1
- package/driver/magento/2.4.0/order-driver.module.d.ts +5 -0
- package/driver/magento/2.4.0/order.service.d.ts +4 -1
- package/driver/magento/2.4.0/package.json +5 -6
- package/driver/magento/2.4.0/queries/fragments/order-address.d.ts +1 -1
- package/driver/magento/2.4.0/queries/fragments/order-invoice.d.ts +1 -1
- package/driver/magento/2.4.0/queries/fragments/order-item.d.ts +1 -1
- package/driver/magento/2.4.0/queries/fragments/order-payment.d.ts +1 -1
- package/driver/magento/2.4.0/queries/fragments/order-shipment-item.d.ts +1 -1
- package/driver/magento/2.4.0/queries/fragments/order-shipment-tracking.d.ts +1 -1
- package/driver/magento/2.4.0/queries/fragments/order-shipment.d.ts +1 -1
- package/driver/magento/2.4.0/queries/fragments/order.d.ts +1 -1
- package/driver/magento/2.4.0/queries/get-guest-orders.d.ts +1 -1
- package/driver/magento/2.4.1/README.md +5 -0
- package/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.d.ts +1 -0
- package/driver/magento/2.4.1/errors/transform.d.ts +1 -1
- package/driver/magento/2.4.1/order-driver.module.d.ts +5 -0
- package/driver/magento/2.4.1/order.service.d.ts +4 -1
- package/driver/magento/2.4.1/package.json +5 -6
- package/driver/magento/2.4.1/queries/fragments/order-address.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-credit-item.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-credit-total.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-credit.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-invoice-item.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-invoice-total.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-invoice.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-item.d.ts +2 -2
- package/driver/magento/2.4.1/queries/fragments/order-payment.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-shipment-item.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-shipment-tracking.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-shipment.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order-total.d.ts +1 -1
- package/driver/magento/2.4.1/queries/fragments/order.d.ts +1 -1
- package/driver/magento/2.4.1/queries/get-guest-orders.d.ts +1 -1
- package/driver/package.json +5 -6
- package/driver/testing/daffodil-order-driver-testing.d.ts +1 -0
- package/driver/testing/drivers/order-driver.module.d.ts +5 -0
- package/driver/testing/drivers/order.service.d.ts +3 -0
- package/driver/testing/package.json +5 -6
- package/{esm2015/daffodil-order.js → esm2020/daffodil-order.mjs} +0 -0
- package/{esm2015/driver/daffodil-order-driver.js → esm2020/driver/daffodil-order-driver.mjs} +0 -0
- package/{esm2015/driver/errors/invalid-api-response.js → esm2020/driver/errors/invalid-api-response.mjs} +0 -0
- package/{esm2015/driver/errors/order-not-found.js → esm2020/driver/errors/order-not-found.mjs} +0 -0
- package/{esm2015/driver/errors/public_api.js → esm2020/driver/errors/public_api.mjs} +0 -0
- package/esm2020/driver/in-memory/backend/order.service.mjs +57 -0
- package/{esm2015/driver/in-memory/daffodil-order-driver-in-memory.js → esm2020/driver/in-memory/daffodil-order-driver-in-memory.mjs} +0 -0
- package/esm2020/driver/in-memory/drivers/order-driver.module.mjs +32 -0
- package/esm2020/driver/in-memory/drivers/order.service.mjs +28 -0
- package/{esm2015/driver/in-memory/drivers/public_api.js → esm2020/driver/in-memory/drivers/public_api.mjs} +0 -0
- package/{esm2015/driver/in-memory/index.js → esm2020/driver/in-memory/index.mjs} +0 -0
- package/{esm2015/driver/in-memory/public_api.js → esm2020/driver/in-memory/public_api.mjs} +0 -0
- package/{esm2015/driver/index.js → esm2020/driver/index.mjs} +0 -0
- package/{esm2015/driver/interfaces/order-service.interface.js → esm2020/driver/interfaces/order-service.interface.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.js → esm2020/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/errors/codes.js → esm2020/driver/magento/2.4.0/errors/codes.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/errors/map.js → esm2020/driver/magento/2.4.0/errors/map.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/errors/transform.js → esm2020/driver/magento/2.4.0/errors/transform.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/index.js → esm2020/driver/magento/2.4.0/index.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/injection-tokens/fragments/order.js → esm2020/driver/magento/2.4.0/injection-tokens/fragments/order.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/injection-tokens/public_api.js → esm2020/driver/magento/2.4.0/injection-tokens/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/models/responses/order-address.js → esm2020/driver/magento/2.4.0/models/responses/order-address.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/models/responses/order-invoice.js → esm2020/driver/magento/2.4.0/models/responses/order-invoice.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/models/responses/order-item.js → esm2020/driver/magento/2.4.0/models/responses/order-item.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/models/responses/order-payment.js → esm2020/driver/magento/2.4.0/models/responses/order-payment.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/models/responses/order-shipment-item.js → esm2020/driver/magento/2.4.0/models/responses/order-shipment-item.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/models/responses/order-shipment-tracking.js → esm2020/driver/magento/2.4.0/models/responses/order-shipment-tracking.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/models/responses/order-shipment.js → esm2020/driver/magento/2.4.0/models/responses/order-shipment.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/models/responses/order.js → esm2020/driver/magento/2.4.0/models/responses/order.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/models/responses/public_api.js → esm2020/driver/magento/2.4.0/models/responses/public_api.mjs} +0 -0
- package/esm2020/driver/magento/2.4.0/order-driver.module.mjs +32 -0
- package/esm2020/driver/magento/2.4.0/order.service.mjs +54 -0
- package/{esm2015/driver/magento/2.4.0/public_api.js → esm2020/driver/magento/2.4.0/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/queries/fragments/order-address.js → esm2020/driver/magento/2.4.0/queries/fragments/order-address.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.0/queries/fragments/order-invoice.js → esm2020/driver/magento/2.4.0/queries/fragments/order-invoice.mjs} +2 -2
- package/esm2020/driver/magento/2.4.0/queries/fragments/order-item.mjs +27 -0
- package/{esm2015/driver/magento/2.4.0/queries/fragments/order-payment.js → esm2020/driver/magento/2.4.0/queries/fragments/order-payment.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.0/queries/fragments/order-shipment-item.js → esm2020/driver/magento/2.4.0/queries/fragments/order-shipment-item.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.0/queries/fragments/order-shipment-tracking.js → esm2020/driver/magento/2.4.0/queries/fragments/order-shipment-tracking.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.0/queries/fragments/order-shipment.js → esm2020/driver/magento/2.4.0/queries/fragments/order-shipment.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.0/queries/fragments/order.js → esm2020/driver/magento/2.4.0/queries/fragments/order.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.0/queries/fragments/public_api.js → esm2020/driver/magento/2.4.0/queries/fragments/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/queries/get-guest-orders.js → esm2020/driver/magento/2.4.0/queries/get-guest-orders.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.0/queries/public_api.js → esm2020/driver/magento/2.4.0/queries/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/queries/responses/get-guest-orders.js → esm2020/driver/magento/2.4.0/queries/responses/get-guest-orders.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/queries/responses/public_api.js → esm2020/driver/magento/2.4.0/queries/responses/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.0/transforms/responses/order.js → esm2020/driver/magento/2.4.0/transforms/responses/order.mjs} +0 -0
- package/esm2020/driver/magento/2.4.0/validators/get-orders.mjs +17 -0
- package/{esm2015/driver/magento/2.4.0/validators/public_api.js → esm2020/driver/magento/2.4.0/validators/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.js → esm2020/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/errors/codes.js → esm2020/driver/magento/2.4.1/errors/codes.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/errors/map.js → esm2020/driver/magento/2.4.1/errors/map.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/errors/transform.js → esm2020/driver/magento/2.4.1/errors/transform.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/index.js → esm2020/driver/magento/2.4.1/index.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/injection-tokens/fragments/order.js → esm2020/driver/magento/2.4.1/injection-tokens/fragments/order.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/injection-tokens/public_api.js → esm2020/driver/magento/2.4.1/injection-tokens/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/discount.js → esm2020/driver/magento/2.4.1/models/responses/discount.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-address.js → esm2020/driver/magento/2.4.1/models/responses/order-address.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-credit-item.js → esm2020/driver/magento/2.4.1/models/responses/order-credit-item.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-credit.js → esm2020/driver/magento/2.4.1/models/responses/order-credit.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-invoice-item.js → esm2020/driver/magento/2.4.1/models/responses/order-invoice-item.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-invoice.js → esm2020/driver/magento/2.4.1/models/responses/order-invoice.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-item.js → esm2020/driver/magento/2.4.1/models/responses/order-item.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-payment.js → esm2020/driver/magento/2.4.1/models/responses/order-payment.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-shipment-item.js → esm2020/driver/magento/2.4.1/models/responses/order-shipment-item.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-shipment-tracking.js → esm2020/driver/magento/2.4.1/models/responses/order-shipment-tracking.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-shipment.js → esm2020/driver/magento/2.4.1/models/responses/order-shipment.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order-total.js → esm2020/driver/magento/2.4.1/models/responses/order-total.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/order.js → esm2020/driver/magento/2.4.1/models/responses/order.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/models/responses/public_api.js → esm2020/driver/magento/2.4.1/models/responses/public_api.mjs} +0 -0
- package/esm2020/driver/magento/2.4.1/order-driver.module.mjs +32 -0
- package/esm2020/driver/magento/2.4.1/order.service.mjs +54 -0
- package/{esm2015/driver/magento/2.4.1/public_api.js → esm2020/driver/magento/2.4.1/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-address.js → esm2020/driver/magento/2.4.1/queries/fragments/order-address.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-credit-item.js → esm2020/driver/magento/2.4.1/queries/fragments/order-credit-item.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-credit-total.js → esm2020/driver/magento/2.4.1/queries/fragments/order-credit-total.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-credit.js → esm2020/driver/magento/2.4.1/queries/fragments/order-credit.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-invoice-item.js → esm2020/driver/magento/2.4.1/queries/fragments/order-invoice-item.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-invoice-total.js → esm2020/driver/magento/2.4.1/queries/fragments/order-invoice-total.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-invoice.js → esm2020/driver/magento/2.4.1/queries/fragments/order-invoice.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-item.js → esm2020/driver/magento/2.4.1/queries/fragments/order-item.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-payment.js → esm2020/driver/magento/2.4.1/queries/fragments/order-payment.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-shipment-item.js → esm2020/driver/magento/2.4.1/queries/fragments/order-shipment-item.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-shipment-tracking.js → esm2020/driver/magento/2.4.1/queries/fragments/order-shipment-tracking.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-shipment.js → esm2020/driver/magento/2.4.1/queries/fragments/order-shipment.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order-total.js → esm2020/driver/magento/2.4.1/queries/fragments/order-total.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/order.js → esm2020/driver/magento/2.4.1/queries/fragments/order.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/fragments/public_api.js → esm2020/driver/magento/2.4.1/queries/fragments/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/queries/get-guest-orders.js → esm2020/driver/magento/2.4.1/queries/get-guest-orders.mjs} +2 -2
- package/{esm2015/driver/magento/2.4.1/queries/public_api.js → esm2020/driver/magento/2.4.1/queries/public_api.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/queries/responses/get-guest-orders.js → esm2020/driver/magento/2.4.1/queries/responses/get-guest-orders.mjs} +0 -0
- package/{esm2015/driver/magento/2.4.1/queries/responses/public_api.js → esm2020/driver/magento/2.4.1/queries/responses/public_api.mjs} +0 -0
- package/esm2020/driver/magento/2.4.1/transforms/responses/order.mjs +234 -0
- package/esm2020/driver/magento/2.4.1/validators/get-orders.mjs +17 -0
- package/{esm2015/driver/magento/2.4.1/validators/public_api.js → esm2020/driver/magento/2.4.1/validators/public_api.mjs} +0 -0
- package/{esm2015/driver/testing/daffodil-order-driver-testing.js → esm2020/driver/testing/daffodil-order-driver-testing.mjs} +0 -0
- package/esm2020/driver/testing/drivers/order-driver.module.mjs +32 -0
- package/esm2020/driver/testing/drivers/order.service.mjs +28 -0
- package/{esm2015/driver/testing/drivers/public_api.js → esm2020/driver/testing/drivers/public_api.mjs} +0 -0
- package/{esm2015/driver/testing/index.js → esm2020/driver/testing/index.mjs} +0 -0
- package/{esm2015/driver/testing/public_api.js → esm2020/driver/testing/public_api.mjs} +0 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/injection-tokens/error-matcher.token.js → esm2020/injection-tokens/error-matcher.token.mjs} +0 -0
- package/{esm2015/injection-tokens/public_api.js → esm2020/injection-tokens/public_api.mjs} +0 -0
- package/{esm2015/models/composite-order-item.js → esm2020/models/composite-order-item.mjs} +0 -0
- package/{esm2015/models/configurable-order-item.js → esm2020/models/configurable-order-item.mjs} +0 -0
- package/{esm2015/models/order-address.js → esm2020/models/order-address.mjs} +0 -0
- package/{esm2015/models/order-coupon.js → esm2020/models/order-coupon.mjs} +0 -0
- package/{esm2015/models/order-credit.js → esm2020/models/order-credit.mjs} +0 -0
- package/{esm2015/models/order-invoice.js → esm2020/models/order-invoice.mjs} +0 -0
- package/{esm2015/models/order-item.js → esm2020/models/order-item.mjs} +0 -0
- package/{esm2015/models/order-payment.js → esm2020/models/order-payment.mjs} +0 -0
- package/{esm2015/models/order-shipment-item.js → esm2020/models/order-shipment-item.mjs} +0 -0
- package/{esm2015/models/order-shipment-tracking.js → esm2020/models/order-shipment-tracking.mjs} +0 -0
- package/{esm2015/models/order-shipment.js → esm2020/models/order-shipment.mjs} +0 -0
- package/{esm2015/models/order-shipping-method.js → esm2020/models/order-shipping-method.mjs} +0 -0
- package/{esm2015/models/order-total.js → esm2020/models/order-total.mjs} +0 -0
- package/{esm2015/models/order.js → esm2020/models/order.mjs} +0 -0
- package/{esm2015/models/public_api.js → esm2020/models/public_api.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/{esm2015/routing/daffodil-order-routing.js → esm2020/routing/daffodil-order-routing.mjs} +0 -0
- package/{esm2015/routing/guards/placed-order/placed-order-guard-redirect.token.js → esm2020/routing/guards/placed-order/placed-order-guard-redirect.token.mjs} +0 -0
- package/esm2020/routing/guards/placed-order/placed-order.guard.mjs +38 -0
- package/{esm2015/routing/guards/public_api.js → esm2020/routing/guards/public_api.mjs} +0 -0
- package/{esm2015/routing/index.js → esm2020/routing/index.mjs} +0 -0
- package/esm2020/routing/order-routing.module.mjs +19 -0
- package/{esm2015/routing/public_api.js → esm2020/routing/public_api.mjs} +0 -0
- package/{esm2015/state/actions/order.actions.js → esm2020/state/actions/order.actions.mjs} +0 -0
- package/esm2020/state/daffodil-order-state.mjs +5 -0
- package/esm2020/state/effects/order.effects.mjs +36 -0
- package/{esm2015/state/facades/order/order-facade.interface.js → esm2020/state/facades/order/order-facade.interface.mjs} +0 -0
- package/{esm2015/state/facades/order/order.facade.js → esm2020/state/facades/order/order.facade.mjs} +9 -11
- package/{esm2015/state/facades/public_api.js → esm2020/state/facades/public_api.mjs} +0 -0
- package/{esm2015/state/index.js → esm2020/state/index.mjs} +0 -0
- package/esm2020/state/order-state.module.mjs +33 -0
- package/{esm2015/state/public_api.js → esm2020/state/public_api.mjs} +0 -0
- package/{esm2015/state/reducers/order/order-initial-state.js → esm2020/state/reducers/order/order-initial-state.mjs} +0 -0
- package/{esm2015/state/reducers/order/order-reducer.interface.js → esm2020/state/reducers/order/order-reducer.interface.mjs} +0 -0
- package/esm2020/state/reducers/order/order.reducer.mjs +32 -0
- package/{esm2015/state/reducers/order/public_api.js → esm2020/state/reducers/order/public_api.mjs} +0 -0
- package/{esm2015/state/reducers/order-entities/order-entities-adapter.js → esm2020/state/reducers/order-entities/order-entities-adapter.mjs} +5 -7
- package/{esm2015/state/reducers/order-entities/order-entities-initial-state.js → esm2020/state/reducers/order-entities/order-entities-initial-state.mjs} +0 -0
- package/{esm2015/state/reducers/order-entities/order-entities-state.interface.js → esm2020/state/reducers/order-entities/order-entities-state.interface.mjs} +0 -0
- package/{esm2015/state/reducers/order-entities/order-entities.reducer.js → esm2020/state/reducers/order-entities/order-entities.reducer.mjs} +0 -0
- package/{esm2015/state/reducers/order-entities/public_api.js → esm2020/state/reducers/order-entities/public_api.mjs} +0 -0
- package/{esm2015/state/reducers/order-reducers.interface.js → esm2020/state/reducers/order-reducers.interface.mjs} +0 -0
- package/{esm2015/state/reducers/order-reducers.js → esm2020/state/reducers/order-reducers.mjs} +0 -0
- package/{esm2015/state/reducers/order-store-feature-key.js → esm2020/state/reducers/order-store-feature-key.mjs} +0 -0
- package/{esm2015/state/reducers/public_api.js → esm2020/state/reducers/public_api.mjs} +0 -0
- package/esm2020/state/selectors/order-all.selector.mjs +12 -0
- package/esm2020/state/selectors/order-entities.selector.mjs +76 -0
- package/esm2020/state/selectors/order-feature.selector.mjs +9 -0
- package/esm2020/state/selectors/order.selector.mjs +18 -0
- package/{esm2015/state/selectors/public_api.js → esm2020/state/selectors/public_api.mjs} +0 -0
- package/{esm2015/state/testing/daffodil-order-state-testing.js → esm2020/state/testing/daffodil-order-state-testing.mjs} +0 -0
- package/{esm2015/state/testing/index.js → esm2020/state/testing/index.mjs} +0 -0
- package/esm2020/state/testing/mock-order-facade.mjs +81 -0
- package/esm2020/state/testing/order-testing.module.mjs +20 -0
- package/{esm2015/state/testing/public_api.js → esm2020/state/testing/public_api.mjs} +0 -0
- package/{esm2015/testing/daffodil-order-testing.js → esm2020/testing/daffodil-order-testing.mjs} +0 -0
- package/esm2020/testing/factories/composite-order-item.factory.mjs +36 -0
- package/esm2020/testing/factories/configurable-order-item.factory.mjs +35 -0
- package/esm2020/testing/factories/order-address.factory.mjs +25 -0
- package/esm2020/testing/factories/order-coupon.factory.mjs +24 -0
- package/esm2020/testing/factories/order-invoice.factory.mjs +28 -0
- package/{esm2015/testing/factories/order-item.factory.js → esm2020/testing/factories/order-item.factory.mjs} +9 -9
- package/{esm2015/testing/factories/order-payment.factory.js → esm2020/testing/factories/order-payment.factory.mjs} +9 -9
- package/esm2020/testing/factories/order-shipment-item.factory.mjs +25 -0
- package/esm2020/testing/factories/order-shipment-tracking.factory.mjs +28 -0
- package/esm2020/testing/factories/order-shipment.factory.mjs +30 -0
- package/{esm2015/testing/factories/order-shipping-rate.factory.js → esm2020/testing/factories/order-shipping-rate.factory.mjs} +9 -9
- package/esm2020/testing/factories/order-total.factory.mjs +28 -0
- package/{esm2015/testing/factories/order.factory.js → esm2020/testing/factories/order.factory.mjs} +9 -9
- package/{esm2015/testing/factories/public_api.js → esm2020/testing/factories/public_api.mjs} +0 -0
- package/{esm2015/testing/helpers/order-helper.js → esm2020/testing/helpers/order-helper.mjs} +0 -0
- package/{esm2015/testing/helpers/public_api.js → esm2020/testing/helpers/public_api.mjs} +0 -0
- package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
- package/{esm2015/testing/public_api.js → esm2020/testing/public_api.mjs} +0 -0
- package/fesm2015/daffodil-order-driver-in-memory.mjs +117 -0
- package/fesm2015/daffodil-order-driver-in-memory.mjs.map +1 -0
- package/fesm2015/{daffodil-order-driver-magento-2.4.0.js → daffodil-order-driver-magento-2.4.0.mjs} +31 -21
- package/fesm2015/daffodil-order-driver-magento-2.4.0.mjs.map +1 -0
- package/fesm2015/{daffodil-order-driver-magento-2.4.1.js → daffodil-order-driver-magento-2.4.1.mjs} +31 -21
- package/fesm2015/daffodil-order-driver-magento-2.4.1.mjs.map +1 -0
- package/fesm2015/daffodil-order-driver-testing.mjs +63 -0
- package/fesm2015/daffodil-order-driver-testing.mjs.map +1 -0
- package/fesm2015/{daffodil-order-driver.js → daffodil-order-driver.mjs} +1 -1
- package/fesm2015/daffodil-order-driver.mjs.map +1 -0
- package/fesm2015/daffodil-order-routing.mjs +62 -0
- package/fesm2015/daffodil-order-routing.mjs.map +1 -0
- package/fesm2015/{daffodil-order-state-testing.js → daffodil-order-state-testing.mjs} +22 -13
- package/fesm2015/daffodil-order-state-testing.mjs.map +1 -0
- package/fesm2015/{daffodil-order-state.js → daffodil-order-state.mjs} +64 -73
- package/fesm2015/daffodil-order-state.mjs.map +1 -0
- package/fesm2015/daffodil-order-testing.mjs +387 -0
- package/fesm2015/daffodil-order-testing.mjs.map +1 -0
- package/fesm2015/{daffodil-order.js → daffodil-order.mjs} +1 -1
- package/fesm2015/daffodil-order.mjs.map +1 -0
- package/fesm2020/daffodil-order-driver-in-memory.mjs +117 -0
- package/fesm2020/daffodil-order-driver-in-memory.mjs.map +1 -0
- package/fesm2020/daffodil-order-driver-magento-2.4.0.mjs +459 -0
- package/fesm2020/daffodil-order-driver-magento-2.4.0.mjs.map +1 -0
- package/fesm2020/daffodil-order-driver-magento-2.4.1.mjs +646 -0
- package/fesm2020/daffodil-order-driver-magento-2.4.1.mjs.map +1 -0
- package/fesm2020/daffodil-order-driver-testing.mjs +63 -0
- package/fesm2020/daffodil-order-driver-testing.mjs.map +1 -0
- package/fesm2020/daffodil-order-driver.mjs +27 -0
- package/fesm2020/daffodil-order-driver.mjs.map +1 -0
- package/fesm2020/daffodil-order-routing.mjs +60 -0
- package/fesm2020/daffodil-order-routing.mjs.map +1 -0
- package/fesm2020/daffodil-order-state-testing.mjs +105 -0
- package/fesm2020/daffodil-order-state-testing.mjs.map +1 -0
- package/fesm2020/daffodil-order-state.mjs +400 -0
- package/fesm2020/daffodil-order-state.mjs.map +1 -0
- package/fesm2020/daffodil-order-testing.mjs +387 -0
- package/fesm2020/daffodil-order-testing.mjs.map +1 -0
- package/fesm2020/daffodil-order.mjs +31 -0
- package/fesm2020/daffodil-order.mjs.map +1 -0
- package/package.json +98 -14
- package/routing/daffodil-order-routing.d.ts +1 -0
- package/routing/guards/placed-order/placed-order.guard.d.ts +3 -0
- package/routing/order-routing.module.d.ts +4 -0
- package/routing/package.json +5 -6
- package/state/daffodil-order-state.d.ts +1 -1
- package/state/effects/order.effects.d.ts +5 -2
- package/state/facades/order/order.facade.d.ts +3 -0
- package/state/order-state.module.d.ts +7 -0
- package/state/package.json +5 -6
- package/state/testing/daffodil-order-state-testing.d.ts +1 -0
- package/state/testing/mock-order-facade.d.ts +3 -0
- package/state/testing/order-testing.module.d.ts +4 -0
- package/state/testing/package.json +5 -6
- package/testing/daffodil-order-testing.d.ts +1 -0
- package/testing/factories/composite-order-item.factory.d.ts +3 -0
- package/testing/factories/configurable-order-item.factory.d.ts +3 -0
- package/testing/factories/order-address.factory.d.ts +3 -0
- package/testing/factories/order-coupon.factory.d.ts +3 -0
- package/testing/factories/order-invoice.factory.d.ts +3 -0
- package/testing/factories/order-item.factory.d.ts +3 -0
- package/testing/factories/order-payment.factory.d.ts +3 -0
- package/testing/factories/order-shipment-item.factory.d.ts +3 -0
- package/testing/factories/order-shipment-tracking.factory.d.ts +3 -0
- package/testing/factories/order-shipment.factory.d.ts +3 -0
- package/testing/factories/order-shipping-rate.factory.d.ts +3 -0
- package/testing/factories/order-total.factory.d.ts +3 -0
- package/testing/factories/order.factory.d.ts +3 -0
- package/testing/package.json +5 -6
- package/bundles/daffodil-order-driver-in-memory.umd.js +0 -125
- package/bundles/daffodil-order-driver-in-memory.umd.js.map +0 -1
- package/bundles/daffodil-order-driver-in-memory.umd.min.js +0 -2
- package/bundles/daffodil-order-driver-in-memory.umd.min.js.map +0 -1
- package/bundles/daffodil-order-driver-magento-2.4.0.umd.js +0 -657
- package/bundles/daffodil-order-driver-magento-2.4.0.umd.js.map +0 -1
- package/bundles/daffodil-order-driver-magento-2.4.0.umd.min.js +0 -16
- package/bundles/daffodil-order-driver-magento-2.4.0.umd.min.js.map +0 -1
- package/bundles/daffodil-order-driver-magento-2.4.1.umd.js +0 -737
- package/bundles/daffodil-order-driver-magento-2.4.1.umd.js.map +0 -1
- package/bundles/daffodil-order-driver-magento-2.4.1.umd.min.js +0 -2
- package/bundles/daffodil-order-driver-magento-2.4.1.umd.min.js.map +0 -1
- package/bundles/daffodil-order-driver-testing.umd.js +0 -67
- package/bundles/daffodil-order-driver-testing.umd.js.map +0 -1
- package/bundles/daffodil-order-driver-testing.umd.min.js +0 -2
- package/bundles/daffodil-order-driver-testing.umd.min.js.map +0 -1
- package/bundles/daffodil-order-driver.umd.js +0 -360
- package/bundles/daffodil-order-driver.umd.js.map +0 -1
- package/bundles/daffodil-order-driver.umd.min.js +0 -16
- package/bundles/daffodil-order-driver.umd.min.js.map +0 -1
- package/bundles/daffodil-order-routing.umd.js +0 -66
- package/bundles/daffodil-order-routing.umd.js.map +0 -1
- package/bundles/daffodil-order-routing.umd.min.js +0 -2
- package/bundles/daffodil-order-routing.umd.min.js.map +0 -1
- package/bundles/daffodil-order-state-testing.umd.js +0 -107
- package/bundles/daffodil-order-state-testing.umd.js.map +0 -1
- package/bundles/daffodil-order-state-testing.umd.min.js +0 -2
- package/bundles/daffodil-order-state-testing.umd.min.js.map +0 -1
- package/bundles/daffodil-order-state.umd.js +0 -748
- package/bundles/daffodil-order-state.umd.js.map +0 -1
- package/bundles/daffodil-order-state.umd.min.js +0 -16
- package/bundles/daffodil-order-state.umd.min.js.map +0 -1
- package/bundles/daffodil-order-testing.umd.js +0 -766
- package/bundles/daffodil-order-testing.umd.js.map +0 -1
- package/bundles/daffodil-order-testing.umd.min.js +0 -16
- package/bundles/daffodil-order-testing.umd.min.js.map +0 -1
- package/bundles/daffodil-order.umd.js +0 -36
- package/bundles/daffodil-order.umd.js.map +0 -1
- package/bundles/daffodil-order.umd.min.js +0 -2
- package/bundles/daffodil-order.umd.min.js.map +0 -1
- package/daffodil-order.metadata.json +0 -1
- package/driver/daffodil-order-driver.metadata.json +0 -1
- package/driver/in-memory/daffodil-order-driver-in-memory.metadata.json +0 -1
- package/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.metadata.json +0 -1
- package/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.metadata.json +0 -1
- package/driver/testing/daffodil-order-driver-testing.metadata.json +0 -1
- package/esm2015/driver/in-memory/backend/order.service.js +0 -59
- package/esm2015/driver/in-memory/drivers/order-driver.module.js +0 -25
- package/esm2015/driver/in-memory/drivers/order.service.js +0 -30
- package/esm2015/driver/magento/2.4.0/order-driver.module.js +0 -25
- package/esm2015/driver/magento/2.4.0/order.service.js +0 -55
- package/esm2015/driver/magento/2.4.0/queries/fragments/order-item.js +0 -27
- package/esm2015/driver/magento/2.4.0/validators/get-orders.js +0 -18
- package/esm2015/driver/magento/2.4.1/order-driver.module.js +0 -25
- package/esm2015/driver/magento/2.4.1/order.service.js +0 -55
- package/esm2015/driver/magento/2.4.1/transforms/responses/order.js +0 -207
- package/esm2015/driver/magento/2.4.1/validators/get-orders.js +0 -18
- package/esm2015/driver/testing/drivers/order-driver.module.js +0 -25
- package/esm2015/driver/testing/drivers/order.service.js +0 -30
- package/esm2015/routing/guards/placed-order/placed-order.guard.js +0 -40
- package/esm2015/routing/order-routing.module.js +0 -12
- package/esm2015/state/daffodil-order-state.js +0 -6
- package/esm2015/state/effects/order.effects.js +0 -49
- package/esm2015/state/order-state.module.js +0 -20
- package/esm2015/state/reducers/order/order.reducer.js +0 -21
- package/esm2015/state/selectors/order-all.selector.js +0 -10
- package/esm2015/state/selectors/order-entities.selector.js +0 -79
- package/esm2015/state/selectors/order-feature.selector.js +0 -11
- package/esm2015/state/selectors/order.selector.js +0 -21
- package/esm2015/state/testing/mock-order-facade.js +0 -79
- package/esm2015/state/testing/order-testing.module.js +0 -13
- package/esm2015/testing/factories/composite-order-item.factory.js +0 -36
- package/esm2015/testing/factories/configurable-order-item.factory.js +0 -35
- package/esm2015/testing/factories/order-address.factory.js +0 -25
- package/esm2015/testing/factories/order-coupon.factory.js +0 -24
- package/esm2015/testing/factories/order-invoice.factory.js +0 -28
- package/esm2015/testing/factories/order-shipment-item.factory.js +0 -25
- package/esm2015/testing/factories/order-shipment-tracking.factory.js +0 -28
- package/esm2015/testing/factories/order-shipment.factory.js +0 -30
- package/esm2015/testing/factories/order-total.factory.js +0 -28
- package/fesm2015/daffodil-order-driver-in-memory.js +0 -114
- package/fesm2015/daffodil-order-driver-in-memory.js.map +0 -1
- package/fesm2015/daffodil-order-driver-magento-2.4.0.js.map +0 -1
- package/fesm2015/daffodil-order-driver-magento-2.4.1.js.map +0 -1
- package/fesm2015/daffodil-order-driver-testing.js +0 -58
- package/fesm2015/daffodil-order-driver-testing.js.map +0 -1
- package/fesm2015/daffodil-order-driver.js.map +0 -1
- package/fesm2015/daffodil-order-routing.js +0 -54
- package/fesm2015/daffodil-order-routing.js.map +0 -1
- package/fesm2015/daffodil-order-state-testing.js.map +0 -1
- package/fesm2015/daffodil-order-state.js.map +0 -1
- package/fesm2015/daffodil-order-testing.js +0 -386
- package/fesm2015/daffodil-order-testing.js.map +0 -1
- package/fesm2015/daffodil-order.js.map +0 -1
- package/routing/daffodil-order-routing.metadata.json +0 -1
- package/state/daffodil-order-state.metadata.json +0 -1
- package/state/testing/daffodil-order-state-testing.metadata.json +0 -1
- package/testing/daffodil-order-testing.metadata.json +0 -1
package/daffodil-order.d.ts
CHANGED
@@ -2,6 +2,7 @@ import { InMemoryDbService, RequestInfo } from 'angular-in-memory-web-api';
|
|
2
2
|
import { DaffInMemoryDataServiceInterface } from '@daffodil/core/testing';
|
3
3
|
import { DaffOrder } from '@daffodil/order';
|
4
4
|
import { DaffOrderFactory } from '@daffodil/order/testing';
|
5
|
+
import * as i0 from "@angular/core";
|
5
6
|
/**
|
6
7
|
* An in-memory service that stubs out the backend services for getting orders.
|
7
8
|
*
|
@@ -24,4 +25,6 @@ export declare class DaffInMemoryBackendOrderService implements InMemoryDbServic
|
|
24
25
|
get(reqInfo: RequestInfo): any;
|
25
26
|
private getOrder;
|
26
27
|
private listOrders;
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryBackendOrderService, never>;
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryBackendOrderService>;
|
27
30
|
}
|
@@ -1,4 +1,9 @@
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
import * as i1 from "@angular/common";
|
2
4
|
export declare class DaffOrderInMemoryDriverModule {
|
3
5
|
static forRoot(): ModuleWithProviders<DaffOrderInMemoryDriverModule>;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderInMemoryDriverModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderInMemoryDriverModule, never, [typeof i1.CommonModule], never>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderInMemoryDriverModule>;
|
4
9
|
}
|
@@ -2,6 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
3
3
|
import { DaffOrder } from '@daffodil/order';
|
4
4
|
import { DaffOrderServiceInterface } from '@daffodil/order/driver';
|
5
|
+
import * as i0 from "@angular/core";
|
5
6
|
/**
|
6
7
|
* @inheritdoc
|
7
8
|
*/
|
@@ -11,4 +12,6 @@ export declare class DaffInMemoryOrderService implements DaffOrderServiceInterfa
|
|
11
12
|
constructor(http: HttpClient);
|
12
13
|
get(orderId: DaffOrder['id']): Observable<DaffOrder>;
|
13
14
|
list(): Observable<DaffOrder[]>;
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryOrderService, never>;
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryOrderService>;
|
14
17
|
}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@daffodil/order/driver/in-memory",
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"fesm2015": "../../fesm2015/daffodil-order-driver-in-memory.
|
3
|
+
"module": "../../fesm2015/daffodil-order-driver-in-memory.mjs",
|
4
|
+
"es2020": "../../fesm2020/daffodil-order-driver-in-memory.mjs",
|
5
|
+
"esm2020": "../../esm2020/driver/in-memory/daffodil-order-driver-in-memory.mjs",
|
6
|
+
"fesm2020": "../../fesm2020/daffodil-order-driver-in-memory.mjs",
|
7
|
+
"fesm2015": "../../fesm2015/daffodil-order-driver-in-memory.mjs",
|
8
8
|
"typings": "daffodil-order-driver-in-memory.d.ts",
|
9
|
-
"metadata": "daffodil-order-driver-in-memory.metadata.json",
|
10
9
|
"sideEffects": false
|
11
10
|
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
# @daffodil/order/driver/magento/2.4.0
|
2
|
+
|
3
|
+
A Daffodil order driver for interfacing with a Magento backend running version 2.4.0 or lower.
|
4
|
+
|
5
|
+
Magento v2.4.0 does not provide a GraphQL orders endpoint. [graycoreio/magento2-orders-graphql](https://github.com/graycoreio/magento2-orders-graphql) should be used to add support for this until Magento is upgraded to [v2.4.1](../2.4.1/README.md).
|
@@ -1 +1 @@
|
|
1
|
-
export declare function transformMagentoOrderError(error: any): import("
|
1
|
+
export declare function transformMagentoOrderError(error: any): import("@daffodil/core").DaffError;
|
@@ -1,4 +1,9 @@
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
import * as i1 from "@angular/common";
|
2
4
|
export declare class DaffOrderMagentoDriverModule {
|
3
5
|
static forRoot(): ModuleWithProviders<DaffOrderMagentoDriverModule>;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderMagentoDriverModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderMagentoDriverModule, never, [typeof i1.CommonModule], never>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderMagentoDriverModule>;
|
4
9
|
}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { Apollo } from 'apollo-angular';
|
1
|
+
import { Apollo } from '@damienwebdev/apollo-angular';
|
2
2
|
import { DocumentNode } from 'graphql';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { DaffCart } from '@daffodil/cart';
|
5
5
|
import { DaffOrder } from '@daffodil/order';
|
6
6
|
import { DaffOrderServiceInterface } from '@daffodil/order/driver';
|
7
|
+
import * as i0 from "@angular/core";
|
7
8
|
/**
|
8
9
|
* A service for making Magento GraphQL queries for orders.
|
9
10
|
*
|
@@ -15,4 +16,6 @@ export declare class DaffOrderMagentoService implements DaffOrderServiceInterfac
|
|
15
16
|
constructor(apollo: Apollo, extraOrderFragments: DocumentNode[]);
|
16
17
|
list(cartId?: DaffCart['id']): Observable<DaffOrder[]>;
|
17
18
|
get(orderId: DaffOrder['id'], cartId?: DaffCart['id']): Observable<DaffOrder>;
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderMagentoService, never>;
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DaffOrderMagentoService>;
|
18
21
|
}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@daffodil/order/driver/magento/2.4.0",
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"fesm2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.0.
|
3
|
+
"module": "../../../fesm2015/daffodil-order-driver-magento-2.4.0.mjs",
|
4
|
+
"es2020": "../../../fesm2020/daffodil-order-driver-magento-2.4.0.mjs",
|
5
|
+
"esm2020": "../../../esm2020/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.mjs",
|
6
|
+
"fesm2020": "../../../fesm2020/daffodil-order-driver-magento-2.4.0.mjs",
|
7
|
+
"fesm2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.0.mjs",
|
8
8
|
"typings": "daffodil-order-driver-magento-2.4.0.d.ts",
|
9
|
-
"metadata": "daffodil-order-driver-magento-2.4.0.metadata.json",
|
10
9
|
"sideEffects": false
|
11
10
|
}
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderAddressFragment: import("graphql").
|
1
|
+
export declare const orderAddressFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderInvoiceFragment: import("graphql").
|
1
|
+
export declare const orderInvoiceFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderItemFragment: import("graphql").
|
1
|
+
export declare const orderItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderPaymentFragment: import("graphql").
|
1
|
+
export declare const orderPaymentFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderShipmentItemFragment: import("graphql").
|
1
|
+
export declare const orderShipmentItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderShipmentTrackingFragment: import("graphql").
|
1
|
+
export declare const orderShipmentTrackingFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderShipmentFragment: import("graphql").
|
1
|
+
export declare const orderShipmentFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderFragment: import("graphql").
|
1
|
+
export declare const orderFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DocumentNode } from 'graphql';
|
2
|
-
export declare const getGuestOrders: (extraOrderFragments?: DocumentNode[]) =>
|
2
|
+
export declare const getGuestOrders: (extraOrderFragments?: DocumentNode[]) => import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
# @daffodil/order/driver/magento/2.4.1
|
2
|
+
|
3
|
+
A Daffodil order driver for interfacing with a Magento backend running version 2.4.1 or higher.
|
4
|
+
|
5
|
+
Magento v2.4.1 does not provide support for guest orders in their GraphQL orders endpoint. [graycoreio/magento2-guest-orders-graphql](https://github.com/graycoreio/magento2-guest-orders-graphql) should be used to add support for guest orders.
|
@@ -1 +1 @@
|
|
1
|
-
export declare function transformMagentoOrderError(error: any): import("
|
1
|
+
export declare function transformMagentoOrderError(error: any): import("@daffodil/core").DaffError;
|
@@ -1,4 +1,9 @@
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
import * as i1 from "@angular/common";
|
2
4
|
export declare class DaffOrderMagentoDriverModule {
|
3
5
|
static forRoot(): ModuleWithProviders<DaffOrderMagentoDriverModule>;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderMagentoDriverModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderMagentoDriverModule, never, [typeof i1.CommonModule], never>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderMagentoDriverModule>;
|
4
9
|
}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { Apollo } from 'apollo-angular';
|
1
|
+
import { Apollo } from '@damienwebdev/apollo-angular';
|
2
2
|
import { DocumentNode } from 'graphql';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { DaffCart } from '@daffodil/cart';
|
5
5
|
import { DaffOrder } from '@daffodil/order';
|
6
6
|
import { DaffOrderServiceInterface } from '@daffodil/order/driver';
|
7
|
+
import * as i0 from "@angular/core";
|
7
8
|
/**
|
8
9
|
* A service for making Magento GraphQL queries for orders.
|
9
10
|
*
|
@@ -15,4 +16,6 @@ export declare class DaffOrderMagentoService implements DaffOrderServiceInterfac
|
|
15
16
|
constructor(apollo: Apollo, extraOrderFragments: DocumentNode[]);
|
16
17
|
list(cartId?: DaffCart['id']): Observable<DaffOrder[]>;
|
17
18
|
get(orderId: DaffOrder['id'], cartId?: DaffCart['id']): Observable<DaffOrder>;
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderMagentoService, never>;
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DaffOrderMagentoService>;
|
18
21
|
}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@daffodil/order/driver/magento/2.4.1",
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"fesm2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.1.
|
3
|
+
"module": "../../../fesm2015/daffodil-order-driver-magento-2.4.1.mjs",
|
4
|
+
"es2020": "../../../fesm2020/daffodil-order-driver-magento-2.4.1.mjs",
|
5
|
+
"esm2020": "../../../esm2020/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.mjs",
|
6
|
+
"fesm2020": "../../../fesm2020/daffodil-order-driver-magento-2.4.1.mjs",
|
7
|
+
"fesm2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.1.mjs",
|
8
8
|
"typings": "daffodil-order-driver-magento-2.4.1.d.ts",
|
9
|
-
"metadata": "daffodil-order-driver-magento-2.4.1.metadata.json",
|
10
9
|
"sideEffects": false
|
11
10
|
}
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderAddressFragment: import("graphql").
|
1
|
+
export declare const orderAddressFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderCreditItemFragment: import("graphql").
|
1
|
+
export declare const orderCreditItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderCreditTotalFragment: import("graphql").
|
1
|
+
export declare const orderCreditTotalFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderCreditFragment: import("graphql").
|
1
|
+
export declare const orderCreditFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderInvoiceItemFragment: import("graphql").
|
1
|
+
export declare const orderInvoiceItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderInvoiceTotalFragment: import("graphql").
|
1
|
+
export declare const orderInvoiceTotalFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderInvoiceFragment: import("graphql").
|
1
|
+
export declare const orderInvoiceFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const orderBundleItemSelectedOptionFragment: import("graphql").
|
2
|
-
export declare const orderItemFragment: import("graphql").
|
1
|
+
export declare const orderBundleItemSelectedOptionFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
2
|
+
export declare const orderItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderPaymentFragment: import("graphql").
|
1
|
+
export declare const orderPaymentFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderShipmentItemFragment: import("graphql").
|
1
|
+
export declare const orderShipmentItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderShipmentTrackingFragment: import("graphql").
|
1
|
+
export declare const orderShipmentTrackingFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderShipmentFragment: import("graphql").
|
1
|
+
export declare const orderShipmentFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderTotalFragment: import("graphql").
|
1
|
+
export declare const orderTotalFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const orderFragment: import("graphql").
|
1
|
+
export declare const orderFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DocumentNode } from 'graphql';
|
2
|
-
export declare const getGuestOrders: (extraOrderFragments?: DocumentNode[]) =>
|
2
|
+
export declare const getGuestOrders: (extraOrderFragments?: DocumentNode[]) => import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
|
package/driver/package.json
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@daffodil/order/driver",
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"fesm2015": "../fesm2015/daffodil-order-driver.
|
3
|
+
"module": "../fesm2015/daffodil-order-driver.mjs",
|
4
|
+
"es2020": "../fesm2020/daffodil-order-driver.mjs",
|
5
|
+
"esm2020": "../esm2020/driver/daffodil-order-driver.mjs",
|
6
|
+
"fesm2020": "../fesm2020/daffodil-order-driver.mjs",
|
7
|
+
"fesm2015": "../fesm2015/daffodil-order-driver.mjs",
|
8
8
|
"typings": "daffodil-order-driver.d.ts",
|
9
|
-
"metadata": "daffodil-order-driver.metadata.json",
|
10
9
|
"sideEffects": false
|
11
10
|
}
|
@@ -1,4 +1,9 @@
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
import * as i1 from "@angular/common";
|
2
4
|
export declare class DaffOrderTestingDriverModule {
|
3
5
|
static forRoot(): ModuleWithProviders<DaffOrderTestingDriverModule>;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderTestingDriverModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderTestingDriverModule, never, [typeof i1.CommonModule], never>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderTestingDriverModule>;
|
4
9
|
}
|
@@ -2,6 +2,7 @@ import { Observable } from 'rxjs';
|
|
2
2
|
import { DaffOrder } from '@daffodil/order';
|
3
3
|
import { DaffOrderServiceInterface } from '@daffodil/order/driver';
|
4
4
|
import { DaffOrderFactory } from '@daffodil/order/testing';
|
5
|
+
import * as i0 from "@angular/core";
|
5
6
|
/**
|
6
7
|
* @inheritdoc
|
7
8
|
*/
|
@@ -10,4 +11,6 @@ export declare class DaffTestingOrderService implements DaffOrderServiceInterfac
|
|
10
11
|
constructor(orderFactory: DaffOrderFactory);
|
11
12
|
get(orderId: DaffOrder['id']): Observable<DaffOrder>;
|
12
13
|
list(): Observable<DaffOrder[]>;
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingOrderService, never>;
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingOrderService>;
|
13
16
|
}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@daffodil/order/driver/testing",
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"fesm2015": "../../fesm2015/daffodil-order-driver-testing.
|
3
|
+
"module": "../../fesm2015/daffodil-order-driver-testing.mjs",
|
4
|
+
"es2020": "../../fesm2020/daffodil-order-driver-testing.mjs",
|
5
|
+
"esm2020": "../../esm2020/driver/testing/daffodil-order-driver-testing.mjs",
|
6
|
+
"fesm2020": "../../fesm2020/daffodil-order-driver-testing.mjs",
|
7
|
+
"fesm2015": "../../fesm2015/daffodil-order-driver-testing.mjs",
|
8
8
|
"typings": "daffodil-order-driver-testing.d.ts",
|
9
|
-
"metadata": "daffodil-order-driver-testing.metadata.json",
|
10
9
|
"sideEffects": false
|
11
10
|
}
|
File without changes
|
package/{esm2015/driver/daffodil-order-driver.js → esm2020/driver/daffodil-order-driver.mjs}
RENAMED
File without changes
|
File without changes
|
package/{esm2015/driver/errors/order-not-found.js → esm2020/driver/errors/order-not-found.mjs}
RENAMED
File without changes
|
File without changes
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { Injectable } from '@angular/core';
|
2
|
+
import { STATUS, } from 'angular-in-memory-web-api';
|
3
|
+
import { DaffOrderFactory } from '@daffodil/order/testing';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "@daffodil/order/testing";
|
6
|
+
/**
|
7
|
+
* An in-memory service that stubs out the backend services for getting orders.
|
8
|
+
*
|
9
|
+
* @inheritdoc
|
10
|
+
*/
|
11
|
+
export class DaffInMemoryBackendOrderService {
|
12
|
+
constructor(orderFactory) {
|
13
|
+
this.orderFactory = orderFactory;
|
14
|
+
this.orders = this.orderFactory.createMany(5);
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* Creates a fake database of orders for the order inmemory backend service.
|
18
|
+
*
|
19
|
+
* @docs-private
|
20
|
+
* @returns A fake database of an array of orders
|
21
|
+
*/
|
22
|
+
createDb(reqInfo) {
|
23
|
+
if (reqInfo) {
|
24
|
+
const seedData = reqInfo.utils.getJsonBody(reqInfo.req).orders;
|
25
|
+
if (seedData) {
|
26
|
+
this.orders = seedData;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
return {
|
30
|
+
orders: this.orders,
|
31
|
+
};
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* Responds to GET requests.
|
35
|
+
*/
|
36
|
+
get(reqInfo) {
|
37
|
+
return reqInfo.utils.createResponse$(() => ({
|
38
|
+
body: reqInfo.id ? this.getOrder(reqInfo) : this.listOrders(reqInfo),
|
39
|
+
status: STATUS.OK,
|
40
|
+
}));
|
41
|
+
}
|
42
|
+
getOrder(reqInfo) {
|
43
|
+
return reqInfo.collection.find(order => order.id === reqInfo.id);
|
44
|
+
}
|
45
|
+
listOrders(reqInfo) {
|
46
|
+
return reqInfo.collection;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
/** @nocollapse */ /** @nocollapse */ DaffInMemoryBackendOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendOrderService, deps: [{ token: i1.DaffOrderFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
50
|
+
/** @nocollapse */ /** @nocollapse */ DaffInMemoryBackendOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendOrderService, providedIn: 'root' });
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendOrderService, decorators: [{
|
52
|
+
type: Injectable,
|
53
|
+
args: [{
|
54
|
+
providedIn: 'root',
|
55
|
+
}]
|
56
|
+
}], ctorParameters: function () { return [{ type: i1.DaffOrderFactory }]; } });
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIuc2VydmljZS5qcyIsInNvd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gIHRoaXMub3JkZXJzID0gc2VlZERhdGE7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHtcbiAgICAgIG9yZGVyczogdGhpcy5vcmRlcnMsXG4gICAgfTtcbiAgfVxuXG4gIC8qKlxuICAgKiBSZXNwb25kcyB0byBHRVQgcmVxdWVzdHMuXG4gICAqL1xuICBnZXQocmVxSW5mbzogUmVxdWVzdEluZm8pOiBhbnkge1xuICAgIHJldHVybiByZXFJbmZvLnV0aWxzLmNyZWF0ZVJlc3BvbnNlJCgoKSA9PiAoe1xuICAgICAgYm9keTogcmVxSW5mby5pZCA/IHRoaXMuZ2V0T3JkZXIocmVxSW5mbykgOiB0aGlzLmxpc3RPcmRlcnMocmVxSW5mbyksXG4gICAgICBzdGF0dXM6IFNUQVRVUy5PSyxcbiAgICB9KSk7XG4gIH1cblxuICBwcml2YXRlIGdldE9yZGVyKHJlcUluZm86IFJlcXVlc3RJbmZvKSB7XG4gICAgcmV0dXJuIHJlcUluZm8uY29sbGVjdGlvbi5maW5kKG9yZGVyID0+IG9yZGVyLmlkID09PSByZXFJbmZvLmlkKTtcbiAgfVxuXG4gIHByaXZhdGUgbGlzdE9yZGVycyhyZXFJbmZvOiBSZXF1ZXN0SW5mbykge1xuICAgIHJldHVybiByZXFJbmZvLmNvbGxlY3Rpb247XG4gIH1cbn1cbiJdfQ==
|
File without changes
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { NgModule, } from '@angular/core';
|
3
|
+
import { DaffOrderDriver } from '@daffodil/order/driver';
|
4
|
+
import { DaffInMemoryOrderService } from './order.service';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export class DaffOrderInMemoryDriverModule {
|
7
|
+
static forRoot() {
|
8
|
+
return {
|
9
|
+
ngModule: DaffOrderInMemoryDriverModule,
|
10
|
+
providers: [
|
11
|
+
{
|
12
|
+
provide: DaffOrderDriver,
|
13
|
+
useExisting: DaffInMemoryOrderService,
|
14
|
+
},
|
15
|
+
],
|
16
|
+
};
|
17
|
+
}
|
18
|
+
}
|
19
|
+
/** @nocollapse */ /** @nocollapse */ DaffOrderInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOrderInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
20
|
+
/** @nocollapse */ /** @nocollapse */ DaffOrderInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOrderInMemoryDriverModule, imports: [CommonModule] });
|
21
|
+
/** @nocollapse */ /** @nocollapse */ DaffOrderInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOrderInMemoryDriverModule, imports: [[
|
22
|
+
CommonModule,
|
23
|
+
]] });
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOrderInMemoryDriverModule, decorators: [{
|
25
|
+
type: NgModule,
|
26
|
+
args: [{
|
27
|
+
imports: [
|
28
|
+
CommonModule,
|
29
|
+
],
|
30
|
+
}]
|
31
|
+
}] });
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItZHJpdmVyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvZHJpdmVyL2luLW1lbW9yeS9zcmMvZHJpdmVycy9vcmRlci1kcml2ZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQ0wsUUFBUSxHQUVULE1BQU0sZUFBZSxDQUFDO0FBR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9vdCgpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPERhZmZPcmRlckluTWVtb3J5RHJpdmVyTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBEYWZmT3JkZXJJbk1lbW9yeURyaXZlck1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogRGFmZk9yZGVyRHJpdmVyLFxuICAgICAgICAgIHVzZUV4aXN0aW5nOiBEYWZmSW5NZW1vcnlPcmRlclNlcnZpY2UsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
2
|
+
import { Injectable } from '@angular/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/common/http";
|
5
|
+
/**
|
6
|
+
* @inheritdoc
|
7
|
+
*/
|
8
|
+
export class DaffInMemoryOrderService {
|
9
|
+
constructor(http) {
|
10
|
+
this.http = http;
|
11
|
+
this.url = '/api/orders';
|
12
|
+
}
|
13
|
+
get(orderId) {
|
14
|
+
return this.http.get(`${this.url}/${orderId}`);
|
15
|
+
}
|
16
|
+
list() {
|
17
|
+
return this.http.get(`${this.url}/`);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
/** @nocollapse */ /** @nocollapse */ DaffInMemoryOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryOrderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
21
|
+
/** @nocollapse */ /** @nocollapse */ DaffInMemoryOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryOrderService, providedIn: 'root' });
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryOrderService, decorators: [{
|
23
|
+
type: Injectable,
|
24
|
+
args: [{
|
25
|
+
providedIn: 'root',
|
26
|
+
}]
|
27
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvZHJpdmVyL2luLW1lbW9yeS9zcmMvZHJpdmVycy9vcmRlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNsRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFNM0M7O0dBRUc7QUFJSCxNQUFNLE9BQU8sd0JBQXdCO0lBR25DLFlBQW9CLElBQWdCO1FBQWhCLFNBQUksR0FBSixJQUFJLENBQVk7UUFGcEMsUUFBRyxHQUFHLGFBQWEsQ0FBQztJQUVtQixDQUFDO0lBRXhDLEdBQUcsQ0FBQyxPQUF3QjtRQUMxQixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFZLEdBQUcsSUFBSSxDQUFDLEdBQUcsSUFBSSxPQUFPLEVBQUUsQ0FBQyxDQUFDO0lBQzVELENBQUM7SUFFRCxJQUFJO1FBQ0YsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBYyxHQUFHLElBQUksQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDO0lBQ3BELENBQUM7OzJKQVhVLHdCQUF3QjsrSkFBeEIsd0JBQXdCLGNBRnZCLE1BQU07MkZBRVAsd0JBQXdCO2tCQUhwQyxVQUFVO21CQUFDO29CQUNWLFVBQVUsRUFBRSxNQUFNO2lCQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEh0dHBDbGllbnQgfSBmcm9tICdAYW5ndWxhci9jb21tb24vaHR0cCc7XG5pbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSAncnhqcyc7XG5cbmltcG9ydCB7IERhZmZPcmRlciB9IGZyb20gJ0BkYWZmb2RpbC9vcmRlcic7XG5pbXBvcnQgeyBEYWZmT3JkZXJTZXJ2aWNlSW50ZXJmYWNlIH0gZnJvbSAnQGRhZmZvZGlsL29yZGVyL2RyaXZlcic7XG5cbi8qKlxuICogQGluaGVyaXRkb2NcbiAqL1xuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIERhZmZJbk1lbW9yeU9yZGVyU2VydmljZSBpbXBsZW1lbnRzIERhZmZPcmRlclNlcnZpY2VJbnRlcmZhY2U8RGFmZk9yZGVyPiB7XG4gIHVybCA9ICcvYXBpL29yZGVycyc7XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBodHRwOiBIdHRwQ2xpZW50KSB7fVxuXG4gIGdldChvcmRlcklkOiBEYWZmT3JkZXJbJ2lkJ10pOiBPYnNlcnZhYmxlPERhZmZPcmRlcj4ge1xuICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0PERhZmZPcmRlcj4oYCR7dGhpcy51cmx9LyR7b3JkZXJJZH1gKTtcbiAgfVxuXG4gIGxpc3QoKTogT2JzZXJ2YWJsZTxEYWZmT3JkZXJbXT4ge1xuICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0PERhZmZPcmRlcltdPihgJHt0aGlzLnVybH0vYCk7XG4gIH1cbn1cbiJdfQ==
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/{esm2015/driver/magento/2.4.0/errors/map.js → esm2020/driver/magento/2.4.0/errors/map.mjs}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|