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.
@@ -9,4 +9,4 @@ export class User {
9
9
  this.deviceInfo = json?.["deviceInfo"];
10
10
  }
11
11
  }
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci5tb2RhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NpbXBvLXVpL3NyYy9saWIvZWNvbW1lcmNlL3N0eWxlcy91c2VyLm1vZGFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxJQUFJO0lBU2IsWUFBWSxJQUEyQjtRQUNuQyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUNyQyxJQUFJLENBQUMsVUFBVSxHQUFHLElBQUksRUFBRSxDQUFDLFlBQVksQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUM3QyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLFFBQVEsQ0FBVyxJQUFJLEVBQUUsQ0FBQztRQUMvQyxJQUFJLENBQUMsVUFBVSxHQUFHLElBQUksRUFBRSxDQUFDLFlBQVksQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUM3QyxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksRUFBRSxDQUFDLFNBQVMsQ0FBdUIsQ0FBQztRQUN2RCxJQUFJLENBQUMsa0JBQWtCLEdBQUcsSUFBSSxFQUFFLENBQUMsb0JBQW9CLENBQWdDLENBQUM7UUFDdEYsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLEVBQUUsQ0FBQyxZQUFZLENBQUMsQ0FBQztJQUMzQyxDQUFDO0NBQ0oiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgVX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RlY2xhcmUgdHlwZSBHRU5ERVIgPSBcIk1BTEVcIiB8IFwiRkVNQUxFXCIgfCBcIk9USEVSU1wiOyJdfQ==
@@ -4,10 +4,12 @@ import { Category, Product, Collection } from "../../public-api";
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "@angular/common/http";
6
6
  import * as i2 from "../../public-api";
7
+ import * as i3 from "./storage.service";
7
8
  export class RestService {
8
- constructor(http, eventService) {
9
+ constructor(http, eventService, storageService) {
9
10
  this.http = http;
10
11
  this.eventService = eventService;
12
+ this.storageService = storageService;
11
13
  this.BASE_URL = "https://dev-api.simpo.ai/";
12
14
  this.environmentTypeSubscriber = null;
13
15
  this.environmentTypeSubscriber = this.eventService.environmentType.subscribe((response) => {
@@ -42,6 +44,7 @@ export class RestService {
42
44
  pageSize: 1,
43
45
  itemId: productId,
44
46
  subIndustryId: localStorage.getItem("subIndustryId"),
47
+ userId: this.storageService.getUser()?.userId ?? null,
45
48
  request: "USER"
46
49
  };
47
50
  return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload).pipe(map((response) => response.data.data.map((product) => new Product(product))));
@@ -78,6 +81,7 @@ export class RestService {
78
81
  "sortBy": sortBy,
79
82
  "pageNo": pageNo,
80
83
  "pageSize": size,
84
+ "userId": this.storageService.getUser()?.userId ?? null,
81
85
  request: "USER"
82
86
  };
83
87
  return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload).pipe(map((response) => {
@@ -94,6 +98,7 @@ export class RestService {
94
98
  "subIndustryId": localStorage.getItem("subIndustryId"),
95
99
  "pageNo": 0,
96
100
  "pageSize": 10,
101
+ "userId": this.storageService.getUser()?.userId ?? null,
97
102
  request: "USER"
98
103
  };
99
104
  return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload).pipe(map((response) => {
@@ -110,6 +115,7 @@ export class RestService {
110
115
  "subIndustryId": localStorage.getItem("subIndustryId"),
111
116
  "pageNo": 0,
112
117
  "pageSize": 10,
118
+ "userId": this.storageService.getUser()?.userId ?? null,
113
119
  request: "USER"
114
120
  };
115
121
  return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload).pipe(map((response) => {
@@ -129,9 +135,9 @@ export class RestService {
129
135
  const businessId = localStorage.getItem("bId") ?? localStorage.getItem("businessId") ?? "";
130
136
  return this.http.post(this.BASE_URL + `ecommerce/user/otp/trigger?mobile=${mobile}&countryCode=${countryCode}&businessId=${businessId}`, null);
131
137
  }
132
- verifyOTP(mobile, otp) {
138
+ verifyOTP(mobile, otp, deviceInfo) {
133
139
  const businessId = localStorage.getItem("bId") ?? localStorage.getItem("businessId") ?? "";
134
- return this.http.put(this.BASE_URL + `ecommerce/user/authenticate?mobile=${mobile}&otp=${otp}&businessId=${businessId}`, null);
140
+ return this.http.put(this.BASE_URL + `ecommerce/user/authenticate?mobile=${mobile}&otp=${otp}&businessId=${businessId}`, deviceInfo);
135
141
  }
136
142
  resendOTP(mobile, countryCode) {
137
143
  const businessId = localStorage.getItem("bId") ?? localStorage.getItem("businessId") ?? "";
@@ -179,7 +185,7 @@ export class RestService {
179
185
  checkPaymentStatus(payload) {
180
186
  return this.http.post(this.BASE_URL + `ecommerce/payment/status`, payload);
181
187
  }
182
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: i2.EventsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
188
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: i2.EventsService }, { token: i3.StorageServiceService }], target: i0.ɵɵFactoryTarget.Injectable }); }
183
189
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: RestService, providedIn: 'root' }); }
184
190
  }
185
191
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: RestService, decorators: [{
@@ -187,5 +193,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
187
193
  args: [{
188
194
  providedIn: 'root',
189
195
  }]
190
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.EventsService }] });
191
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9yZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsR0FBRyxFQUF3QyxNQUFNLE1BQU0sQ0FBQztBQUNqRSxPQUFPLEVBQUUsUUFBUSxFQUFpQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7QUFNaEYsTUFBTSxPQUFPLFdBQVc7SUFLcEIsWUFDcUIsSUFBZ0IsRUFDaEIsWUFBMkI7UUFEM0IsU0FBSSxHQUFKLElBQUksQ0FBWTtRQUNoQixpQkFBWSxHQUFaLFlBQVksQ0FBZTtRQUx4QyxhQUFRLEdBQVcsMkJBQTJCLENBQUM7UUFDL0MsOEJBQXlCLEdBQXdCLElBQUksQ0FBQztRQU0zRCxJQUFJLENBQUMseUJBQXlCLEdBQUcsSUFBSSxDQUFDLFlBQVksQ0FBQyxlQUFlLENBQUMsU0FBUyxDQUFDLENBQUMsUUFBUSxFQUFDLEVBQUU7WUFDcEYsSUFBSSxRQUFRLElBQUksS0FBSztnQkFDakIsSUFBSSxDQUFDLFFBQVEsR0FBRywyQkFBMkIsQ0FBQztpQkFDM0MsSUFBSSxRQUFRLElBQUksT0FBTztnQkFDeEIsSUFBSS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0LFxyXG4gICAgICAgICAgICBcIm1pblByaWNlXCI6IG1pblByaWNlID8/IDAsXHJcbiAgICAgICAgICAgIFwibWF4UHJpY2VcIjogbWF4UHJpY2UgPz8gMCxcclxuICAgICAgICAgICAgXCJzb3J0QnlcIjogc29ydEJ5LFxyXG4gICAgICAgICAgICBcInBhZ2VOb1wiOiBwYWdlTm8sXHJcbiAgICAgICAgICAgIFwicGFnZVNpemVcIjogc2l6ZSxcclxuICAgICAgICAgICAgcmVxdWVzdDogXCJVU0VSXCJcclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cC5wdXQodGhpcy5CQVNFX1VSTCArIGBlY29tbWVyY2UvcHJvZHVjdC9pdGVtL3NlYXJjaGAsIHBheWxvYWQpLnBpcGUobWFwKChyZXNwb25zZTogYW55KT0+IHtcclxuICAgICAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgICAgIGNvdW50OiByZXNwb25zZS5kYXRhLmNvdW50LFxyXG4gICAgICAgICAgICAgICAgZGF0YTogcmVzcG9uc2UuZGF0YS5kYXRhPy5tYXAoKHByb2R1Y3Q6IGFueSk9PiBuZXcgUHJvZHVjdChwcm9kdWN0KSlcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pKTtcclxuICAgIH1cclxuICAgIGdldFByb2R1Y3RCeUNhdGVnb3J5SWQoY2F0ZWdvcnlJZDogc3RyaW5nKSB7XHJcbiAgICAgICAgY29uc3QgcGF5bG9hZDogYW55ID0ge1xyXG4gICAgICAgICAgICBcImJ1c2luZXNzSWRcIjogbG9jYWxTdG9yYWdlLmdldEl0ZW0oXCJiSWRcIikgPz8gbG9jYWxTdG9yYWdlLmdldEl0ZW0oXCJidXNpbmVzc0lkXCIpLFxyXG4gICAgICAgICAgICBcImNhdGVnb3J5SWRcIjogW2NhdGVnb3J5SWRdLFxyXG4gICAgICAgICAgICBcInN1YkluZHVzdHJ5SWRcIjogbG9jYWxTdG9yYWdlLmdldEl0ZW0o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XltZW50KG9yZGVySWQ6IHN0cmluZywgcGF5bG9hZDogYW55KSB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cC5wb3N0KHRoaXMuQkFTRV9VUkwgKyBgZWNvbW1lcmNlL3BheW1lbnQvcmVmdW5kL2Jhbms/b3JkZXJJZD0ke29yZGVySWR9YCwgcGF5bG9hZCk7XHJcbiAgICB9XHJcbiAgICBjaGVja1BheW1lbnRTdGF0dXMocGF5bG9hZDogYW55KSB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cC5wb3N0KHRoaXMuQkFTRV9VUkwgKyBgZWNvbW1lcmNlL3BheW1lbnQvc3RhdHVzYCwgcGF5bG9hZCk7XHJcbiAgICB9XHJcbn1cclxuIl19
196
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.EventsService }, { type: i3.StorageServiceService }] });
197
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9yZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsR0FBRyxFQUF3QyxNQUFNLE1BQU0sQ0FBQztBQUNqRSxPQUFPLEVBQUUsUUFBUSxFQUFpQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7O0FBUWhGLE1BQU0sT0FBTyxXQUFXO0lBS3BCLFlBQ3FCLElBQWdCLEVBQ2hCLFlBQTJCLEVBQzNCLGNBQXFDO1FBRnJDLFNBQUksR0FBSixJQUFJLENBQVk7UUFDaEIsaUJBQVksR0FBWixZQUFZLENBQWU7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4gICAgICAgICAgICBcInNlYXJjaFRleHRcIjogc2VhcmNoVGV4dCxcclxuICAgICAgICAgICAgXCJtaW5QcmljZVwiOiBtaW5QcmljZSA/PyAwLFxyXG4gICAgICAgICAgICBcIm1heFByaWNlXCI6IG1heFByaWNlID8/IDAsXHJcbiAgICAgICAgICAgIFwic29ydEJ5XCI6IHNvcnRCeSxcclxuICAgICAgICAgICAgXCJwYWdlTm9cIjogcGFnZU5vLFxyXG4gICAgICAgICAgICBcInBhZ2VTaXplXCI6IHNpemUsXHJcbiAgICAgICAgICAgIFwidXNlcklkXCI6IHRoaXMuc3RvcmFnZVNlcnZpY2UuZ2V0VXNlcigpPy51c2VySWQgPz8gbnVsbCxcclxuICAgICAgICAgICAgcmVxdWVzdDogXCJVU0VSXCJcclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cC5wdXQodGhpcy5CQVNFX1VSTCArIGBlY29tbWVyY2UvcHJvZHVjdC9pdGVtL3NlYXJjaGAsIHBheWxvYWQpLnBpcGUobWFwKChyZXNwb25zZTogYW55KT0+IHtcclxuICAgICAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgICAgIGNvdW50OiByZXNwb25zZS5kYXRhLmNvdW50LFxyXG4gICAgICAgICAgICAgICAgZGF0YTogcmVzcG9uc2UuZGF0YS5kYXRhPy5tYXAoKHByb2R1Y3Q6IGFueSk9PiBuZXcgUHJvZHVjdChwcm9kdWN0KSlcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pKTtcclxuICAgIH1cclxuICAgIGdldFByb2R1Y3RCeUNhdGVnb3J5SWQoY2F0ZWdvcnlJZDogc3RyaW5nKSB7XHJcbiAgICAgICAgY29uc3QgcGF5bG9hZDogYW55ID0ge1xyXG4gICAgICAgICAgICBcImJ1c2luZXNzSWRcIjogbG9jYWxTdG9yYWdlLmdldEl0ZW0oXCJiSWRcIikgPz8gbG9jYWxTdG9yYWdlLmdldEl0ZW0oXCJidXNpbmVz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