@infrab4a/connect-angular 5.0.0-beta.29 → 5.0.0-beta.3
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 +6 -9
- package/angular-firestore.module.d.ts +2 -1
- package/consts/index.d.ts +0 -1
- package/esm2022/angular-connect.module.mjs +5 -25
- package/esm2022/angular-elastic-search.module.mjs +1 -1
- package/esm2022/angular-firebase-auth.module.mjs +1 -1
- package/esm2022/angular-firestore.module.mjs +34 -17
- package/esm2022/angular-hasura-graphql.module.mjs +2 -24
- 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 -1
- package/esm2022/consts/hasura-options.const.mjs +1 -1
- package/esm2022/consts/index.mjs +1 -2
- 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 +2 -3
- 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 +13 -69
- 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 +11 -14
- package/esm2022/services/checkout-subscription.service.mjs +21 -18
- package/esm2022/services/checkout.service.mjs +16 -13
- package/esm2022/services/coupon.service.mjs +10 -35
- package/esm2022/services/helpers/index.mjs +1 -1
- package/esm2022/services/helpers/util.helper.mjs +1 -1
- package/esm2022/services/home-shop.service.mjs +1 -1
- 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 +109 -236
- package/fesm2022/infrab4a-connect-angular.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/package.json +5 -5
- package/services/catalog/catalog.service.d.ts +4 -10
- package/services/catalog/category.service.d.ts +1 -6
- package/services/catalog/wishlist.service.d.ts +5 -6
- 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/consts/persistence.const.d.ts +0 -1
- package/esm2022/consts/persistence.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.3",
|
|
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.2-beta.0",
|
|
16
16
|
"js-cookie": "^3.0.1",
|
|
17
17
|
"rxjs": "^7.8.1"
|
|
18
18
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Category,
|
|
1
|
+
import { Category, 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";
|
|
@@ -28,9 +28,7 @@ type FetchProductsMainParams<T extends Category> = {
|
|
|
28
28
|
};
|
|
29
29
|
type FetchProductsParams<T extends Category> = FetchProductsOptions & ({
|
|
30
30
|
category: FetchProductsMainParams<T>['category'];
|
|
31
|
-
filters?: FetchProductsFilters
|
|
32
|
-
customOptions?: never;
|
|
33
|
-
};
|
|
31
|
+
filters?: FetchProductsFilters;
|
|
34
32
|
} | {
|
|
35
33
|
profile: FetchProductsMainParams<T>['profile'];
|
|
36
34
|
filters?: FetchProductsFilters & {
|
|
@@ -63,19 +61,15 @@ type FetchProductsResponse = {
|
|
|
63
61
|
};
|
|
64
62
|
export declare class CatalogService<T extends Category = Category> {
|
|
65
63
|
private readonly productRepository;
|
|
66
|
-
private readonly productStockNotificationRepository;
|
|
67
|
-
private readonly categoryRepository;
|
|
68
64
|
private readonly categoryStructureAdapter;
|
|
69
65
|
private readonly shop;
|
|
70
66
|
private readonly productIndex;
|
|
71
67
|
private productsByTerm;
|
|
72
|
-
constructor(productRepository: ProductRepository,
|
|
68
|
+
constructor(productRepository: ProductRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops, productIndex: ProductsIndex);
|
|
73
69
|
fetchProducts(options: FetchProductsParams<T>): Promise<FetchProductsResponse>;
|
|
74
|
-
addCustomerToStockNotification(shop: Shops, productId: string, name: string, email: string): Promise<void>;
|
|
75
70
|
private findCatalog;
|
|
76
71
|
private buildMainFilter;
|
|
77
|
-
private
|
|
78
|
-
private findCatalogAndSortByMostRevelantByTerm;
|
|
72
|
+
private findCatalogByTermAndSortByMostRevelant;
|
|
79
73
|
private findCatalogIdsByElasticSearch;
|
|
80
74
|
private buildFilterQuery;
|
|
81
75
|
private buildSortQuery;
|
|
@@ -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,30 +1,29 @@
|
|
|
1
|
-
import { CategoryFilterRepository, CategoryRepository, ProductRepository,
|
|
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
|
+
private readonly categoryRepository;
|
|
7
8
|
private readonly shop;
|
|
8
9
|
private catalogService;
|
|
9
10
|
private categoryService;
|
|
10
|
-
constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository,
|
|
11
|
+
constructor(wishlistRepository: WishlistRepository, categoryRepository: CategoryRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, productIndex: ProductsIndex);
|
|
11
12
|
getCatalogService(): CatalogService<import("@infrab4a/connect").Category>;
|
|
12
13
|
getCategoryService(): CategoryService;
|
|
13
|
-
create({ personId, title, description,
|
|
14
|
+
create({ personId, title, description, userFullName, userPhoto, theme, bannerUrl, }: {
|
|
14
15
|
personId: string;
|
|
15
16
|
title: string;
|
|
16
17
|
description: string;
|
|
17
|
-
published: boolean;
|
|
18
18
|
userFullName: string;
|
|
19
19
|
userPhoto?: string;
|
|
20
20
|
theme?: string;
|
|
21
21
|
bannerUrl?: string;
|
|
22
22
|
}): Promise<Wishlist>;
|
|
23
|
-
update({ id, title, description,
|
|
23
|
+
update({ id, title, description, userFullName, userPhoto, theme, bannerUrl, }: {
|
|
24
24
|
id: string;
|
|
25
25
|
title: string;
|
|
26
26
|
description: string;
|
|
27
|
-
published: boolean;
|
|
28
27
|
userFullName: string;
|
|
29
28
|
userPhoto?: string;
|
|
30
29
|
theme?: string;
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export declare const PERSISTENCE_PROVIDER = "PERSISTENCE_PROVIDER";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const PERSISTENCE_PROVIDER = 'PERSISTENCE_PROVIDER';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVyc2lzdGVuY2UuY29uc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0LWFuZ3VsYXIvc3JjL2NvbnN0cy9wZXJzaXN0ZW5jZS5jb25zdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxvQkFBb0IsR0FBRyxzQkFBc0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBQRVJTSVNURU5DRV9QUk9WSURFUiA9ICdQRVJTSVNURU5DRV9QUk9WSURFUidcclxuIl19
|
|
@@ -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: [{
|
|
20
|
-
type: Injectable
|
|
21
|
-
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29va2llLWRhdGEtcGVyc2lzdGVuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0LWFuZ3VsYXIvc3JjL3BlcnNpc3RlbmNlL2Nvb2tpZS1kYXRh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0ZW5jZSB7XHJcbiAgZ2V0KGtleTogc3RyaW5nKTogT2JzZXJ2YWJsZTxzdHJpbmc+XHJcbiAgcmVtb3ZlKGtleTogc3RyaW5nKTogT2JzZXJ2YWJsZTx2b2lkPlxyXG4gIHNldChrZXk6IHN0cmluZywgdmFsdWU6IHN0cmluZyk6IE9ic2VydmFibGU8dm9pZD5cclxufVxyXG4iXX0=
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './cookie-data-persistence';
|
|
2
|
-
export * from './data-persistence';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0LWFuZ3VsYXIvc3JjL3BlcnNpc3RlbmNlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUE7QUFDekMsY0FBYyxvQkFBb0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29va2llLWRhdGEtcGVyc2lzdGVuY2UnXHJcbmV4cG9ydCAqIGZyb20gJy4vZGF0YS1wZXJzaXN0ZW5jZSdcclxuIl19
|
|
@@ -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