@infrab4a/connect-angular 4.14.0-beta.6 → 4.14.1-beta.0
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/angular-connect.module.d.ts +29 -29
- package/angular-elastic-search.module.d.ts +9 -9
- package/angular-firebase-auth.module.d.ts +11 -11
- package/angular-firestore.module.d.ts +17 -17
- package/angular-hasura-graphql.module.d.ts +16 -16
- package/angular-vertex-search.module.d.ts +9 -9
- package/consts/backend-url.const.d.ts +1 -1
- package/consts/category-structure.d.ts +1 -1
- package/consts/default-shop.const.d.ts +1 -1
- package/consts/es-config.const.d.ts +1 -1
- package/consts/firebase-const.d.ts +3 -3
- package/consts/hasura-options.const.d.ts +1 -1
- package/consts/index.d.ts +8 -8
- package/consts/persistence.const.d.ts +1 -1
- package/consts/storage-base-url.const.d.ts +1 -1
- package/consts/vertex-config.const.d.ts +1 -1
- package/esm2022/angular-connect.module.mjs +146 -0
- package/esm2022/angular-elastic-search.module.mjs +34 -0
- package/esm2022/angular-firebase-auth.module.mjs +115 -0
- package/esm2022/angular-firestore.module.mjs +513 -0
- package/esm2022/angular-hasura-graphql.module.mjs +287 -0
- package/esm2022/angular-vertex-search.module.mjs +34 -0
- package/{esm2020 → esm2022}/consts/backend-url.const.mjs +1 -1
- package/{esm2020 → esm2022}/consts/category-structure.mjs +2 -2
- package/{esm2020 → esm2022}/consts/default-shop.const.mjs +2 -2
- package/{esm2020 → esm2022}/consts/es-config.const.mjs +2 -2
- package/{esm2020 → esm2022}/consts/firebase-const.mjs +4 -4
- package/{esm2020 → esm2022}/consts/hasura-options.const.mjs +2 -2
- package/{esm2020 → esm2022}/consts/index.mjs +9 -9
- package/{esm2020 → esm2022}/consts/persistence.const.mjs +2 -2
- package/{esm2020 → esm2022}/consts/storage-base-url.const.mjs +2 -2
- package/{esm2020 → esm2022}/consts/vertex-config.const.mjs +2 -2
- package/{esm2020 → esm2022}/helpers/index.mjs +2 -2
- package/{esm2020 → esm2022}/helpers/mobile-operation-system-checker.helper.mjs +7 -7
- package/{esm2020 → esm2022}/index.mjs +7 -7
- package/{esm2020 → esm2022}/infrab4a-connect-angular.mjs +4 -4
- package/{esm2020 → esm2022}/persistence/cookie-data-persistence.mjs +22 -22
- package/{esm2020 → esm2022}/persistence/data-persistence.mjs +2 -2
- package/{esm2020 → esm2022}/persistence/index.mjs +3 -3
- package/{esm2020 → esm2022}/services/auth.service.mjs +37 -37
- package/esm2022/services/cart.service.mjs +293 -0
- package/{esm2020 → esm2022}/services/catalog/adapters/category-structure.adapter.mjs +2 -2
- package/{esm2020 → esm2022}/services/catalog/adapters/index.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/adapters/new-category-structure.adapter.mjs +43 -43
- package/{esm2020 → esm2022}/services/catalog/adapters/old-category-structure.adapter.mjs +23 -23
- package/{esm2020 → esm2022}/services/catalog/catalog.service.mjs +241 -241
- package/{esm2020 → esm2022}/services/catalog/category.service.mjs +51 -51
- package/{esm2020 → esm2022}/services/catalog/enums/index.mjs +2 -2
- package/{esm2020 → esm2022}/services/catalog/enums/product-sorts.enum.mjs +11 -11
- package/{esm2020 → esm2022}/services/catalog/index.mjs +8 -8
- package/{esm2020 → esm2022}/services/catalog/models/category-with-tree.model.mjs +10 -10
- package/{esm2020 → esm2022}/services/catalog/models/index.mjs +2 -2
- package/{esm2020 → esm2022}/services/catalog/types/index.mjs +2 -2
- package/{esm2020 → esm2022}/services/catalog/types/product-sort.type.mjs +2 -2
- package/{esm2020 → esm2022}/services/catalog/wishlist.service.mjs +237 -237
- package/{esm2020 → esm2022}/services/checkout-subscription.service.mjs +50 -50
- package/{esm2020 → esm2022}/services/checkout.service.mjs +68 -68
- package/{esm2020 → esm2022}/services/coupon.service.mjs +274 -274
- package/{esm2020 → esm2022}/services/helpers/index.mjs +2 -2
- package/{esm2020 → esm2022}/services/helpers/util.helper.mjs +18 -18
- package/{esm2020 → esm2022}/services/home-shop.service.mjs +125 -125
- package/{esm2020 → esm2022}/services/index.mjs +11 -11
- package/{esm2020 → esm2022}/services/order.service.mjs +30 -30
- package/{esm2020 → esm2022}/services/shipping.service.mjs +96 -96
- package/{esm2020 → esm2022}/services/types/index.mjs +3 -3
- package/{esm2020 → esm2022}/services/types/required-checkout-data.type.mjs +2 -2
- package/{esm2020 → esm2022}/services/types/required-checkout-subscription-data.type.mjs +2 -2
- package/esm2022/services/types/shipping-methods.type.mjs +2 -0
- package/{esm2020 → esm2022}/types/firebase-app-config.type.mjs +2 -2
- package/{esm2020 → esm2022}/types/index.mjs +2 -2
- package/{fesm2020 → fesm2022}/infrab4a-connect-angular.mjs +2589 -2601
- package/fesm2022/infrab4a-connect-angular.mjs.map +1 -0
- package/helpers/index.d.ts +1 -1
- package/helpers/mobile-operation-system-checker.helper.d.ts +3 -3
- package/index.d.ts +6 -6
- package/package.json +6 -12
- package/persistence/cookie-data-persistence.d.ts +10 -10
- package/persistence/data-persistence.d.ts +6 -6
- package/persistence/index.d.ts +2 -2
- package/services/auth.service.d.ts +18 -18
- package/services/cart.service.d.ts +43 -43
- package/services/catalog/adapters/category-structure.adapter.d.ts +4 -4
- package/services/catalog/adapters/index.d.ts +3 -3
- package/services/catalog/adapters/new-category-structure.adapter.d.ts +12 -12
- package/services/catalog/adapters/old-category-structure.adapter.d.ts +10 -10
- package/services/catalog/catalog.service.d.ts +89 -89
- package/services/catalog/category.service.d.ts +20 -20
- package/services/catalog/enums/index.d.ts +1 -1
- package/services/catalog/enums/product-sorts.enum.d.ts +9 -9
- package/services/catalog/index.d.ts +7 -7
- package/services/catalog/models/category-with-tree.model.d.ts +4 -4
- package/services/catalog/models/index.d.ts +1 -1
- package/services/catalog/types/index.d.ts +1 -1
- package/services/catalog/types/product-sort.type.d.ts +2 -2
- package/services/catalog/wishlist.service.d.ts +50 -50
- package/services/checkout-subscription.service.d.ts +19 -19
- package/services/checkout.service.d.ts +27 -27
- package/services/coupon.service.d.ts +33 -33
- package/services/helpers/index.d.ts +1 -1
- package/services/helpers/util.helper.d.ts +3 -3
- package/services/home-shop.service.d.ts +26 -26
- package/services/index.d.ts +10 -10
- package/services/order.service.d.ts +13 -13
- package/services/shipping.service.d.ts +19 -19
- package/services/types/index.d.ts +2 -2
- package/services/types/required-checkout-data.type.d.ts +2 -2
- package/services/types/required-checkout-subscription-data.type.d.ts +2 -2
- package/services/types/shipping-methods.type.d.ts +12 -12
- package/types/firebase-app-config.type.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/esm2020/angular-connect.module.mjs +0 -146
- package/esm2020/angular-elastic-search.module.mjs +0 -34
- package/esm2020/angular-firebase-auth.module.mjs +0 -115
- package/esm2020/angular-firestore.module.mjs +0 -513
- package/esm2020/angular-hasura-graphql.module.mjs +0 -287
- package/esm2020/angular-vertex-search.module.mjs +0 -34
- package/esm2020/services/cart.service.mjs +0 -305
- package/esm2020/services/types/shipping-methods.type.mjs +0 -2
- package/fesm2015/infrab4a-connect-angular.mjs +0 -2748
- package/fesm2015/infrab4a-connect-angular.mjs.map +0 -1
- package/fesm2020/infrab4a-connect-angular.mjs.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import { Where } from '@infrab4a/connect';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class OldCategoryStructureAdapter {
|
|
5
|
-
constructor(categoryRepository) {
|
|
6
|
-
this.categoryRepository = categoryRepository;
|
|
7
|
-
}
|
|
8
|
-
async buildProductFilterByCategory(category) {
|
|
9
|
-
const productsIds = category.products?.length
|
|
10
|
-
? category.products
|
|
11
|
-
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
12
|
-
return { id: { operator: Where.IN, value: productsIds } };
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
18
|
-
type: Injectable
|
|
19
|
-
}], ctorParameters:
|
|
20
|
-
type: Inject,
|
|
21
|
-
args: ['CategoryRepository']
|
|
22
|
-
}] }]
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
|
2
|
+
import { Where } from '@infrab4a/connect';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class OldCategoryStructureAdapter {
|
|
5
|
+
constructor(categoryRepository) {
|
|
6
|
+
this.categoryRepository = categoryRepository;
|
|
7
|
+
}
|
|
8
|
+
async buildProductFilterByCategory(category) {
|
|
9
|
+
const productsIds = category.products?.length
|
|
10
|
+
? category.products
|
|
11
|
+
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
12
|
+
return { id: { operator: Where.IN, value: productsIds } };
|
|
13
|
+
}
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter }); }
|
|
16
|
+
}
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
18
|
+
type: Injectable
|
|
19
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
20
|
+
type: Inject,
|
|
21
|
+
args: ['CategoryRepository']
|
|
22
|
+
}] }] });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2xkLWNhdGVnb3J5LXN0cnVjdHVyZS5hZGFwdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC1hbmd1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