simpo-component-library 2.0.1 → 2.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/services/rest.service.mjs +3 -3
- package/esm2022/lib/services/storage.service.mjs +39 -1
- package/fesm2022/simpo-component-library.mjs +40 -2
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/services/storage.service.d.ts +1 -0
- package/package.json +1 -1
- package/simpo-component-library-2.0.13.tgz +0 -0
- package/simpo-component-library-2.0.1.tgz +0 -0
@@ -9,8 +9,8 @@ export class RestService {
|
|
9
9
|
constructor(http, eventService) {
|
10
10
|
this.http = http;
|
11
11
|
this.eventService = eventService;
|
12
|
-
this.BASE_URL = "https://api.simpo.ai/";
|
13
|
-
this.ECOMMERCE_URL = "https://
|
12
|
+
this.BASE_URL = "https://dev-api.simpo.ai/";
|
13
|
+
this.ECOMMERCE_URL = "https://dev-ecommerce.simpo.ai/";
|
14
14
|
this.environmentTypeSubscriber = null;
|
15
15
|
this.environmentTypeSubscriber = this.eventService.environmentType.subscribe((response) => {
|
16
16
|
if (response == "DEV") {
|
@@ -241,4 +241,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
|
|
241
241
|
providedIn: 'root',
|
242
242
|
}]
|
243
243
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.EventsService }] });
|
244
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9yZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsR0FBRyxFQUF3QyxNQUFNLE1BQU0sQ0F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cm0vYXBwb2ludG1lbnQvY29uZmlnL2xvY2F0aW9uP2J1c2luZXNzSWQ9JHtidXNpbmVzc0lkfSZzaXplPSR7c2l6ZX0mcGFnZT0ke3BhZ2V9YFxyXG4gICAgICAgIClcclxuICAgIH1cclxuXHJcbiAgICBnZXRBbGxUaW1lU2xvdHMobG9jYXRpb25JZDphbnksZGF0ZTpEYXRlKXtcclxuICAgICAgICByZXR1cm4gdGhpcy5odHRwLmdldChcclxuICAgICAgICAgICAgdGhpcy5CQVNFX1VSTCArIGBjcm0vYXBwb2ludG1lbnQvY29uZmlnL3RpbWVzbG90cz9sb2NhdGlvbklkPSR7bG9jYXRpb25JZH0mZGF0ZT0ke2RhdGV9YFxyXG4gICAgICAgIClcclxuICAgIH1cclxuXHJcbiAgICBnZXRCbG9nQnlCdXNpbmVzc0lkKCkge1xyXG4gICAgICBjb25zdCBidXNpbmVzc0lkOiBzdHJpbmcgPSBsb2NhbFN0b3JhZ2UuZ2V0SXRlbShcImJJZFwiKSA/PyBsb2NhbFN0b3JhZ2UuZ2V0SXRlbShcImJ1c2luZXNzSWRcIikgPz8gXCJcIjtcclxuICAgICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQoXHJcbiAgICAgICAgdGhpcy5CQVNFX1VSTCArIGBidXNpbmVzcy9ibG9nL2J5L2J1c2luZXNzP2J1c2luZXNzSWQ9JHtidXNpbmVzc0lkfWBcclxuICAgICAgKVxyXG4gICAgfVxyXG59XHJcbiJdfQ==
|
@@ -100,6 +100,7 @@ export class StorageServiceService {
|
|
100
100
|
if (this.router.url.includes('cart'))
|
101
101
|
return;
|
102
102
|
const userDetails = this.getUser();
|
103
|
+
this.getCartProduct(userDetails?.userId);
|
103
104
|
if (!!userDetails) {
|
104
105
|
this.eventService.showLoadingScreen.emit(true);
|
105
106
|
const request = forkJoin([
|
@@ -159,6 +160,43 @@ export class StorageServiceService {
|
|
159
160
|
const transaction = this.database.transaction(this.cartCollectionName, "readwrite");
|
160
161
|
return await transaction.objectStore(this.cartCollectionName).getAll();
|
161
162
|
}
|
163
|
+
getCartProduct(userId) {
|
164
|
+
const request = forkJoin([
|
165
|
+
this.getUserCart(),
|
166
|
+
this.restService.getUserItems(userId, "CART")
|
167
|
+
]);
|
168
|
+
request.subscribe((response) => {
|
169
|
+
const serverDBProduct = response?.[1].data?.[0]?.orderedItems ?? [];
|
170
|
+
response[0].onsuccess = (cartData) => {
|
171
|
+
const indexDBProduct = cartData.target.result;
|
172
|
+
console.log("cart product is", serverDBProduct, indexDBProduct);
|
173
|
+
};
|
174
|
+
});
|
175
|
+
// this.getUserCart().then((cartResponse: any) => {
|
176
|
+
// cartResponse.onsuccess = (cartData: any) => {
|
177
|
+
// const indexDBProduct = cartData.target.result as unknown as OrderedItems[];
|
178
|
+
// if(userId) {
|
179
|
+
// this.restService.getUserItems(userId, "CART").subscribe((response: any) => {
|
180
|
+
// const serverDBProduct = response?.data?.[0]?.orderedItems ?? [];
|
181
|
+
// for(let localProuct of indexDBProduct) {
|
182
|
+
// let productFound = false;
|
183
|
+
// for(let serverProduct of serverDBProduct) {
|
184
|
+
// if(serverProduct.varientId === localProuct.varientId) {
|
185
|
+
// serverProduct.quantity += localProuct.varientId;
|
186
|
+
// productFound = true;
|
187
|
+
// }
|
188
|
+
// }
|
189
|
+
// if(!productFound) {
|
190
|
+
// serverDBProduct.push(localProuct);
|
191
|
+
// }
|
192
|
+
// }
|
193
|
+
// return serverDBProduct;
|
194
|
+
// })
|
195
|
+
// }
|
196
|
+
// return indexDBProduct;
|
197
|
+
// }
|
198
|
+
// })
|
199
|
+
}
|
162
200
|
addProductToCart(product) {
|
163
201
|
const transaction = this.database.transaction(this.cartCollectionName, "readwrite");
|
164
202
|
const response = transaction.objectStore(this.cartCollectionName).get(product.varientId);
|
@@ -249,4 +287,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
|
|
249
287
|
providedIn: 'root'
|
250
288
|
}]
|
251
289
|
}], ctorParameters: () => [{ type: i1.EventsService }, { type: i2.CookieService }, { type: i3.RestService }, { type: i4.Router }] });
|
252
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmFnZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9zdG9yYWdlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUtuRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRWhDLE9BQU8sRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLE1BQU0sa0NBQWtDLENBQUM7Ozs7OztBQU1sRSxNQUFNLE9BQU8scUJBQXFCO0lBRWhDLFlBQ21CLFlBQTJCLEVBQzNCLGFBQTRCLEVBQzVCLFdBQXdCLEVBQ2pDLE1BQWU7UUFITixpQkFBWSxHQUFaLFlBQVksQ0FBZTtRQUMzQixrQkFBYSxHQUFiLGFBQWEsQ0FBZTtRQUM1QixnQkFBVyxHQUFYLFdBQVcsQ0FBYTtRQUNqQyxXQUFNLEdBQU4sTUFBTSxDQUFTO1FBV2pCLG1CQUFjLEdBQVcsQ0FBQyxDQUFDO1FBUW5DLGlCQUFZLEdBQVcsTUFBTSxDQUFDO1FBQzlCLG9CQUFlLEdBQVcsQ0FBQyxDQUFDO1FBQzVCLHVCQUFrQixHQUFXLFdBQVcsQ0FBQztRQUN6Qyw0QkFBdUIsR0FBVyxnQkFBZ0IsQ0FBQztRQUNuRCx1QkFBa0IsR0FBVyxNQUFNLENBQUM7UUFHcEMsc0JBQWlCLEdBQTBCLElBQUksQ0FBQztRQUNoRCwyQkFBc0IsR0FBMEIsSUFBSSxDQUFDO1FBQ3JELH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nRhcmdldC5yZXN1bHQpIHtcclxuICAvLyAgICAgICAgICAgcmVzb2x2ZShldmVudC5yZXN1bHQpO1xyXG4gIC8vICAgICAgICAgfSBlbHNlIHtcclxuICAvLyAgICAgICAgICAgcmVzb2x2ZSgnU1VDQ0VTUycpO1xyXG4gIC8vICAgICAgICAgfVxyXG4gIC8vICAgICAgIH07XHJcbiAgLy8gICAgICAgcmVxdWVzdC5vbmVycm9yID0gYXdhaXQgZnVuY3Rpb24gKF9ldmVudCkge1xyXG4gIC8vICAgICAgICAgcmVqZWN0KFwiTm8gZGF0YVwiKTtcclxuICAvLyAgICAgICB9XHJcbiAgLy8gICAgIH1cclxuICAvLyAgIH0pO1xyXG4gIC8vIH1cclxufVxyXG4iXX0=
|
@@ -3349,8 +3349,8 @@ class RestService {
|
|
3349
3349
|
constructor(http, eventService) {
|
3350
3350
|
this.http = http;
|
3351
3351
|
this.eventService = eventService;
|
3352
|
-
this.BASE_URL = "https://api.simpo.ai/";
|
3353
|
-
this.ECOMMERCE_URL = "https://
|
3352
|
+
this.BASE_URL = "https://dev-api.simpo.ai/";
|
3353
|
+
this.ECOMMERCE_URL = "https://dev-ecommerce.simpo.ai/";
|
3354
3354
|
this.environmentTypeSubscriber = null;
|
3355
3355
|
this.environmentTypeSubscriber = this.eventService.environmentType.subscribe((response) => {
|
3356
3356
|
if (response == "DEV") {
|
@@ -3696,6 +3696,7 @@ class StorageServiceService {
|
|
3696
3696
|
if (this.router.url.includes('cart'))
|
3697
3697
|
return;
|
3698
3698
|
const userDetails = this.getUser();
|
3699
|
+
this.getCartProduct(userDetails?.userId);
|
3699
3700
|
if (!!userDetails) {
|
3700
3701
|
this.eventService.showLoadingScreen.emit(true);
|
3701
3702
|
const request = forkJoin([
|
@@ -3755,6 +3756,43 @@ class StorageServiceService {
|
|
3755
3756
|
const transaction = this.database.transaction(this.cartCollectionName, "readwrite");
|
3756
3757
|
return await transaction.objectStore(this.cartCollectionName).getAll();
|
3757
3758
|
}
|
3759
|
+
getCartProduct(userId) {
|
3760
|
+
const request = forkJoin([
|
3761
|
+
this.getUserCart(),
|
3762
|
+
this.restService.getUserItems(userId, "CART")
|
3763
|
+
]);
|
3764
|
+
request.subscribe((response) => {
|
3765
|
+
const serverDBProduct = response?.[1].data?.[0]?.orderedItems ?? [];
|
3766
|
+
response[0].onsuccess = (cartData) => {
|
3767
|
+
const indexDBProduct = cartData.target.result;
|
3768
|
+
console.log("cart product is", serverDBProduct, indexDBProduct);
|
3769
|
+
};
|
3770
|
+
});
|
3771
|
+
// this.getUserCart().then((cartResponse: any) => {
|
3772
|
+
// cartResponse.onsuccess = (cartData: any) => {
|
3773
|
+
// const indexDBProduct = cartData.target.result as unknown as OrderedItems[];
|
3774
|
+
// if(userId) {
|
3775
|
+
// this.restService.getUserItems(userId, "CART").subscribe((response: any) => {
|
3776
|
+
// const serverDBProduct = response?.data?.[0]?.orderedItems ?? [];
|
3777
|
+
// for(let localProuct of indexDBProduct) {
|
3778
|
+
// let productFound = false;
|
3779
|
+
// for(let serverProduct of serverDBProduct) {
|
3780
|
+
// if(serverProduct.varientId === localProuct.varientId) {
|
3781
|
+
// serverProduct.quantity += localProuct.varientId;
|
3782
|
+
// productFound = true;
|
3783
|
+
// }
|
3784
|
+
// }
|
3785
|
+
// if(!productFound) {
|
3786
|
+
// serverDBProduct.push(localProuct);
|
3787
|
+
// }
|
3788
|
+
// }
|
3789
|
+
// return serverDBProduct;
|
3790
|
+
// })
|
3791
|
+
// }
|
3792
|
+
// return indexDBProduct;
|
3793
|
+
// }
|
3794
|
+
// })
|
3795
|
+
}
|
3758
3796
|
addProductToCart(product) {
|
3759
3797
|
const transaction = this.database.transaction(this.cartCollectionName, "readwrite");
|
3760
3798
|
const response = transaction.objectStore(this.cartCollectionName).get(product.varientId);
|