simpo-component-library 1.5.8 → 1.5.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,7 @@ export declare class ProductDescComponent extends BaseSection {
34
34
  varients: Map<string, string[]>;
35
35
  selectedVarient: Map<string, string>;
36
36
  relatedProductData: Product[];
37
+ productReview: number;
37
38
  constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title, bottomSheet: MatBottomSheet);
38
39
  buttonId?: string;
39
40
  button?: ButtonModel;
@@ -43,6 +44,7 @@ export declare class ProductDescComponent extends BaseSection {
43
44
  private USER_WISHLIST;
44
45
  itemImages: ItemImage[];
45
46
  ngOnInit(): void;
47
+ varientLoading: boolean;
46
48
  selectVarient(key: string, value: string): void;
47
49
  getItemVarient(): ItemVariant | null;
48
50
  routeToHome(): void;
@@ -60,7 +62,10 @@ export declare class ProductDescComponent extends BaseSection {
60
62
  getProductByCollection(): void;
61
63
  changeProduct(product: Product): void;
62
64
  getKeyByIdx(property: any, index: number): string;
63
- isVarientAvailable(): boolean;
65
+ isVarientAvailable(varient: any): boolean;
66
+ reviewTitle: string;
67
+ reviewDescription: string;
68
+ addProductReview(): void;
64
69
  private getVarientQuantity;
65
70
  private isVarientPresentInWishtlist;
66
71
  editSection(): void;
@@ -1,3 +1,4 @@
1
+ import { FooterSocialLinkModel } from "../../../sections/footer-section/footer-section.modal";
1
2
  import { AnimationModel, BackgroundModel, InputTextModel, LayOutModel } from "../../../styles/style.model";
2
3
  import { ActionModel } from '../../../styles/style.model';
3
4
  export interface ProductDescModal {
@@ -17,5 +18,6 @@ export interface ProductDescStylesModal {
17
18
  }
18
19
  export interface ProductDescContentModal {
19
20
  button: string;
21
+ socialLinks: FooterSocialLinkModel;
20
22
  inputText: InputTextModel[];
21
23
  }
@@ -0,0 +1,8 @@
1
+ export interface Review {
2
+ reviewId?: string;
3
+ productId: string;
4
+ userId: string;
5
+ rating: number;
6
+ title: string;
7
+ review: string;
8
+ }
@@ -27,7 +27,7 @@ export interface AddressDetails {
27
27
  landmark: string;
28
28
  stateCode: string;
29
29
  zipCode: string;
30
- addressType: ADDRESS_TYPE;
30
+ addressType: ADDRESS_TYPE | null;
31
31
  geolocation: Geolocation;
32
32
  }
33
33
  export interface Geolocation {
@@ -2,6 +2,7 @@ import { HttpClient } from "@angular/common/http";
2
2
  import { OnDestroy } from "@angular/core";
3
3
  import { Observable } from "rxjs";
4
4
  import { EventsService } from "../../public-api";
5
+ import { Review } from "../ecommerce/styles/review.modal";
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class RestService implements OnDestroy {
7
8
  private readonly http;
@@ -26,6 +27,7 @@ export declare class RestService implements OnDestroy {
26
27
  count: any;
27
28
  data: any;
28
29
  }>;
30
+ addReview(payload: Review): Observable<Object>;
29
31
  generateOTP(mobile: string, countryCode: string): Observable<Object>;
30
32
  verifyOTP(mobile: string, otp: string): Observable<Object>;
31
33
  resendOTP(mobile: string, countryCode: string): Observable<Object>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",