@infrab4a/connect-angular 4.1.0-beta.9 → 4.1.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-firestore.module.d.ts +1 -1
- package/angular-hasura-graphql.module.d.ts +1 -1
- package/esm2020/services/catalog/catalog.service.mjs +3 -1
- package/esm2020/services/home-shop.service.mjs +8 -8
- package/fesm2015/infrab4a-connect-angular.mjs +9 -7
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +9 -7
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +4 -3
- package/services/cart.service.d.ts +1 -1
- package/services/catalog/catalog.service.d.ts +5 -5
- package/services/catalog/types/product-sort.type.d.ts +1 -1
- package/services/home-shop.service.d.ts +1 -1
- package/services/types/required-checkout-data.type.d.ts +1 -1
- package/services/types/required-checkout-subscription-data.type.d.ts +1 -1
- package/types/firebase-app-config.type.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect-angular",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1-beta.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"@angular/common": "^15.1.4",
|
|
13
13
|
"@angular/core": "^15.1.4",
|
|
14
14
|
"@angular/fire": "^7.5.0",
|
|
15
|
-
"@infrab4a/connect": "^4.1.
|
|
15
|
+
"@infrab4a/connect": "^4.1.1-beta.0",
|
|
16
|
+
"js-cookie": "^3.0.1",
|
|
16
17
|
"rxjs": "^6.6.7"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
@@ -39,4 +40,4 @@
|
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
"sideEffects": false
|
|
42
|
-
}
|
|
43
|
+
}
|
|
@@ -4,7 +4,7 @@ import { AuthService } from './auth.service';
|
|
|
4
4
|
import { CheckoutService } from './checkout.service';
|
|
5
5
|
import { RequiredCheckoutData } from './types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export
|
|
7
|
+
export type Cart = {
|
|
8
8
|
[id: string]: LineItem;
|
|
9
9
|
};
|
|
10
10
|
export declare class CartService {
|
|
@@ -2,7 +2,7 @@ import { Category, Product, ProductGender, ProductRepository, ProductsIndex, Sho
|
|
|
2
2
|
import { CategoryStructureAdapter } from './adapters';
|
|
3
3
|
import { ProductSort } from './types/product-sort.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
|
|
5
|
+
type FetchProductsFilters = {
|
|
6
6
|
clubDiscount?: number[];
|
|
7
7
|
brands?: string[];
|
|
8
8
|
prices?: {
|
|
@@ -15,18 +15,18 @@ declare type FetchProductsFilters = {
|
|
|
15
15
|
customOptions?: string[];
|
|
16
16
|
tags?: string[];
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
type FetchProductsOptions = {
|
|
19
19
|
page?: number;
|
|
20
20
|
perPage?: number;
|
|
21
21
|
sort?: ProductSort;
|
|
22
22
|
mainGender?: ProductGender;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type FetchProductsMainParams<T extends Category> = {
|
|
25
25
|
category?: T;
|
|
26
26
|
profile?: string[];
|
|
27
27
|
term?: string;
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
type FetchProductsParams<T extends Category> = FetchProductsOptions & ({
|
|
30
30
|
category: FetchProductsMainParams<T>['category'];
|
|
31
31
|
filters?: FetchProductsFilters;
|
|
32
32
|
} | {
|
|
@@ -41,7 +41,7 @@ declare type FetchProductsParams<T extends Category> = FetchProductsOptions & ({
|
|
|
41
41
|
customOptions?: never;
|
|
42
42
|
};
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
type FetchProductsResponse = {
|
|
45
45
|
products: {
|
|
46
46
|
data: Product[];
|
|
47
47
|
total: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ProductSorts } from '../enums';
|
|
2
|
-
export
|
|
2
|
+
export type ProductSort = `${ProductSorts}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Banner, CategoryRepository, Home, HomeRepository, ProductRepository, Shops } from '@infrab4a/connect';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
|
|
4
|
+
type BannerType = 'brand' | 'buyToWin' | 'block' | 'blog';
|
|
5
5
|
export declare class HomeShopService {
|
|
6
6
|
private readonly categoryRepository;
|
|
7
7
|
private readonly homeRepository;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Checkout } from '@infrab4a/connect';
|
|
2
|
-
export
|
|
2
|
+
export type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CheckoutSubscription } from '@infrab4a/connect';
|
|
2
|
-
export
|
|
2
|
+
export type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type FirebaseAppConfig = Record<string, any>;
|