@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,766 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@faker-js/faker/locale/en_US'), require('@daffodil/core/testing'), require('@daffodil/geography/testing'), require('@daffodil/order')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('@daffodil/order/testing', ['exports', '@angular/core', '@faker-js/faker/locale/en_US', '@daffodil/core/testing', '@daffodil/geography/testing', '@daffodil/order'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.daffodil = global.daffodil || {}, global.daffodil.order = global.daffodil.order || {}, global.daffodil.order.testing = {}), global.ng.core, global.faker, global.testing$1, global.testing, global.daffodil.order));
|
5
|
-
}(this, (function (exports, i0, faker, testing$1, testing, order) { 'use strict';
|
6
|
-
|
7
|
-
/*! *****************************************************************************
|
8
|
-
Copyright (c) Microsoft Corporation.
|
9
|
-
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
11
|
-
purpose with or without fee is hereby granted.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
20
|
-
***************************************************************************** */
|
21
|
-
/* global Reflect, Promise */
|
22
|
-
var extendStatics = function (d, b) {
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
25
|
-
function (d, b) { for (var p in b)
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
27
|
-
d[p] = b[p]; };
|
28
|
-
return extendStatics(d, b);
|
29
|
-
};
|
30
|
-
function __extends(d, b) {
|
31
|
-
if (typeof b !== "function" && b !== null)
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
33
|
-
extendStatics(d, b);
|
34
|
-
function __() { this.constructor = d; }
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
36
|
-
}
|
37
|
-
var __assign = function () {
|
38
|
-
__assign = Object.assign || function __assign(t) {
|
39
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
40
|
-
s = arguments[i];
|
41
|
-
for (var p in s)
|
42
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
43
|
-
t[p] = s[p];
|
44
|
-
}
|
45
|
-
return t;
|
46
|
-
};
|
47
|
-
return __assign.apply(this, arguments);
|
48
|
-
};
|
49
|
-
function __rest(s, e) {
|
50
|
-
var t = {};
|
51
|
-
for (var p in s)
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
53
|
-
t[p] = s[p];
|
54
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
55
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
56
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
57
|
-
t[p[i]] = s[p[i]];
|
58
|
-
}
|
59
|
-
return t;
|
60
|
-
}
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
64
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
65
|
-
else
|
66
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
67
|
-
if (d = decorators[i])
|
68
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
69
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
70
|
-
}
|
71
|
-
function __param(paramIndex, decorator) {
|
72
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
73
|
-
}
|
74
|
-
function __metadata(metadataKey, metadataValue) {
|
75
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
76
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
77
|
-
}
|
78
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
81
|
-
function fulfilled(value) { try {
|
82
|
-
step(generator.next(value));
|
83
|
-
}
|
84
|
-
catch (e) {
|
85
|
-
reject(e);
|
86
|
-
} }
|
87
|
-
function rejected(value) { try {
|
88
|
-
step(generator["throw"](value));
|
89
|
-
}
|
90
|
-
catch (e) {
|
91
|
-
reject(e);
|
92
|
-
} }
|
93
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
94
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
95
|
-
});
|
96
|
-
}
|
97
|
-
function __generator(thisArg, body) {
|
98
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
99
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
100
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
101
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
102
|
-
function step(op) {
|
103
|
-
if (f)
|
104
|
-
throw new TypeError("Generator is already executing.");
|
105
|
-
while (_)
|
106
|
-
try {
|
107
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
108
|
-
return t;
|
109
|
-
if (y = 0, t)
|
110
|
-
op = [op[0] & 2, t.value];
|
111
|
-
switch (op[0]) {
|
112
|
-
case 0:
|
113
|
-
case 1:
|
114
|
-
t = op;
|
115
|
-
break;
|
116
|
-
case 4:
|
117
|
-
_.label++;
|
118
|
-
return { value: op[1], done: false };
|
119
|
-
case 5:
|
120
|
-
_.label++;
|
121
|
-
y = op[1];
|
122
|
-
op = [0];
|
123
|
-
continue;
|
124
|
-
case 7:
|
125
|
-
op = _.ops.pop();
|
126
|
-
_.trys.pop();
|
127
|
-
continue;
|
128
|
-
default:
|
129
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
130
|
-
_ = 0;
|
131
|
-
continue;
|
132
|
-
}
|
133
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
134
|
-
_.label = op[1];
|
135
|
-
break;
|
136
|
-
}
|
137
|
-
if (op[0] === 6 && _.label < t[1]) {
|
138
|
-
_.label = t[1];
|
139
|
-
t = op;
|
140
|
-
break;
|
141
|
-
}
|
142
|
-
if (t && _.label < t[2]) {
|
143
|
-
_.label = t[2];
|
144
|
-
_.ops.push(op);
|
145
|
-
break;
|
146
|
-
}
|
147
|
-
if (t[2])
|
148
|
-
_.ops.pop();
|
149
|
-
_.trys.pop();
|
150
|
-
continue;
|
151
|
-
}
|
152
|
-
op = body.call(thisArg, _);
|
153
|
-
}
|
154
|
-
catch (e) {
|
155
|
-
op = [6, e];
|
156
|
-
y = 0;
|
157
|
-
}
|
158
|
-
finally {
|
159
|
-
f = t = 0;
|
160
|
-
}
|
161
|
-
if (op[0] & 5)
|
162
|
-
throw op[1];
|
163
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
164
|
-
}
|
165
|
-
}
|
166
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
167
|
-
if (k2 === undefined)
|
168
|
-
k2 = k;
|
169
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
170
|
-
}) : (function (o, m, k, k2) {
|
171
|
-
if (k2 === undefined)
|
172
|
-
k2 = k;
|
173
|
-
o[k2] = m[k];
|
174
|
-
});
|
175
|
-
function __exportStar(m, o) {
|
176
|
-
for (var p in m)
|
177
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
178
|
-
__createBinding(o, m, p);
|
179
|
-
}
|
180
|
-
function __values(o) {
|
181
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
182
|
-
if (m)
|
183
|
-
return m.call(o);
|
184
|
-
if (o && typeof o.length === "number")
|
185
|
-
return {
|
186
|
-
next: function () {
|
187
|
-
if (o && i >= o.length)
|
188
|
-
o = void 0;
|
189
|
-
return { value: o && o[i++], done: !o };
|
190
|
-
}
|
191
|
-
};
|
192
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
193
|
-
}
|
194
|
-
function __read(o, n) {
|
195
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
196
|
-
if (!m)
|
197
|
-
return o;
|
198
|
-
var i = m.call(o), r, ar = [], e;
|
199
|
-
try {
|
200
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
201
|
-
ar.push(r.value);
|
202
|
-
}
|
203
|
-
catch (error) {
|
204
|
-
e = { error: error };
|
205
|
-
}
|
206
|
-
finally {
|
207
|
-
try {
|
208
|
-
if (r && !r.done && (m = i["return"]))
|
209
|
-
m.call(i);
|
210
|
-
}
|
211
|
-
finally {
|
212
|
-
if (e)
|
213
|
-
throw e.error;
|
214
|
-
}
|
215
|
-
}
|
216
|
-
return ar;
|
217
|
-
}
|
218
|
-
/** @deprecated */
|
219
|
-
function __spread() {
|
220
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
221
|
-
ar = ar.concat(__read(arguments[i]));
|
222
|
-
return ar;
|
223
|
-
}
|
224
|
-
/** @deprecated */
|
225
|
-
function __spreadArrays() {
|
226
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
227
|
-
s += arguments[i].length;
|
228
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
229
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
230
|
-
r[k] = a[j];
|
231
|
-
return r;
|
232
|
-
}
|
233
|
-
function __spreadArray(to, from, pack) {
|
234
|
-
if (pack || arguments.length === 2)
|
235
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
236
|
-
if (ar || !(i in from)) {
|
237
|
-
if (!ar)
|
238
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
239
|
-
ar[i] = from[i];
|
240
|
-
}
|
241
|
-
}
|
242
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
243
|
-
}
|
244
|
-
function __await(v) {
|
245
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
246
|
-
}
|
247
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
248
|
-
if (!Symbol.asyncIterator)
|
249
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
250
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
251
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
252
|
-
function verb(n) { if (g[n])
|
253
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
254
|
-
function resume(n, v) { try {
|
255
|
-
step(g[n](v));
|
256
|
-
}
|
257
|
-
catch (e) {
|
258
|
-
settle(q[0][3], e);
|
259
|
-
} }
|
260
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
261
|
-
function fulfill(value) { resume("next", value); }
|
262
|
-
function reject(value) { resume("throw", value); }
|
263
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
264
|
-
resume(q[0][0], q[0][1]); }
|
265
|
-
}
|
266
|
-
function __asyncDelegator(o) {
|
267
|
-
var i, p;
|
268
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
269
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
270
|
-
}
|
271
|
-
function __asyncValues(o) {
|
272
|
-
if (!Symbol.asyncIterator)
|
273
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
274
|
-
var m = o[Symbol.asyncIterator], i;
|
275
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
276
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
277
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
278
|
-
}
|
279
|
-
function __makeTemplateObject(cooked, raw) {
|
280
|
-
if (Object.defineProperty) {
|
281
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
282
|
-
}
|
283
|
-
else {
|
284
|
-
cooked.raw = raw;
|
285
|
-
}
|
286
|
-
return cooked;
|
287
|
-
}
|
288
|
-
;
|
289
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
290
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
291
|
-
}) : function (o, v) {
|
292
|
-
o["default"] = v;
|
293
|
-
};
|
294
|
-
function __importStar(mod) {
|
295
|
-
if (mod && mod.__esModule)
|
296
|
-
return mod;
|
297
|
-
var result = {};
|
298
|
-
if (mod != null)
|
299
|
-
for (var k in mod)
|
300
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
301
|
-
__createBinding(result, mod, k);
|
302
|
-
__setModuleDefault(result, mod);
|
303
|
-
return result;
|
304
|
-
}
|
305
|
-
function __importDefault(mod) {
|
306
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
307
|
-
}
|
308
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
309
|
-
if (kind === "a" && !f)
|
310
|
-
throw new TypeError("Private accessor was defined without a getter");
|
311
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
312
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
313
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
314
|
-
}
|
315
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
316
|
-
if (kind === "m")
|
317
|
-
throw new TypeError("Private method is not writable");
|
318
|
-
if (kind === "a" && !f)
|
319
|
-
throw new TypeError("Private accessor was defined without a setter");
|
320
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
321
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
322
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
323
|
-
}
|
324
|
-
|
325
|
-
var MockOrderAddress = /** @class */ (function (_super) {
|
326
|
-
__extends(MockOrderAddress, _super);
|
327
|
-
function MockOrderAddress() {
|
328
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
329
|
-
_this.order_id = faker.datatype.uuid();
|
330
|
-
return _this;
|
331
|
-
}
|
332
|
-
return MockOrderAddress;
|
333
|
-
}(testing.MockDaffPersonalAddress));
|
334
|
-
var DaffOrderAddressFactory = /** @class */ (function (_super) {
|
335
|
-
__extends(DaffOrderAddressFactory, _super);
|
336
|
-
function DaffOrderAddressFactory() {
|
337
|
-
return _super.call(this, MockOrderAddress) || this;
|
338
|
-
}
|
339
|
-
return DaffOrderAddressFactory;
|
340
|
-
}(testing$1.DaffModelFactory));
|
341
|
-
/** @nocollapse */ DaffOrderAddressFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderAddressFactory_Factory() { return new DaffOrderAddressFactory(); }, token: DaffOrderAddressFactory, providedIn: "root" });
|
342
|
-
DaffOrderAddressFactory.decorators = [
|
343
|
-
{ type: i0.Injectable, args: [{
|
344
|
-
providedIn: 'root',
|
345
|
-
},] }
|
346
|
-
];
|
347
|
-
/** @nocollapse */
|
348
|
-
DaffOrderAddressFactory.ctorParameters = function () { return []; };
|
349
|
-
|
350
|
-
var MockOrderCoupon = /** @class */ (function () {
|
351
|
-
function MockOrderCoupon() {
|
352
|
-
this.code = faker.random.alphaNumeric(10);
|
353
|
-
}
|
354
|
-
return MockOrderCoupon;
|
355
|
-
}());
|
356
|
-
;
|
357
|
-
var DaffOrderCouponFactory = /** @class */ (function (_super) {
|
358
|
-
__extends(DaffOrderCouponFactory, _super);
|
359
|
-
function DaffOrderCouponFactory() {
|
360
|
-
return _super.call(this, MockOrderCoupon) || this;
|
361
|
-
}
|
362
|
-
return DaffOrderCouponFactory;
|
363
|
-
}(testing$1.DaffModelFactory));
|
364
|
-
/** @nocollapse */ DaffOrderCouponFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderCouponFactory_Factory() { return new DaffOrderCouponFactory(); }, token: DaffOrderCouponFactory, providedIn: "root" });
|
365
|
-
DaffOrderCouponFactory.decorators = [
|
366
|
-
{ type: i0.Injectable, args: [{
|
367
|
-
providedIn: 'root',
|
368
|
-
},] }
|
369
|
-
];
|
370
|
-
/** @nocollapse */
|
371
|
-
DaffOrderCouponFactory.ctorParameters = function () { return []; };
|
372
|
-
|
373
|
-
var MockOrderInvoice = /** @class */ (function () {
|
374
|
-
function MockOrderInvoice() {
|
375
|
-
this.items = [];
|
376
|
-
this.totals = [];
|
377
|
-
this.billing_address = null;
|
378
|
-
this.shipping_address = null;
|
379
|
-
this.payment = null;
|
380
|
-
this.shipping_method = null;
|
381
|
-
}
|
382
|
-
return MockOrderInvoice;
|
383
|
-
}());
|
384
|
-
;
|
385
|
-
var DaffOrderInvoiceFactory = /** @class */ (function (_super) {
|
386
|
-
__extends(DaffOrderInvoiceFactory, _super);
|
387
|
-
function DaffOrderInvoiceFactory() {
|
388
|
-
return _super.call(this, MockOrderInvoice) || this;
|
389
|
-
}
|
390
|
-
return DaffOrderInvoiceFactory;
|
391
|
-
}(testing$1.DaffModelFactory));
|
392
|
-
/** @nocollapse */ DaffOrderInvoiceFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderInvoiceFactory_Factory() { return new DaffOrderInvoiceFactory(); }, token: DaffOrderInvoiceFactory, providedIn: "root" });
|
393
|
-
DaffOrderInvoiceFactory.decorators = [
|
394
|
-
{ type: i0.Injectable, args: [{
|
395
|
-
providedIn: 'root',
|
396
|
-
},] }
|
397
|
-
];
|
398
|
-
/** @nocollapse */
|
399
|
-
DaffOrderInvoiceFactory.ctorParameters = function () { return []; };
|
400
|
-
|
401
|
-
var MockOrderPayment = /** @class */ (function () {
|
402
|
-
function MockOrderPayment() {
|
403
|
-
this.id = faker.datatype.uuid();
|
404
|
-
this.payment_id = this.id;
|
405
|
-
this.order_id = faker.datatype.uuid();
|
406
|
-
this.created_at = faker.date.past().toString();
|
407
|
-
this.updated_at = faker.date.past().toString();
|
408
|
-
this.method = 'card';
|
409
|
-
this.cc_type = 'visa';
|
410
|
-
this.cc_last4 = faker.datatype.number({ min: 1000, max: 9999 }).toString();
|
411
|
-
this.cc_owner = 'owner';
|
412
|
-
this.cc_exp_month = 'month';
|
413
|
-
this.cc_exp_year = 'year';
|
414
|
-
}
|
415
|
-
return MockOrderPayment;
|
416
|
-
}());
|
417
|
-
var DaffOrderPaymentFactory = /** @class */ (function (_super) {
|
418
|
-
__extends(DaffOrderPaymentFactory, _super);
|
419
|
-
function DaffOrderPaymentFactory() {
|
420
|
-
return _super.call(this, MockOrderPayment) || this;
|
421
|
-
}
|
422
|
-
return DaffOrderPaymentFactory;
|
423
|
-
}(testing$1.DaffModelFactory));
|
424
|
-
/** @nocollapse */ DaffOrderPaymentFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderPaymentFactory_Factory() { return new DaffOrderPaymentFactory(); }, token: DaffOrderPaymentFactory, providedIn: "root" });
|
425
|
-
DaffOrderPaymentFactory.decorators = [
|
426
|
-
{ type: i0.Injectable, args: [{
|
427
|
-
providedIn: 'root',
|
428
|
-
},] }
|
429
|
-
];
|
430
|
-
/** @nocollapse */
|
431
|
-
DaffOrderPaymentFactory.ctorParameters = function () { return []; };
|
432
|
-
|
433
|
-
var MockOrderItem = /** @class */ (function () {
|
434
|
-
function MockOrderItem() {
|
435
|
-
this.id = faker.datatype.uuid();
|
436
|
-
this.item_id = this.id;
|
437
|
-
this.image = {
|
438
|
-
url: faker.image.imageUrl(),
|
439
|
-
id: faker.datatype.uuid(),
|
440
|
-
label: faker.random.word(),
|
441
|
-
};
|
442
|
-
this.order_id = faker.datatype.uuid();
|
443
|
-
this.qty_ordered = faker.datatype.number({ min: 1, max: 1000 });
|
444
|
-
this.qty_canceled = faker.datatype.number({ min: 1, max: 1000 });
|
445
|
-
this.qty_fulfilled = faker.datatype.number({ min: 1, max: 1000 });
|
446
|
-
this.created_at = faker.date.past().toString();
|
447
|
-
this.updated_at = faker.date.past().toString();
|
448
|
-
this.product_id = faker.datatype.uuid();
|
449
|
-
this.parent_item_id = faker.datatype.uuid();
|
450
|
-
this.sku = faker.random.alphaNumeric(20);
|
451
|
-
this.name = faker.random.word();
|
452
|
-
this.weight = faker.datatype.number({ min: 1, max: 1000 });
|
453
|
-
this.qty = faker.datatype.number({ min: 1, max: 10 });
|
454
|
-
this.price = faker.datatype.number({ min: 1, max: 1000 });
|
455
|
-
this.discount_amount = faker.datatype.number({ min: 1, max: this.price });
|
456
|
-
this.discount_percent = Math.floor(this.discount_amount / this.price * 100);
|
457
|
-
this.tax_percent = faker.datatype.number({ min: 1, max: 10 });
|
458
|
-
this.tax_amount = faker.datatype.number({ min: 1, max: 10 });
|
459
|
-
this.row_total = this.price * this.qty;
|
460
|
-
this.row_total_with_discount = (this.price - this.discount_amount) * this.qty;
|
461
|
-
this.row_weight = faker.datatype.number({ min: 1, max: 100 });
|
462
|
-
this.tax_before_discount = faker.datatype.number({ min: 1, max: 100 });
|
463
|
-
this.type = order.DaffOrderItemType.Simple;
|
464
|
-
}
|
465
|
-
return MockOrderItem;
|
466
|
-
}());
|
467
|
-
var DaffOrderItemFactory = /** @class */ (function (_super) {
|
468
|
-
__extends(DaffOrderItemFactory, _super);
|
469
|
-
function DaffOrderItemFactory() {
|
470
|
-
return _super.call(this, MockOrderItem) || this;
|
471
|
-
}
|
472
|
-
return DaffOrderItemFactory;
|
473
|
-
}(testing$1.DaffModelFactory));
|
474
|
-
/** @nocollapse */ DaffOrderItemFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderItemFactory_Factory() { return new DaffOrderItemFactory(); }, token: DaffOrderItemFactory, providedIn: "root" });
|
475
|
-
DaffOrderItemFactory.decorators = [
|
476
|
-
{ type: i0.Injectable, args: [{
|
477
|
-
providedIn: 'root',
|
478
|
-
},] }
|
479
|
-
];
|
480
|
-
/** @nocollapse */
|
481
|
-
DaffOrderItemFactory.ctorParameters = function () { return []; };
|
482
|
-
|
483
|
-
var MockCompositeOrderItem = /** @class */ (function (_super) {
|
484
|
-
__extends(MockCompositeOrderItem, _super);
|
485
|
-
function MockCompositeOrderItem() {
|
486
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
487
|
-
_this.type = order.DaffOrderItemType.Composite;
|
488
|
-
_this.options = [
|
489
|
-
{
|
490
|
-
option_label: faker.random.word(),
|
491
|
-
value_label: faker.random.word(),
|
492
|
-
},
|
493
|
-
{
|
494
|
-
option_label: faker.random.word(),
|
495
|
-
value_label: faker.random.word(),
|
496
|
-
},
|
497
|
-
];
|
498
|
-
return _this;
|
499
|
-
}
|
500
|
-
return MockCompositeOrderItem;
|
501
|
-
}(MockOrderItem));
|
502
|
-
var DaffCompositeOrderItemFactory = /** @class */ (function (_super) {
|
503
|
-
__extends(DaffCompositeOrderItemFactory, _super);
|
504
|
-
function DaffCompositeOrderItemFactory() {
|
505
|
-
return _super.call(this, MockCompositeOrderItem) || this;
|
506
|
-
}
|
507
|
-
return DaffCompositeOrderItemFactory;
|
508
|
-
}(testing$1.DaffModelFactory));
|
509
|
-
/** @nocollapse */ DaffCompositeOrderItemFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffCompositeOrderItemFactory_Factory() { return new DaffCompositeOrderItemFactory(); }, token: DaffCompositeOrderItemFactory, providedIn: "root" });
|
510
|
-
DaffCompositeOrderItemFactory.decorators = [
|
511
|
-
{ type: i0.Injectable, args: [{
|
512
|
-
providedIn: 'root',
|
513
|
-
},] }
|
514
|
-
];
|
515
|
-
/** @nocollapse */
|
516
|
-
DaffCompositeOrderItemFactory.ctorParameters = function () { return []; };
|
517
|
-
|
518
|
-
var MockConfigurableOrderItem = /** @class */ (function (_super) {
|
519
|
-
__extends(MockConfigurableOrderItem, _super);
|
520
|
-
function MockConfigurableOrderItem() {
|
521
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
522
|
-
_this.type = order.DaffOrderItemType.Configurable;
|
523
|
-
_this.attributes = [
|
524
|
-
{
|
525
|
-
attribute_label: 'Color',
|
526
|
-
value_label: 'Red',
|
527
|
-
},
|
528
|
-
{
|
529
|
-
attribute_label: 'Size',
|
530
|
-
value_label: 'M',
|
531
|
-
},
|
532
|
-
];
|
533
|
-
return _this;
|
534
|
-
}
|
535
|
-
return MockConfigurableOrderItem;
|
536
|
-
}(MockOrderItem));
|
537
|
-
var DaffConfigurableOrderItemFactory = /** @class */ (function (_super) {
|
538
|
-
__extends(DaffConfigurableOrderItemFactory, _super);
|
539
|
-
function DaffConfigurableOrderItemFactory() {
|
540
|
-
return _super.call(this, MockConfigurableOrderItem) || this;
|
541
|
-
}
|
542
|
-
return DaffConfigurableOrderItemFactory;
|
543
|
-
}(testing$1.DaffModelFactory));
|
544
|
-
/** @nocollapse */ DaffConfigurableOrderItemFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffConfigurableOrderItemFactory_Factory() { return new DaffConfigurableOrderItemFactory(); }, token: DaffConfigurableOrderItemFactory, providedIn: "root" });
|
545
|
-
DaffConfigurableOrderItemFactory.decorators = [
|
546
|
-
{ type: i0.Injectable, args: [{
|
547
|
-
providedIn: 'root',
|
548
|
-
},] }
|
549
|
-
];
|
550
|
-
/** @nocollapse */
|
551
|
-
DaffConfigurableOrderItemFactory.ctorParameters = function () { return []; };
|
552
|
-
|
553
|
-
var MockOrderShipmentItem = /** @class */ (function () {
|
554
|
-
function MockOrderShipmentItem() {
|
555
|
-
this.item = null;
|
556
|
-
this.qty = faker.datatype.number({ min: 1, max: 100 });
|
557
|
-
}
|
558
|
-
return MockOrderShipmentItem;
|
559
|
-
}());
|
560
|
-
;
|
561
|
-
var DaffOrderShipmentItemFactory = /** @class */ (function (_super) {
|
562
|
-
__extends(DaffOrderShipmentItemFactory, _super);
|
563
|
-
function DaffOrderShipmentItemFactory() {
|
564
|
-
return _super.call(this, MockOrderShipmentItem) || this;
|
565
|
-
}
|
566
|
-
return DaffOrderShipmentItemFactory;
|
567
|
-
}(testing$1.DaffModelFactory));
|
568
|
-
/** @nocollapse */ DaffOrderShipmentItemFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderShipmentItemFactory_Factory() { return new DaffOrderShipmentItemFactory(); }, token: DaffOrderShipmentItemFactory, providedIn: "root" });
|
569
|
-
DaffOrderShipmentItemFactory.decorators = [
|
570
|
-
{ type: i0.Injectable, args: [{
|
571
|
-
providedIn: 'root',
|
572
|
-
},] }
|
573
|
-
];
|
574
|
-
/** @nocollapse */
|
575
|
-
DaffOrderShipmentItemFactory.ctorParameters = function () { return []; };
|
576
|
-
|
577
|
-
var MockOrderShipmentTracking = /** @class */ (function () {
|
578
|
-
function MockOrderShipmentTracking() {
|
579
|
-
this.tracking_number = faker.random.alphaNumeric(16);
|
580
|
-
this.tracking_url = faker.internet.url();
|
581
|
-
this.carrier = faker.random.word();
|
582
|
-
this.carrier_logo = faker.internet.url();
|
583
|
-
this.title = faker.random.word();
|
584
|
-
}
|
585
|
-
return MockOrderShipmentTracking;
|
586
|
-
}());
|
587
|
-
;
|
588
|
-
var DaffOrderShipmentTrackingFactory = /** @class */ (function (_super) {
|
589
|
-
__extends(DaffOrderShipmentTrackingFactory, _super);
|
590
|
-
function DaffOrderShipmentTrackingFactory() {
|
591
|
-
return _super.call(this, MockOrderShipmentTracking) || this;
|
592
|
-
}
|
593
|
-
return DaffOrderShipmentTrackingFactory;
|
594
|
-
}(testing$1.DaffModelFactory));
|
595
|
-
/** @nocollapse */ DaffOrderShipmentTrackingFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderShipmentTrackingFactory_Factory() { return new DaffOrderShipmentTrackingFactory(); }, token: DaffOrderShipmentTrackingFactory, providedIn: "root" });
|
596
|
-
DaffOrderShipmentTrackingFactory.decorators = [
|
597
|
-
{ type: i0.Injectable, args: [{
|
598
|
-
providedIn: 'root',
|
599
|
-
},] }
|
600
|
-
];
|
601
|
-
/** @nocollapse */
|
602
|
-
DaffOrderShipmentTrackingFactory.ctorParameters = function () { return []; };
|
603
|
-
|
604
|
-
var MockOrderShipment = /** @class */ (function () {
|
605
|
-
function MockOrderShipment() {
|
606
|
-
this.tracking = [];
|
607
|
-
this.items = [];
|
608
|
-
this.carrier = faker.random.word();
|
609
|
-
this.carrier_title = faker.random.word();
|
610
|
-
this.code = faker.random.word();
|
611
|
-
this.method = faker.random.word();
|
612
|
-
this.method_description = faker.random.word();
|
613
|
-
}
|
614
|
-
return MockOrderShipment;
|
615
|
-
}());
|
616
|
-
;
|
617
|
-
var DaffOrderShipmentFactory = /** @class */ (function (_super) {
|
618
|
-
__extends(DaffOrderShipmentFactory, _super);
|
619
|
-
function DaffOrderShipmentFactory() {
|
620
|
-
return _super.call(this, MockOrderShipment) || this;
|
621
|
-
}
|
622
|
-
return DaffOrderShipmentFactory;
|
623
|
-
}(testing$1.DaffModelFactory));
|
624
|
-
/** @nocollapse */ DaffOrderShipmentFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderShipmentFactory_Factory() { return new DaffOrderShipmentFactory(); }, token: DaffOrderShipmentFactory, providedIn: "root" });
|
625
|
-
DaffOrderShipmentFactory.decorators = [
|
626
|
-
{ type: i0.Injectable, args: [{
|
627
|
-
providedIn: 'root',
|
628
|
-
},] }
|
629
|
-
];
|
630
|
-
/** @nocollapse */
|
631
|
-
DaffOrderShipmentFactory.ctorParameters = function () { return []; };
|
632
|
-
|
633
|
-
var MockOrderShippingMethod = /** @class */ (function () {
|
634
|
-
function MockOrderShippingMethod() {
|
635
|
-
this.rate_id = faker.datatype.uuid();
|
636
|
-
this.address_id = faker.datatype.uuid();
|
637
|
-
this.order_id = faker.datatype.uuid();
|
638
|
-
this.created_at = faker.date.past().toString();
|
639
|
-
this.updated_at = faker.date.past().toString();
|
640
|
-
this.carrier = faker.random.word();
|
641
|
-
this.carrier_title = faker.random.word();
|
642
|
-
this.code = faker.random.word();
|
643
|
-
this.method = faker.random.word();
|
644
|
-
this.method_description = faker.random.word();
|
645
|
-
this.price = faker.datatype.number({ min: 1, max: 1000 });
|
646
|
-
this.error_message = faker.random.word();
|
647
|
-
this.method_title = faker.random.word();
|
648
|
-
}
|
649
|
-
return MockOrderShippingMethod;
|
650
|
-
}());
|
651
|
-
var DaffOrderShippingMethodFactory = /** @class */ (function (_super) {
|
652
|
-
__extends(DaffOrderShippingMethodFactory, _super);
|
653
|
-
function DaffOrderShippingMethodFactory() {
|
654
|
-
return _super.call(this, MockOrderShippingMethod) || this;
|
655
|
-
}
|
656
|
-
return DaffOrderShippingMethodFactory;
|
657
|
-
}(testing$1.DaffModelFactory));
|
658
|
-
/** @nocollapse */ DaffOrderShippingMethodFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderShippingMethodFactory_Factory() { return new DaffOrderShippingMethodFactory(); }, token: DaffOrderShippingMethodFactory, providedIn: "root" });
|
659
|
-
DaffOrderShippingMethodFactory.decorators = [
|
660
|
-
{ type: i0.Injectable, args: [{
|
661
|
-
providedIn: 'root',
|
662
|
-
},] }
|
663
|
-
];
|
664
|
-
/** @nocollapse */
|
665
|
-
DaffOrderShippingMethodFactory.ctorParameters = function () { return []; };
|
666
|
-
|
667
|
-
var MockOrderTotal = /** @class */ (function () {
|
668
|
-
function MockOrderTotal() {
|
669
|
-
this.label = faker.random.word();
|
670
|
-
this.value = faker.datatype.number({ min: 1, max: 100 });
|
671
|
-
this.sort_order = faker.datatype.number({ min: 1, max: 100 });
|
672
|
-
this.type = order.DaffOrderTotalTypeEnum.GrandTotal;
|
673
|
-
}
|
674
|
-
return MockOrderTotal;
|
675
|
-
}());
|
676
|
-
;
|
677
|
-
var DaffOrderTotalFactory = /** @class */ (function (_super) {
|
678
|
-
__extends(DaffOrderTotalFactory, _super);
|
679
|
-
function DaffOrderTotalFactory() {
|
680
|
-
return _super.call(this, MockOrderTotal) || this;
|
681
|
-
}
|
682
|
-
return DaffOrderTotalFactory;
|
683
|
-
}(testing$1.DaffModelFactory));
|
684
|
-
/** @nocollapse */ DaffOrderTotalFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderTotalFactory_Factory() { return new DaffOrderTotalFactory(); }, token: DaffOrderTotalFactory, providedIn: "root" });
|
685
|
-
DaffOrderTotalFactory.decorators = [
|
686
|
-
{ type: i0.Injectable, args: [{
|
687
|
-
providedIn: 'root',
|
688
|
-
},] }
|
689
|
-
];
|
690
|
-
/** @nocollapse */
|
691
|
-
DaffOrderTotalFactory.ctorParameters = function () { return []; };
|
692
|
-
|
693
|
-
var MockOrder = /** @class */ (function () {
|
694
|
-
function MockOrder() {
|
695
|
-
this.id = faker.datatype.uuid();
|
696
|
-
this.customer_id = faker.datatype.uuid();
|
697
|
-
this.created_at = faker.date.past().toString();
|
698
|
-
this.updated_at = faker.date.past().toString();
|
699
|
-
this.status = faker.random.word();
|
700
|
-
this.totals = [];
|
701
|
-
this.applied_codes = [];
|
702
|
-
this.items = [];
|
703
|
-
this.billing_addresses = [];
|
704
|
-
this.shipping_addresses = [];
|
705
|
-
this.shipments = [];
|
706
|
-
this.payment = null;
|
707
|
-
this.invoices = [];
|
708
|
-
this.credits = [];
|
709
|
-
}
|
710
|
-
return MockOrder;
|
711
|
-
}());
|
712
|
-
;
|
713
|
-
var DaffOrderFactory = /** @class */ (function (_super) {
|
714
|
-
__extends(DaffOrderFactory, _super);
|
715
|
-
function DaffOrderFactory() {
|
716
|
-
return _super.call(this, MockOrder) || this;
|
717
|
-
}
|
718
|
-
return DaffOrderFactory;
|
719
|
-
}(testing$1.DaffModelFactory));
|
720
|
-
/** @nocollapse */ DaffOrderFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderFactory_Factory() { return new DaffOrderFactory(); }, token: DaffOrderFactory, providedIn: "root" });
|
721
|
-
DaffOrderFactory.decorators = [
|
722
|
-
{ type: i0.Injectable, args: [{
|
723
|
-
providedIn: 'root',
|
724
|
-
},] }
|
725
|
-
];
|
726
|
-
/** @nocollapse */
|
727
|
-
DaffOrderFactory.ctorParameters = function () { return []; };
|
728
|
-
|
729
|
-
/**
|
730
|
-
* A helper function to verify that a model is a Order.
|
731
|
-
*
|
732
|
-
* @param order
|
733
|
-
*/
|
734
|
-
function isOrder(order) {
|
735
|
-
return !!order.id
|
736
|
-
&& !!order.customer_id
|
737
|
-
&& !!order.created_at
|
738
|
-
&& !!order.updated_at
|
739
|
-
&& !!order.status
|
740
|
-
&& !!order.applied_codes
|
741
|
-
&& !!order.totals;
|
742
|
-
}
|
743
|
-
|
744
|
-
/**
|
745
|
-
* Generated bundle index. Do not edit.
|
746
|
-
*/
|
747
|
-
|
748
|
-
exports.DaffCompositeOrderItemFactory = DaffCompositeOrderItemFactory;
|
749
|
-
exports.DaffConfigurableOrderItemFactory = DaffConfigurableOrderItemFactory;
|
750
|
-
exports.DaffOrderAddressFactory = DaffOrderAddressFactory;
|
751
|
-
exports.DaffOrderCouponFactory = DaffOrderCouponFactory;
|
752
|
-
exports.DaffOrderFactory = DaffOrderFactory;
|
753
|
-
exports.DaffOrderInvoiceFactory = DaffOrderInvoiceFactory;
|
754
|
-
exports.DaffOrderItemFactory = DaffOrderItemFactory;
|
755
|
-
exports.DaffOrderPaymentFactory = DaffOrderPaymentFactory;
|
756
|
-
exports.DaffOrderShipmentFactory = DaffOrderShipmentFactory;
|
757
|
-
exports.DaffOrderShipmentItemFactory = DaffOrderShipmentItemFactory;
|
758
|
-
exports.DaffOrderShipmentTrackingFactory = DaffOrderShipmentTrackingFactory;
|
759
|
-
exports.DaffOrderShippingMethodFactory = DaffOrderShippingMethodFactory;
|
760
|
-
exports.DaffOrderTotalFactory = DaffOrderTotalFactory;
|
761
|
-
exports.isOrder = isOrder;
|
762
|
-
|
763
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
764
|
-
|
765
|
-
})));
|
766
|
-
//# sourceMappingURL=daffodil-order-testing.umd.js.map
|