@daffodil/cart 0.76.0 → 0.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/driver/in-memory/backend/cart/cart.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-address/cart-address.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-billing-address/cart-billing-address.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-coupon/cart-coupon.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-items/cart-items.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-order/cart-order.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-payment/cart-payment.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-payment-methods/cart-payment-methods.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-root.service.d.ts +7 -25
- package/driver/in-memory/backend/cart-shipping-address/cart-shipping-address.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.d.ts +3 -2
- package/driver/in-memory/backend/cart-shipping-methods/cart-shipping-methods.service.d.ts +3 -2
- package/driver/in-memory/collection-names.d.ts +11 -0
- package/driver/in-memory/drivers/cart/cart.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-address/cart-address.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-billing-address/cart-billing-address.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-coupon/cart-coupon.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-item/cart-item.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-order/cart-order.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-payment/cart-payment.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-payment-methods/cart-payment-methods.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-shipping-address/cart-shipping-address.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.d.ts +4 -6
- package/driver/in-memory/drivers/cart-shipping-methods/cart-shipping-methods.service.d.ts +4 -6
- package/driver/in-memory/public_api.d.ts +1 -0
- package/driver/magento/errors/map.d.ts +2 -0
- package/esm2022/driver/errors/cart-not-found.mjs +1 -1
- package/esm2022/driver/errors/invalid-country.mjs +1 -1
- package/esm2022/driver/errors/invalid-coupon-code.mjs +1 -1
- package/esm2022/driver/errors/invalid-email.mjs +1 -1
- package/esm2022/driver/errors/invalid-region.mjs +1 -1
- package/esm2022/driver/errors/item-exceeds-max-qty.mjs +1 -1
- package/esm2022/driver/errors/product-not-found.mjs +1 -1
- package/esm2022/driver/errors/product-out-of-stock.mjs +1 -1
- package/esm2022/driver/errors/unauthorized-for-cart.mjs +1 -1
- package/esm2022/driver/in-memory/backend/cart/cart.service.mjs +6 -4
- package/esm2022/driver/in-memory/backend/cart-address/cart-address.service.mjs +6 -4
- package/esm2022/driver/in-memory/backend/cart-billing-address/cart-billing-address.service.mjs +6 -4
- package/esm2022/driver/in-memory/backend/cart-coupon/cart-coupon.service.mjs +6 -4
- package/esm2022/driver/in-memory/backend/cart-items/cart-items.service.mjs +6 -4
- package/esm2022/driver/in-memory/backend/cart-order/cart-order.service.mjs +8 -4
- package/esm2022/driver/in-memory/backend/cart-payment/cart-payment.service.mjs +6 -4
- package/esm2022/driver/in-memory/backend/cart-payment-methods/cart-payment-methods.service.mjs +8 -4
- package/esm2022/driver/in-memory/backend/cart-root.service.mjs +48 -80
- package/esm2022/driver/in-memory/backend/cart-shipping-address/cart-shipping-address.service.mjs +6 -4
- package/esm2022/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.mjs +6 -4
- package/esm2022/driver/in-memory/backend/cart-shipping-methods/cart-shipping-methods.service.mjs +6 -4
- package/esm2022/driver/in-memory/collection-names.mjs +12 -0
- package/esm2022/driver/in-memory/drivers/cart/cart.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-address/cart-address.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-billing-address/cart-billing-address.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-coupon/cart-coupon.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-driver.module.mjs +8 -5
- package/esm2022/driver/in-memory/drivers/cart-item/cart-item.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-order/cart-order.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-payment/cart-payment.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-payment-methods/cart-payment-methods.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-shipping-address/cart-shipping-address.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.mjs +12 -11
- package/esm2022/driver/in-memory/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +12 -11
- package/esm2022/driver/in-memory/public_api.mjs +2 -1
- package/esm2022/driver/interfaces/cart-address-service.interface.mjs +1 -1
- package/esm2022/driver/interfaces/cart-billing-address-service.interface.mjs +1 -1
- package/esm2022/driver/interfaces/cart-item-service.interface.mjs +1 -1
- package/esm2022/driver/interfaces/cart-payment-methods-service.interface.mjs +1 -1
- package/esm2022/driver/interfaces/cart-payment-service.interface.mjs +1 -1
- package/esm2022/driver/interfaces/cart-shipping-address-service.interface.mjs +1 -1
- package/esm2022/driver/interfaces/cart-shipping-information-service.interface.mjs +1 -1
- package/esm2022/driver/interfaces/cart-shipping-methods-service.interface.mjs +1 -1
- package/esm2022/driver/magento/cart-address.service.mjs +4 -4
- package/esm2022/driver/magento/cart-billing-address.service.mjs +4 -4
- package/esm2022/driver/magento/cart-coupon.service.mjs +4 -4
- package/esm2022/driver/magento/cart-driver.module.mjs +5 -5
- package/esm2022/driver/magento/cart-item.service.mjs +4 -4
- package/esm2022/driver/magento/cart-order.service.mjs +4 -4
- package/esm2022/driver/magento/cart-payment-methods.service.mjs +4 -4
- package/esm2022/driver/magento/cart-payment.service.mjs +4 -4
- package/esm2022/driver/magento/cart-shipping-address.service.mjs +4 -4
- package/esm2022/driver/magento/cart-shipping-information.service.mjs +4 -4
- package/esm2022/driver/magento/cart-shipping-methods.service.mjs +4 -4
- package/esm2022/driver/magento/cart.service.mjs +4 -4
- package/esm2022/driver/magento/errors/map.mjs +3 -1
- package/esm2022/driver/magento/errors/transform.mjs +1 -1
- package/esm2022/driver/magento/queries/create-cart/variables.type.mjs +1 -1
- package/esm2022/driver/magento/testing/factories/cart-address-input.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-address.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-coupon.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-item/bundle-cart-item.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-item/cart-item.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-item/configurable-cart-item.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-payment-method.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-shipping-method.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/shipping-address.factory.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/billing-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/cart-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/cart-item-update.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/payment-method.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/shipping-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/shipping-method.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/billing-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart-coupon-response.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart-item/cart-item-transformer.mjs +1 -1
- package/esm2022/driver/magento/transforms/outputs/cart-payment.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart-shipping-rate.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/shipping-address.service.mjs +4 -4
- package/esm2022/driver/operators/handle-cart-not-found.mjs +1 -1
- package/esm2022/driver/services/resolve.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart/cart.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-address/cart-address.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-billing-address/cart-billing-address.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-coupon/cart-coupon.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-driver.module.mjs +5 -5
- package/esm2022/driver/testing/drivers/cart-item/cart-item.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-order/cart-order.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-payment/cart-payment.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-payment-methods/cart-payment-methods.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-shipping-address/cart-shipping-address.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-shipping-information/cart-shipping-information.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +4 -4
- package/esm2022/errors/resolution/cart-not-found-or-created-resolution.mjs +1 -1
- package/esm2022/errors/resolution/cart-resolution.mjs +1 -1
- package/esm2022/errors/resolution/cart-server-side-resolution.mjs +1 -1
- package/esm2022/errors/resolution/cart-storage-resolution.mjs +1 -1
- package/esm2022/helpers/get-affected-item.mjs +1 -1
- package/esm2022/routing/cart-routing.module.mjs +5 -5
- package/esm2022/routing/config/config.mjs +1 -1
- package/esm2022/routing/guards/billing-address/billing-address.guard.mjs +4 -4
- package/esm2022/routing/guards/cart-items/cart-items.guard.mjs +4 -4
- package/esm2022/routing/guards/in-stock-items/in-stock-items.guard.mjs +4 -4
- package/esm2022/routing/guards/order-result/order-result.guard.mjs +4 -4
- package/esm2022/routing/guards/payment-method/payment-method.guard.mjs +4 -4
- package/esm2022/routing/guards/resolve-cart/resolve-cart.guard.mjs +4 -4
- package/esm2022/routing/guards/resolved-cart/resolved-cart.guard.mjs +4 -4
- package/esm2022/routing/guards/shipping-address/shipping-address.guard.mjs +4 -4
- package/esm2022/routing/guards/shipping-method/shipping-method.guard.mjs +4 -4
- package/esm2022/routing/resolvers/cart-resolver.service.mjs +4 -4
- package/esm2022/routing/resolvers/empty-cart-resolver.service.mjs +4 -4
- package/esm2022/state/cart-retrieval/get-response.mjs +1 -1
- package/esm2022/state/cart-state.module.mjs +5 -5
- package/esm2022/state/effects/cart-address.effects.mjs +4 -4
- package/esm2022/state/effects/cart-billing-address.effects.mjs +4 -4
- package/esm2022/state/effects/cart-coupon.effects.mjs +4 -4
- package/esm2022/state/effects/cart-item.effects.mjs +4 -4
- package/esm2022/state/effects/cart-order.effects.mjs +4 -4
- package/esm2022/state/effects/cart-payment-methods.effects.mjs +4 -4
- package/esm2022/state/effects/cart-payment-processor.effects.mjs +4 -4
- package/esm2022/state/effects/cart-payment.effects.mjs +4 -4
- package/esm2022/state/effects/cart-resolver.effects.mjs +4 -4
- package/esm2022/state/effects/cart-shipping-address.effects.mjs +4 -4
- package/esm2022/state/effects/cart-shipping-information.effects.mjs +4 -4
- package/esm2022/state/effects/cart-shipping-methods.effects.mjs +4 -4
- package/esm2022/state/effects/cart.effects.mjs +4 -4
- package/esm2022/state/facades/cart/cart.facade.mjs +6 -6
- package/esm2022/state/reducers/cart/cart.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-billing-address/cart-billing-address.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-coupon/cart-coupon.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-item/cart-item.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-item-entities/cart-item-entities.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-item-entities/set-state-meta-reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-order/cart-order.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-payment/cart-payment.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-payment/payment.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-payment-methods/cart-payment-methods.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-resolve/cart-resolve.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-shipping-address/cart-shipping-address.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-shipping-information/cart-shipping-information.reducer.mjs +1 -1
- package/esm2022/state/reducers/cart-shipping-methods/cart-shipping-methods.reducer.mjs +1 -1
- package/esm2022/state/selectors/cart-item-entities/cart-item-entities.selectors.mjs +1 -1
- package/esm2022/state/testing/cart-testing.module.mjs +5 -5
- package/esm2022/state/testing/factories/stateful-cart-item.factory.mjs +4 -4
- package/esm2022/state/testing/factories/stateful-composite-cart-item.factory.mjs +4 -4
- package/esm2022/state/testing/factories/stateful-configurable-cart-item.factory.mjs +4 -4
- package/esm2022/state/testing/mock-cart-facade.mjs +4 -4
- package/esm2022/storage/cart-storage.service.mjs +4 -4
- package/esm2022/testing/factories/cart-address.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-coupon.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-item/cart-item.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-item/composite-cart-item.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-item/configurable-cart-item.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-payment.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-shipping-rate.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-total.factory.mjs +4 -4
- package/esm2022/testing/factories/cart.factory.mjs +4 -4
- package/fesm2022/daffodil-cart-driver-in-memory.mjs +258 -294
- package/fesm2022/daffodil-cart-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs +30 -30
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento.mjs +78 -76
- package/fesm2022/daffodil-cart-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-testing.mjs +37 -37
- package/fesm2022/daffodil-cart-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver.mjs +3 -3
- package/fesm2022/daffodil-cart-driver.mjs.map +1 -1
- package/fesm2022/daffodil-cart-routing.mjs +37 -37
- package/fesm2022/daffodil-cart-routing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state-testing.mjs +16 -16
- package/fesm2022/daffodil-cart-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state.mjs +48 -48
- package/fesm2022/daffodil-cart-state.mjs.map +1 -1
- package/fesm2022/daffodil-cart-testing.mjs +27 -27
- package/fesm2022/daffodil-cart-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart.mjs +3 -3
- package/fesm2022/daffodil-cart.mjs.map +1 -1
- package/package.json +1 -1
- package/state/facades/cart/cart.facade.d.ts +1 -1
- package/state/reducers/cart-item-entities/retrieval-actions.reducer.d.ts +1 -1
- package/state/reducers/token/config.token.d.ts +1 -1
- package/state/reducers/token/extra.token.d.ts +1 -1
- package/state/reducers/token/reducers.token.d.ts +1 -1
- package/state/selectors/cart/cart.selector.d.ts +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
2
|
import { DaffCartFactory } from '@daffodil/cart/testing';
|
|
3
|
-
import {
|
|
3
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
4
4
|
import { DaffInMemoryBackendProductService } from '@daffodil/product/driver/in-memory';
|
|
5
5
|
import { DaffCartInMemoryExtraAttributesHook } from '../../injection-tokens/public_api';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* @inheritdoc
|
|
9
9
|
*/
|
|
10
|
-
export declare class DaffInMemoryBackendCartService implements
|
|
10
|
+
export declare class DaffInMemoryBackendCartService implements DaffInMemorySingleRouteableBackend {
|
|
11
11
|
private cartFactory;
|
|
12
12
|
private extraFieldsHook;
|
|
13
13
|
private productBackend;
|
|
14
|
+
readonly collectionName = "cart";
|
|
14
15
|
constructor(cartFactory: DaffCartFactory, extraFieldsHook: DaffCartInMemoryExtraAttributesHook, productBackend: DaffInMemoryBackendProductService);
|
|
15
16
|
get(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
16
17
|
post(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
-
import {
|
|
2
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
3
3
|
import { DaffCartInMemoryExtraAttributesHook } from '../../injection-tokens/public_api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* @inheritdoc
|
|
7
7
|
*/
|
|
8
|
-
export declare class DaffInMemoryBackendCartAddressService implements
|
|
8
|
+
export declare class DaffInMemoryBackendCartAddressService implements DaffInMemorySingleRouteableBackend {
|
|
9
9
|
private extraFieldsHook;
|
|
10
|
+
readonly collectionName = "cart-address";
|
|
10
11
|
constructor(extraFieldsHook: DaffCartInMemoryExtraAttributesHook);
|
|
11
12
|
put(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
12
13
|
private getCart;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
-
import {
|
|
2
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
3
3
|
import { DaffCartInMemoryExtraAttributesHook } from '../../injection-tokens/public_api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* @inheritdoc
|
|
7
7
|
*/
|
|
8
|
-
export declare class DaffInMemoryBackendCartBillingAddressService implements
|
|
8
|
+
export declare class DaffInMemoryBackendCartBillingAddressService implements DaffInMemorySingleRouteableBackend {
|
|
9
9
|
private extraFieldsHook;
|
|
10
|
+
readonly collectionName = "cart-billing-address";
|
|
10
11
|
constructor(extraFieldsHook: DaffCartInMemoryExtraAttributesHook);
|
|
11
12
|
get(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
12
13
|
put(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
-
import {
|
|
2
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
3
3
|
import { DaffCartInMemoryExtraAttributesHook } from '../../injection-tokens/public_api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* @inheritdoc
|
|
7
7
|
*/
|
|
8
|
-
export declare class DaffInMemoryBackendCartCouponService implements
|
|
8
|
+
export declare class DaffInMemoryBackendCartCouponService implements DaffInMemorySingleRouteableBackend {
|
|
9
9
|
private extraFieldsHook;
|
|
10
|
+
readonly collectionName = "cart-coupon";
|
|
10
11
|
constructor(extraFieldsHook: DaffCartInMemoryExtraAttributesHook);
|
|
11
12
|
get(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
12
13
|
post(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
2
|
import { DaffCartItemFactory } from '@daffodil/cart/testing';
|
|
3
|
-
import {
|
|
3
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
4
4
|
import { DaffInMemoryBackendProductService } from '@daffodil/product/driver/in-memory';
|
|
5
5
|
import { DaffCartInMemoryExtraAttributesHook } from '../../injection-tokens/public_api';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* @inheritdoc
|
|
9
9
|
*/
|
|
10
|
-
export declare class DaffInMemoryBackendCartItemsService implements
|
|
10
|
+
export declare class DaffInMemoryBackendCartItemsService implements DaffInMemorySingleRouteableBackend {
|
|
11
11
|
private cartItemFactory;
|
|
12
12
|
private extraFieldsHook;
|
|
13
13
|
private productBackend;
|
|
14
|
+
readonly collectionName = "cart-items";
|
|
14
15
|
constructor(cartItemFactory: DaffCartItemFactory, extraFieldsHook: DaffCartInMemoryExtraAttributesHook, productBackend: DaffInMemoryBackendProductService);
|
|
15
16
|
get(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
16
17
|
put(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
-
import {
|
|
2
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* @inheritdoc
|
|
6
6
|
*/
|
|
7
|
-
export declare class DaffInMemoryBackendCartOrderService implements
|
|
7
|
+
export declare class DaffInMemoryBackendCartOrderService implements DaffInMemorySingleRouteableBackend {
|
|
8
|
+
readonly collectionName = "cart-order";
|
|
8
9
|
post(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
9
10
|
private placeOrder;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryBackendCartOrderService, never>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
-
import {
|
|
2
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
3
3
|
import { DaffCartInMemoryExtraAttributesHook } from '../../injection-tokens/public_api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* @inheritdoc
|
|
7
7
|
*/
|
|
8
|
-
export declare class DaffInMemoryBackendCartPaymentService implements
|
|
8
|
+
export declare class DaffInMemoryBackendCartPaymentService implements DaffInMemorySingleRouteableBackend {
|
|
9
9
|
private extraFieldsHook;
|
|
10
|
+
readonly collectionName = "cart-payment";
|
|
10
11
|
constructor(extraFieldsHook: DaffCartInMemoryExtraAttributesHook);
|
|
11
12
|
get(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
12
13
|
put(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
-
import {
|
|
2
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* @inheritdoc
|
|
6
6
|
*/
|
|
7
|
-
export declare class DaffInMemoryBackendCartPaymentMethodsService implements
|
|
7
|
+
export declare class DaffInMemoryBackendCartPaymentMethodsService implements DaffInMemorySingleRouteableBackend {
|
|
8
|
+
readonly collectionName = "cart-payment-methods";
|
|
8
9
|
get(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
9
10
|
private getCart;
|
|
10
11
|
private listPaymentMethods;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InMemoryDbService, RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { DaffCart } from '@daffodil/cart';
|
|
3
|
-
import {
|
|
4
|
+
import { DaffInMemoryBackendDelegate, DaffInMemoryMultiRouteableBackend } from '@daffodil/driver/in-memory';
|
|
4
5
|
import { DaffInMemoryBackendCartService } from './cart/cart.service';
|
|
5
6
|
import { DaffInMemoryBackendCartAddressService } from './cart-address/cart-address.service';
|
|
6
7
|
import { DaffInMemoryBackendCartBillingAddressService } from './cart-billing-address/cart-billing-address.service';
|
|
@@ -17,36 +18,17 @@ import * as i0 from "@angular/core";
|
|
|
17
18
|
* The root cart in-memory backend.
|
|
18
19
|
* Creates the database and delegates requests to child backends.
|
|
19
20
|
*/
|
|
20
|
-
export declare class DaffInMemoryBackendCartRootService implements InMemoryDbService,
|
|
21
|
-
private cartService;
|
|
22
|
-
private cartItemsService;
|
|
23
|
-
private cartOrderService;
|
|
24
|
-
private cartCouponService;
|
|
25
|
-
private cartAddressService;
|
|
26
|
-
private cartShippingAddressService;
|
|
27
|
-
private cartBillingAddressService;
|
|
28
|
-
private cartPaymentMethodsService;
|
|
29
|
-
private cartShippingMethodsService;
|
|
30
|
-
private cartPaymentService;
|
|
31
|
-
private cartShippingInformationService;
|
|
32
|
-
/**
|
|
33
|
-
* The collections that the root service manages.
|
|
34
|
-
* Useful for a higher-level backend that delegates to this one based on collection name.
|
|
35
|
-
*/
|
|
36
|
-
static readonly COLLECTION_NAMES: string[];
|
|
21
|
+
export declare class DaffInMemoryBackendCartRootService extends DaffInMemoryBackendDelegate implements InMemoryDbService, DaffInMemoryMultiRouteableBackend {
|
|
37
22
|
/**
|
|
38
23
|
* The collection of carts in the backend.
|
|
39
24
|
*/
|
|
40
25
|
carts: DaffCart[];
|
|
41
26
|
constructor(cartService: DaffInMemoryBackendCartService, cartItemsService: DaffInMemoryBackendCartItemsService, cartOrderService: DaffInMemoryBackendCartOrderService, cartCouponService: DaffInMemoryBackendCartCouponService, cartAddressService: DaffInMemoryBackendCartAddressService, cartShippingAddressService: DaffInMemoryBackendCartShippingAddressService, cartBillingAddressService: DaffInMemoryBackendCartBillingAddressService, cartPaymentMethodsService: DaffInMemoryBackendCartPaymentMethodsService, cartShippingMethodsService: DaffInMemoryBackendCartShippingMethodsService, cartPaymentService: DaffInMemoryBackendCartPaymentService, cartShippingInformationService: DaffInMemoryBackendCartShippingInformationService);
|
|
42
|
-
|
|
27
|
+
protected delegateRequest(reqInfo: RequestInfo, method: any): Observable<any>;
|
|
28
|
+
canHandle(collectionName: string): boolean;
|
|
29
|
+
createDb(reqInfo: RequestInfo): Observable<{
|
|
43
30
|
cart: DaffCart[];
|
|
44
|
-
}
|
|
45
|
-
get(reqInfo: RequestInfo): any;
|
|
46
|
-
post(reqInfo: RequestInfo): any;
|
|
47
|
-
put(reqInfo: RequestInfo): any;
|
|
48
|
-
delete(reqInfo: RequestInfo): any;
|
|
49
|
-
private delegateRequest;
|
|
31
|
+
}>;
|
|
50
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryBackendCartRootService, never>;
|
|
51
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryBackendCartRootService>;
|
|
52
34
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
-
import {
|
|
2
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
3
3
|
import { DaffCartInMemoryExtraAttributesHook } from '../../injection-tokens/public_api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* @inheritdoc
|
|
7
7
|
*/
|
|
8
|
-
export declare class DaffInMemoryBackendCartShippingAddressService implements
|
|
8
|
+
export declare class DaffInMemoryBackendCartShippingAddressService implements DaffInMemorySingleRouteableBackend {
|
|
9
9
|
private extraFieldsHook;
|
|
10
|
+
readonly collectionName = "cart-shipping-address";
|
|
10
11
|
constructor(extraFieldsHook: DaffCartInMemoryExtraAttributesHook);
|
|
11
12
|
get(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
12
13
|
put(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
package/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
-
import {
|
|
2
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
3
3
|
import { DaffInMemoryBackendProductService } from '@daffodil/product/driver/in-memory';
|
|
4
4
|
import { DaffCartInMemoryExtraAttributesHook } from '../../injection-tokens/public_api';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* @inheritdoc
|
|
8
8
|
*/
|
|
9
|
-
export declare class DaffInMemoryBackendCartShippingInformationService implements
|
|
9
|
+
export declare class DaffInMemoryBackendCartShippingInformationService implements DaffInMemorySingleRouteableBackend {
|
|
10
10
|
private extraFieldsHook;
|
|
11
11
|
private productBackend;
|
|
12
|
+
readonly collectionName = "cart-shipping-information";
|
|
12
13
|
constructor(extraFieldsHook: DaffCartInMemoryExtraAttributesHook, productBackend: DaffInMemoryBackendProductService);
|
|
13
14
|
get(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
14
15
|
put(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { RequestInfo } from 'angular-in-memory-web-api';
|
|
2
2
|
import { DaffCartShippingRateFactory } from '@daffodil/cart/testing';
|
|
3
|
-
import {
|
|
3
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* @inheritdoc
|
|
7
7
|
*/
|
|
8
|
-
export declare class DaffInMemoryBackendCartShippingMethodsService implements
|
|
8
|
+
export declare class DaffInMemoryBackendCartShippingMethodsService implements DaffInMemorySingleRouteableBackend {
|
|
9
9
|
private shippingMethodFactory;
|
|
10
|
+
readonly collectionName = "cart-shipping-methods";
|
|
10
11
|
constructor(shippingMethodFactory: DaffCartShippingRateFactory);
|
|
11
12
|
get(reqInfo: RequestInfo): import("rxjs").Observable<any>;
|
|
12
13
|
private getCart;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const DAFF_CART_IN_MEMORY_CART_COLLECTION_NAME = "cart";
|
|
2
|
+
export declare const DAFF_CART_IN_MEMORY_CART_ITEMS_COLLECTION_NAME = "cart-items";
|
|
3
|
+
export declare const DAFF_CART_IN_MEMORY_CART_ORDER_COLLECTION_NAME = "cart-order";
|
|
4
|
+
export declare const DAFF_CART_IN_MEMORY_CART_COUPON_COLLECTION_NAME = "cart-coupon";
|
|
5
|
+
export declare const DAFF_CART_IN_MEMORY_CART_ADDRESS_COLLECTION_NAME = "cart-address";
|
|
6
|
+
export declare const DAFF_CART_IN_MEMORY_CART_SHIPPING_ADDRESS_COLLECTION_NAME = "cart-shipping-address";
|
|
7
|
+
export declare const DAFF_CART_IN_MEMORY_CART_BILLING_ADDRESS_COLLECTION_NAME = "cart-billing-address";
|
|
8
|
+
export declare const DAFF_CART_IN_MEMORY_CART_PAYMENT_METHODS_COLLECTION_NAME = "cart-payment-methods";
|
|
9
|
+
export declare const DAFF_CART_IN_MEMORY_CART_SHIPPING_METHODS_COLLECTION_NAME = "cart-shipping-methods";
|
|
10
|
+
export declare const DAFF_CART_IN_MEMORY_CART_PAYMENT_COLLECTION_NAME = "cart-payment";
|
|
11
|
+
export declare const DAFF_CART_IN_MEMORY_CART_SHIPPING_COLLECTION_NAME = "cart-shipping-information";
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCart } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartServiceInterface } from '@daffodil/cart/driver';
|
|
5
6
|
import { DaffDriverResponse } from '@daffodil/driver';
|
|
7
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
/**
|
|
8
10
|
* @inheritdoc
|
|
9
11
|
*/
|
|
10
|
-
export declare class DaffInMemoryCartService implements DaffCartServiceInterface {
|
|
12
|
+
export declare class DaffInMemoryCartService extends DaffInMemoryDriverBase implements DaffCartServiceInterface {
|
|
11
13
|
private http;
|
|
12
|
-
|
|
13
|
-
* The URL with which the driver makes calls to the backend.
|
|
14
|
-
*/
|
|
15
|
-
readonly url = "/api/cart";
|
|
16
|
-
constructor(http: HttpClient);
|
|
14
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
17
15
|
get(cartId: DaffCart['id']): Observable<DaffDriverResponse<DaffCart>>;
|
|
18
16
|
addToCart(productId: string, qty: number): Observable<DaffCart>;
|
|
19
17
|
clear(cartId: DaffCart['id']): Observable<Partial<DaffCart>>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCart, DaffCartAddress } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartAddressServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartAddressService implements DaffCartAddressServiceInterface {
|
|
11
|
+
export declare class DaffInMemoryCartAddressService extends DaffInMemoryDriverBase implements DaffCartAddressServiceInterface {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-address";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
update(cartId: DaffCart['id'], address: DaffCartAddress): Observable<Partial<DaffCart>>;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryCartAddressService, never>;
|
|
18
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryCartAddressService>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCartAddress, DaffCart } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartBillingAddressServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartBillingAddressService implements DaffCartBillingAddressServiceInterface {
|
|
11
|
+
export declare class DaffInMemoryCartBillingAddressService extends DaffInMemoryDriverBase implements DaffCartBillingAddressServiceInterface {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-billing-address";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
get(cartId: DaffCart['id']): Observable<DaffCartAddress>;
|
|
17
15
|
update(cartId: DaffCart['id'], address: DaffCartAddress): Observable<Partial<DaffCart>>;
|
|
18
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryCartBillingAddressService, never>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCart, DaffCartCoupon } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartCouponServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartCouponService implements DaffCartCouponServiceInterface {
|
|
11
|
+
export declare class DaffInMemoryCartCouponService extends DaffInMemoryDriverBase implements DaffCartCouponServiceInterface {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-coupon";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
list(cartId: DaffCart['id']): Observable<DaffCartCoupon[]>;
|
|
17
15
|
apply(cartId: DaffCart['id'], coupon: DaffCartCoupon): Observable<Partial<DaffCart>>;
|
|
18
16
|
remove(cartId: DaffCart['id'], coupon: DaffCartCoupon): Observable<Partial<DaffCart>>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCartItem, DaffCartItemInput, DaffCart } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartItemServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartItemService implements DaffCartItemServiceInterface {
|
|
11
|
+
export declare class DaffInMemoryCartItemService extends DaffInMemoryDriverBase implements DaffCartItemServiceInterface {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-items";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
list(cartId: DaffCart['id']): Observable<DaffCartItem[]>;
|
|
17
15
|
get(cartId: DaffCart['id'], itemId: DaffCartItem['id']): Observable<DaffCartItem>;
|
|
18
16
|
add(cartId: DaffCart['id'], input: DaffCartItemInput): Observable<Partial<DaffCart>>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCart, DaffCartPaymentMethod, DaffCartOrderResult } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartOrderServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartOrderService implements DaffCartOrderServiceInterface {
|
|
11
|
+
export declare class DaffInMemoryCartOrderService extends DaffInMemoryDriverBase implements DaffCartOrderServiceInterface {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-order";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
placeOrder(cartId: DaffCart['id'], payment?: DaffCartPaymentMethod): Observable<DaffCartOrderResult>;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryCartOrderService, never>;
|
|
18
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryCartOrderService>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCart, DaffCartPaymentMethod, DaffCartAddress } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartPaymentServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartPaymentService implements DaffCartPaymentServiceInterface {
|
|
11
|
+
export declare class DaffInMemoryCartPaymentService extends DaffInMemoryDriverBase implements DaffCartPaymentServiceInterface {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-payment";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
get(cartId: DaffCart['id']): Observable<DaffCartPaymentMethod>;
|
|
17
15
|
update(cartId: DaffCart['id'], payment: Partial<DaffCartPaymentMethod>): Observable<Partial<DaffCart>>;
|
|
18
16
|
updateWithBilling(cartId: DaffCart['id'], payment: Partial<DaffCartPaymentMethod>, address: Partial<DaffCartAddress>): Observable<Partial<DaffCart>>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCartPaymentMethod, DaffCart } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartPaymentMethodsServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartPaymentMethodsService implements DaffCartPaymentMethodsServiceInterface<DaffCartPaymentMethod> {
|
|
11
|
+
export declare class DaffInMemoryCartPaymentMethodsService extends DaffInMemoryDriverBase implements DaffCartPaymentMethodsServiceInterface<DaffCartPaymentMethod> {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-payment-methods";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
list(cartId: DaffCart['id']): Observable<DaffCartPaymentMethod[]>;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryCartPaymentMethodsService, never>;
|
|
18
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryCartPaymentMethodsService>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCartAddress, DaffCart } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartShippingAddressServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartShippingAddressService implements DaffCartShippingAddressServiceInterface {
|
|
11
|
+
export declare class DaffInMemoryCartShippingAddressService extends DaffInMemoryDriverBase implements DaffCartShippingAddressServiceInterface {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-shipping-address";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
get(cartId: DaffCart['id']): Observable<DaffCartAddress>;
|
|
17
15
|
update(cartId: DaffCart['id'], address: Partial<DaffCartAddress>): Observable<Partial<DaffCart>>;
|
|
18
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryCartShippingAddressService, never>;
|
package/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.d.ts
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCartShippingRate, DaffCart } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartShippingInformationServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartShippingInformationService implements DaffCartShippingInformationServiceInterface {
|
|
11
|
+
export declare class DaffInMemoryCartShippingInformationService extends DaffInMemoryDriverBase implements DaffCartShippingInformationServiceInterface {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-shipping-information";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
get(cartId: DaffCart['id']): Observable<DaffCartShippingRate>;
|
|
17
15
|
update(cartId: DaffCart['id'], info: Partial<DaffCartShippingRate>): Observable<Partial<DaffCart>>;
|
|
18
16
|
delete(cartId: DaffCart['id']): Observable<Partial<DaffCart>>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { DaffCartShippingRate, DaffCart } from '@daffodil/cart';
|
|
4
5
|
import { DaffCartShippingMethodsServiceInterface } from '@daffodil/cart/driver';
|
|
6
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* @inheritdoc
|
|
8
10
|
*/
|
|
9
|
-
export declare class DaffInMemoryCartShippingMethodsService implements DaffCartShippingMethodsServiceInterface<DaffCartShippingRate> {
|
|
11
|
+
export declare class DaffInMemoryCartShippingMethodsService extends DaffInMemoryDriverBase implements DaffCartShippingMethodsServiceInterface<DaffCartShippingRate> {
|
|
10
12
|
private http;
|
|
11
|
-
|
|
12
|
-
* The URL with which the driver makes calls to the backend.
|
|
13
|
-
*/
|
|
14
|
-
readonly url = "/api/cart-shipping-methods";
|
|
15
|
-
constructor(http: HttpClient);
|
|
13
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
16
14
|
list(cartId: DaffCart['id']): Observable<DaffCartShippingRate[]>;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryCartShippingMethodsService, never>;
|
|
18
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryCartShippingMethodsService>;
|
|
@@ -5,5 +5,7 @@ export declare const DaffCartMagentoErrorMessageRegexMap: {
|
|
|
5
5
|
DAFF_PRODUCT_OUT_OF_STOCK: RegExp;
|
|
6
6
|
ITEM_EXCEEDS_MAX_QTY: RegExp;
|
|
7
7
|
DAFF_INVALID_EMAIL: RegExp;
|
|
8
|
+
DAFF_CART_NOT_FOUND: RegExp;
|
|
9
|
+
DAFF_UNAUTHORIZED_FOR_CART: RegExp;
|
|
8
10
|
};
|
|
9
11
|
export declare const DaffCartMagentoUserErrorMap: DaffErrorCodeMap;
|
|
@@ -10,4 +10,4 @@ export class DaffCartNotFoundError extends DaffInheritableError {
|
|
|
10
10
|
this.code = DaffCartDriverErrorCodes.CART_NOT_FOUND;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FydC1ub3QtZm91bmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NhcnQvZHJpdmVyL3NyYy9lcnJvcnMvY2FydC1ub3QtZm91bmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLG9CQUFvQixHQUNyQixNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUV4RDs7O0dBR0c7QUFDSCxNQUFNLE9BQU8scUJBQXNCLFNBQVEsb0JBQW9CO0lBRzdELFlBQVksT0FBZ0I7UUFDMUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBSEQsU0FBSSxHQUFXLHdCQUF3QixDQUFDLGNBQWMsQ0FBQztJQUl2RSxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBEYWZmRXJyb3IsXG4gIERhZmZJbmhlcml0YWJsZUVycm9yLFxufSBmcm9tICdAZGFmZm9kaWwvY29yZSc7XG5cbmltcG9ydCB7IERhZmZDYXJ0RHJpdmVyRXJyb3JDb2RlcyB9IGZyb20gJy4vY29kZXMuZW51bSc7XG5cbi8qKlxuICogQW4gZXJyb3IgdGhyb3duIHdoZW4gYSBjYXJ0IGRyaXZlciBjYWxsIGlzIHNlbnQgd2l0aCBhIGNhcnQgaWRlbnRpZmllclxuICogdGhhdCBjYW5ub3QgYmUgZm91bmQgYnkgdGhlIHBsYXRmb3JtLlxuICovXG5leHBvcnQgY2xhc3MgRGFmZkNhcnROb3RGb3VuZEVycm9yIGV4dGVuZHMgRGFmZkluaGVyaXRhYmxlRXJyb3IgaW1wbGVtZW50cyBEYWZmRXJyb3Ige1xuICBwdWJsaWMgcmVhZG9ubHkgY29kZTogc3RyaW5nID0gRGFmZkNhcnREcml2ZXJFcnJvckNvZGVzLkNBUlRfTk9UX0ZPVU5EO1xuXG4gIGNvbnN0cnVjdG9yKG1lc3NhZ2U/OiBzdHJpbmcpIHtcbiAgICBzdXBlcihtZXNzYWdlKTtcbiAgfVxufVxuIl19
|
|
@@ -10,4 +10,4 @@ export class DaffInvalidCountryError extends DaffInheritableError {
|
|
|
10
10
|
this.code = DaffCartDriverErrorCodes.INVALID_COUNTRY;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52YWxpZC1jb3VudHJ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9jYXJ0L2RyaXZlci9zcmMvZXJyb3JzL2ludmFsaWQtY291bnRyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsb0JBQW9CLEdBQ3JCLE1BQU0sZ0JBQWdCLENBQUM7QUFFeEIsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRXhEOzs7R0FHRztBQUNILE1BQU0sT0FBTyx1QkFBd0IsU0FBUSxvQkFBb0I7SUFHL0QsWUFBWSxPQUFnQjtRQUMxQixLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFIRCxTQUFJLEdBQVcsd0JBQXdCLENBQUMsZUFBZSxDQUFDO0lBSXhFLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIERhZmZFcnJvcixcbiAgRGFmZkluaGVyaXRhYmxlRXJyb3IsXG59IGZyb20gJ0BkYWZmb2RpbC9jb3JlJztcblxuaW1wb3J0IHsgRGFmZkNhcnREcml2ZXJFcnJvckNvZGVzIH0gZnJvbSAnLi9jb2Rlcy5lbnVtJztcblxuLyoqXG4gKiBBbiBlcnJvciB0aHJvd24gd2hlbiB0aGUgc3BlY2lmaWVkIGNvdW50cnkgaXMgaW52YWxpZCBmb3IgdGhlIHNwZWNpZmllZCBhZGRyZXNzXG4gKiBvciBtaXNzaW5nIHdoZXJlIGl0IGlzIHJlcXVpcmVkLlxuICovXG5leHBvcnQgY2xhc3MgRGFmZkludmFsaWRDb3VudHJ5RXJyb3IgZXh0ZW5kcyBEYWZmSW5oZXJpdGFibGVFcnJvciBpbXBsZW1lbnRzIERhZmZFcnJvciB7XG4gIHB1YmxpYyByZWFkb25seSBjb2RlOiBzdHJpbmcgPSBEYWZmQ2FydERyaXZlckVycm9yQ29kZXMuSU5WQUxJRF9DT1VOVFJZO1xuXG4gIGNvbnN0cnVjdG9yKG1lc3NhZ2U/OiBzdHJpbmcpIHtcbiAgICBzdXBlcihtZXNzYWdlKTtcbiAgfVxufVxuIl19
|
|
@@ -11,4 +11,4 @@ export class DaffInvalidCouponCodeError extends DaffInheritableError {
|
|
|
11
11
|
this.code = DaffCartDriverErrorCodes.INVALID_COUPON_CODE;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52YWxpZC1jb3Vwb24tY29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY2FydC9kcml2ZXIvc3JjL2Vycm9ycy9pbnZhbGlkLWNvdXBvbi1jb2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFFTCxvQkFBb0IsR0FDckIsTUFBTSxnQkFBZ0IsQ0FBQztBQUV4QixPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFeEQ7OztHQUdHO0FBQ0gsTUFBTSxPQUFPLDBCQUEyQixTQUFRLG9CQUFvQjtJQUdsRSxZQUFZLE9BQWdCLEVBQVMsTUFBK0I7UUFDbEUsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBRG9CLFdBQU0sR0FBTixNQUFNLENBQXlCO1FBRnBELFNBQUksR0FBVyx3QkFBd0IsQ0FBQyxtQkFBbUIsQ0FBQztJQUk1RSxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEYWZmQ2FydENvdXBvbiB9IGZyb20gJ0BkYWZmb2RpbC9jYXJ0JztcbmltcG9ydCB7XG4gIERhZmZFcnJvcixcbiAgRGFmZkluaGVyaXRhYmxlRXJyb3IsXG59IGZyb20gJ0BkYWZmb2RpbC9jb3JlJztcblxuaW1wb3J0IHsgRGFmZkNhcnREcml2ZXJFcnJvckNvZGVzIH0gZnJvbSAnLi9jb2Rlcy5lbnVtJztcblxuLyoqXG4gKiBBbiBlcnJvciB0aHJvd24gd2hlbiB0aGUgc3BlY2lmaWVkIGNvdXBvbiBjb2RlIGNhbm5vdCBiZSBhcHBsaWVkIHRvIHRoZSBjYXJ0LlxuICogRWl0aGVyIHRoZSBjb3Vwb24gY29kZSBkb2VzIG5vdCBleGlzdCBvciB0aGUgcmVxdWlyZWQgY29uZGl0aW9ucyBhcmUgbm90IG1ldC5cbiAqL1xuZXhwb3J0IGNsYXNzIERhZmZJbnZhbGlkQ291cG9uQ29kZUVycm9yIGV4dGVuZHMgRGFmZkluaGVyaXRhYmxlRXJyb3IgaW1wbGVtZW50cyBEYWZmRXJyb3Ige1xuICBwdWJsaWMgcmVhZG9ubHkgY29kZTogc3RyaW5nID0gRGFmZkNhcnREcml2ZXJFcnJvckNvZGVzLklOVkFMSURfQ09VUE9OX0NPREU7XG5cbiAgY29uc3RydWN0b3IobWVzc2FnZT86IHN0cmluZywgcHVibGljIGNvdXBvbj86IERhZmZDYXJ0Q291cG9uWydjb2RlJ10pIHtcbiAgICBzdXBlcihtZXNzYWdlKTtcbiAgfVxufVxuIl19
|
|
@@ -9,4 +9,4 @@ export class DaffInvalidEmailError extends DaffInheritableError {
|
|
|
9
9
|
this.code = DaffCartDriverErrorCodes.INVALID_EMAIL;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52YWxpZC1lbWFpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY2FydC9kcml2ZXIvc3JjL2Vycm9ycy9pbnZhbGlkLWVtYWlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCxvQkFBb0IsR0FDckIsTUFBTSxnQkFBZ0IsQ0FBQztBQUV4QixPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFeEQ7O0dBRUc7QUFDSCxNQUFNLE9BQU8scUJBQXNCLFNBQVEsb0JBQW9CO0lBRzdELFlBQVksT0FBZ0I7UUFDMUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBSEQsU0FBSSxHQUFXLHdCQUF3QixDQUFDLGFBQWEsQ0FBQztJQUl0RSxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBEYWZmRXJyb3IsXG4gIERhZmZJbmhlcml0YWJsZUVycm9yLFxufSBmcm9tICdAZGFmZm9kaWwvY29yZSc7XG5cbmltcG9ydCB7IERhZmZDYXJ0RHJpdmVyRXJyb3JDb2RlcyB9IGZyb20gJy4vY29kZXMuZW51bSc7XG5cbi8qKlxuICogQW4gZXJyb3IgdGhyb3duIHdoZW4gdGhlIGVtYWlsIGlzIG5vdCBpbiB0aGUgY29ycmVjdCBmb3JtYXQuXG4gKi9cbmV4cG9ydCBjbGFzcyBEYWZmSW52YWxpZEVtYWlsRXJyb3IgZXh0ZW5kcyBEYWZmSW5oZXJpdGFibGVFcnJvciBpbXBsZW1lbnRzIERhZmZFcnJvciB7XG4gIHB1YmxpYyByZWFkb25seSBjb2RlOiBzdHJpbmcgPSBEYWZmQ2FydERyaXZlckVycm9yQ29kZXMuSU5WQUxJRF9FTUFJTDtcblxuICBjb25zdHJ1Y3RvcihtZXNzYWdlPzogc3RyaW5nKSB7XG4gICAgc3VwZXIobWVzc2FnZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -10,4 +10,4 @@ export class DaffInvalidRegionError extends DaffInheritableError {
|
|
|
10
10
|
this.code = DaffCartDriverErrorCodes.INVALID_REGION;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52YWxpZC1yZWdpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NhcnQvZHJpdmVyL3NyYy9lcnJvcnMvaW52YWxpZC1yZWdpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLG9CQUFvQixHQUNyQixNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUV4RDs7O0dBR0c7QUFDSCxNQUFNLE9BQU8sc0JBQXVCLFNBQVEsb0JBQW9CO0lBRzlELFlBQVksT0FBZ0I7UUFDMUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBSEQsU0FBSSxHQUFXLHdCQUF3QixDQUFDLGNBQWMsQ0FBQztJQUl2RSxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBEYWZmRXJyb3IsXG4gIERhZmZJbmhlcml0YWJsZUVycm9yLFxufSBmcm9tICdAZGFmZm9kaWwvY29yZSc7XG5cbmltcG9ydCB7IERhZmZDYXJ0RHJpdmVyRXJyb3JDb2RlcyB9IGZyb20gJy4vY29kZXMuZW51bSc7XG5cbi8qKlxuICogQW4gZXJyb3IgdGhyb3duIHdoZW4gdGhlIHNwZWNpZmllZCByZWdpb24gaXMgaW52YWxpZCBmb3IgdGhlIHNwZWNpZmllZCBhZGRyZXNzXG4gKiBvciBtaXNzaW5nIHdoZXJlIGl0IGlzIHJlcXVpcmVkLlxuICovXG5leHBvcnQgY2xhc3MgRGFmZkludmFsaWRSZWdpb25FcnJvciBleHRlbmRzIERhZmZJbmhlcml0YWJsZUVycm9yIGltcGxlbWVudHMgRGFmZkVycm9yIHtcbiAgcHVibGljIHJlYWRvbmx5IGNvZGU6IHN0cmluZyA9IERhZmZDYXJ0RHJpdmVyRXJyb3JDb2Rlcy5JTlZBTElEX1JFR0lPTjtcblxuICBjb25zdHJ1Y3RvcihtZXNzYWdlPzogc3RyaW5nKSB7XG4gICAgc3VwZXIobWVzc2FnZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -10,4 +10,4 @@ export class DaffCartItemExceedsMaxQtyError extends DaffInheritableError {
|
|
|
10
10
|
this.code = DaffCartDriverErrorCodes.ITEM_EXCEEDS_MAX_QTY;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbS1leGNlZWRzLW1heC1xdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NhcnQvZHJpdmVyL3NyYy9lcnJvcnMvaXRlbS1leGNlZWRzLW1heC1xdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLG9CQUFvQixHQUNyQixNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUV4RDs7O0dBR0c7QUFDSCxNQUFNLE9BQU8sOEJBQStCLFNBQVEsb0JBQW9CO0lBR3RFLFlBQVksT0FBZ0I7UUFDMUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBSEQsU0FBSSxHQUFXLHdCQUF3QixDQUFDLG9CQUFvQixDQUFDO0lBSTdFLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIERhZmZFcnJvcixcbiAgRGFmZkluaGVyaXRhYmxlRXJyb3IsXG59IGZyb20gJ0BkYWZmb2RpbC9jb3JlJztcblxuaW1wb3J0IHsgRGFmZkNhcnREcml2ZXJFcnJvckNvZGVzIH0gZnJvbSAnLi9jb2Rlcy5lbnVtJztcblxuLyoqXG4gKiBBbiBlcnJvciB0aHJvd24gd2hlbiBhIGNhcnQgaXRlbSdzIHJlcXVlc3RlZCBxdWFudGl0eVxuICogZXhjZWVkcyB0aGUgbWF4aW11bSBhbGxvd2VkIGJ5IHRoZSBwbGF0Zm9ybS5cbiAqL1xuZXhwb3J0IGNsYXNzIERhZmZDYXJ0SXRlbUV4Y2VlZHNNYXhRdHlFcnJvciBleHRlbmRzIERhZmZJbmhlcml0YWJsZUVycm9yIGltcGxlbWVudHMgRGFmZkVycm9yIHtcbiAgcHVibGljIHJlYWRvbmx5IGNvZGU6IHN0cmluZyA9IERhZmZDYXJ0RHJpdmVyRXJyb3JDb2Rlcy5JVEVNX0VYQ0VFRFNfTUFYX1FUWTtcblxuICBjb25zdHJ1Y3RvcihtZXNzYWdlPzogc3RyaW5nKSB7XG4gICAgc3VwZXIobWVzc2FnZSk7XG4gIH1cbn1cbiJdfQ==
|