marketplacepos 5.46.4 → 5.46.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +43 -43
- package/Marketplace/{chunk-PQQSREEC.js → chunk-3PPLPXAX.js} +2 -2
- package/Marketplace/chunk-4BWA3J6V.js +1 -0
- package/Marketplace/chunk-5EDCBXCE.js +1 -0
- package/Marketplace/{chunk-HS64MICX.js → chunk-5X2M3HM4.js} +1 -1
- package/Marketplace/{chunk-UWC2EVFY.js → chunk-5ZR5WIHG.js} +1 -1
- package/Marketplace/{chunk-KVOROMP7.js → chunk-6NZJ2XKE.js} +1 -1
- package/Marketplace/{chunk-UBA54WUZ.js → chunk-6RCPPNMX.js} +1 -1
- package/Marketplace/{chunk-7ZMHGW2W.js → chunk-6WE2RKUX.js} +1 -1
- package/Marketplace/chunk-6YBD22SK.js +1 -0
- package/Marketplace/{chunk-5BCJEYHC.js → chunk-74AYYW2T.js} +1 -1
- package/Marketplace/{chunk-NTWV33QC.js → chunk-74WQHBVN.js} +1 -1
- package/Marketplace/{chunk-5RAWBW2Q.js → chunk-774TVUXT.js} +1 -1
- package/Marketplace/{chunk-NLJHQ4MQ.js → chunk-7ES3PHES.js} +1 -1
- package/Marketplace/{chunk-F4X5RWKY.js → chunk-7IOOG3TG.js} +8 -8
- package/Marketplace/{chunk-5KMDUD2M.js → chunk-7QKEL4DD.js} +1 -1
- package/Marketplace/{chunk-SWV5QK47.js → chunk-7TQWJCUW.js} +1 -1
- package/Marketplace/{chunk-32YMOC74.js → chunk-AY25KXUA.js} +1 -1
- package/Marketplace/chunk-BVV5R6HN.js +1 -0
- package/Marketplace/{chunk-WIMLQM6B.js → chunk-CAK6MZUW.js} +2 -2
- package/Marketplace/chunk-CO5XZENC.js +1 -0
- package/Marketplace/{chunk-34DHFHCG.js → chunk-DRVWJPA2.js} +1 -1
- package/Marketplace/{chunk-GQXYHXWJ.js → chunk-DXPLB6OB.js} +1 -1
- package/Marketplace/chunk-EMJTQYVO.js +1 -0
- package/Marketplace/{chunk-ZKROHCYD.js → chunk-FYB62QQV.js} +1 -1
- package/Marketplace/{chunk-FF4PEO2O.js → chunk-GVXBDVLX.js} +1 -1
- package/Marketplace/chunk-HVA57ZPZ.js +1 -0
- package/Marketplace/{chunk-TEJITT3W.js → chunk-HZPILY4V.js} +1 -1
- package/Marketplace/chunk-JX63Y4CW.js +1 -0
- package/Marketplace/{chunk-W4MTON2T.js → chunk-KEW73FTY.js} +1 -1
- package/Marketplace/{chunk-NABJFAKJ.js → chunk-KUYNX5QT.js} +1 -1
- package/Marketplace/{chunk-XSJBP4EN.js → chunk-L74PANZ5.js} +1 -1
- package/Marketplace/{chunk-QTTNQJAK.js → chunk-LEM7ESKJ.js} +1 -1
- package/Marketplace/{chunk-SBLG2UP7.js → chunk-LRBJ5RU5.js} +1 -1
- package/Marketplace/{chunk-2GS6DJ33.js → chunk-LS2KMKMD.js} +1 -1
- package/Marketplace/chunk-LSWILW54.js +1 -0
- package/Marketplace/chunk-MACYDQHW.js +1 -0
- package/Marketplace/{chunk-T4OUIM2Z.js → chunk-OFEZTCJA.js} +1 -1
- package/Marketplace/{chunk-FY73EXB5.js → chunk-OG4QM5FO.js} +1 -1
- package/Marketplace/{chunk-BVPWV5YO.js → chunk-OLVWSY6L.js} +1 -1
- package/Marketplace/{chunk-2O4IEGGR.js → chunk-PGP3WHIS.js} +3 -3
- package/Marketplace/{chunk-AR6PLQ6X.js → chunk-QUEDQBZU.js} +1 -1
- package/Marketplace/{chunk-B3HL4DNT.js → chunk-R5WARQUS.js} +1 -1
- package/Marketplace/chunk-RNZC6DAM.js +1 -0
- package/Marketplace/{chunk-GCOS7VK3.js → chunk-RT3SMV6M.js} +10 -10
- package/Marketplace/{chunk-BIHR6KWH.js → chunk-RUXJCVKX.js} +1 -1
- package/Marketplace/{chunk-NRUVGW2I.js → chunk-SXFLJBXI.js} +1 -1
- package/Marketplace/{chunk-HGGI2V4H.js → chunk-U23D2EPE.js} +1 -1
- package/Marketplace/{chunk-CJ4F7QUO.js → chunk-UGYIOLBR.js} +1 -1
- package/Marketplace/{chunk-PNF6K247.js → chunk-UQFILVPA.js} +2 -2
- package/Marketplace/{chunk-BG4CT2T7.js → chunk-UQL42ODX.js} +1 -1
- package/Marketplace/{chunk-EEZKQOJW.js → chunk-VEYUDPOA.js} +1 -1
- package/Marketplace/{chunk-6DYFCRDG.js → chunk-VIXNFSMT.js} +1 -1
- package/Marketplace/{chunk-YJKAX7P2.js → chunk-VQIT62HE.js} +1 -1
- package/Marketplace/{chunk-ZMF3NFLA.js → chunk-WBCI5HV5.js} +1 -1
- package/Marketplace/{chunk-5G2U27IM.js → chunk-WHV5AYGI.js} +1 -1
- package/Marketplace/{chunk-6K6XBSWF.js → chunk-WREH3C74.js} +2 -2
- package/Marketplace/{chunk-KEQ7PUNM.js → chunk-XANN3R5J.js} +1 -1
- package/Marketplace/{chunk-P35PCOWA.js → chunk-XHBBUUIF.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-QTIXFWWZ.js → main-KIV2XNXR.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-4L5TB6FG.js +0 -1
- package/Marketplace/chunk-5JBIRETU.js +0 -1
- package/Marketplace/chunk-A44LN77B.js +0 -1
- package/Marketplace/chunk-CZBE6NFO.js +0 -1
- package/Marketplace/chunk-DLZRRLED.js +0 -1
- package/Marketplace/chunk-DZJWZ52D.js +0 -1
- package/Marketplace/chunk-HGDEIMTN.js +0 -1
- package/Marketplace/chunk-LRKVYKNL.js +0 -1
- package/Marketplace/chunk-QNX7E4P2.js +0 -1
- package/Marketplace/chunk-RI627B2Z.js +0 -1
- package/Marketplace/chunk-TFM5EMU4.js +0 -1
- package/Marketplace/chunk-TYSVSEYQ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as u}from"./chunk-
|
|
1
|
+
import{i as u}from"./chunk-OLVWSY6L.js";import{b as l}from"./chunk-WN5DZGA4.js";import{a as p}from"./chunk-ERXVXBTU.js";import{G as c}from"./chunk-FXQKRJWU.js";import{ja as a,oa as t}from"./chunk-OJMQBH6T.js";var S=(()=>{class e{constructor(o,i,r,s){this.toastr=o,this.authService=i,this.router=r,this.permissionService=s}canActivate(o,i){let r=JSON.parse(window.localStorage.getItem("user")),s=new Date,n=!1;if(r!=null){let h=new Date(r?.Token?.expiredAt);s<h?n=!0:(this.authService.logout(),this.onTokenExpired())}else this.router.navigate([""]),this.onTokenExpired();return n}onTokenExpired(){this.toastr.error("Your session has expired. Please login again.","Session Expired")}static{this.\u0275fac=function(i){return new(i||e)(t(l),t(u),t(c),t(p))}}static{this.\u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{S as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as I,b as P}from"./chunk-
|
|
1
|
+
import{a as I,b as P}from"./chunk-5ZR5WIHG.js";import{i as g}from"./chunk-OLVWSY6L.js";import{a as S}from"./chunk-CGOB6Y3X.js";import{b as C,e as m}from"./chunk-WN5DZGA4.js";import{c as o}from"./chunk-RXQX7567.js";import{J as h,ea as l,ja as f,oa as u,pa as d,r as c}from"./chunk-OJMQBH6T.js";var V=(()=>{class i{constructor(t,e,n){this.httpService=t,this.toastrService=e,this.notificationService=n,this.authService=d(g),this.scanChannelToastr=d(I),this.channelOptions=this.authService.getChannels()}loader(t=o.GuidEMpty){return this.httpService.post("/api/product/Load",{ID:t})}LoadInPOS(t=o.GuidEMpty){return this.httpService.post("/api/product/LoadInPOS",{ID:t})}filterChannelByTypeId(t,e){return t.filter(n=>e.findIndex(a=>n.TypeID==a)!==-1)}getProductStatistic(){return this.httpService.post("/api/product/ProductStatistic",{})}getTotalProductLive(t){let e={ID:t};return this.httpService.post("/api/product/TotalProductLive",e)}clearCacheChannel(t){let e={ID:t};return this.httpService.post("/api/Channel/ClearCacheChannel",e)}detachProduct(t){return this.httpService.post("/api/product/Detach",t)}uploadSingleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleChannel",n).pipe(l(a=>{this.showToastrSuccessUploadSingle(a,t[0])}),h(a=>(this.showToastErrorUploadSingle(a,t[0]),c(()=>new Error(a)))))}uploadMultipleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleProductAndMultipleChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a.Message)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}uploadNotInChannel(t,e){let n={Products:t,Channel:e};return this.httpService.post("/api/product/UploadProductNotInChannelToChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}scanSingle(t,e){let n={ID:t,SKU:e};return this.httpService.post("/api/product/ScanSingle",n)}scanNotInChannel(t){let e={ID:t};return this.httpService.post("/api/product/ScanNotinChannel",e)}findAllSoldInChannel(t){return this.httpService.post("/api/product/GetSoldInChannel",t)}scanAll(t,e,n,a=!1){let s={ID:t,ScanFull:e,UpdatedProduct:n,Async:a};return this.httpService.post("/api/product/ScanOptimized",s)}scanAsyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!0};return this.httpService.post(S.ScanAsyncProductV2,a).pipe(l(s=>{this.notificationService.subscribeToJobGroup(s.JobID)}))}scanSyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!1};return this.httpService.post(S.ScanSyncProductV2,a)}scanProductV2(t,e,n,a=!1){let s=this.findChannelById(t,this.channelOptions);return a?this.scanAsyncProductV2(t,e,n).pipe(l(r=>{this.scanChannelToastr.showToast({text:"Scan Job Started",detail:`JobID: ${r.JobID}`,severity:"info",data:{channelName:s.Name,channelTypeId:s.TypeID,jobId:r.JobID}})})):this.scanSyncProductV2(t,e,n).pipe(l(r=>{this.successToastrScanAllProduct(r,s,!n)}))}scanCompareToPos(t){return this.httpService.post("/api/product/CompareMarketplaceToPOS",t)}getVariantCodesProduct(t){return(t.Variants||[]).map(a=>a.Code)}downloadMultipleProduct(t){let e=t.map(n=>({ChannelItemID:n.ChannelItemID,ChannelID:n.ChannelID}));return this.httpService.post("/api/product/DownloadMultipleProductFromChannel",e).pipe(l(n=>{this.toastrService.success(`${n.Count} products downloaded to POS`,"Download Complete")}))}downloadProduct(t){let e={ChannelItemID:t.ChannelItemID,ChannelID:t.ChannelID};return this.httpService.post("/api/product/DownloadProductFromChannel",e).pipe(l(()=>{this.toastrService.success("Product successfully downloaded to POS","Download Complete")}))}getVariantCodesProducts(t=[]){let e=[];return t.forEach(n=>{n.Variants.forEach(a=>{e=[...e,a.Code]})}),e}filterUnselectedChannel(t,e){let n=[];t.forEach(s=>{n=[...n,...s.Channel]});let a;if(!n||n.length==0)a=e;else{let s=[];a=e.filter(r=>(s=n.filter(p=>p.ChannelID==r.ID),s.length!==t.length))}return a}findChannelById(t,e){return e.find(n=>n.ID==t)}sortChannel(t=[]){return t.sort((e,n)=>e.TypeID<n.TypeID?1:e.TypeID===n.TypeID?0:-1)}hasSelection(t=[]){return this.selectedProduct(t).length>0}selectedProduct(t=[]){return t.filter(e=>e.selected)}hasSelectionVariant(t){return this.selectedVariantProduct(t).length>0}selectedVariantProduct(t){let e=[];return t.forEach(n=>{e=[...e,...n.Variants!=null?n.Variants.filter(a=>a.selected):""]}),e}getChannelProduct(t){let e=t.Variants||[],n=[];for(let a of e)if(a.Channel!=null)for(let s of a.Channel)n.filter(r=>r.ChannelID==s.ChannelID).length==0&&n.push(s);return this.sortChannel(n)}successToastrScanAllProduct(t,e,n){let a=t.InChannel?t?.InChannel?.Product:0,s=t?.NotInPOS?.Product?t?.NotInPOS?.Product:0,r=o.IsNotEmpty(t.LastUpdate)?o.convertToReadableDate(t.LastUpdate):null;n?this.toastrService.success(`
|
|
2
2
|
${s+a} product updates in ${e.Name} </br>
|
|
3
3
|
(${a} In Channel + ${s} Not In Pos)
|
|
4
4
|
${o.IsNotEmpty(r)?"since "+r:""}
|