@clickview/lite 0.10.0-rc.2 → 0.10.0-rc.3
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/dist/bundles.json +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{7706-0e31bd089c-lite.chunk.js → 7706-004e8ca32b-lite.chunk.js} +1 -1
- package/dist/scripts/{bundle-e588b3acbf.min.js → bundle-a154304ee3.min.js} +2 -2
- package/package.json +2 -2
- /package/dist/scripts/{bundle-e588b3acbf.min.js.LICENSE.txt → bundle-a154304ee3.min.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7706],{17923:(e,c,a)=>{a.d(c,{q:()=>i});var t=a(97395),n=a(99940),
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7706],{17923:(e,c,a)=>{a.d(c,{q:()=>i});var t=a(97395),n=a(99940),l=a(71995),o={namespace:"localcache",idAttribute:"deviceId"},i={devices:function(){return{url:"/api/localcache/v1/customers/devices",key:"localcache:devices",normalizeOptions:o}},device:function(e){return{url:"/api/localcache/v1/devices/".concat(e),key:"localcache:devices:".concat(e),normalizeOptions:o}},updateDevice:function(e,c,a,t,l){return{url:"/api/localcache/v1/devices/".concat(e),key:"localcache:devices:update",type:n.k.PUT,data:c,normalizeOptions:o,success:a,error:t,always:l}},deleteDevice:function(e,c,a,t){return{url:"/api/localcache/v1/devices/".concat(e),key:"localcache:devices:delete",type:n.k.DELETE,normalizeOptions:o,success:c,error:a,always:t}},updates:function(e){return{url:"/api/localcache/v1/devices/".concat(e,"/update"),key:"localcache:devices:".concat(e,":updates"),normalize:!1}},deviceUpdate:function(e){return{url:"/api/localcache/v1/devices/".concat(e,"/deviceupdate"),key:"localcache:devices:".concat(e,":deviceupdate"),normalize:!1}},update:function(e,c){return{url:"/api/localcache/v1/devices/".concat(e,"/update"),key:"localcache:update",type:n.k.POST,data:{versionString:c},normalize:!1,invalidationKeys:["localcache"]}},stats:function(e){var c={bytesDownloaded:"httpprovider.bytes_downloaded",bytesRead:"store.bytes_read",storageFree:"store.storage_free",storageUsed:"store.storage_used",count:"store.objects"},a={key:Object.values(c)};return{url:t._.urlBuilder("/api/localcache/v1/devices/".concat(e,"/stats/latest"),a),key:"localcache:devices:".concat(e,":stats"),normalize:!1,formatData:function(e){if(!e)return{};var a=e.reduce((function(e,c){return e[c.key]=c.value,e}),{});return Object.keys(c).reduce((function(e,t){return e[t]=a[c[t]],e}),{})}}},channels:function(e){return{url:"/api/localcache/v1/devices/".concat(e,"/channels"),key:"localcache:devices:".concat(e,":channels"),normalize:!1}},config:function(e){return{url:"/api/localcache/v1/configs/devices/".concat(e),key:"localcache:devices:".concat(e,":config"),normalize:!1,formatData:function(e){return null==e?void 0:e.configuration}}},updateConfig:function(e,c,a,t){var l={downloadQuality:c.downloadQuality,autoUpdate:c.autoUpdate,downloadTime:{start:c.downloadStartTime,end:c.downloadEndTime}};return{url:"/api/localcache/v1/configs/devices/".concat(e),key:"localcache:update:config",type:n.k.PUT,data:l,invalidationKeys:["localcache:devices:".concat(e,":config")],normalize:!1,success:a,error:t}},address:function(e){return{url:"/api/localcache/v1/devices/".concat(e,"/address"),key:"localcache:devices:".concat(e,":address"),normalize:!1}},ping:function(e,c){return{url:"".concat(c,"/ping"),key:"localcache:devices:".concat(e,":ping"),normalize:!1,expiryTime:l.f.SHORT}}}},87706:(e,c,a)=>{a.r(c),a.d(c,{DeleteLocalCacheView:()=>k});var t=a(1024),n=a.n(t),l=a(81886),o=a(20354),i=a(23481),r=a(9111),s=a(83345),d=a(13876),u=a(69883),v=a(83914),p=a(58130),m=a(97291),h=a(14070),f=a(17923),y="settings.deleteLocalCache",g=i.T.encloseNamespace(y);function k(e){var c=o.a.useGetFetch(),a=(0,u.Z)();function t(){a.success(g("success")),l.Q.AppLinkHelper.trigger({application:m.O.SETTINGS,action:h.e.Settings.LOCAL_CACHES})}var i=!!o.a.useBasicFetch(f.q.device(e.deviceId)).data;return n().createElement(r.G,{title:g("title"),closePopup:e.closePopup,showLoadingSpinner:!i},n().createElement("div",{className:"alert alert-warning",role:"alert"},n().createElement(v.x,{svgName:p.vn.Warning,className:"align-middle mr-2 svg-container"}),n().createElement("span",{className:"align-middle"},n().createElement(s.x,{namespace:y,phrase:"warning"}))),n().createElement("p",null,n().createElement(s.x,{namespace:y,phrase:"message"})),n().createElement(d.u,null,n().createElement(d.u.Cancel,{onClick:e.closePopup}),n().createElement(d.u.Submit,{variant:"danger",text:g("title"),onClick:function(){var n=f.q.deleteDevice(e.deviceId,t,(function(){return a.error(g("error"))}),e.closePopup);c(n)}})))}}}]);
|