@infrab4a/connect-angular 5.0.0-beta.78 → 5.0.0-beta.8
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 +9 -17
- package/angular-firestore.module.d.ts +2 -1
- package/angular-hasura-graphql.module.d.ts +1 -1
- package/consts/firebase-const.d.ts +0 -1
- package/consts/index.d.ts +0 -2
- package/esm2022/angular-connect.module.mjs +10 -86
- package/esm2022/angular-elastic-search.module.mjs +1 -1
- package/esm2022/angular-firebase-auth.module.mjs +4 -30
- package/esm2022/angular-firestore.module.mjs +28 -53
- package/esm2022/angular-hasura-graphql.module.mjs +8 -74
- package/esm2022/consts/category-structure.mjs +1 -1
- package/esm2022/consts/default-shop.const.mjs +1 -1
- package/esm2022/consts/es-config.const.mjs +1 -1
- package/esm2022/consts/firebase-const.mjs +1 -2
- package/esm2022/consts/hasura-options.const.mjs +1 -1
- package/esm2022/consts/index.mjs +1 -3
- package/esm2022/consts/storage-base-url.const.mjs +1 -1
- package/esm2022/helpers/index.mjs +1 -1
- package/esm2022/helpers/mobile-operation-system-checker.helper.mjs +1 -1
- package/esm2022/index.mjs +1 -2
- package/esm2022/services/auth.service.mjs +1 -1
- package/esm2022/services/cart.service.mjs +32 -44
- package/esm2022/services/catalog/adapters/category-structure.adapter.mjs +1 -1
- package/esm2022/services/catalog/adapters/index.mjs +1 -1
- package/esm2022/services/catalog/adapters/new-category-structure.adapter.mjs +4 -6
- package/esm2022/services/catalog/adapters/old-category-structure.adapter.mjs +1 -1
- package/esm2022/services/catalog/catalog.service.mjs +48 -158
- package/esm2022/services/catalog/category.service.mjs +4 -4
- package/esm2022/services/catalog/enums/index.mjs +1 -1
- package/esm2022/services/catalog/enums/product-sorts.enum.mjs +1 -1
- package/esm2022/services/catalog/index.mjs +1 -1
- package/esm2022/services/catalog/models/category-with-tree.model.mjs +1 -1
- package/esm2022/services/catalog/models/index.mjs +1 -1
- package/esm2022/services/catalog/types/index.mjs +1 -1
- package/esm2022/services/catalog/types/product-sort.type.mjs +1 -1
- package/esm2022/services/catalog/wishlist.service.mjs +22 -142
- package/esm2022/services/checkout-subscription.service.mjs +21 -18
- package/esm2022/services/checkout.service.mjs +16 -13
- package/esm2022/services/coupon.service.mjs +30 -79
- package/esm2022/services/helpers/index.mjs +1 -1
- package/esm2022/services/helpers/util.helper.mjs +1 -1
- package/esm2022/services/home-shop.service.mjs +4 -4
- package/esm2022/services/index.mjs +1 -1
- package/esm2022/services/order.service.mjs +1 -1
- package/esm2022/services/shipping.service.mjs +1 -1
- package/esm2022/services/types/index.mjs +1 -1
- package/esm2022/services/types/required-checkout-data.type.mjs +1 -1
- package/esm2022/services/types/required-checkout-subscription-data.type.mjs +1 -1
- package/esm2022/services/types/shipping-methods.type.mjs +1 -1
- package/esm2022/types/firebase-app-config.type.mjs +1 -1
- package/esm2022/types/index.mjs +1 -1
- package/fesm2022/infrab4a-connect-angular.mjs +210 -743
- package/fesm2022/infrab4a-connect-angular.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/package.json +6 -6
- package/services/cart.service.d.ts +0 -1
- package/services/catalog/catalog.service.d.ts +4 -11
- package/services/catalog/category.service.d.ts +1 -6
- package/services/catalog/wishlist.service.d.ts +4 -16
- package/services/checkout-subscription.service.d.ts +4 -5
- package/services/checkout.service.d.ts +4 -8
- package/services/coupon.service.d.ts +2 -6
- package/angular-vertex-search.module.d.ts +0 -9
- package/consts/persistence.const.d.ts +0 -1
- package/consts/vertex-config.const.d.ts +0 -1
- package/esm2022/angular-vertex-search.module.mjs +0 -34
- package/esm2022/consts/persistence.const.mjs +0 -2
- package/esm2022/consts/vertex-config.const.mjs +0 -2
- package/esm2022/persistence/cookie-data-persistence.mjs +0 -22
- package/esm2022/persistence/data-persistence.mjs +0 -2
- package/esm2022/persistence/index.mjs +0 -3
- package/persistence/cookie-data-persistence.d.ts +0 -10
- package/persistence/data-persistence.d.ts +0 -6
- package/persistence/index.d.ts +0 -2
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect-angular",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"url": "https://github.com/B4AGroup/b4a-firebase-libs"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@angular/common": "17.
|
|
13
|
-
"@angular/core": "17.
|
|
14
|
-
"@angular/fire": "17.0.
|
|
15
|
-
"@infrab4a/connect": "4.
|
|
12
|
+
"@angular/common": "^17.0.0",
|
|
13
|
+
"@angular/core": "^17.0.0",
|
|
14
|
+
"@angular/fire": "^17.0.0-next.0",
|
|
15
|
+
"@infrab4a/connect": "4.3.6-beta.1",
|
|
16
16
|
"js-cookie": "^3.0.1",
|
|
17
17
|
"rxjs": "^7.8.1"
|
|
18
18
|
},
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"sideEffects": false
|
|
37
|
-
}
|
|
37
|
+
}
|
|
@@ -16,7 +16,6 @@ export declare class CartService {
|
|
|
16
16
|
private readonly variantRepository;
|
|
17
17
|
private readonly buy2WinRepository;
|
|
18
18
|
private cartSubject;
|
|
19
|
-
private user;
|
|
20
19
|
constructor(authService: AuthService, checkoutService: CheckoutService, defaultShop: Shops, productRepository: ProductRepository, categoryRepository: CategoryRepository, variantRepository: VariantRepository, buy2WinRepository: Buy2WinFirestoreRepository);
|
|
21
20
|
addItem(item: LineItem, quantity?: number): Observable<Cart>;
|
|
22
21
|
decreaseItem(item: LineItem): Observable<Cart>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Category, CategoryRepository, Product, ProductGender, ProductRepository,
|
|
1
|
+
import { Category, CategoryRepository, Product, ProductGender, ProductRepository, ProductsIndex, Shops } from '@infrab4a/connect';
|
|
2
2
|
import { CategoryStructureAdapter } from './adapters';
|
|
3
3
|
import { ProductSort } from './types/product-sort.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -63,30 +63,23 @@ type FetchProductsResponse = {
|
|
|
63
63
|
};
|
|
64
64
|
export declare class CatalogService<T extends Category = Category> {
|
|
65
65
|
private readonly productRepository;
|
|
66
|
-
private readonly productStockNotificationRepository;
|
|
67
66
|
private readonly categoryRepository;
|
|
68
67
|
private readonly categoryStructureAdapter;
|
|
69
68
|
private readonly shop;
|
|
70
|
-
private readonly
|
|
69
|
+
private readonly productIndex;
|
|
71
70
|
private productsByTerm;
|
|
72
|
-
|
|
73
|
-
constructor(productRepository: ProductRepository, productStockNotificationRepository: ProductStockNotificationRepository, categoryRepository: CategoryRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops, productSearch: ProductSearchIndex);
|
|
71
|
+
constructor(productRepository: ProductRepository, categoryRepository: CategoryRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops, productIndex: ProductsIndex);
|
|
74
72
|
fetchProducts(options: FetchProductsParams<T>): Promise<FetchProductsResponse>;
|
|
75
|
-
addCustomerToStockNotification(shop: Shops, productId: string, name: string, email: string): Promise<void>;
|
|
76
73
|
private findCatalog;
|
|
77
74
|
private buildMainFilter;
|
|
78
75
|
private findCatalogAndSortByMostRevelant;
|
|
79
|
-
private
|
|
80
|
-
private findCatalogIdsBySearch;
|
|
81
|
-
private fetchBrandsOnly;
|
|
82
|
-
private setBrandsList;
|
|
76
|
+
private findCatalogIdsByElasticSearch;
|
|
83
77
|
private buildFilterQuery;
|
|
84
78
|
private buildSortQuery;
|
|
85
79
|
private buildLimitQuery;
|
|
86
80
|
private hasProfile;
|
|
87
81
|
private hasTerm;
|
|
88
82
|
private hasCategory;
|
|
89
|
-
private buildIndexBrands;
|
|
90
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogService<any>, never>;
|
|
91
84
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogService<any>>;
|
|
92
85
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { Category, CategoryFilterRepository, CategoryRepository, Filter, ProductGender, ProductRepository, Shops } from '@infrab4a/connect';
|
|
2
2
|
import { CategoryStructureAdapter } from './adapters';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
type FetchBrandsOptions = {
|
|
5
|
-
mainGender?: ProductGender;
|
|
6
|
-
shop?: Shops;
|
|
7
|
-
};
|
|
8
4
|
export declare class CategoryService {
|
|
9
5
|
private readonly productRepository;
|
|
10
6
|
private readonly categoryRepository;
|
|
@@ -12,9 +8,8 @@ export declare class CategoryService {
|
|
|
12
8
|
private readonly categoryStructureAdapter;
|
|
13
9
|
private readonly shop;
|
|
14
10
|
constructor(productRepository: ProductRepository, categoryRepository: CategoryRepository, categoryFilterRepository: CategoryFilterRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops);
|
|
15
|
-
fetchBrands(category: Category,
|
|
11
|
+
fetchBrands(category: Category, mainGender?: ProductGender): Promise<Category[]>;
|
|
16
12
|
fetchFilterOptions(category: Category): Promise<Filter[]>;
|
|
17
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CategoryService, never>;
|
|
18
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<CategoryService>;
|
|
19
15
|
}
|
|
20
|
-
export {};
|
|
@@ -1,50 +1,38 @@
|
|
|
1
|
-
import { CategoryFilterRepository, CategoryRepository,
|
|
1
|
+
import { CategoryFilterRepository, CategoryRepository, ProductRepository, ProductsIndex, Shops, Wishlist, WishlistRepository } from '@infrab4a/connect';
|
|
2
2
|
import { CatalogService } from './catalog.service';
|
|
3
3
|
import { CategoryService } from './category.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class WishlistService {
|
|
6
6
|
private readonly wishlistRepository;
|
|
7
7
|
private readonly shop;
|
|
8
|
-
productRepository: ProductRepository;
|
|
9
|
-
private readonly productSearch;
|
|
10
|
-
private readonly logRepository;
|
|
11
8
|
private catalogService;
|
|
12
9
|
private categoryService;
|
|
13
|
-
constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository,
|
|
10
|
+
constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository, productIndex: ProductsIndex);
|
|
14
11
|
getCatalogService(): CatalogService<import("@infrab4a/connect").Category>;
|
|
15
12
|
getCategoryService(): CategoryService;
|
|
16
|
-
create({ personId, title, description,
|
|
13
|
+
create({ personId, title, description, userFullName, userPhoto, theme, bannerUrl, }: {
|
|
17
14
|
personId: string;
|
|
18
15
|
title: string;
|
|
19
16
|
description: string;
|
|
20
|
-
published: boolean;
|
|
21
17
|
userFullName: string;
|
|
22
18
|
userPhoto?: string;
|
|
23
19
|
theme?: string;
|
|
24
20
|
bannerUrl?: string;
|
|
25
|
-
personType?: PersonType;
|
|
26
|
-
personIsSubscriber?: boolean;
|
|
27
21
|
}): Promise<Wishlist>;
|
|
28
|
-
update({ id, title, description,
|
|
22
|
+
update({ id, title, description, userFullName, userPhoto, theme, bannerUrl, }: {
|
|
29
23
|
id: string;
|
|
30
24
|
title: string;
|
|
31
25
|
description: string;
|
|
32
|
-
published: boolean;
|
|
33
26
|
userFullName: string;
|
|
34
27
|
userPhoto?: string;
|
|
35
28
|
theme?: string;
|
|
36
29
|
bannerUrl?: string;
|
|
37
|
-
personType?: PersonType;
|
|
38
|
-
personIsSubscriber?: boolean;
|
|
39
30
|
}): Promise<Wishlist>;
|
|
40
31
|
delete(wishlistId: string): Promise<void>;
|
|
41
32
|
getWishlistBySlug(slug: string): Promise<Wishlist>;
|
|
42
33
|
getWishlistsByPerson(personId: string): Promise<Wishlist[]>;
|
|
43
34
|
addProduct(wishlistId: string, productId: string): Promise<Wishlist>;
|
|
44
35
|
removeProduct(wishlistId: string, productId: string): Promise<Wishlist>;
|
|
45
|
-
private findById;
|
|
46
|
-
private findProductById;
|
|
47
|
-
private createWishlistLog;
|
|
48
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<WishlistService, never>;
|
|
49
37
|
static ɵprov: i0.ɵɵInjectableDeclaration<WishlistService>;
|
|
50
38
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { CheckoutSubscription, CheckoutSubscriptionRepository, Coupon } from '@infrab4a/connect';
|
|
1
|
+
import { CheckoutSubscription, CheckoutSubscriptionRepository, Coupon, SubscriptionRepository } from '@infrab4a/connect';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { RequiredCheckoutSubscriptionData } from './types';
|
|
4
|
-
import { DataPersistence } from '../persistence';
|
|
5
4
|
import { CouponService } from './coupon.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class CheckoutSubscriptionService {
|
|
8
7
|
private readonly checkoutSubscriptionRepository;
|
|
9
|
-
private readonly
|
|
8
|
+
private readonly subscriptionRepository;
|
|
10
9
|
private readonly couponService;
|
|
11
|
-
constructor(checkoutSubscriptionRepository: CheckoutSubscriptionRepository,
|
|
10
|
+
constructor(checkoutSubscriptionRepository: CheckoutSubscriptionRepository, subscriptionRepository: SubscriptionRepository, couponService: CouponService);
|
|
12
11
|
getCheckoutSubscription(checkoutData?: RequiredCheckoutSubscriptionData): Observable<CheckoutSubscription>;
|
|
12
|
+
private createCheckoutSubscription;
|
|
13
13
|
clearCheckoutSubscriptionFromSession(): Observable<void>;
|
|
14
14
|
checkCoupon(nickname: string, userEmail: string): Observable<Coupon>;
|
|
15
15
|
calcDiscountSubscription(coupon: Coupon): Observable<number>;
|
|
16
|
-
private createCheckoutSubscription;
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutSubscriptionService, never>;
|
|
18
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutSubscriptionService>;
|
|
19
18
|
}
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { Checkout, CheckoutRepository, CheckoutTypes, Coupon, Shops, User, UserRepository } from '@infrab4a/connect';
|
|
1
|
+
import { Checkout, CheckoutRepository, CheckoutTypes, Coupon, OrderRepository, Shops, User, UserRepository } from '@infrab4a/connect';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { DataPersistence } from '../persistence';
|
|
4
3
|
import { CouponService } from './coupon.service';
|
|
5
4
|
import { RequiredCheckoutData } from './types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class CheckoutService {
|
|
8
7
|
private readonly couponService;
|
|
9
8
|
private readonly checkoutRepository;
|
|
9
|
+
private readonly orderRepository;
|
|
10
10
|
private readonly userRepository;
|
|
11
11
|
private readonly defaultShop;
|
|
12
|
-
|
|
13
|
-
constructor(couponService: CouponService, checkoutRepository: CheckoutRepository, userRepository: UserRepository, defaultShop: Shops, dataPersistence: DataPersistence);
|
|
12
|
+
constructor(couponService: CouponService, checkoutRepository: CheckoutRepository, orderRepository: OrderRepository, userRepository: UserRepository, defaultShop: Shops);
|
|
14
13
|
getCheckout(checkoutData?: RequiredCheckoutData): Observable<Checkout>;
|
|
15
14
|
getUserByCheckout(checkoutId: string): Observable<User>;
|
|
16
15
|
updateCheckoutLineItems(checkout: Partial<Checkout>): Observable<Checkout>;
|
|
17
16
|
updateCheckoutUser(checkout: Partial<Checkout>): Observable<Checkout>;
|
|
18
17
|
clearCheckoutFromSession(): Observable<void>;
|
|
19
|
-
calcDiscount(coupon: Coupon): Observable<
|
|
20
|
-
discount: number;
|
|
21
|
-
lineItems: import("@infrab4a/connect").LineItem[];
|
|
22
|
-
}>;
|
|
18
|
+
calcDiscount(coupon: Coupon): Observable<number>;
|
|
23
19
|
checkCoupon(nickname: string, checkoutType: CheckoutTypes): Observable<Coupon>;
|
|
24
20
|
private createCheckout;
|
|
25
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutService, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CategoryRepository, Checkout, CheckoutSubscription, CheckoutTypes, Coupon, CouponRepository,
|
|
1
|
+
import { CategoryRepository, Checkout, CheckoutSubscription, CheckoutTypes, Coupon, CouponRepository, OrderRepository, Shops } from '@infrab4a/connect';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class CouponService {
|
|
@@ -11,10 +11,7 @@ export declare class CouponService {
|
|
|
11
11
|
private couponValidation;
|
|
12
12
|
private couponRulesValidation;
|
|
13
13
|
calcDiscountSubscription(coupon: Coupon, checkout: Partial<CheckoutSubscription>): Observable<number>;
|
|
14
|
-
calcDiscountShopping(coupon: Coupon, checkout: Partial<Checkout>): Promise<
|
|
15
|
-
discount: number;
|
|
16
|
-
lineItems: LineItem[];
|
|
17
|
-
}>;
|
|
14
|
+
calcDiscountShopping(coupon: Coupon, checkout: Partial<Checkout>): Promise<number>;
|
|
18
15
|
private calcDiscountByType;
|
|
19
16
|
private hasMinSubTotal;
|
|
20
17
|
private hasProductCategories;
|
|
@@ -27,7 +24,6 @@ export declare class CouponService {
|
|
|
27
24
|
private getOrdersFromUser;
|
|
28
25
|
private countOrdersWithUser;
|
|
29
26
|
private getCouponUseLimits;
|
|
30
|
-
private calcLineItenDiscount;
|
|
31
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CouponService, never>;
|
|
32
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<CouponService>;
|
|
33
29
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { VertexSearchConfig } from '@infrab4a/connect';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AngularVertexSeachModule {
|
|
5
|
-
static initializeApp(options: VertexSearchConfig): ModuleWithProviders<AngularVertexSeachModule>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularVertexSeachModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularVertexSeachModule, never, never, never>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AngularVertexSeachModule>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PERSISTENCE_PROVIDER = "PERSISTENCE_PROVIDER";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VERTEX_CONFIG = "VERTEX_CONFIG";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ProductsVertexSearch, VertexAxiosAdapter } from '@infrab4a/connect';
|
|
3
|
-
import { VERTEX_CONFIG } from './consts';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class AngularVertexSeachModule {
|
|
6
|
-
static initializeApp(options) {
|
|
7
|
-
return {
|
|
8
|
-
ngModule: AngularVertexSeachModule,
|
|
9
|
-
providers: [{ provide: VERTEX_CONFIG, useValue: options }],
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
13
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule }); }
|
|
14
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, providers: [
|
|
15
|
-
{
|
|
16
|
-
provide: ProductsVertexSearch,
|
|
17
|
-
useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
|
|
18
|
-
deps: [VERTEX_CONFIG],
|
|
19
|
-
},
|
|
20
|
-
] }); }
|
|
21
|
-
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
|
|
23
|
-
type: NgModule,
|
|
24
|
-
args: [{
|
|
25
|
-
providers: [
|
|
26
|
-
{
|
|
27
|
-
provide: ProductsVertexSearch,
|
|
28
|
-
useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
|
|
29
|
-
deps: [VERTEX_CONFIG],
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
}]
|
|
33
|
-
}] });
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci12ZXJ0ZXgtc2VhcmNoLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3QtYW5ndWxhci9zcmMvYW5ndWxhci12ZXJ0ZXgtc2VhcmNoLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXVCLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQTtBQUM3RCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsa0JBQWtCLEVBQXNCLE1BQU0sbUJBQW1CLENBQUE7QUFFaEcsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQTs7QUFZeEMsTUFBTSxPQUFPLHdCQUF3QjtJQUNuQyxNQUFNLENBQUMsYUFBYSxDQUFDLE9BQTJCO1FBQzlDLE9BQU87WUFDTCxRQUFRLEVBQUUsd0JBQXdCO1lBQ2xDLFNBQVMsRUFBRSxDQUFDLEVBQUUsT0FBTyxFQUFFLGFBQWEsRUFBRSxRQUFRLEVBQUUsT0FBTyxFQUFFLENBQUM7U0FDM0QsQ0FBQTtJQUNILENBQUM7OEdBTlUsd0JBQXdCOytHQUF4Qix3QkFBd0I7K0dBQXhCLHdCQUF3Q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WN0c1ZlcnRleFNlYXJjaChuZXcgVmVydGV4QXhpb3NBZGFwdGVyKGNvbmZpZ3VyYXRpb24pKSxcbiAgICAgIGRlcHM6IFtWRVJURVhfQ09ORklHXSxcbiAgICB9LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBBbmd1bGFyVmVydGV4U2VhY2hNb2R1bGUge1xuICBzdGF0aWMgaW5pdGlhbGl6ZUFwcChvcHRpb25zOiBWZXJ0ZXhTZWFyY2hDb25maWcpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPEFuZ3VsYXJWZXJ0ZXhTZWFjaE1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogQW5ndWxhclZlcnRleFNlYWNoTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbeyBwcm92aWRlOiBWRVJURVhfQ09ORklHLCB1c2VWYWx1ZTogb3B0aW9ucyB9XSxcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const PERSISTENCE_PROVIDER = 'PERSISTENCE_PROVIDER';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVyc2lzdGVuY2UuY29uc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0LWFuZ3VsYXIvc3JjL2NvbnN0cy9wZXJzaXN0ZW5jZS5jb25zdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxvQkFBb0IsR0FBRyxzQkFBc0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBQRVJTSVNURU5DRV9QUk9WSURFUiA9ICdQRVJTSVNURU5DRV9QUk9WSURFUidcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const VERTEX_CONFIG = 'VERTEX_CONFIG';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVydGV4LWNvbmZpZy5jb25zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3QtYW5ndWxhci9zcmMvY29uc3RzL3ZlcnRleC1jb25maWcuY29uc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLGVBQWUsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBWRVJURVhfQ09ORklHID0gJ1ZFUlRFWF9DT05GSUcnXG4iXX0=
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import cookie from 'js-cookie';
|
|
3
|
-
import { from, of } from 'rxjs';
|
|
4
|
-
import { map } from 'rxjs/operators';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class CookieDataPersistence {
|
|
7
|
-
get(key) {
|
|
8
|
-
return of(cookie.get(key));
|
|
9
|
-
}
|
|
10
|
-
remove(key) {
|
|
11
|
-
return of(cookie.remove(key));
|
|
12
|
-
}
|
|
13
|
-
set(key, value) {
|
|
14
|
-
return from(cookie.set(key, value)).pipe(map(() => { }));
|
|
15
|
-
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
17
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence }); }
|
|
18
|
-
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, decorators: [{
|
|
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Wxhci9zcmMvcGVyc2lzdGVuY2UvZGF0YS1wZXJzaXN0ZW5jZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMnXG5cbmV4cG9ydCBpbnRlcmZhY2UgRGF0YVBlcnNpc3RlbmNlIHtcbiAgZ2V0KGtleTogc3RyaW5nKTogT2JzZXJ2YWJsZTxzdHJpbmc+XG4gIHJlbW92ZShrZXk6IHN0cmluZyk6IE9ic2VydmFibGU8dm9pZD5cbiAgc2V0KGtleTogc3RyaW5nLCB2YWx1ZTogc3RyaW5nKTogT2JzZXJ2YWJsZTx2b2lkPlxufVxuIl19
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './cookie-data-persistence';
|
|
2
|
-
export * from './data-persistence';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0LWFuZ3VsYXIvc3JjL3BlcnNpc3RlbmNlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUE7QUFDekMsY0FBYyxvQkFBb0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29va2llLWRhdGEtcGVyc2lzdGVuY2UnXG5leHBvcnQgKiBmcm9tICcuL2RhdGEtcGVyc2lzdGVuY2UnXG4iXX0=
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DataPersistence } from './data-persistence';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CookieDataPersistence implements DataPersistence {
|
|
5
|
-
get(key: string): Observable<string>;
|
|
6
|
-
remove(key: string): Observable<void>;
|
|
7
|
-
set(key: string, value: string): Observable<void>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CookieDataPersistence, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CookieDataPersistence>;
|
|
10
|
-
}
|
package/persistence/index.d.ts
DELETED