simpo-component-library 1.4.215 → 1.4.218

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,12 @@ export class OrderedItems {
12
12
  this.quantity = json?.["quantity"];
13
13
  this.discountedPrice = json?.["price"]?.["discountedPrice"];
14
14
  this.taxAfterDiscount = json?.["taxAfterDiscount"];
15
+ this.itemVariant = json?.["itemVariant"];
16
+ json?.["itemVariant"]?.forEach((varient) => {
17
+ if (varient.variantId == varientId) {
18
+ this.itemVariant = varient;
19
+ }
20
+ });
15
21
  }
16
22
  }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3JkZXJlZEl0ZW1zLm1vZGFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9lY29tbWVyY2Uvc3R5bGVzL09yZGVyZWRJdGVtcy5tb2RhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxNQUFNLE9BQU8sWUFBWTtJQWNyQixZQUFZLElBQTBCLEVBQUUsU0FBa0I7UUFDdEQsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLEVBQUUsQ0FBQyxRQUFRLENBQUMsSUFBSSxFQUFFLENBQUM7UUFDckMsSUFBSSxDQUFDLFNBQVMsR0FBRyxTQUFTLElBQUksSUFBSSxDQUFDLE1BQU0sQ0FBQztRQUMxQyxJQUFJLENBQUMsVUFBVSxHQUFHLElBQUksRUFBRSxDQUFDLFlBQVksQ0FBQyxDQUFDO1FBQ3ZDLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDL0IsSUFBSSxDQUFDLFlBQVksR0FBRyxJQUFJLEVBQUUsQ0FBQyxjQUFjLENBQUMsQ0FBQztRQUMzQyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLFlBQVks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PSBqc29uPy5bXCJwcmljZVwiXT8uW1widGF4QW1vdW50XCJdO1xyXG4gICAgICAgIHRoaXMucXVhbnRpdHkgPSBqc29uPy5bXCJxdWFudGl0eVwiXTtcclxuICAgICAgICB0aGlzLmRpc2NvdW50ZWRQcmljZSA9IGpzb24/LltcInByaWNlXCJdPy5bXCJkaXNjb3VudGVkUHJpY2VcIl07XHJcbiAgICAgICAgdGhpcy50YXhBZnRlckRpc2NvdW50ID0ganNvbj8uW1widGF4QWZ0ZXJEaXNjb3VudFwiXTtcclxuICAgICAgICB0aGlzLml0ZW1WYXJpYW50ID0ganNvbj8uW1wiaXRlbVZhcmlhbnRcIl07XHJcblxyXG4gICAgICAgIGpzb24/LltcIml0ZW1WYXJpYW50XCJdPy5mb3JFYWNoKCh2YXJpZW50OiBJdGVtVmFyaWFudCk9PiB7XHJcbiAgICAgICAgICAgIGlmICh2YXJpZW50LnZhcmlhbnRJZCA9PSB2YXJpZW50SWQpIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuaXRlbVZhcmlhbnQgPSB2YXJpZW50O1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSlcclxuICAgIH1cclxufVxyXG4iXX0=
@@ -30,7 +30,8 @@ export class Product {
30
30
  this.itemImages = this.itemVariant[0].variantImages;
31
31
  this.price = this.itemVariant[0].itemVariantPrice;
32
32
  this.varientId = this.itemVariant[0].variantId;
33
+ this.itemInventory = this.itemVariant[0].itemInventory;
33
34
  }
34
35
  }
35
36
  }
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5tb2RhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NpbXBvLXVpL3NyYy9saWIvZWNvbW1lcmNlL3N0eWxlcy9wcm9kdWN0Lm1vZGFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE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4UmVmOiBUYXhSZWYyXHJcbiAgdGF4QW1vdW50OiBudW1iZXJcclxuICBzZWxsaW5nUHJpY2U6IG51bWJlclxyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIFRheFJlZjIge1xyXG4gIHRheElkOiBzdHJpbmdcclxuICB0YXhQZXJjZW50OiBudW1iZXJcclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBDcmVhdGVkRGV0YWlsczIge1xyXG4gIGNyZWF0ZWRCeUlkOiBzdHJpbmdcclxuICBjcmVhdGVkQnlOYW1lOiBzdHJpbmdcclxuICBjcmVhdGVkVGltZVN0YW1wOiBzdHJpbmdcclxuICB1cGRhdGVkVGltZVN0YW1wOiBzdHJpbmdcclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBEZXNjcmlwdG9yIHtcclxuICBuYW1lOiBzdHJpbmdcclxuICBjb2RlOiBzdHJpbmdcclxuICBzeW1ib2w6IHN0cmluZ1xyXG4gIHNob3J0RGVzYzogc3RyaW5nXHJcbiAgbG9uZ0Rlc2M6IHN0cmluZ1xyXG4gIGl0ZW1JbWFnZXM6IEl0ZW1JbWFnZTJbXVxyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIEl0ZW1JbWFnZTIge1xyXG4gIGltZ1VybDogc3RyaW5nXHJcbiAgaW1nRGVzYzogc3RyaW5nXHJcbn1cclxuIl19
@@ -65,7 +65,12 @@ export class RestService {
65
65
  "pageNo": pageNo,
66
66
  "pageSize": size
67
67
  };
68
- return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload);
68
+ return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload).pipe(map((response) => {
69
+ return {
70
+ count: response.data.count,
71
+ data: response.data.data?.map((product) => new Product(product))
72
+ };
73
+ }));
69
74
  }
70
75
  getProductByCategoryId(categoryId) {
71
76
  const payload = {
@@ -75,7 +80,12 @@ export class RestService {
75
80
  "pageNo": 0,
76
81
  "pageSize": 10
77
82
  };
78
- return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload);
83
+ return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload).pipe(map((response) => {
84
+ return {
85
+ count: response.count,
86
+ data: response.data.data?.map((product) => new Product(product))
87
+ };
88
+ }));
79
89
  }
80
90
  getProductByCollectionId(collectionId) {
81
91
  const payload = {
@@ -85,7 +95,12 @@ export class RestService {
85
95
  "pageNo": 0,
86
96
  "pageSize": 10
87
97
  };
88
- return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload);
98
+ return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload).pipe(map((response) => {
99
+ return {
100
+ count: response.count,
101
+ data: response.data.data?.map((product) => new Product(product))
102
+ };
103
+ }));
89
104
  }
90
105
  generateOTP(mobile, countryCode) {
91
106
  const businessId = localStorage.getItem("bId") ?? localStorage.getItem("businessId") ?? "1ef4fe51-6dfc-6199-b966-0f9244067fd0";
@@ -150,4 +165,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
150
165
  providedIn: 'root',
151
166
  }]
152
167
  }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.EventsService }] });
153
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9yZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsR0FBRyxFQUF3QyxNQUFNLE1BQU0sQ0FBQztBQUNqRSxPQUFPLEVBQUUsUUFBUSxFQUFpQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sa0JBQWtCLENBQUM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