@infrab4a/connect-angular 4.3.13 → 4.4.0-beta.10
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 +24 -26
- package/angular-elastic-search.module.d.ts +9 -9
- package/angular-firebase-auth.module.d.ts +11 -11
- package/angular-firestore.module.d.ts +18 -18
- package/angular-hasura-graphql.module.d.ts +16 -16
- 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 +6 -7
- package/consts/storage-base-url.const.d.ts +1 -1
- package/esm2020/angular-connect.module.mjs +113 -115
- package/esm2020/angular-elastic-search.module.mjs +34 -34
- package/esm2020/angular-firebase-auth.module.mjs +115 -115
- package/esm2020/angular-firestore.module.mjs +502 -502
- package/esm2020/angular-hasura-graphql.module.mjs +265 -265
- package/esm2020/consts/backend-url.const.mjs +1 -1
- package/esm2020/consts/category-structure.mjs +2 -2
- package/esm2020/consts/default-shop.const.mjs +2 -2
- package/esm2020/consts/es-config.const.mjs +2 -2
- package/esm2020/consts/firebase-const.mjs +4 -4
- package/esm2020/consts/hasura-options.const.mjs +2 -2
- package/esm2020/consts/index.mjs +7 -8
- package/esm2020/consts/storage-base-url.const.mjs +2 -2
- package/esm2020/helpers/index.mjs +2 -2
- package/esm2020/helpers/mobile-operation-system-checker.helper.mjs +7 -7
- package/esm2020/index.mjs +6 -7
- package/esm2020/infrab4a-connect-angular.mjs +4 -4
- package/esm2020/services/auth.service.mjs +37 -37
- package/esm2020/services/cart.service.mjs +281 -281
- package/esm2020/services/catalog/adapters/category-structure.adapter.mjs +2 -2
- package/esm2020/services/catalog/adapters/index.mjs +4 -4
- package/esm2020/services/catalog/adapters/new-category-structure.adapter.mjs +41 -41
- package/esm2020/services/catalog/adapters/old-category-structure.adapter.mjs +23 -23
- package/esm2020/services/catalog/catalog.service.mjs +185 -190
- package/esm2020/services/catalog/category.service.mjs +51 -51
- package/esm2020/services/catalog/enums/index.mjs +2 -2
- package/esm2020/services/catalog/enums/product-sorts.enum.mjs +11 -11
- package/esm2020/services/catalog/index.mjs +8 -8
- package/esm2020/services/catalog/models/category-with-tree.model.mjs +10 -10
- package/esm2020/services/catalog/models/index.mjs +2 -2
- package/esm2020/services/catalog/types/index.mjs +2 -2
- package/esm2020/services/catalog/types/product-sort.type.mjs +2 -2
- package/esm2020/services/catalog/wishlist.service.mjs +115 -115
- package/esm2020/services/checkout-subscription.service.mjs +53 -50
- package/esm2020/services/checkout.service.mjs +71 -68
- package/esm2020/services/coupon.service.mjs +235 -235
- package/esm2020/services/helpers/index.mjs +2 -2
- package/esm2020/services/helpers/util.helper.mjs +18 -18
- package/esm2020/services/home-shop.service.mjs +125 -125
- package/esm2020/services/index.mjs +11 -11
- package/esm2020/services/order.service.mjs +30 -30
- package/esm2020/services/shipping.service.mjs +96 -96
- package/esm2020/services/types/index.mjs +3 -3
- package/esm2020/services/types/required-checkout-data.type.mjs +2 -2
- package/esm2020/services/types/required-checkout-subscription-data.type.mjs +2 -2
- package/esm2020/services/types/shipping-methods.type.mjs +2 -2
- package/esm2020/types/firebase-app-config.type.mjs +2 -2
- package/esm2020/types/index.mjs +2 -2
- package/fesm2015/infrab4a-connect-angular.mjs +2313 -2334
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +2245 -2266
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/helpers/index.d.ts +1 -1
- package/helpers/mobile-operation-system-checker.helper.d.ts +3 -3
- package/index.d.ts +5 -6
- package/package.json +2 -2
- package/services/auth.service.d.ts +18 -18
- package/services/cart.service.d.ts +42 -42
- 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 +86 -86
- 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 +38 -38
- package/services/checkout-subscription.service.d.ts +18 -19
- package/services/checkout.service.d.ts +23 -24
- package/services/coupon.service.d.ts +29 -29
- 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/consts/persistence.const.d.ts +0 -1
- package/esm2020/consts/persistence.const.mjs +0 -2
- package/esm2020/persistence/cookie-data-persistence.mjs +0 -22
- package/esm2020/persistence/data-persistence.mjs +0 -2
- package/esm2020/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
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { Checkout, CheckoutRepository, CheckoutTypes, Coupon, Shops, User, UserRepository } from '@infrab4a/connect';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly userRepository;
|
|
11
|
-
private readonly defaultShop;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
static
|
|
23
|
-
|
|
24
|
-
}
|
|
1
|
+
import { Checkout, CheckoutRepository, CheckoutTypes, Coupon, OrderRepository, Shops, User, UserRepository } from '@infrab4a/connect';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CouponService } from './coupon.service';
|
|
4
|
+
import { RequiredCheckoutData } from './types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CheckoutService {
|
|
7
|
+
private readonly couponService;
|
|
8
|
+
private readonly checkoutRepository;
|
|
9
|
+
private readonly orderRepository;
|
|
10
|
+
private readonly userRepository;
|
|
11
|
+
private readonly defaultShop;
|
|
12
|
+
constructor(couponService: CouponService, checkoutRepository: CheckoutRepository, orderRepository: OrderRepository, userRepository: UserRepository, defaultShop: Shops);
|
|
13
|
+
getCheckout(checkoutData?: RequiredCheckoutData): Observable<Checkout>;
|
|
14
|
+
getUserByCheckout(checkoutId: string): Observable<User>;
|
|
15
|
+
updateCheckoutLineItems(checkout: Partial<Checkout>): Observable<Checkout>;
|
|
16
|
+
updateCheckoutUser(checkout: Partial<Checkout>): Observable<Checkout>;
|
|
17
|
+
clearCheckoutFromSession(): Observable<void>;
|
|
18
|
+
calcDiscount(coupon: Coupon): Observable<number>;
|
|
19
|
+
checkCoupon(nickname: string, checkoutType: CheckoutTypes): Observable<Coupon>;
|
|
20
|
+
private createCheckout;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutService, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutService>;
|
|
23
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { CategoryRepository, Checkout, CheckoutSubscription, CheckoutTypes, Coupon, CouponRepository, OrderRepository, Shops } from '@infrab4a/connect';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CouponService {
|
|
5
|
-
private readonly couponRepository;
|
|
6
|
-
private readonly defaultShop;
|
|
7
|
-
private readonly orderRepository;
|
|
8
|
-
private readonly categoryRepository;
|
|
9
|
-
constructor(couponRepository: CouponRepository, defaultShop: Shops, orderRepository: OrderRepository, categoryRepository: CategoryRepository);
|
|
10
|
-
checkCoupon(nickname: string, checkoutType: CheckoutTypes, checkout: Partial<Checkout>, plan: string): Observable<Coupon>;
|
|
11
|
-
private couponValidation;
|
|
12
|
-
private couponRulesValidation;
|
|
13
|
-
calcDiscountSubscription(coupon: Coupon, checkout: Partial<CheckoutSubscription>): Observable<number>;
|
|
14
|
-
calcDiscountShopping(coupon: Coupon, checkout: Partial<Checkout>): Promise<number>;
|
|
15
|
-
private calcDiscountByType;
|
|
16
|
-
private hasMinSubTotal;
|
|
17
|
-
private hasProductCategories;
|
|
18
|
-
private coupomUserValidation;
|
|
19
|
-
private getCouponCategoriesId;
|
|
20
|
-
private emailIsFromCollaborator;
|
|
21
|
-
private getLineItensEligebleForDiscount;
|
|
22
|
-
private calcCheckoutSubtotal;
|
|
23
|
-
private getOrdersWithCoupon;
|
|
24
|
-
private getOrdersFromUser;
|
|
25
|
-
private countOrdersWithUser;
|
|
26
|
-
private getCouponUseLimits;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CouponService, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CouponService>;
|
|
29
|
-
}
|
|
1
|
+
import { CategoryRepository, Checkout, CheckoutSubscription, CheckoutTypes, Coupon, CouponRepository, OrderRepository, Shops } from '@infrab4a/connect';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CouponService {
|
|
5
|
+
private readonly couponRepository;
|
|
6
|
+
private readonly defaultShop;
|
|
7
|
+
private readonly orderRepository;
|
|
8
|
+
private readonly categoryRepository;
|
|
9
|
+
constructor(couponRepository: CouponRepository, defaultShop: Shops, orderRepository: OrderRepository, categoryRepository: CategoryRepository);
|
|
10
|
+
checkCoupon(nickname: string, checkoutType: CheckoutTypes, checkout: Partial<Checkout>, plan: string): Observable<Coupon>;
|
|
11
|
+
private couponValidation;
|
|
12
|
+
private couponRulesValidation;
|
|
13
|
+
calcDiscountSubscription(coupon: Coupon, checkout: Partial<CheckoutSubscription>): Observable<number>;
|
|
14
|
+
calcDiscountShopping(coupon: Coupon, checkout: Partial<Checkout>): Promise<number>;
|
|
15
|
+
private calcDiscountByType;
|
|
16
|
+
private hasMinSubTotal;
|
|
17
|
+
private hasProductCategories;
|
|
18
|
+
private coupomUserValidation;
|
|
19
|
+
private getCouponCategoriesId;
|
|
20
|
+
private emailIsFromCollaborator;
|
|
21
|
+
private getLineItensEligebleForDiscount;
|
|
22
|
+
private calcCheckoutSubtotal;
|
|
23
|
+
private getOrdersWithCoupon;
|
|
24
|
+
private getOrdersFromUser;
|
|
25
|
+
private countOrdersWithUser;
|
|
26
|
+
private getCouponUseLimits;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CouponService, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CouponService>;
|
|
29
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './util.helper';
|
|
1
|
+
export * from './util.helper';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare class UtilHelper {
|
|
2
|
-
static createSlug(name: string): string;
|
|
3
|
-
}
|
|
1
|
+
export declare class UtilHelper {
|
|
2
|
+
static createSlug(name: string): string;
|
|
3
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Banner, CategoryRepository, Home, HomeRepository, ProductRepository, Shops } from '@infrab4a/connect';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
type BannerType = 'brand' | 'buyToWin' | 'block' | 'blog';
|
|
5
|
-
export declare class HomeShopService {
|
|
6
|
-
private readonly categoryRepository;
|
|
7
|
-
private readonly homeRepository;
|
|
8
|
-
private readonly productRepository;
|
|
9
|
-
private readonly defaultShop;
|
|
10
|
-
private homeConfiguration;
|
|
11
|
-
private get homeId();
|
|
12
|
-
constructor(categoryRepository: CategoryRepository, homeRepository: HomeRepository, productRepository: ProductRepository, defaultShop: Shops);
|
|
13
|
-
getHomeData(): Observable<Home>;
|
|
14
|
-
getBanners(type: BannerType): Observable<Banner[]>;
|
|
15
|
-
getMinValueForFreeShipping(): Observable<number>;
|
|
16
|
-
private getDiscoverProducts;
|
|
17
|
-
private getFeaturedProducts;
|
|
18
|
-
private getVerticalProducts;
|
|
19
|
-
private getHomeConfiguration;
|
|
20
|
-
private saveHomeData;
|
|
21
|
-
private buildCategoryGroupWithRequiredData;
|
|
22
|
-
private get gender();
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HomeShopService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HomeShopService>;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
1
|
+
import { Banner, CategoryRepository, Home, HomeRepository, ProductRepository, Shops } from '@infrab4a/connect';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
type BannerType = 'brand' | 'buyToWin' | 'block' | 'blog';
|
|
5
|
+
export declare class HomeShopService {
|
|
6
|
+
private readonly categoryRepository;
|
|
7
|
+
private readonly homeRepository;
|
|
8
|
+
private readonly productRepository;
|
|
9
|
+
private readonly defaultShop;
|
|
10
|
+
private homeConfiguration;
|
|
11
|
+
private get homeId();
|
|
12
|
+
constructor(categoryRepository: CategoryRepository, homeRepository: HomeRepository, productRepository: ProductRepository, defaultShop: Shops);
|
|
13
|
+
getHomeData(): Observable<Home>;
|
|
14
|
+
getBanners(type: BannerType): Observable<Banner[]>;
|
|
15
|
+
getMinValueForFreeShipping(): Observable<number>;
|
|
16
|
+
private getDiscoverProducts;
|
|
17
|
+
private getFeaturedProducts;
|
|
18
|
+
private getVerticalProducts;
|
|
19
|
+
private getHomeConfiguration;
|
|
20
|
+
private saveHomeData;
|
|
21
|
+
private buildCategoryGroupWithRequiredData;
|
|
22
|
+
private get gender();
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HomeShopService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HomeShopService>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
package/services/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './auth.service';
|
|
2
|
-
export * from './cart.service';
|
|
3
|
-
export * from './catalog';
|
|
4
|
-
export * from './checkout-subscription.service';
|
|
5
|
-
export * from './checkout.service';
|
|
6
|
-
export * from './coupon.service';
|
|
7
|
-
export * from './helpers';
|
|
8
|
-
export * from './home-shop.service';
|
|
9
|
-
export * from './order.service';
|
|
10
|
-
export * from './shipping.service';
|
|
1
|
+
export * from './auth.service';
|
|
2
|
+
export * from './cart.service';
|
|
3
|
+
export * from './catalog';
|
|
4
|
+
export * from './checkout-subscription.service';
|
|
5
|
+
export * from './checkout.service';
|
|
6
|
+
export * from './coupon.service';
|
|
7
|
+
export * from './helpers';
|
|
8
|
+
export * from './home-shop.service';
|
|
9
|
+
export * from './order.service';
|
|
10
|
+
export * from './shipping.service';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Firestore } from '@angular/fire/firestore';
|
|
2
|
-
import { Order, OrderFirestoreRepository } from '@infrab4a/connect';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class OrderService {
|
|
6
|
-
private readonly angularFirestore;
|
|
7
|
-
private readonly orderRepository;
|
|
8
|
-
orderSubject: Subject<Order>;
|
|
9
|
-
constructor(angularFirestore: Firestore, orderRepository: OrderFirestoreRepository);
|
|
10
|
-
getOrder(id: string): Subject<Order>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OrderService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
|
|
13
|
-
}
|
|
1
|
+
import { Firestore } from '@angular/fire/firestore';
|
|
2
|
+
import { Order, OrderFirestoreRepository } from '@infrab4a/connect';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class OrderService {
|
|
6
|
+
private readonly angularFirestore;
|
|
7
|
+
private readonly orderRepository;
|
|
8
|
+
orderSubject: Subject<Order>;
|
|
9
|
+
constructor(angularFirestore: Firestore, orderRepository: OrderFirestoreRepository);
|
|
10
|
+
getOrder(id: string): Subject<Order>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
|
|
13
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { HomeShopService } from './home-shop.service';
|
|
4
|
-
import { ShippingMethodResponse } from './types/shipping-methods.type';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ShippingService {
|
|
7
|
-
private http;
|
|
8
|
-
private apiUrl;
|
|
9
|
-
private homeService;
|
|
10
|
-
constructor(http: HttpClient, apiUrl: string, homeService: HomeShopService);
|
|
11
|
-
getShippingMethods(shop: string, zip: string, weightGrams: number, totalPrice: number, personId: string, subscriptionPlan?: string): Observable<Array<ShippingMethodResponse & {
|
|
12
|
-
ShippingCompanyName?: string;
|
|
13
|
-
}>>;
|
|
14
|
-
private isFreeShippingBySubscription;
|
|
15
|
-
private isHalfShippingBySubscription;
|
|
16
|
-
private isHolidays;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShippingService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShippingService>;
|
|
19
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { HomeShopService } from './home-shop.service';
|
|
4
|
+
import { ShippingMethodResponse } from './types/shipping-methods.type';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ShippingService {
|
|
7
|
+
private http;
|
|
8
|
+
private apiUrl;
|
|
9
|
+
private homeService;
|
|
10
|
+
constructor(http: HttpClient, apiUrl: string, homeService: HomeShopService);
|
|
11
|
+
getShippingMethods(shop: string, zip: string, weightGrams: number, totalPrice: number, personId: string, subscriptionPlan?: string): Observable<Array<ShippingMethodResponse & {
|
|
12
|
+
ShippingCompanyName?: string;
|
|
13
|
+
}>>;
|
|
14
|
+
private isFreeShippingBySubscription;
|
|
15
|
+
private isHalfShippingBySubscription;
|
|
16
|
+
private isHolidays;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShippingService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShippingService>;
|
|
19
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './required-checkout-data.type';
|
|
2
|
-
export * from './required-checkout-subscription-data.type';
|
|
1
|
+
export * from './required-checkout-data.type';
|
|
2
|
+
export * from './required-checkout-subscription-data.type';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Checkout } from '@infrab4a/connect';
|
|
2
|
-
export type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
|
|
1
|
+
import { Checkout } from '@infrab4a/connect';
|
|
2
|
+
export type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CheckoutSubscription } from '@infrab4a/connect';
|
|
2
|
-
export type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
|
|
1
|
+
import { CheckoutSubscription } from '@infrab4a/connect';
|
|
2
|
+
export type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface ShippingMethodResponse {
|
|
2
|
-
daysToDelivery: number;
|
|
3
|
-
currency: string;
|
|
4
|
-
description: string;
|
|
5
|
-
maxDeliveryDate: string;
|
|
6
|
-
minDeliveryDate: string;
|
|
7
|
-
serviceCode: string;
|
|
8
|
-
serviceName: string;
|
|
9
|
-
totalPrice: number;
|
|
10
|
-
additionalDescription: string;
|
|
11
|
-
cnpj: string;
|
|
12
|
-
}
|
|
1
|
+
export interface ShippingMethodResponse {
|
|
2
|
+
daysToDelivery: number;
|
|
3
|
+
currency: string;
|
|
4
|
+
description: string;
|
|
5
|
+
maxDeliveryDate: string;
|
|
6
|
+
minDeliveryDate: string;
|
|
7
|
+
serviceCode: string;
|
|
8
|
+
serviceName: string;
|
|
9
|
+
totalPrice: number;
|
|
10
|
+
additionalDescription: string;
|
|
11
|
+
cnpj: string;
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type FirebaseAppConfig = Record<string, any>;
|
|
1
|
+
export type FirebaseAppConfig = Record<string, any>;
|
package/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './firebase-app-config.type';
|
|
1
|
+
export * from './firebase-app-config.type';
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVyc2lzdGVuY2UuY29uc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0LWFuZ3VsYXIvc3JjL2NvbnN0cy9wZXJzaXN0ZW5jZS5jb25zdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxvQkFBb0IsR0FBRyxzQkFBc0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBQRVJTSVNURU5DRV9QUk9WSURFUiA9ICdQRVJTSVNURU5DRV9QUk9WSURFUidcbiJdfQ==
|
|
@@ -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
|
-
}
|
|
17
|
-
CookieDataPersistence.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18
|
-
CookieDataPersistence.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, decorators: [{
|
|
20
|
-
type: Injectable
|
|
21
|
-
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29va2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Nlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMnXG5cbmV4cG9ydCBpbnRlcmZhY2UgRGF0YVBlcnNpc3RlbmNlIHtcbiAgZ2V0KGtleTogc3RyaW5nKTogT2JzZXJ2YWJsZTxzdHJpbmc+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