simpo-component-library 1.4.217 → 1.4.218

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,11 +39,12 @@ export declare class CartComponent extends BaseSection implements OnInit {
39
39
  removeItem(item: OrderedItems): void;
40
40
  private moveItemToWishlist;
41
41
  private removeItemFromCart;
42
- addToCart(item: any, type: 'ADD' | 'SUBSTRACT'): void;
42
+ addToCart(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
43
43
  proceedToPayment(): void;
44
- isItemLoading(itemId: string): boolean;
44
+ isItemLoading(varientId: string): boolean;
45
45
  addressSelected(index: number): void;
46
46
  isItemOutOfStock(product: OrderedItems): boolean;
47
+ getKeys(object: Object): string[];
47
48
  get getAddressList(): import("../../styles/user.modal").AddressDetails[];
48
49
  get isMobile(): boolean;
49
50
  get currency(): string;
@@ -71,6 +71,9 @@ export declare class ProductListComponent extends BaseSection {
71
71
  toggleItemToFav(event: PointerEvent | MouseEvent, product: Product, type: 'ADD' | 'REMOVE'): void;
72
72
  addItemToCart(event: PointerEvent | MouseEvent, product: Product, type: 'ADD' | 'SUBSTRACT'): void;
73
73
  searchProduct(): void;
74
+ selectVarient(product: Product, varient: ItemVariant): void;
75
+ private getVarientQuantity;
76
+ private isVarientPresentInWishtlist;
74
77
  categories: BaseModel[];
75
78
  collections: BaseModel[];
76
79
  applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
@@ -30,6 +30,7 @@ export declare class WhislistComponent extends BaseSection implements OnInit {
30
30
  getWishlistIndexDBData(): void;
31
31
  deleteFromWhislist(product: OrderedItems): void;
32
32
  addToFav(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
33
+ getKeys(object: Object): string[];
33
34
  get currency(): string;
34
35
  static ɵfac: i0.ɵɵFactoryDeclaration<WhislistComponent, never>;
35
36
  static ɵcmp: i0.ɵɵComponentDeclaration<WhislistComponent, "simpo-whislist", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
@@ -1,8 +1,10 @@
1
+ import { ItemVariant } from './product.modal';
1
2
  export declare class OrderedItems {
2
3
  itemId: string;
3
4
  varientId: string;
4
5
  businessId: string;
5
6
  itemName: string;
7
+ itemVariant: ItemVariant;
6
8
  businessName: string;
7
9
  imgUrl: string;
8
10
  price: number;
@@ -14,9 +14,18 @@ export declare class RestService implements OnDestroy {
14
14
  getProductDetails(productId?: string | null): Observable<any>;
15
15
  getAllCategories(): Observable<any>;
16
16
  getAllCollections(): Observable<any>;
17
- getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, sortBy: string, pageNo: number, size: number): Observable<Object>;
18
- getProductByCategoryId(categoryId: string): Observable<Object>;
19
- getProductByCollectionId(collectionId: string): Observable<Object>;
17
+ getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, sortBy: string, pageNo: number, size: number): Observable<{
18
+ count: any;
19
+ data: any;
20
+ }>;
21
+ getProductByCategoryId(categoryId: string): Observable<{
22
+ count: any;
23
+ data: any;
24
+ }>;
25
+ getProductByCollectionId(collectionId: string): Observable<{
26
+ count: any;
27
+ data: any;
28
+ }>;
20
29
  generateOTP(mobile: string, countryCode: string): Observable<Object>;
21
30
  verifyOTP(mobile: string, otp: string): Observable<Object>;
22
31
  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.4.217",
3
+ "version": "1.4.218",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",