simpo-component-library 1.6.131 → 1.6.135
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/services/rest.service.mjs +13 -6
- package/esm2022/lib/services/storage.service.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs +13 -5
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/services/rest.service.d.ts +1 -0
- package/package.json +1 -1
- package/simpo-component-library-1.6.135.tgz +0 -0
- package/simpo-component-library-1.6.129.tgz +0 -0
- package/simpo-component-library-1.6.130.tgz +0 -0
- package/simpo-component-library-1.6.131.tgz +0 -0
@@ -10,14 +10,21 @@ export class RestService {
|
|
10
10
|
this.http = http;
|
11
11
|
this.eventService = eventService;
|
12
12
|
this.BASE_URL = "https://dev-api.simpo.ai/";
|
13
|
+
this.ECOMMERCE_URL = "https://dev-ecommerce.simpo.ai/";
|
13
14
|
this.environmentTypeSubscriber = null;
|
14
15
|
this.environmentTypeSubscriber = this.eventService.environmentType.subscribe((response) => {
|
15
|
-
if (response == "DEV")
|
16
|
+
if (response == "DEV") {
|
16
17
|
this.BASE_URL = "https://dev-api.simpo.ai/";
|
17
|
-
|
18
|
+
this.ECOMMERCE_URL = "https://dev-ecommerce.simpo.ai/";
|
19
|
+
}
|
20
|
+
else if (response == "STAGE") {
|
21
|
+
this.ECOMMERCE_URL = "https://stage-ecommerce.simpo.ai/";
|
18
22
|
this.BASE_URL = "https://state-api.simpo.ai/";
|
19
|
-
|
23
|
+
}
|
24
|
+
else {
|
20
25
|
this.BASE_URL = "https://api.simpo.ai/";
|
26
|
+
this.ECOMMERCE_URL = "https://prod-ecommerce.simpo.ai/";
|
27
|
+
}
|
21
28
|
});
|
22
29
|
}
|
23
30
|
ngOnDestroy() {
|
@@ -178,13 +185,13 @@ export class RestService {
|
|
178
185
|
}
|
179
186
|
// Payment
|
180
187
|
createPaymentToken(payload) {
|
181
|
-
return this.http.post(this.
|
188
|
+
return this.http.post(this.ECOMMERCE_URL + `payment/order`, payload);
|
182
189
|
}
|
183
190
|
refundPayment(orderId, payload) {
|
184
191
|
return this.http.post(this.BASE_URL + `ecommerce/payment/refund/bank?orderId=${orderId}`, payload);
|
185
192
|
}
|
186
193
|
checkPaymentStatus(payload) {
|
187
|
-
return this.http.post(this.
|
194
|
+
return this.http.post(this.ECOMMERCE_URL + `payment/status`, payload);
|
188
195
|
}
|
189
196
|
getRecentViewProduct(userId) {
|
190
197
|
return this.http.post(this.BASE_URL + `ecommerce/user/recentView?userId=${userId}`, null).pipe(map((response) => response.data?.map((product) => new Product(product))));
|
@@ -230,4 +237,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
|
|
230
237
|
providedIn: 'root',
|
231
238
|
}]
|
232
239
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.EventsService }] });
|
233
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9yZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsR0FBRyxFQUF3QyxNQUFNLE1BQU0sQ0FBQztBQUNqRSxPQUFPLEVBQUUsUUFBUSxFQUFpQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFJaEYsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDJDQUEyQyxDQUFDOzs7O0FBSzVFLE1BQU0sT0FBTyxXQUFXO0lBS3BCLFlBQ3FCLElBQWdCLEVBQ2hCLFlBQTJCO1FBRDNCLFNBQUksR0FBSixJQUFJLENBQVk7UUFDaEIsaUJBQVksR0FBWixZQ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YnVzaW5lc3NJZFwiKSxcclxuICAgICAgICAgICAgXCJjb2xsZWN0aW9uSWRcIjogW2NvbGxlY3Rpb25JZF0sXHJcbiAgICAgICAgICAgIFwic3ViSW5kdXN0cnlJZFwiOiBsb2NhbFN0b3JhZ2UuZ2V0SXRlbShcInN1YkluZHVzdHJ5SWRcIiksXHJcbiAgICAgICAgICAgIFwicGFnZU5vXCI6IDAsXHJcbiAgICAgICAgICAgIFwicGFnZVNpemVcIjogMTAsXHJcbiAgICAgICAgICAgIFwidXNlcklkXCI6IGxvY2FsU3RvcmFnZS5nZXRJdGVtKFwicGVySWRcIikgPz8gbnVsbCxcclxuICAgICAgICAgICAgcmVxdWVzdDogXCJVU0VSXCJcclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cC5wdXQodGhpcy5CQVNFX1VSTCArIGBlY29tbWVyY2UvcHJvZHVjdC9pdGVtL3NlYXJjaGAsIHBheWxvYWQpLnBpcGUobWFwKChyZXNwb25zZTogYW55KT0+IHtcclxuICAgICAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgICAgIGNvdW50OiByZXNwb25zZS5jb3VudCxcclxuICAgICAgICAgICAgICAgIGRhdGE6IHJlc3BvbnNlLmRhdGEuZGF0YT8ubWFwKChwcm9kdWN0OiBhbnkpPT4gbmV3IFByb2R1Y3QocHJvZHVjdCkpXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KSk7XHJcbiAgICB9XHJcblxyXG4gICAgYWRkUmV2aWV3KHBheWxvYWQ6IFJldmlldykge1xyXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHAucG9zdCh0aGlzLkJBU0VfVVJMICsgYGVjb21tZXJjZS91c2VyL2FkZC9yZXZpZXdgLCBwYXlsb2FkKTtcclxuICAgIH1cclxuICAgIGdldEFsbFJldmlld3MocHJvZHVjdElkOiBzdHJpbmcpIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5odHRwLnB1dCh0aGlzLkJBU0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BhZ2U9JHtwYWdlfWBcclxuICAgICAgICApXHJcbiAgICB9XHJcblxyXG4gICAgZ2V0QWxsTG9jYXRpb24oYnVzaW5lc3NJZDphbnksc2l6ZTpudW1iZXIscGFnZTpudW1iZXIpe1xyXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0KFxyXG4gICAgICAgICAgICB0aGlzLkJBU0VfVVJMICsgYGNybS9hcHBvaW50bWVudC9jb25maWcvbG9jYXRpb24/YnVzaW5lc3NJZD0ke2J1c2luZXNzSWR9JnNpemU9JHtzaXplfSZwYWdlPSR7cGFnZX1gXHJcbiAgICAgICAgKVxyXG4gICAgfVxyXG5cclxuICAgIGdldEFsbFRpbWVTbG90cyhsb2NhdGlvbklkOmFueSxkYXRlOkRhdGUpe1xyXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0KFxyXG4gICAgICAgICAgICB0aGlzLkJBU0VfVVJMICsgYGNybS9hcHBvaW50bWVudC9jb25maWcvdGltZXNsb3RzP2xvY2F0aW9uSWQ9JHtsb2NhdGlvbklkfSZkYXRlPSR7ZGF0ZX1gXHJcbiAgICAgICAgKVxyXG4gICAgfVxyXG4gICAgXHJcbn1cclxuIl19
|
@@ -102,6 +102,7 @@ export class StorageServiceService {
|
|
102
102
|
this.restService.getUserItems(userDetails.userId, "WISHLIST")
|
103
103
|
]);
|
104
104
|
request.subscribe((cartResponse) => {
|
105
|
+
console.log("Cart Response : ", cartResponse);
|
105
106
|
const userCart = cartResponse?.[0].data;
|
106
107
|
if (userCart.cartId)
|
107
108
|
localStorage.setItem("cartId", userCart.cartId);
|
@@ -224,4 +225,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
|
|
224
225
|
providedIn: 'root'
|
225
226
|
}]
|
226
227
|
}], ctorParameters: () => [{ type: i1.EventsService }, { type: i2.CookieService }, { type: i3.RestService }] });
|
227
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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hdGFiYXNlXHJcbiAgLy8gICAgICAgICAudHJhbnNhY3Rpb24odGhpcy5vYmplY3RTdG9yYWdlTmFtZSwgJ3JlYWR3cml0ZScpXHJcbiAgLy8gICAgICAgICAub2JqZWN0U3RvcmUodGhpcy5vYmplY3RTdG9yYWdlTmFtZSlcclxuICAvLyAgICAgICAgIC5jbGVhcigpO1xyXG5cclxuICAvLyAgICAgICByZXF1ZXN0Lm9uc3VjY2VzcyA9IGF3YWl0IGZ1bmN0aW9uIChldmVudDogYW55KSB7XHJcblxyXG4gIC8vICAgICAgICAgaWYgKGV2ZW50LnRhcmdldC5yZXN1bHQpIHtcclxuICAvLyAgICAgICAgICAgcmVzb2x2ZShldmVudC5yZXN1bHQpO1xyXG4gIC8vICAgICAgICAgfSBlbHNlIHtcclxuICAvLyAgICAgICAgICAgcmVzb2x2ZSgnU1VDQ0VTUycpO1xyXG4gIC8vICAgICAgICAgfVxyXG4gIC8vICAgICAgIH07XHJcbiAgLy8gICAgICAgcmVxdWVzdC5vbmVycm9yID0gYXdhaXQgZnVuY3Rpb24gKF9ldmVudCkge1xyXG4gIC8vICAgICAgICAgcmVqZWN0KFwiTm8gZGF0YVwiKTtcclxuICAvLyAgICAgICB9XHJcbiAgLy8gICAgIH1cclxuICAvLyAgIH0pO1xyXG4gIC8vIH1cclxufVxyXG4iXX0=
|
@@ -3223,14 +3223,21 @@ class RestService {
|
|
3223
3223
|
this.http = http;
|
3224
3224
|
this.eventService = eventService;
|
3225
3225
|
this.BASE_URL = "https://dev-api.simpo.ai/";
|
3226
|
+
this.ECOMMERCE_URL = "https://dev-ecommerce.simpo.ai/";
|
3226
3227
|
this.environmentTypeSubscriber = null;
|
3227
3228
|
this.environmentTypeSubscriber = this.eventService.environmentType.subscribe((response) => {
|
3228
|
-
if (response == "DEV")
|
3229
|
+
if (response == "DEV") {
|
3229
3230
|
this.BASE_URL = "https://dev-api.simpo.ai/";
|
3230
|
-
|
3231
|
+
this.ECOMMERCE_URL = "https://dev-ecommerce.simpo.ai/";
|
3232
|
+
}
|
3233
|
+
else if (response == "STAGE") {
|
3234
|
+
this.ECOMMERCE_URL = "https://stage-ecommerce.simpo.ai/";
|
3231
3235
|
this.BASE_URL = "https://state-api.simpo.ai/";
|
3232
|
-
|
3236
|
+
}
|
3237
|
+
else {
|
3233
3238
|
this.BASE_URL = "https://api.simpo.ai/";
|
3239
|
+
this.ECOMMERCE_URL = "https://prod-ecommerce.simpo.ai/";
|
3240
|
+
}
|
3234
3241
|
});
|
3235
3242
|
}
|
3236
3243
|
ngOnDestroy() {
|
@@ -3391,13 +3398,13 @@ class RestService {
|
|
3391
3398
|
}
|
3392
3399
|
// Payment
|
3393
3400
|
createPaymentToken(payload) {
|
3394
|
-
return this.http.post(this.
|
3401
|
+
return this.http.post(this.ECOMMERCE_URL + `payment/order`, payload);
|
3395
3402
|
}
|
3396
3403
|
refundPayment(orderId, payload) {
|
3397
3404
|
return this.http.post(this.BASE_URL + `ecommerce/payment/refund/bank?orderId=${orderId}`, payload);
|
3398
3405
|
}
|
3399
3406
|
checkPaymentStatus(payload) {
|
3400
|
-
return this.http.post(this.
|
3407
|
+
return this.http.post(this.ECOMMERCE_URL + `payment/status`, payload);
|
3401
3408
|
}
|
3402
3409
|
getRecentViewProduct(userId) {
|
3403
3410
|
return this.http.post(this.BASE_URL + `ecommerce/user/recentView?userId=${userId}`, null).pipe(map((response) => response.data?.map((product) => new Product(product))));
|
@@ -3542,6 +3549,7 @@ class StorageServiceService {
|
|
3542
3549
|
this.restService.getUserItems(userDetails.userId, "WISHLIST")
|
3543
3550
|
]);
|
3544
3551
|
request.subscribe((cartResponse) => {
|
3552
|
+
console.log("Cart Response : ", cartResponse);
|
3545
3553
|
const userCart = cartResponse?.[0].data;
|
3546
3554
|
if (userCart.cartId)
|
3547
3555
|
localStorage.setItem("cartId", userCart.cartId);
|