Skip to content

Commit

Permalink
feat(cart)!: move error matcher injection token to state subpackage (#…
Browse files Browse the repository at this point in the history
…2645)

BREAKING CHANGE: error matcher injection token has moved to state subpackage
  • Loading branch information
griest024 committed Dec 11, 2023
1 parent 53b788b commit 81ac05a
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 14 deletions.
1 change: 0 additions & 1 deletion libs/cart/src/injection-tokens/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { DaffCartPaymentMethodIdMap } from './payment-method-map';
export { DAFF_CART_ERROR_MATCHER } from './error-matcher.token';
2 changes: 1 addition & 1 deletion libs/cart/state/src/effects/cart-address.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
DaffCartAddress,
DaffCart,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartAddressDriver,
Expand All @@ -41,6 +40,7 @@ import {
DaffCartAddressUpdateFailure,
DaffCartStorageFailure,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartAddressEffects<T extends DaffCartAddress, V extends DaffCart> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
DaffCartAddress,
DaffCart,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartBillingAddressDriver,
Expand All @@ -36,6 +35,7 @@ import {
DaffCartBillingAddressUpdateSuccess,
DaffCartBillingAddressUpdateFailure,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartBillingAddressEffects<T extends DaffCartAddress, V extends DaffCart> {
Expand Down
2 changes: 1 addition & 1 deletion libs/cart/state/src/effects/cart-coupon.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
DaffCart,
DaffCartCoupon,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartCouponDriver,
Expand Down Expand Up @@ -50,6 +49,7 @@ import {
DaffCartCouponApplyFailure,
DaffCartStorageFailure,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartCouponEffects<
Expand Down
2 changes: 1 addition & 1 deletion libs/cart/state/src/effects/cart-item.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
DaffCartItemInput,
DaffCart,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartDriverResolveService,
Expand Down Expand Up @@ -63,6 +62,7 @@ import {
DaffCartItemActions,
} from '../actions/public_api';
import { DaffCartItemStateDebounceTime } from '../injection-tokens/cart-item-state-debounce-time';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';
import { DaffStatefulCartItem } from '../models/public_api';
import { getDaffCartSelectors } from '../selectors/public_api';

Expand Down
2 changes: 1 addition & 1 deletion libs/cart/state/src/effects/cart-order.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
DaffCartPaymentMethod,
DaffCartOrderResult,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartOrderDriver,
Expand All @@ -43,6 +42,7 @@ import {
DaffCartStorageFailure,
DaffCartCreate,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartOrderEffects<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
import {
DaffCartPaymentMethod,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartPaymentMethodsDriver,
Expand All @@ -32,6 +31,7 @@ import {
DaffCartPaymentMethodsLoadSuccess,
DaffCartPaymentMethodsLoadFailure,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartPaymentMethodsEffects<T extends DaffCartPaymentMethod> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
DaffCart,
DaffCartAddress,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartPaymentDriver,
Expand All @@ -46,6 +45,7 @@ import {
DaffCartPaymentUpdateFailure,
DaffCartPaymentUpdateSuccess,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartPaymentProcessorEffects<
Expand Down
2 changes: 1 addition & 1 deletion libs/cart/state/src/effects/cart-payment.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
DaffCart,
DaffCartAddress,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartPaymentDriver,
Expand All @@ -43,6 +42,7 @@ import {
DaffCartPaymentUpdateWithBillingSuccess,
DaffCartPaymentUpdateWithBillingFailure,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartPaymentEffects<
Expand Down
2 changes: 1 addition & 1 deletion libs/cart/state/src/effects/cart-resolver.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
import {
DaffCart,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
DaffCartServerSideResolutionError,
DaffCartStorageResolutionError,
DaffCartResolutionError,
Expand Down Expand Up @@ -58,6 +57,7 @@ import {
DaffResolveCartPartialSuccess,
DaffCartActions,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

/**
* An effect for resolving a guest cart for a customer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
DaffCartAddress,
DaffCart,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartShippingAddressDriver,
Expand All @@ -36,6 +35,7 @@ import {
DaffCartShippingAddressUpdateSuccess,
DaffCartShippingAddressUpdateFailure,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartShippingAddressEffects<T extends DaffCartAddress, V extends DaffCart> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
DaffCartShippingInformation,
DaffCart,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartShippingInformationDriver,
Expand All @@ -39,6 +38,7 @@ import {
DaffCartShippingInformationUpdateSuccess,
DaffCartShippingInformationUpdateFailure,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartShippingInformationEffects<T extends DaffCartShippingInformation, V extends DaffCart> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
import {
DaffCartShippingRate,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartShippingMethodsDriver,
Expand All @@ -32,6 +31,7 @@ import {
DaffCartShippingMethodsLoadSuccess,
DaffCartShippingMethodsLoadFailure,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartShippingMethodsEffects<T extends DaffCartShippingRate> {
Expand Down
2 changes: 1 addition & 1 deletion libs/cart/state/src/effects/cart.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
import {
DaffCart,
DaffCartStorageService,
DAFF_CART_ERROR_MATCHER,
} from '@daffodil/cart';
import {
DaffCartDriver,
Expand Down Expand Up @@ -52,6 +51,7 @@ import {
DaffCartStorageFailure,
DaffCartLoadPartialSuccess,
} from '../actions/public_api';
import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffCartEffects<T extends DaffCart> {
Expand Down
1 change: 1 addition & 0 deletions libs/cart/state/src/injection-tokens/public_api.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { DaffCartItemStateDebounceTime } from './cart-item-state-debounce-time';
export { DAFF_CART_ERROR_MATCHER } from './error-matcher.token';

0 comments on commit 81ac05a

Please sign in to comment.