simpo-component-library 1.6.52 → 1.6.54
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/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +6 -2
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +2 -1
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +10 -10
- package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
- package/esm2022/lib/services/rest.service.mjs +12 -6
- package/fesm2022/simpo-component-library.mjs +207 -197
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/styles/user.modal.d.ts +5 -5
- package/lib/services/rest.service.d.ts +5 -2
- package/package.json +1 -1
- package/simpo-component-library-1.6.53.tgz +0 -0
- package/simpo-component-library-1.6.54.tgz +0 -0
@@ -36,12 +36,12 @@ export interface Geolocation {
|
|
36
36
|
longitude: number;
|
37
37
|
}
|
38
38
|
export interface DeviceInfo {
|
39
|
-
deviceId
|
39
|
+
deviceId?: string;
|
40
40
|
firebaseToken: string;
|
41
|
-
os
|
42
|
-
osVersion
|
43
|
-
model
|
44
|
-
brand
|
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
Binary file
|
Binary file
|