Skip to content

Commit

Permalink
feat(all): export driver providers (#3273)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 authored Oct 15, 2024
1 parent 0f359ce commit b833dc5
Show file tree
Hide file tree
Showing 20 changed files with 49 additions and 22 deletions.
3 changes: 2 additions & 1 deletion libs/cart-store-credit/driver/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export {
DaffCartStoreCreditDriver,
DaffCartStoreCreditDriverInterface,
DaffCartStoreCreditDriver,
provideDaffCartStoreCreditDriver,
} from './interfaces/store-credit-service.interface';

export * from './errors/public_api';
11 changes: 11 additions & 0 deletions libs/cart/driver/src/interfaces/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,55 @@
export {
DaffCartServiceInterface,
DaffCartDriver,
provideDaffCartDriver,
} from './cart-service.interface';
export {
DaffCartBillingAddressServiceInterface,
DaffCartBillingAddressDriver,
provideDaffCartBillingAddressDriver,
} from './cart-billing-address-service.interface';
export {
DaffCartAddressServiceInterface,
DaffCartAddressDriver,
provideDaffCartAddressDriver,
} from './cart-address-service.interface';
export {
DaffCartCouponServiceInterface,
DaffCartCouponDriver,
provideDaffCartCouponDriver,
} from './cart-coupon-service.interface';
export {
DaffCartItemServiceInterface,
DaffCartItemDriver,
provideDaffCartItemDriver,
} from './cart-item-service.interface';
export {
DaffCartPaymentMethodsServiceInterface,
DaffCartPaymentMethodsDriver,
provideDaffCartPaymentMethodsDriver,
} from './cart-payment-methods-service.interface';
export {
DaffCartPaymentServiceInterface,
DaffCartPaymentDriver,
provideDaffCartPaymentDriver,
} from './cart-payment-service.interface';
export {
DaffCartShippingAddressServiceInterface,
DaffCartShippingAddressDriver,
provideDaffCartShippingAddressDriver,
} from './cart-shipping-address-service.interface';
export {
DaffCartShippingInformationServiceInterface,
DaffCartShippingInformationDriver,
provideDaffCartShippingInformationDriver,
} from './cart-shipping-information-service.interface';
export {
DaffCartShippingMethodsServiceInterface,
DaffCartShippingMethodsDriver,
provideDaffCartShippingMethodsDriver,
} from './cart-shipping-methods-service.interface';
export {
DaffCartOrderServiceInterface,
DaffCartOrderDriver,
provideDaffCartOrderDriver,
} from './cart-order-service.interface';
1 change: 1 addition & 0 deletions libs/category/driver/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export {
DaffCategoryServiceInterface,
DaffCategoryDriver,
provideDaffCategoryDriver,
} from './interfaces/category-service.interface';
3 changes: 2 additions & 1 deletion libs/content/driver/src/interfaces/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export {
DaffContentDriver,
DaffContentServiceInterface,
DaffContentDriver,
provideDaffContentDriver,
} from './service.interface';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Observable } from 'rxjs';

import {
DaffIdentifiable,
createSingleInjectionToken,
createSingletonInjectionToken,
} from '@daffodil/core';
import { DaffCustomerAddress } from '@daffodil/customer';
import {
Expand All @@ -17,7 +17,7 @@ export const {
*/
token: DaffCustomerPaymentDriver,
provider: provideDaffCustomerPaymentDriver,
} = createSingleInjectionToken<DaffCustomerPaymentDriverInterface>('DaffCustomerPaymentDriver');
} = createSingletonInjectionToken<DaffCustomerPaymentDriverInterface>('DaffCustomerPaymentDriver');

/**
* The customer payment driver is responsible for loading customers.
Expand Down
3 changes: 2 additions & 1 deletion libs/customer-payment/driver/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export {
DaffCustomerPaymentDriver,
DaffCustomerPaymentDriverInterface,
DaffCustomerPaymentDriver,
provideDaffCustomerPaymentDriver,
} from './interfaces/payment-service.interface';

export * from './errors/public_api';
3 changes: 2 additions & 1 deletion libs/customer-store-credit/driver/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export {
DaffCustomerStoreCreditDriver,
DaffCustomerStoreCreditDriverInterface,
DaffCustomerStoreCreditDriver,
provideDaffCustomerStoreCreditDriver,
} from './interfaces/store-credit-service.interface';

export * from './errors/public_api';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Observable } from 'rxjs';

import {
DaffIdentifiable,
createSingleInjectionToken,
createSingletonInjectionToken,
} from '@daffodil/core';
import { DaffCustomerAddress } from '@daffodil/customer';

Expand All @@ -12,7 +12,7 @@ export const {
*/
token: DaffCustomerAddressDriver,
provider: provideDaffCustomerAddressDriver,
} = createSingleInjectionToken<DaffCustomerAddressDriverInterface>('DaffCustomerAddressDriver');
} = createSingletonInjectionToken<DaffCustomerAddressDriverInterface>('DaffCustomerAddressDriver');

/**
* The customer driver is responsible for loading customers.
Expand Down
6 changes: 4 additions & 2 deletions libs/customer/driver/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
export {
DaffCustomerDriver,
DaffCustomerDriverInterface,
DaffCustomerDriver,
provideDaffCustomerDriver,
} from './interfaces/customer-service.interface';
export {
DaffCustomerAddressDriver,
DaffCustomerAddressDriverInterface,
DaffCustomerAddressDriver,
provideDaffCustomerAddressDriver,
} from './interfaces/address-service.interface';

export * from './errors/public_api';
1 change: 1 addition & 0 deletions libs/external-router/driver/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
export {
DaffExternalRouterDriverInterface,
DaffExternalRouterDriver,
provideDaffExternalRouterDriver,
} from './interfaces/external-router-driver.interface';
export { DAFF_EXTERNAL_ROUTER_NOT_FOUND_RESOLUTION } from './not-found-resolution';
6 changes: 1 addition & 5 deletions libs/geography/driver/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export * from './errors/public_api';
export {
DaffGeographyServiceInterface,
DaffGeographyDriver,
} from './interfaces/geography-service.interface';
export * from './public_api';
6 changes: 6 additions & 0 deletions libs/geography/driver/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './errors/public_api';
export {
DaffGeographyServiceInterface,
DaffGeographyDriver,
provideDaffGeographyDriver,
} from './interfaces/geography-service.interface';
3 changes: 2 additions & 1 deletion libs/navigation/driver/src/interfaces/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export {
DaffNavigationDriver,
DaffNavigationServiceInterface,
DaffNavigationDriver,
provideDaffNavigationDriver,
} from './navigation-service.interface';
export {
DaffNavigationTransformer,
Expand Down
3 changes: 2 additions & 1 deletion libs/order/driver/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export {
DaffOrderDriver,
DaffOrderServiceInterface,
DaffOrderDriver,
provideDaffOrderDriver,
} from './interfaces/order-service.interface';

export * from './errors/public_api';
4 changes: 2 additions & 2 deletions libs/order/driver/src/interfaces/order-service.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
import { DaffCart } from '@daffodil/cart';
import {
DaffCollectionRequest,
createSingleInjectionToken,
createSingletonInjectionToken,
} from '@daffodil/core';
import {
DaffOrder,
Expand All @@ -13,7 +13,7 @@ import {
export const {
token: DaffOrderDriver,
provider: provideDaffOrderDriver,
} = createSingleInjectionToken<DaffOrderServiceInterface>('DaffOrderDriver');
} = createSingletonInjectionToken<DaffOrderServiceInterface>('DaffOrderDriver');

/**
* Query order objects accessible by the logged-in user.
Expand Down
3 changes: 2 additions & 1 deletion libs/payment/driver/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export {
DaffPaymentDriver,
DaffPaymentDriverInterface,
DaffPaymentDriver,
provideDaffPaymentDriver,
} from './interfaces/payment-service.interface';

export * from './errors/public_api';
1 change: 1 addition & 0 deletions libs/product/driver/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export {
DaffProductServiceInterface,
DaffProductDriver,
provideDaffProductDriver,
} from './interfaces/product-service.interface';

export * from './models/public_api';
Expand Down
1 change: 1 addition & 0 deletions libs/reviews/driver/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export * from './errors/public_api';
export {
DaffProductReviewsServiceInterface,
DaffReviewsDriver,
provideDaffReviewsDriver,
} from './interfaces/reviews-service.interface';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Observable } from 'rxjs';

import {
DaffCollectionRequest,
createSingleInjectionToken,
createSingletonInjectionToken,
} from '@daffodil/core';
import { DaffProduct } from '@daffodil/product';
import {
Expand All @@ -13,7 +13,7 @@ import {
export const {
token: DaffReviewsDriver,
provider: provideDaffReviewsDriver,
} = createSingleInjectionToken<DaffProductReviewsServiceInterface>('DaffReviewsDriver');
} = createSingletonInjectionToken<DaffProductReviewsServiceInterface>('DaffReviewsDriver');

export interface DaffProductReviewsServiceInterface<T extends DaffProductReview = DaffProductReview> {
/**
Expand Down
1 change: 1 addition & 0 deletions libs/search/driver/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export {
DaffSearchDriver,
DaffSearchDriverInterface,
DaffSearchDriverOptions,
provideDaffSearchDriver,
} from './interfaces/search-service.interface';
export { DaffSearchDriverKindedInterface } from './interfaces/search-service-kinded.interface';
export { DaffSearchDriverResponse } from './interfaces/response.interface';
Expand Down

0 comments on commit b833dc5

Please sign in to comment.