simpo-component-library 1.6.52 → 1.6.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,12 +36,12 @@ export interface Geolocation {
36
36
  longitude: number;
37
37
  }
38
38
  export interface DeviceInfo {
39
- deviceId: string;
39
+ deviceId?: string;
40
40
  firebaseToken: string;
41
- os: string;
42
- osVersion: string;
43
- model: string;
44
- brand: string;
41
+ os?: string;
42
+ osVersion?: string;
43
+ model?: string;
44
+ brand?: string;
45
45
  }
46
46
  export declare type ADDRESS_TYPE = "HOME" | "WORK" | "OTHER";
47
47
  export declare type GENDER = "MALE" | "FEMALE" | "OTHERS";
@@ -3,13 +3,16 @@ import { OnDestroy } from "@angular/core";
3
3
  import { Observable } from "rxjs";
4
4
  import { EventsService } from "../../public-api";
5
5
  import { Review } from "../ecommerce/styles/review.modal";
6
+ import { DeviceInfo } from "../ecommerce/styles/user.modal";
7
+ import { StorageServiceService } from "./storage.service";
6
8
  import * as i0 from "@angular/core";
7
9
  export declare class RestService implements OnDestroy {
8
10
  private readonly http;
9
11
  private readonly eventService;
12
+ private readonly storageService;
10
13
  private BASE_URL;
11
14
  private environmentTypeSubscriber;
12
- constructor(http: HttpClient, eventService: EventsService);
15
+ constructor(http: HttpClient, eventService: EventsService, storageService: StorageServiceService);
13
16
  ngOnDestroy(): void;
14
17
  getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
15
18
  getCategoriesByCollectionId(collectionId: string): Observable<any>;
@@ -32,7 +35,7 @@ export declare class RestService implements OnDestroy {
32
35
  addReview(payload: Review): Observable<Object>;
33
36
  getAllReviews(productId: string): Observable<Object>;
34
37
  generateOTP(mobile: string, countryCode: string): Observable<Object>;
35
- verifyOTP(mobile: string, otp: string): Observable<Object>;
38
+ verifyOTP(mobile: string, otp: string, deviceInfo: DeviceInfo): Observable<Object>;
36
39
  resendOTP(mobile: string, countryCode: string): Observable<Object>;
37
40
  addItemToDB(userCart: any): Observable<Object>;
38
41
  getUserItems(userId: string, cartType: 'CART' | 'WISHLIST'): Observable<Object>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.6.52",
3
+ "version": "1.6.54",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",