@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-angular",
3
- "version": "4.1.0-beta.9",
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.0-beta.9",
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 declare type Cart = {
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
- declare type FetchProductsFilters = {
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
- declare type FetchProductsOptions = {
18
+ type FetchProductsOptions = {
19
19
  page?: number;
20
20
  perPage?: number;
21
21
  sort?: ProductSort;
22
22
  mainGender?: ProductGender;
23
23
  };
24
- declare type FetchProductsMainParams<T extends Category> = {
24
+ type FetchProductsMainParams<T extends Category> = {
25
25
  category?: T;
26
26
  profile?: string[];
27
27
  term?: string;
28
28
  };
29
- declare type FetchProductsParams<T extends Category> = FetchProductsOptions & ({
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
- declare type FetchProductsResponse = {
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 declare type ProductSort = `${ProductSorts}`;
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
- declare type BannerType = 'brand' | 'buyToWin' | 'block' | 'blog';
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 declare type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
2
+ export type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
@@ -1,2 +1,2 @@
1
1
  import { CheckoutSubscription } from '@infrab4a/connect';
2
- export declare type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
2
+ export type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
@@ -1 +1 @@
1
- export declare type FirebaseAppConfig = Record<string, any>;
1
+ export type FirebaseAppConfig = Record<string, any>;