Skip to content

Commit

Permalink
feature/GH-8499: fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
WeizhengSap committed Oct 16, 2020
1 parent bb0a25f commit e874c40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { B2BUnit as CoreB2BUnit} from '@spartacus/core';

declare module '@spartacus/core' {
interface B2BUser {
approvers?: [];
orgUnit?: B2BUnit;
orgUnit?: CoreB2BUnit;
selected?: boolean;
isAssignedToApprovers?: boolean;
email?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { B2BApprovalProcess } from './order-approval.model';
import { B2BUser as CoreB2BUser} from '@spartacus/core';

declare module '@spartacus/core' {
interface B2BUnit {
parentOrgUnit?: Partial<B2BUnit>;
approvalProcess?: B2BApprovalProcess;
administrators?: B2BUser[];
approvers?: B2BUser[];
customers?: B2BUser[];
administrators?: CoreB2BUser[];
approvers?: CoreB2BUser[];
customers?: CoreB2BUser[];
costCenters?: CostCenter[];
managers?: B2BUser[];
managers?: CoreB2BUser[];
}
}
4 changes: 1 addition & 3 deletions projects/core/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,5 @@ export * from './src/lazy-loading/index';
export { Product } from './src/model/product.model';
export { ProductSearchPage, Facet } from './src/model/product-search.model';
export { Cart } from './src/model/cart.model';
export { CostCenter } from './src/model/org-unit.model';
export { B2BUnit } from './src/model/org-unit.model';
export { B2BUser } from './src/model/org-unit.model';
export { CostCenter, B2BUnit, B2BUser } from './src/model/org-unit.model';
/** AUGMENTABLE_TYPES_END */

0 comments on commit e874c40

Please sign in to comment.