@infrab4a/connect-angular 4.0.0-beta.51 → 4.0.0-beta.53
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 +5 -3
- package/esm2020/services/catalog/wishlist.service.mjs +4 -4
- package/esm2020/services/helpers/index.mjs +2 -2
- package/esm2020/services/helpers/util.helper.mjs +18 -0
- package/fesm2015/infrab4a-connect-angular.mjs +8 -6
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +8 -6
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/services/helpers/index.d.ts +1 -1
- package/services/helpers/{util.service.d.ts → util.helper.d.ts} +1 -1
- package/esm2020/services/helpers/util.service.mjs +0 -18
|
@@ -738,7 +738,8 @@ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.
|
|
|
738
738
|
},
|
|
739
739
|
{
|
|
740
740
|
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
741
|
-
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options
|
|
741
|
+
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
742
|
+
deps: ['HasuraConfig'],
|
|
742
743
|
},
|
|
743
744
|
{
|
|
744
745
|
provide: 'CategoryCollectionChildrenRepository',
|
|
@@ -851,7 +852,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
851
852
|
},
|
|
852
853
|
{
|
|
853
854
|
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
854
|
-
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options
|
|
855
|
+
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
856
|
+
deps: ['HasuraConfig'],
|
|
855
857
|
},
|
|
856
858
|
{
|
|
857
859
|
provide: 'CategoryCollectionChildrenRepository',
|
|
@@ -1602,7 +1604,7 @@ __decorate([
|
|
|
1602
1604
|
__metadata("design:type", Array)
|
|
1603
1605
|
], CategoryWithTree.prototype, "children", void 0);
|
|
1604
1606
|
|
|
1605
|
-
class
|
|
1607
|
+
class UtilHelper {
|
|
1606
1608
|
static createSlug(name) {
|
|
1607
1609
|
return name
|
|
1608
1610
|
.toLowerCase()
|
|
@@ -1695,7 +1697,7 @@ class WishlistService {
|
|
|
1695
1697
|
}
|
|
1696
1698
|
async create(personId, title, description, userFullName) {
|
|
1697
1699
|
const data = {
|
|
1698
|
-
slug:
|
|
1700
|
+
slug: UtilHelper.createSlug(`favoritos ${userFullName} ${title}`),
|
|
1699
1701
|
name: title,
|
|
1700
1702
|
description,
|
|
1701
1703
|
metadata: {
|
|
@@ -1714,7 +1716,7 @@ class WishlistService {
|
|
|
1714
1716
|
update(id, title, description, userFullName) {
|
|
1715
1717
|
const data = {
|
|
1716
1718
|
id,
|
|
1717
|
-
slug:
|
|
1719
|
+
slug: UtilHelper.createSlug(`${id}-favoritos ${userFullName} ${title}`),
|
|
1718
1720
|
name: title,
|
|
1719
1721
|
description,
|
|
1720
1722
|
metadata: {
|
|
@@ -2095,5 +2097,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2095
2097
|
* Generated bundle index. Do not edit.
|
|
2096
2098
|
*/
|
|
2097
2099
|
|
|
2098
|
-
export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CouponService, HomeShopService, OrderService, ProductSorts, ShippingService,
|
|
2100
|
+
export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CouponService, HomeShopService, OrderService, ProductSorts, ShippingService, UtilHelper, WishlistService };
|
|
2099
2101
|
//# sourceMappingURL=infrab4a-connect-angular.mjs.map
|