@infrab4a/connect-angular 4.0.0-beta.49 → 4.0.0-beta.50
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/esm2020/angular-hasura-graphql.module.mjs +15 -1
- package/esm2020/services/catalog/wishlist.service.mjs +5 -5
- package/esm2020/services/helpers/util.service.mjs +3 -6
- package/fesm2015/infrab4a-connect-angular.mjs +20 -9
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +20 -9
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/services/catalog/wishlist.service.d.ts +1 -1
|
@@ -744,6 +744,13 @@ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.
|
|
|
744
744
|
provide: 'CategoryCollectionChildrenRepository',
|
|
745
745
|
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
746
746
|
},
|
|
747
|
+
{
|
|
748
|
+
provide: WishlistHasuraGraphQLRepository,
|
|
749
|
+
useFactory: (options, categoryFilterRepository) => {
|
|
750
|
+
return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
|
|
751
|
+
},
|
|
752
|
+
deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
|
|
753
|
+
},
|
|
747
754
|
{
|
|
748
755
|
provide: 'WishlistRepository',
|
|
749
756
|
useExisting: WishlistHasuraGraphQLRepository,
|
|
@@ -850,6 +857,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
850
857
|
provide: 'CategoryCollectionChildrenRepository',
|
|
851
858
|
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
852
859
|
},
|
|
860
|
+
{
|
|
861
|
+
provide: WishlistHasuraGraphQLRepository,
|
|
862
|
+
useFactory: (options, categoryFilterRepository) => {
|
|
863
|
+
return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
|
|
864
|
+
},
|
|
865
|
+
deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
|
|
866
|
+
},
|
|
853
867
|
{
|
|
854
868
|
provide: 'WishlistRepository',
|
|
855
869
|
useExisting: WishlistHasuraGraphQLRepository,
|
|
@@ -1607,12 +1621,9 @@ class UtilService {
|
|
|
1607
1621
|
}
|
|
1608
1622
|
}
|
|
1609
1623
|
UtilService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: UtilService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1610
|
-
UtilService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: UtilService
|
|
1624
|
+
UtilService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: UtilService });
|
|
1611
1625
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: UtilService, decorators: [{
|
|
1612
|
-
type: Injectable
|
|
1613
|
-
args: [{
|
|
1614
|
-
providedIn: 'root',
|
|
1615
|
-
}]
|
|
1626
|
+
type: Injectable
|
|
1616
1627
|
}], ctorParameters: function () { return []; } });
|
|
1617
1628
|
|
|
1618
1629
|
class NewCategoryStructureAdapter {
|
|
@@ -1675,7 +1686,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1675
1686
|
}] }]; } });
|
|
1676
1687
|
|
|
1677
1688
|
class WishlistService {
|
|
1678
|
-
constructor(wishlistRepository, productRepository, categoryFilterRepository, categoryCollectionChildrenRepository,
|
|
1689
|
+
constructor(wishlistRepository, shop, productRepository, categoryFilterRepository, categoryCollectionChildrenRepository, categoryStructureAdapter = new NewCategoryStructureAdapter(wishlistRepository, categoryCollectionChildrenRepository), catalogService = new CatalogService(productRepository, categoryStructureAdapter, shop), categoryService = new CategoryService(productRepository, wishlistRepository, categoryFilterRepository, categoryStructureAdapter, shop), utilService) {
|
|
1679
1690
|
this.wishlistRepository = wishlistRepository;
|
|
1680
1691
|
this.shop = shop;
|
|
1681
1692
|
this.catalogService = catalogService;
|
|
@@ -1756,6 +1767,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1756
1767
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1757
1768
|
type: Inject,
|
|
1758
1769
|
args: ['WishlistRepository']
|
|
1770
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1771
|
+
type: Inject,
|
|
1772
|
+
args: [DEFAULT_SHOP]
|
|
1759
1773
|
}] }, { type: undefined, decorators: [{
|
|
1760
1774
|
type: Inject,
|
|
1761
1775
|
args: ['ProductRepository']
|
|
@@ -1765,9 +1779,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1765
1779
|
}] }, { type: undefined, decorators: [{
|
|
1766
1780
|
type: Inject,
|
|
1767
1781
|
args: ['CategoryCollectionChildrenRepository']
|
|
1768
|
-
}] }, { type: i1$3.Shops, decorators: [{
|
|
1769
|
-
type: Inject,
|
|
1770
|
-
args: [DEFAULT_SHOP]
|
|
1771
1782
|
}] }, { type: undefined }, { type: undefined }, { type: undefined }, { type: UtilService }]; } });
|
|
1772
1783
|
|
|
1773
1784
|
class CheckoutSubscriptionService {
|