@infrab4a/connect-angular 4.0.0-beta.39 → 4.0.0-beta.40
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 +21 -21
- package/angular-elastic-search.module.d.ts +9 -9
- package/angular-firebase-auth.module.d.ts +12 -12
- 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 -6
- package/esm2020/angular-connect.module.mjs +63 -63
- package/esm2020/angular-elastic-search.module.mjs +34 -34
- package/esm2020/angular-firebase-auth.module.mjs +130 -130
- package/esm2020/angular-firestore.module.mjs +455 -447
- package/esm2020/angular-hasura-graphql.module.mjs +219 -219
- 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 -7
- package/esm2020/index.mjs +6 -6
- 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 +42 -42
- package/esm2020/services/catalog/adapters/old-category-structure.adapter.mjs +23 -23
- package/esm2020/services/catalog/catalog.service.mjs +98 -98
- 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 +6 -6
- 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/checkout-subscription.service.mjs +53 -53
- package/esm2020/services/checkout.service.mjs +71 -71
- package/esm2020/services/coupon.service.mjs +214 -214
- package/esm2020/services/home-shop.service.mjs +114 -114
- package/esm2020/services/index.mjs +10 -10
- 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 +1932 -1924
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +1874 -1866
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/index.d.ts +5 -5
- 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 +14 -14
- package/services/catalog/adapters/old-category-structure.adapter.d.ts +10 -10
- package/services/catalog/catalog.service.d.ts +54 -54
- package/services/catalog/category.service.d.ts +15 -15
- 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 +5 -5
- 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/checkout-subscription.service.d.ts +18 -18
- package/services/checkout.service.d.ts +23 -23
- package/services/coupon.service.d.ts +28 -28
- package/services/home-shop.service.d.ts +25 -25
- package/services/index.d.ts +9 -9
- 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/services/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 './home-shop.service';
|
|
8
|
-
export * from './order.service';
|
|
9
|
-
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 './home-shop.service';
|
|
8
|
+
export * from './order.service';
|
|
9
|
+
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 declare type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
|
|
1
|
+
import { Checkout } from '@infrab4a/connect';
|
|
2
|
+
export declare type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CheckoutSubscription } from '@infrab4a/connect';
|
|
2
|
-
export declare type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
|
|
1
|
+
import { CheckoutSubscription } from '@infrab4a/connect';
|
|
2
|
+
export declare 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 declare type FirebaseAppConfig = Record<string, any>;
|
|
1
|
+
export declare 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';
|