@daffodil/order 0.39.11 → 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/models/responses/order-address.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} +1 -1
- 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} +3 -3
- 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} +33 -23
- 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
@@ -1,49 +0,0 @@
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
9
|
-
};
|
10
|
-
import { Injectable, Inject, } from '@angular/core';
|
11
|
-
import { Actions, Effect, ofType, } from '@ngrx/effects';
|
12
|
-
import { of } from 'rxjs';
|
13
|
-
import { switchMap, map, catchError, } from 'rxjs/operators';
|
14
|
-
import { DAFF_ORDER_ERROR_MATCHER, } from '@daffodil/order';
|
15
|
-
import { DaffOrderDriver, } from '@daffodil/order/driver';
|
16
|
-
import { DaffOrderActionTypes, DaffOrderLoadSuccess, DaffOrderLoadFailure, DaffOrderListSuccess, DaffOrderListFailure, } from '../actions/order.actions';
|
17
|
-
export class DaffOrderEffects {
|
18
|
-
constructor(actions$, driver, errorMatcher) {
|
19
|
-
this.actions$ = actions$;
|
20
|
-
this.driver = driver;
|
21
|
-
this.errorMatcher = errorMatcher;
|
22
|
-
/**
|
23
|
-
* An effect for the loading of an order.
|
24
|
-
*/
|
25
|
-
this.get$ = this.actions$.pipe(ofType(DaffOrderActionTypes.OrderLoadAction), switchMap((action) => this.driver.get(action.orderId, action.cartId).pipe(map(resp => new DaffOrderLoadSuccess(resp)), catchError((error) => of(new DaffOrderLoadFailure(this.errorMatcher(error)))))));
|
26
|
-
/**
|
27
|
-
* An effect for the listing of orders.
|
28
|
-
*/
|
29
|
-
this.list$ = this.actions$.pipe(ofType(DaffOrderActionTypes.OrderListAction), switchMap((action) => this.driver.list(action.payload).pipe(map(resp => new DaffOrderListSuccess(resp)), catchError((error) => of(new DaffOrderListFailure(this.errorMatcher(error)))))));
|
30
|
-
}
|
31
|
-
}
|
32
|
-
DaffOrderEffects.decorators = [
|
33
|
-
{ type: Injectable }
|
34
|
-
];
|
35
|
-
/** @nocollapse */
|
36
|
-
DaffOrderEffects.ctorParameters = () => [
|
37
|
-
{ type: Actions },
|
38
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DaffOrderDriver,] }] },
|
39
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DAFF_ORDER_ERROR_MATCHER,] }] }
|
40
|
-
];
|
41
|
-
__decorate([
|
42
|
-
Effect(),
|
43
|
-
__metadata("design:type", Object)
|
44
|
-
], DaffOrderEffects.prototype, "get$", void 0);
|
45
|
-
__decorate([
|
46
|
-
Effect(),
|
47
|
-
__metadata("design:type", Object)
|
48
|
-
], DaffOrderEffects.prototype, "list$", void 0);
|
49
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIuZWZmZWN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvc3RhdGUvc3JjL2VmZmVjdHMvb3JkZXIuZWZmZWN0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxPQUFPLEVBQ0wsVUFBVSxFQUNWLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQ0wsT0FBTyxFQUNQLE1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JMaXN0KSA9PlxuICAgICAgdGhpcy5kcml2ZXIubGlzdChhY3Rpb24ucGF5bG9hZCkucGlwZShcbiAgICAgICAgbWFwKHJlc3AgPT4gbmV3IERhZmZPcmRlckxpc3RTdWNjZXNzPFQ+KHJlc3ApKSxcbiAgICAgICAgY2F0Y2hFcnJvcigoZXJyb3I6IERhZmZFcnJvcikgPT4gb2YobmV3IERhZmZPcmRlckxpc3RGYWlsdXJlKHRoaXMuZXJyb3JNYXRjaGVyKGVycm9yKSkpKSxcbiAgICAgICksXG4gICAgKSxcbiAgKTtcbn1cbiJdfQ==
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { EffectsModule } from '@ngrx/effects';
|
3
|
-
import { StoreModule } from '@ngrx/store';
|
4
|
-
import { DaffCartStateModule } from '@daffodil/cart/state';
|
5
|
-
import { DaffOrderEffects } from './effects/order.effects';
|
6
|
-
import { DAFF_ORDER_STORE_FEATURE_KEY, daffOrderReducers, } from './reducers/public_api';
|
7
|
-
export class DaffOrderStateModule {
|
8
|
-
}
|
9
|
-
DaffOrderStateModule.decorators = [
|
10
|
-
{ type: NgModule, args: [{
|
11
|
-
imports: [
|
12
|
-
DaffCartStateModule,
|
13
|
-
EffectsModule.forFeature([
|
14
|
-
DaffOrderEffects,
|
15
|
-
]),
|
16
|
-
StoreModule.forFeature(DAFF_ORDER_STORE_FEATURE_KEY, daffOrderReducers),
|
17
|
-
],
|
18
|
-
},] }
|
19
|
-
];
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItc3RhdGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9vcmRlci9zdGF0ZS9zcmMvb3JkZXItc3RhdGUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQ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ICcuL3JlZHVjZXJzL3B1YmxpY19hcGknO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgRGFmZkNhcnRTdGF0ZU1vZHVsZSxcbiAgICBFZmZlY3RzTW9kdWxlLmZvckZlYXR1cmUoW1xuICAgICAgRGFmZk9yZGVyRWZmZWN0cyxcbiAgICBdKSxcbiAgICBTdG9yZU1vZHVsZS5mb3JGZWF0dXJlKERBRkZfT1JERVJfU1RPUkVfRkVBVFVSRV9LRVksIGRhZmZPcmRlclJlZHVjZXJzKSxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZk9yZGVyU3RhdGVNb2R1bGUge31cbiJdfQ==
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { DaffOrderActionTypes, } from '../../actions/order.actions';
|
2
|
-
import { daffOrderInitialState } from './order-initial-state';
|
3
|
-
export function daffOrderReducer(state = daffOrderInitialState, action) {
|
4
|
-
switch (action.type) {
|
5
|
-
case DaffOrderActionTypes.OrderListAction:
|
6
|
-
case DaffOrderActionTypes.OrderLoadAction:
|
7
|
-
return Object.assign(Object.assign({}, state), { loading: true });
|
8
|
-
case DaffOrderActionTypes.OrderListSuccessAction:
|
9
|
-
case DaffOrderActionTypes.OrderLoadSuccessAction:
|
10
|
-
return Object.assign(Object.assign({}, state), { loading: false, errors: [] });
|
11
|
-
case DaffOrderActionTypes.OrderListFailureAction:
|
12
|
-
case DaffOrderActionTypes.OrderLoadFailureAction:
|
13
|
-
return Object.assign(Object.assign({}, state), { errors: [
|
14
|
-
...state.errors,
|
15
|
-
action.payload,
|
16
|
-
], loading: false });
|
17
|
-
default:
|
18
|
-
return state;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIucmVkdWNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvb3J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0RmFpbHVyZUFjdGlvbjpcbiAgICBjYXNlIERhZmZPcmRlckFjdGlvblR5cGVzLk9yZGVyTG9hZEZhaWx1cmVBY3Rpb246XG4gICAgICByZXR1cm4ge1xuICAgICAgICAuLi5zdGF0ZSxcbiAgICAgICAgZXJyb3JzOiBbXG4gICAgICAgICAgLi4uc3RhdGUuZXJyb3JzLFxuICAgICAgICAgIGFjdGlvbi5wYXlsb2FkLFxuICAgICAgICBdLFxuICAgICAgICBsb2FkaW5nOiBmYWxzZSxcbiAgICAgIH07XG5cbiAgICBkZWZhdWx0OlxuICAgICAgcmV0dXJuIHN0YXRlO1xuICB9XG59XG4iXX0=
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { getDaffOrderEntitySelectors, } from './order-entities.selector';
|
2
|
-
import { getDaffOrderReducersStateSelector, } from './order-feature.selector';
|
3
|
-
import { getOrderSelectors, } from './order.selector';
|
4
|
-
const ɵ0 = () => {
|
5
|
-
let cache;
|
6
|
-
return () => cache = cache || Object.assign(Object.assign(Object.assign({}, getOrderSelectors()), getDaffOrderEntitySelectors()), getDaffOrderReducersStateSelector());
|
7
|
-
};
|
8
|
-
export const getDaffOrderSelectors = (ɵ0)();
|
9
|
-
export { ɵ0 };
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItYWxsLnNlbGVjdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9vcmRlci9zdGF0ZS9zcmMvc2VsZWN0b3JzL29yZGVyLWFsbC5zZWxlY3Rvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBRUwsMkJBQTJCLEdBQzVCLE1BQU0sMkJBQTJCLENBQUM7QUFDbkMsT0FBTyxFQUVMLGlDQUFpQyxHQUNsQyxNQUFNLDBCQUEwQixDQUFDO0FBQ2xDLE9BQU8sRUFFTCxpQkFBaUIs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yZGVyU2VsZWN0b3JzID0gKCgpID0+IHtcbiAgbGV0IGNhY2hlO1xuICByZXR1cm4gPFQgZXh0ZW5kcyBEYWZmT3JkZXIgPSBEYWZmT3JkZXI+KCk6IERhZmZPcmRlckFsbFNlbGVjdG9yczxUPiA9PlxuICAgIGNhY2hlID0gY2FjaGUgfHwge1xuICAgICAgLi4uZ2V0T3JkZXJTZWxlY3RvcnM8VD4oKSxcbiAgICAgIC4uLmdldERhZmZPcmRlckVudGl0eVNlbGVjdG9yczxUPigpLFxuICAgICAgLi4uZ2V0RGFmZk9yZGVyUmVkdWNlcnNTdGF0ZVNlbGVjdG9yPFQ+KCksXG4gICAgfTtcbn0pKCk7XG4iXX0=
|
@@ -1,79 +0,0 @@
|
|
1
|
-
import { createSelector, defaultMemoize, } from '@ngrx/store';
|
2
|
-
import { getDaffCartSelectors, } from '@daffodil/cart/state';
|
3
|
-
import { DaffOrderTotalTypeEnum, } from '@daffodil/order';
|
4
|
-
import { daffGetOrderAdapter, } from '../reducers/public_api';
|
5
|
-
import { getDaffOrderReducersStateSelector } from './order-feature.selector';
|
6
|
-
const createOrderEntitySelectors = () => {
|
7
|
-
const { selectOrderFeatureState } = getDaffOrderReducersStateSelector();
|
8
|
-
const selectOrderEntitiesState = createSelector(selectOrderFeatureState, state => state.orders);
|
9
|
-
const { selectIds, selectEntities, selectAll, selectTotal } = daffGetOrderAdapter().getSelectors(selectOrderEntitiesState);
|
10
|
-
const { selectCartOrderId } = getDaffCartSelectors();
|
11
|
-
const selectOrder = defaultMemoize((orderId) => createSelector(selectEntities, (orders) => orders[orderId] || null)).memoized;
|
12
|
-
const selectPlacedOrder = createSelector(selectEntities, selectCartOrderId, (orders, orderId) => orderId ? selectOrder(orderId).projector(orders) : null);
|
13
|
-
const selectHasPlacedOrder = createSelector(selectPlacedOrder, placedOrder => !!placedOrder);
|
14
|
-
const selectOrderTotals = defaultMemoize((orderId) => createSelector(selectOrder(orderId), (order) => (order && order.totals) || [])).memoized;
|
15
|
-
const selectOrderAppliedCodes = defaultMemoize((orderId) => createSelector(selectOrder(orderId), (order) => (order && order.applied_codes) || [])).memoized;
|
16
|
-
const selectOrderItems = defaultMemoize((orderId) => createSelector(selectOrder(orderId), (order) => (order && order.items) || [])).memoized;
|
17
|
-
const selectOrderBillingAddresses = defaultMemoize((orderId) => createSelector(selectOrder(orderId), (order) => (order && order.billing_addresses) || [])).memoized;
|
18
|
-
const selectOrderShippingTotalAddresses = defaultMemoize((orderId) => createSelector(selectOrder(orderId), (order) => (order && order.shipping_addresses) || [])).memoized;
|
19
|
-
const selectOrderShipments = defaultMemoize((orderId) => createSelector(selectOrder(orderId), (order) => (order && order.shipments) || [])).memoized;
|
20
|
-
const selectOrderPayment = defaultMemoize((orderId) => createSelector(selectOrder(orderId), (order) => (order && order.payment) || null)).memoized;
|
21
|
-
const selectOrderInvoices = defaultMemoize((orderId) => createSelector(selectOrder(orderId), (order) => (order && order.invoices) || [])).memoized;
|
22
|
-
const selectOrderCredits = defaultMemoize((orderId) => createSelector(selectOrder(orderId), (order) => (order && order.credits) || [])).memoized;
|
23
|
-
const selectOrderGrandTotal = defaultMemoize((orderId) => createSelector(selectOrderTotals(orderId), totals => {
|
24
|
-
const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.GrandTotal);
|
25
|
-
return index > -1 ? totals[index] : null;
|
26
|
-
})).memoized;
|
27
|
-
const selectOrderSubtotal = defaultMemoize((orderId) => createSelector(selectOrderTotals(orderId), totals => {
|
28
|
-
const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.Subtotal);
|
29
|
-
return index > -1 ? totals[index] : null;
|
30
|
-
})).memoized;
|
31
|
-
const selectOrderShippingTotal = defaultMemoize((orderId) => createSelector(selectOrderTotals(orderId), totals => {
|
32
|
-
const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.Shipping);
|
33
|
-
return index > -1 ? totals[index] : null;
|
34
|
-
})).memoized;
|
35
|
-
const selectOrderDiscountTotal = defaultMemoize((orderId) => createSelector(selectOrderTotals(orderId), totals => {
|
36
|
-
const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.Discount);
|
37
|
-
return index > -1 ? totals[index] : null;
|
38
|
-
})).memoized;
|
39
|
-
const selectOrderHasDiscount = defaultMemoize((orderId) => createSelector(selectOrderDiscountTotal(orderId), discountTotal => (discountTotal === null || discountTotal === void 0 ? void 0 : discountTotal.value) > 0)).memoized;
|
40
|
-
const selectOrderTaxTotal = defaultMemoize((orderId) => createSelector(selectOrderTotals(orderId), totals => {
|
41
|
-
const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.Tax);
|
42
|
-
return index > -1 ? totals[index] : null;
|
43
|
-
})).memoized;
|
44
|
-
const selectOrderItem = defaultMemoize((orderId, itemId) => createSelector(selectOrderItems(orderId), items => items.find(item => item.id === itemId) || null)).memoized;
|
45
|
-
return {
|
46
|
-
selectOrderEntitiesState,
|
47
|
-
selectOrderIds: selectIds,
|
48
|
-
selectOrderEntities: selectEntities,
|
49
|
-
selectAllOrders: selectAll,
|
50
|
-
selectOrderTotal: selectTotal,
|
51
|
-
selectPlacedOrder,
|
52
|
-
selectHasPlacedOrder,
|
53
|
-
selectOrder,
|
54
|
-
selectOrderTotals,
|
55
|
-
selectOrderAppliedCodes,
|
56
|
-
selectOrderItems,
|
57
|
-
selectOrderBillingAddresses,
|
58
|
-
selectOrderShippingTotalAddresses,
|
59
|
-
selectOrderShipments,
|
60
|
-
selectOrderPayment,
|
61
|
-
selectOrderInvoices,
|
62
|
-
selectOrderCredits,
|
63
|
-
selectOrderItem,
|
64
|
-
selectOrderGrandTotal,
|
65
|
-
selectOrderSubtotal,
|
66
|
-
selectOrderShippingTotal,
|
67
|
-
selectOrderDiscountTotal,
|
68
|
-
selectOrderHasDiscount,
|
69
|
-
selectOrderTaxTotal,
|
70
|
-
};
|
71
|
-
};
|
72
|
-
const ɵ0 = createOrderEntitySelectors;
|
73
|
-
const ɵ1 = () => {
|
74
|
-
let cache;
|
75
|
-
return () => cache = cache || createOrderEntitySelectors();
|
76
|
-
};
|
77
|
-
export const getDaffOrderEntitySelectors = (ɵ1)();
|
78
|
-
export { ɵ0, ɵ1 };
|
79
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItZW50aXRpZXMuc2VsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL29yZGVyL3N0YXRlL3NyYy9zZWxlY3RvcnMvb3JkZXItZW50aXRpZXMuc2VsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUNMLGNBQWMsRUFDZCxjQUFjLEdBRWYsTUFBTSxhQUFhLENBQUM7QUFFckIsT0FBTyxFQUNMLG9CQUFvQixHQUVyQixNQUFNLHNCQUFzQixDQUFDO0FBQzlCLE9BQU8sRUFJTCxzQkFBc0IsR0FDdkIsTUFBTSxpQkFBaUIsQ0FBQztBQUV6QixPQUFPLEVBRUwsbUJBQW1CLEdBRXBCLE1BQU0sd0JBQXdCLENBQUM7QUFDaEMsT0FBTyxFQUFFLGlDQUFpQyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFtRzdFLE1BQU0sMEJBQTBCLEdBQUcsR0FBb0MsRUFBRTtJQUN2RSxNQUFNLEVBQUUsdUJBQXVCLEVBQUUsR0FBRyxpQ0FBaUMsRUFBSyxDQUFDO0lBQzNFLE1BQU0sd0JBQXdCLEdBQUcsY0FBYyxDQUM3Qyx1QkFBdUIsRUFDdkIsS0FBSyxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUN0QixDQUFDO0lBQ0YsTUFBTSxFQUFFLFNBQVMsRUFBRSxjQUFjLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxHQUFHLG1CQUFtQixFQUFLLENBQUMsWUFBWSxDQUFDLHdCQUF3QixDQUFDLENBQUM7SUFDO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|
-
import { createFeatureSelector, } from '@ngrx/store';
|
2
|
-
import { DAFF_ORDER_STORE_FEATURE_KEY, } from '../reducers/public_api';
|
3
|
-
const ɵ0 = () => {
|
4
|
-
let cache;
|
5
|
-
return () => cache = cache || {
|
6
|
-
selectOrderFeatureState: createFeatureSelector(DAFF_ORDER_STORE_FEATURE_KEY),
|
7
|
-
};
|
8
|
-
};
|
9
|
-
export const getDaffOrderReducersStateSelector = (ɵ0)();
|
10
|
-
export { ɵ0 };
|
11
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItZmVhdHVyZS5zZWxlY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvc3RhdGUvc3JjL3NlbGVjdG9ycy9vcmRlci1mZWF0dXJlLnNlbGVjdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxxQkFBcUIsR0FFdEIsTUFBTSxhQUFhLENBQUM7QUFJckIsT0FBTyxFQUdMLDRCQUE0QixHQUM3QixNQUFNLHdCQUF3QixDQUFDO1dBTWtCLEdBQUcsRUFBRTtJQUNyRCxJQUFJLEtBQUssQ0FBQztJQUNWLE9BQU8sR0FBaUUsRUFBRSxDQUN4RSxLQUFLLEdBQUcsS0FBSyxJQUFJO1FBQ2YsdUJBQXVCLEVBQUUscUJBQXFCLENBQTRCLDRCQUE0QixDQUFDO0tBQ3hHLENBQUM7QUFDTixDQUFDO0FBTkQsTUFBTSxDQUFDLE1BQU0saUNBQWlDLEdBQUcsSUFNL0MsRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgY3JlYXRlRmVhdHVyZVNlbGVjdG9yLFxuICBNZW1vaXplZFNlbGVjdG9yLFxufSBmcm9tICdAbmdyeC9zdG9yZSc7XG5cbmltcG9ydCB7IERhZmZPcmRlciB9IGZyb20gJ0BkYWZmb2RpbC9vcmRlcic7XG5cbmltcG9ydCB7XG4gIERhZmZPcmRlclN0YXRlUm9vdFNsaWNlLFxuICBEYWZmT3JkZXJSZWR1Y2Vyc1N0YXRlLFxuICBEQUZGX09SREVSX1NUT1JFX0ZFQVRVUkVfS0VZLFxufSBmcm9tICcuLi9yZWR1Y2Vycy9wdWJsaWNfYXBpJztcblxuZXhwb3J0IGludGVyZmFjZSBEYWZmT3JkZXJGZWF0dXJlU2VsZWN0b3I8VCBleHRlbmRzIERhZmZPcmRlciA9IERhZmZPcmRlcj4ge1xuICBzZWxlY3RPcmRlckZlYXR1cmVTdGF0ZTogTWVtb2l6ZWRTZWxlY3RvcjxEYWZmT3JkZXJTdGF0ZVJvb3RTbGljZTxUPiwgRGFmZk9yZGVyUmVkdWNlcnNTdGF0ZTxUPj47XG59XG5cbmV4cG9ydCBjb25zdCBnZXREYWZmT3JkZXJSZWR1Y2Vyc1N0YXRlU2VsZWN0b3IgPSAoKCkgPT4ge1xuICBsZXQgY2FjaGU7XG4gIHJldHVybiA8VCBleHRlbmRzIERhZmZPcmRlciA9IERhZmZPcmRlcj4oKTogRGFmZk9yZGVyRmVhdHVyZVNlbGVjdG9yPFQ+ID0+XG4gICAgY2FjaGUgPSBjYWNoZSB8fCB7XG4gICAgICBzZWxlY3RPcmRlckZlYXR1cmVTdGF0ZTogY3JlYXRlRmVhdHVyZVNlbGVjdG9yPERhZmZPcmRlclJlZHVjZXJzU3RhdGU8VD4+KERBRkZfT1JERVJfU1RPUkVfRkVBVFVSRV9LRVkpLFxuICAgIH07XG59KSgpO1xuIl19
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { createSelector, } from '@ngrx/store';
|
2
|
-
import { getDaffOrderReducersStateSelector } from './order-feature.selector';
|
3
|
-
const createOrderSelectors = () => {
|
4
|
-
const { selectOrderFeatureState } = getDaffOrderReducersStateSelector();
|
5
|
-
const selectOrderState = createSelector(selectOrderFeatureState, state => state.order);
|
6
|
-
const selectOrderLoading = createSelector(selectOrderState, state => state.loading);
|
7
|
-
const selectOrderErrors = createSelector(selectOrderState, state => state.errors);
|
8
|
-
return {
|
9
|
-
selectOrderState,
|
10
|
-
selectOrderLoading,
|
11
|
-
selectOrderErrors,
|
12
|
-
};
|
13
|
-
};
|
14
|
-
const ɵ0 = createOrderSelectors;
|
15
|
-
const ɵ1 = () => {
|
16
|
-
let cache;
|
17
|
-
return () => cache = cache || createOrderSelectors();
|
18
|
-
};
|
19
|
-
export const getOrderSelectors = (ɵ1)();
|
20
|
-
export { ɵ0, ɵ1 };
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIuc2VsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL29yZGVyL3N0YXRlL3NyYy9zZWxlY3RvcnMvb3JkZXIuc2VsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLGNBQWMsR0FFZixNQUFNLGFBQWEsQ0FBQztBQVNyQixPQUFPLEVBQUUsaUNBQWlDLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQVE3RSxNQUFNLG9CQUFvQixHQUFHLEdBQW9DLEVBQUU7SUFDakUsTUFBTSxFQUFFLHVCQUF1QixFQUFFLEdBQUcsaUNBQWlDLEVBQUssQ0FBQztJQUMzRSxNQUFNLGdCQUFnQixHQUFHLGNBQWMsQ0FDckMsdUJBQXVCLEVBQ3ZCLEtBQUssQ0FBQyxFQUFFLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FDckIsQ0FBQztJQUVGLE1BQU0sa0JBQWtCLEdBQUcsY0FBYyxDQUN2QyxnQkFBZ0IsRUFDaEIsS0FBSyxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUN2QixDQUFDO0lBRUYsTUFBTSxpQkFBaUIsR0FBR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hlO1xuICByZXR1cm4gPFQgZXh0ZW5kcyBEYWZmT3JkZXIgPSBEYWZmT3JkZXI+KCk6IERhZmZPcmRlclNlbGVjdG9ycyA9PlxuICAgIGNhY2hlID0gY2FjaGUgfHwgY3JlYXRlT3JkZXJTZWxlY3RvcnM8VD4oKTtcbn0pKCk7XG4iXX0=
|
@@ -1,79 +0,0 @@
|
|
1
|
-
import { Injectable } from '@angular/core';
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
/**
|
5
|
-
* @inheritdoc
|
6
|
-
*/
|
7
|
-
export class MockDaffOrderFacade {
|
8
|
-
constructor() {
|
9
|
-
this.loading$ = new BehaviorSubject(null);
|
10
|
-
this.errors$ = new BehaviorSubject([]);
|
11
|
-
this.orders$ = new BehaviorSubject([]);
|
12
|
-
this.orderIds$ = new BehaviorSubject([]);
|
13
|
-
this.orderCount$ = new BehaviorSubject(null);
|
14
|
-
this.orderEntities$ = new BehaviorSubject({});
|
15
|
-
this.placedOrder$ = new BehaviorSubject(null);
|
16
|
-
this.hasPlacedOrder$ = new BehaviorSubject(false);
|
17
|
-
}
|
18
|
-
getOrder$(orderId) {
|
19
|
-
return new BehaviorSubject(null);
|
20
|
-
}
|
21
|
-
getTotals$(orderId) {
|
22
|
-
return new BehaviorSubject([]);
|
23
|
-
}
|
24
|
-
getAppliedCodes$(orderId) {
|
25
|
-
return new BehaviorSubject([]);
|
26
|
-
}
|
27
|
-
getItems$(orderId) {
|
28
|
-
return new BehaviorSubject([]);
|
29
|
-
}
|
30
|
-
getBillingAddresses$(orderId) {
|
31
|
-
return new BehaviorSubject([]);
|
32
|
-
}
|
33
|
-
getShippingAddresses$(orderId) {
|
34
|
-
return new BehaviorSubject([]);
|
35
|
-
}
|
36
|
-
getShipments$(orderId) {
|
37
|
-
return new BehaviorSubject([]);
|
38
|
-
}
|
39
|
-
getPayment$(orderId) {
|
40
|
-
return new BehaviorSubject(null);
|
41
|
-
}
|
42
|
-
getInvoices$(orderId) {
|
43
|
-
return new BehaviorSubject([]);
|
44
|
-
}
|
45
|
-
getCredits$(orderId) {
|
46
|
-
return new BehaviorSubject([]);
|
47
|
-
}
|
48
|
-
getGrandTotal$(orderId) {
|
49
|
-
return new BehaviorSubject(null);
|
50
|
-
}
|
51
|
-
;
|
52
|
-
getSubtotal$(orderId) {
|
53
|
-
return new BehaviorSubject(null);
|
54
|
-
}
|
55
|
-
;
|
56
|
-
getShippingTotal$(orderId) {
|
57
|
-
return new BehaviorSubject(null);
|
58
|
-
}
|
59
|
-
;
|
60
|
-
getDiscountTotal$(orderId) {
|
61
|
-
return new BehaviorSubject(null);
|
62
|
-
}
|
63
|
-
;
|
64
|
-
hasDiscount$(orderId) {
|
65
|
-
return new BehaviorSubject(false);
|
66
|
-
}
|
67
|
-
;
|
68
|
-
getTaxTotal$(orderId) {
|
69
|
-
return new BehaviorSubject(null);
|
70
|
-
}
|
71
|
-
;
|
72
|
-
dispatch(action) { }
|
73
|
-
;
|
74
|
-
}
|
75
|
-
/** @nocollapse */ MockDaffOrderFacade.ɵprov = i0.ɵɵdefineInjectable({ factory: function MockDaffOrderFacade_Factory() { return new MockDaffOrderFacade(); }, token: MockDaffOrderFacade, providedIn: "root" });
|
76
|
-
MockDaffOrderFacade.decorators = [
|
77
|
-
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
78
|
-
];
|
79
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay1vcmRlci1mYWNhZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL29yZGVyL3N0YXRlL3Rlc3Rpbmcvc3JjL21vY2stb3JkZXItZmFjYWRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHM0MsT0FBTyxFQUFFLGVBQ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BnZXRUYXhUb3RhbCQob3JkZXJJZDogRGFmZk9yZGVyWydpZCddKTogQmVoYXZpb3JTdWJqZWN0PERhZmZPcmRlclRvdGFsPiB7XG4gICAgcmV0dXJuIG5ldyBCZWhhdmlvclN1YmplY3QobnVsbCk7XG4gIH07XG5cbiAgZGlzcGF0Y2goYWN0aW9uOiBBY3Rpb24pIHt9O1xufVxuIl19
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { DaffOrderFacade } from '@daffodil/order/state';
|
3
|
-
import { MockDaffOrderFacade } from './mock-order-facade';
|
4
|
-
export class DaffOrderTestingModule {
|
5
|
-
}
|
6
|
-
DaffOrderTestingModule.decorators = [
|
7
|
-
{ type: NgModule, args: [{
|
8
|
-
providers: [
|
9
|
-
{ provide: DaffOrderFacade, useExisting: MockDaffOrderFacade },
|
10
|
-
],
|
11
|
-
},] }
|
12
|
-
];
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItdGVzdGluZy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL29yZGVyL3N0YXRlL3Rlc3Rpbmcvc3JjL29yZGVyLXRlc3RpbmcubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBRXhELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBTzFELE1BQU0sT0FBTyxzQkFBc0I7OztZQUxsQyxRQUFRLFNBQUM7Z0JBQ1IsU0FBUyxFQUFFO29CQUNULEVBQUUsT0FBTyxFQUFFLGVBQWUsRUFBRSxXQUFXLEVBQUUsbUJBQW1CLEVBQUU7aUJBQy9EO2FBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBEYWZmT3JkZXJGYWNhZGUgfSBmcm9tICdAZGFmZm9kaWwvb3JkZXIvc3RhdGUnO1xuXG5pbXBvcnQgeyBNb2NrRGFmZk9yZGVyRmFjYWRlIH0gZnJvbSAnLi9tb2NrLW9yZGVyLWZhY2FkZSc7XG5cbkBOZ01vZHVsZSh7XG4gIHByb3ZpZGVyczogW1xuICAgIHsgcHJvdmlkZTogRGFmZk9yZGVyRmFjYWRlLCB1c2VFeGlzdGluZzogTW9ja0RhZmZPcmRlckZhY2FkZSB9LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmT3JkZXJUZXN0aW5nTW9kdWxlIHt9XG4iXX0=
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import { Injectable } from '@angular/core';
|
2
|
-
import * as faker from '@faker-js/faker/locale/en_US';
|
3
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
4
|
-
import { DaffOrderItemType, } from '@daffodil/order';
|
5
|
-
import { MockOrderItem } from './order-item.factory';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
export class MockCompositeOrderItem extends MockOrderItem {
|
8
|
-
constructor() {
|
9
|
-
super(...arguments);
|
10
|
-
this.type = DaffOrderItemType.Composite;
|
11
|
-
this.options = [
|
12
|
-
{
|
13
|
-
option_label: faker.random.word(),
|
14
|
-
value_label: faker.random.word(),
|
15
|
-
},
|
16
|
-
{
|
17
|
-
option_label: faker.random.word(),
|
18
|
-
value_label: faker.random.word(),
|
19
|
-
},
|
20
|
-
];
|
21
|
-
}
|
22
|
-
}
|
23
|
-
export class DaffCompositeOrderItemFactory extends DaffModelFactory {
|
24
|
-
constructor() {
|
25
|
-
super(MockCompositeOrderItem);
|
26
|
-
}
|
27
|
-
}
|
28
|
-
/** @nocollapse */ DaffCompositeOrderItemFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffCompositeOrderItemFactory_Factory() { return new DaffCompositeOrderItemFactory(); }, token: DaffCompositeOrderItemFactory, providedIn: "root" });
|
29
|
-
DaffCompositeOrderItemFactory.decorators = [
|
30
|
-
{ type: Injectable, args: [{
|
31
|
-
providedIn: 'root',
|
32
|
-
},] }
|
33
|
-
];
|
34
|
-
/** @nocollapse */
|
35
|
-
DaffCompositeOrderItemFactory.ctorParameters = () => [];
|
36
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9zaXRlLW9yZGVyLWl0ZW0uZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvdGVzdGluZy9zcmMvZmFjdG9yaWVzL2NvbXBvc2l0ZS1vcmRlci1pdGVtLmZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEtBQUssS0FBSyxNQUFNLDhCQUE4QixDQUFDO0FBRXRELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzFELE9BQU8sRUFFTCxpQkFBaUIsR0FDbEIsTUFBTSxpQkFBaUIsQ0FBQztBQUV6QixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7O0FBRXJELE1BQU0sT0FBTyxzQkFBdUIsU0FBUSxhQUFhO0lBQXpEOztRQUNDLFNBQUksR0FBRyxpQkFBaUIsQ0FBQyxTQUFTLENBQUM7UUFDbkMsWUFBTyxHQUFHO1lBQ1I7Z0JBQ0UsWUFBWSxFQUFFLEtBQUssQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFO2dCQUNqQyxXQUFXLEVBQUUs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mYWtlci5yYW5kb20ud29yZCgpLFxuXHQgICAgdmFsdWVfbGFiZWw6IGZha2VyLnJhbmRvbS53b3JkKCksXG5cdCAgfSxcblx0ICB7XG5cdCAgICBvcHRpb25fbGFiZWw6IGZha2VyLnJhbmRvbS53b3JkKCksXG5cdCAgICB2YWx1ZV9sYWJlbDogZmFrZXIucmFuZG9tLndvcmQoKSxcblx0ICB9LFxuXHRdO1xufVxuXG5ASW5qZWN0YWJsZSh7XG4gIHByb3ZpZGVkSW46ICdyb290Jyxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZkNvbXBvc2l0ZU9yZGVySXRlbUZhY3RvcnkgZXh0ZW5kcyBEYWZmTW9kZWxGYWN0b3J5PERhZmZDb21wb3NpdGVPcmRlckl0ZW0+IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoTW9ja0NvbXBvc2l0ZU9yZGVySXRlbSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { Injectable } from '@angular/core';
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
3
|
-
import { DaffOrderItemType, } from '@daffodil/order';
|
4
|
-
import { MockOrderItem } from './order-item.factory';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export class MockConfigurableOrderItem extends MockOrderItem {
|
7
|
-
constructor() {
|
8
|
-
super(...arguments);
|
9
|
-
this.type = DaffOrderItemType.Configurable;
|
10
|
-
this.attributes = [
|
11
|
-
{
|
12
|
-
attribute_label: 'Color',
|
13
|
-
value_label: 'Red',
|
14
|
-
},
|
15
|
-
{
|
16
|
-
attribute_label: 'Size',
|
17
|
-
value_label: 'M',
|
18
|
-
},
|
19
|
-
];
|
20
|
-
}
|
21
|
-
}
|
22
|
-
export class DaffConfigurableOrderItemFactory extends DaffModelFactory {
|
23
|
-
constructor() {
|
24
|
-
super(MockConfigurableOrderItem);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
/** @nocollapse */ DaffConfigurableOrderItemFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffConfigurableOrderItemFactory_Factory() { return new DaffConfigurableOrderItemFactory(); }, token: DaffConfigurableOrderItemFactory, providedIn: "root" });
|
28
|
-
DaffConfigurableOrderItemFactory.decorators = [
|
29
|
-
{ type: Injectable, args: [{
|
30
|
-
providedIn: 'root',
|
31
|
-
},] }
|
32
|
-
];
|
33
|
-
/** @nocollapse */
|
34
|
-
DaffConfigurableOrderItemFactory.ctorParameters = () => [];
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhYmxlLW9yZGVyLWl0ZW0uZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvdGVzdGluZy9zcmMvZmFjdG9yaWVzL2NvbmZpZ3VyYWJsZS1vcmRlci1pdGVtLmZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUczQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUMxRCxPQUFPLEVBRUwsaUJBQWlCLEdBQ2xCLE1BQU0saUJBQWlCLENBQUM7QUFFekIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHNCQUFzQixDQUFDOztBQUVyRCxNQUFNLE9BQU8seUJBQTBCLFNBQVEsYUFBYTtJQUE1RDs7UUFDQyxTQUFJLEdBQUcsaUJBQWlCLENBQUMsWUFBWSxDQUFDO1FBQ3RDLGVBQVUsR0FBRztZQUNYO2dCQUNFLGVBQWUsRUFBRSxPQUFPO2dCQUN4QixXQUFXLEVBQUUsS0FBSzthQUNuQjtZQUNEO2dCQUNFLGVBQWUsRUFBRSxNQUFNO2dCQUN2QixXQUFXLEVBQUUsR0FBRzthQUN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bkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmQ29uZmlndXJhYmxlT3JkZXJJdGVtRmFjdG9yeSBleHRlbmRzIERhZmZNb2RlbEZhY3Rvcnk8RGFmZkNvbmZpZ3VyYWJsZU9yZGVySXRlbT4ge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcihNb2NrQ29uZmlndXJhYmxlT3JkZXJJdGVtKTtcbiAgfVxufVxuIl19
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { Injectable } from '@angular/core';
|
2
|
-
import * as faker from '@faker-js/faker/locale/en_US';
|
3
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
4
|
-
import { MockDaffPersonalAddress } from '@daffodil/geography/testing';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export class MockOrderAddress extends MockDaffPersonalAddress {
|
7
|
-
constructor() {
|
8
|
-
super(...arguments);
|
9
|
-
this.order_id = faker.datatype.uuid();
|
10
|
-
}
|
11
|
-
}
|
12
|
-
export class DaffOrderAddressFactory extends DaffModelFactory {
|
13
|
-
constructor() {
|
14
|
-
super(MockOrderAddress);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
/** @nocollapse */ DaffOrderAddressFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderAddressFactory_Factory() { return new DaffOrderAddressFactory(); }, token: DaffOrderAddressFactory, providedIn: "root" });
|
18
|
-
DaffOrderAddressFactory.decorators = [
|
19
|
-
{ type: Injectable, args: [{
|
20
|
-
providedIn: 'root',
|
21
|
-
},] }
|
22
|
-
];
|
23
|
-
/** @nocollapse */
|
24
|
-
DaffOrderAddressFactory.ctorParameters = () => [];
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItYWRkcmVzcy5mYWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOl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0gZnJvbSAnQGRhZmZvZGlsL29yZGVyJztcblxuZXhwb3J0IGNsYXNzIE1vY2tPcmRlckFkZHJlc3MgZXh0ZW5kcyBNb2NrRGFmZlBlcnNvbmFsQWRkcmVzcyBpbXBsZW1lbnRzIERhZmZPcmRlckFkZHJlc3Mge1xuICBvcmRlcl9pZCA9IGZha2VyLmRhdGF0eXBlLnV1aWQoKTtcbn1cblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIERhZmZPcmRlckFkZHJlc3NGYWN0b3J5IGV4dGVuZHMgRGFmZk1vZGVsRmFjdG9yeTxEYWZmT3JkZXJBZGRyZXNzPiB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKE1vY2tPcmRlckFkZHJlc3MpO1xuICB9XG59XG4iXX0=
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { Injectable } from '@angular/core';
|
2
|
-
import * as faker from '@faker-js/faker/locale/en_US';
|
3
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export class MockOrderCoupon {
|
6
|
-
constructor() {
|
7
|
-
this.code = faker.random.alphaNumeric(10);
|
8
|
-
}
|
9
|
-
}
|
10
|
-
;
|
11
|
-
export class DaffOrderCouponFactory extends DaffModelFactory {
|
12
|
-
constructor() {
|
13
|
-
super(MockOrderCoupon);
|
14
|
-
}
|
15
|
-
}
|
16
|
-
/** @nocollapse */ DaffOrderCouponFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderCouponFactory_Factory() { return new DaffOrderCouponFactory(); }, token: DaffOrderCouponFactory, providedIn: "root" });
|
17
|
-
DaffOrderCouponFactory.decorators = [
|
18
|
-
{ type: Injectable, args: [{
|
19
|
-
providedIn: 'root',
|
20
|
-
},] }
|
21
|
-
];
|
22
|
-
/** @nocollapse */
|
23
|
-
DaffOrderCouponFactory.ctorParameters = () => [];
|
24
|
-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uZXhwb3J0IGNsYXNzIE1vY2tPcmRlckNvdXBvbiBpbXBsZW1lbnRzIERhZmZPcmRlckNvdXBvbiB7XG4gIGNvZGUgPSBmYWtlci5yYW5kb20uYWxwaGFOdW1lcmljKDEwKTtcbn07XG5cblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIERhZmZPcmRlckNvdXBvbkZhY3RvcnkgZXh0ZW5kcyBEYWZmTW9kZWxGYWN0b3J5PERhZmZPcmRlckNvdXBvbj57XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKE1vY2tPcmRlckNvdXBvbik7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { Injectable } from '@angular/core';
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export class MockOrderInvoice {
|
5
|
-
constructor() {
|
6
|
-
this.items = [];
|
7
|
-
this.totals = [];
|
8
|
-
this.billing_address = null;
|
9
|
-
this.shipping_address = null;
|
10
|
-
this.payment = null;
|
11
|
-
this.shipping_method = null;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
;
|
15
|
-
export class DaffOrderInvoiceFactory extends DaffModelFactory {
|
16
|
-
constructor() {
|
17
|
-
super(MockOrderInvoice);
|
18
|
-
}
|
19
|
-
}
|
20
|
-
/** @nocollapse */ DaffOrderInvoiceFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderInvoiceFactory_Factory() { return new DaffOrderInvoiceFactory(); }, token: DaffOrderInvoiceFactory, providedIn: "root" });
|
21
|
-
DaffOrderInvoiceFactory.decorators = [
|
22
|
-
{ type: Injectable, args: [{
|
23
|
-
providedIn: 'root',
|
24
|
-
},] }
|
25
|
-
];
|
26
|
-
/** @nocollapse */
|
27
|
-
DaffOrderInvoiceFactory.ctorParameters = () => [];
|
28
|
-
//# sourceMappingURL=data:application/json;base64,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0IGNsYXNzIE1vY2tPcmRlckludm9pY2UgaW1wbGVtZW50cyBEYWZmT3JkZXJJbnZvaWNlIHtcbiAgaXRlbXMgPSBbXTtcbiAgdG90YWxzID0gW107XG4gIGJpbGxpbmdfYWRkcmVzcyA9IG51bGw7XG4gIHNoaXBwaW5nX2FkZHJlc3MgPSBudWxsO1xuICBwYXltZW50ID0gbnVsbDtcbiAgc2hpcHBpbmdfbWV0aG9kID0gbnVsbDtcbn07XG5cblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIERhZmZPcmRlckludm9pY2VGYWN0b3J5IGV4dGVuZHMgRGFmZk1vZGVsRmFjdG9yeTxEYWZmT3JkZXJJbnZvaWNlPiB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKE1vY2tPcmRlckludm9pY2UpO1xuICB9XG59XG4iXX0=
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { Injectable } from '@angular/core';
|
2
|
-
import * as faker from '@faker-js/faker/locale/en_US';
|
3
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export class MockOrderShipmentItem {
|
6
|
-
constructor() {
|
7
|
-
this.item = null;
|
8
|
-
this.qty = faker.datatype.number({ min: 1, max: 100 });
|
9
|
-
}
|
10
|
-
}
|
11
|
-
;
|
12
|
-
export class DaffOrderShipmentItemFactory extends DaffModelFactory {
|
13
|
-
constructor() {
|
14
|
-
super(MockOrderShipmentItem);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
/** @nocollapse */ DaffOrderShipmentItemFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderShipmentItemFactory_Factory() { return new DaffOrderShipmentItemFactory(); }, token: DaffOrderShipmentItemFactory, providedIn: "root" });
|
18
|
-
DaffOrderShipmentItemFactory.decorators = [
|
19
|
-
{ type: Injectable, args: [{
|
20
|
-
providedIn: 'root',
|
21
|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