@iotize/tap
Version:
IoTize Device client for Javascript
16 lines • 57.5 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@iotize/tap/client/api"),require("@iotize/tap/service/core"),require("@iotize/tap/client/impl"),require("@iotize/tap")):"function"==typeof define&&define.amd?define("@iotize/tap/service/impl/interface",["exports","@iotize/tap/client/api","@iotize/tap/service/core","@iotize/tap/client/impl","@iotize/tap"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).iotize=e.iotize||{},e.iotize.tap=e.iotize.tap||{},e.iotize.tap.service=e.iotize.tap.service||{},e.iotize.tap.service.impl=e.iotize.tap.service.impl||{},e.iotize.tap.service.impl.interface={}),e.iotize.tap.client.api,e.iotize.tap.service.core,e.iotize.tap.client.impl,e.iotize.tap)}(this,(function(e,t,r,i,o){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function a(e,t){var r,i,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}}Object.create;function s(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,o,n=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function u(e,t,r){if(r||2===arguments.length)for(var i,o=0,n=t.length;o<n;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var c,l,d,h,f,y,m,g;Object.create;e.NfcPairingMode=void 0,(c=e.NfcPairingMode||(e.NfcPairingMode={}))[c.NO=0]="NO",c[c.MANDATORY=1]="MANDATORY",c[c.MANDATORY_FOR_LOGIN=2]="MANDATORY_FOR_LOGIN",e.WirelessPairingOptions=void 0,function(e){e[e.NO=0]="NO",e[e.MANDATORY=1]="MANDATORY",e[e.MANDATORY_FOR_LOGIN=2]="MANDATORY_FOR_LOGIN"}((l=e.WirelessPairingOptions||(e.WirelessPairingOptions={})).NfcPairingMode||(l.NfcPairingMode={})),e.LowPowerOptimizationLevel=void 0,(d=e.LowPowerOptimizationLevel||(e.LowPowerOptimizationLevel={}))[d.NO=0]="NO",d[d.LOW=1]="LOW",d[d.STANDBY=2]="STANDBY",d[d.SHUTDOWN=3]="SHUTDOWN",e.CpuFrequencySpeed=void 0,(h=e.CpuFrequencySpeed||(e.CpuFrequencySpeed={}))[h.NORMAL=0]="NORMAL",h[h.SLOW=1]="SLOW",h[h.FAST=2]="FAST",e.ServiceCode=void 0,(f=e.ServiceCode||(e.ServiceCode={}))[f.DATALOG=1]="DATALOG",f[f.JVM=2]="JVM",e.NfcConnectionPriority=void 0,(y=e.NfcConnectionPriority||(e.NfcConnectionPriority={}))[y.NFC_PRIORITY=0]="NFC_PRIORITY",y[y.NFC_NON_PRIORITY=1]="NFC_NON_PRIORITY",e.MultiRequestFrame=void 0,g=e.MultiRequestFrame||(e.MultiRequestFrame={}),(m=g.ExpectedResponseStatus||(g.ExpectedResponseStatus={}))[m.SUCCESS=127]="SUCCESS",m[m.ANYTHING=255]="ANYTHING",i.TapStreamReader.prototype.readLoginCredential=function(){var e={};return e.username=this.readString(16),e.password=this.readString(16),e},i.TapStreamReader.prototype.readLoginCredentialHashed=function(){var e={};return e.username=this.readString(16),e.password=this.readBytes(16),e},i.TapStreamReader.prototype.readSecurityOptions=function(){var e={};return this.forwardBits(8),this.forwardBits(3),e.scramActivated=this.readBoolean(1),e.hashPassword=this.readBoolean(1),e.disableHardwareFactoryReset=this.readBoolean(1),e.disableLoginWithUID=this.readBoolean(1),e.disableResourceFactoryReset=this.readBoolean(1),e},i.TapStreamReader.prototype.readWirelessPairingOptions=function(){var e={};return this.forwardBits(5),e.blePairing=this.readBoolean(1),e.nfcPairingMode=this.readBits(2),e},i.TapStreamReader.prototype.readCpuFrequencyOptions=function(){var e={};return this.forwardBits(6),e.speed=this.readBits(2),e},i.TapStreamReader.prototype.readPowerOptimizationOptions=function(){var e={};return this.forwardBits(4),e.cpuFrequencySpeed=this.readBits(2),e.lowPowerOptimizationLevel=this.readBits(2),e},i.TapStreamReader.prototype.readNetworkOptions=function(){var e={};return this.forwardBits(3),e.radioMixEnabled=this.readBoolean(1),e.lteEnabled=this.readBoolean(1),e.ethernetEnabled=this.readBoolean(1),e.wifiDisabled=this.readBoolean(1),e.wifiNetworkMode=this.readBoolean(1),e},i.TapStreamReader.prototype.readProtocolMaxFrameSize=function(){var e={};return e.request=this.readUnsigned(2),e.response=this.readUnsigned(2),e},i.TapStreamReader.prototype.readMultiRequestFrame=function(){for(var e={requests:[]};!this.isEof();)e.requests.push(this.readMultiRequestFrameRequestItem());return e},i.TapStreamReader.prototype.readMultiRequestFrameRequestItem=function(){var e={};return e.requestLen=this.readUnsigned(2),e.request=this.subStream(e.requestLen).readTapRequestFrame(),e.expectedResponseStatus=this.readUnsigned(1),e},i.TapStreamReader.prototype.readMultiResponseFrame=function(){for(var e={responses:[]};!this.isEof();)e.responses.push(this.readMultiResponseFrameResponseItem());return e},i.TapStreamReader.prototype.readMultiResponseFrameResponseItem=function(){var e={};return e.responseLen=this.readUnsigned(2),e.response=this.subStream(e.responseLen).readTapResponseFrame(),e},i.TapStreamWriter.prototype.writeLoginCredential=function(e){return this.writeString(e.username,16),this.writeString(e.password,16),this},i.TapStreamWriter.prototype.writeLoginCredentialHashed=function(e){return this.writeString(e.username,16),this.writeBytes(e.password,16),this},i.TapStreamWriter.prototype.writeSecurityOptions=function(e){return this.forwardBits(8),this.forwardBits(3),this.writeBoolean(e.scramActivated,1),this.writeBoolean(e.hashPassword,1),this.writeBoolean(e.disableHardwareFactoryReset,1),this.writeBoolean(e.disableLoginWithUID,1),this.writeBoolean(e.disableResourceFactoryReset,1),this},i.TapStreamWriter.prototype.writeWirelessPairingOptions=function(t){return this.forwardBits(5),this.writeBoolean(t.blePairing,1),this.writeBitsInt(i.enumKeyOrValueToNumber(t.nfcPairingMode,e.WirelessPairingOptions.NfcPairingMode),2),this},i.TapStreamWriter.prototype.writeCpuFrequencyOptions=function(t){return this.forwardBits(6),this.writeBitsInt(i.enumKeyOrValueToNumber(t.speed,e.CpuFrequencySpeed),2),this},i.TapStreamWriter.prototype.writePowerOptimizationOptions=function(t){return this.forwardBits(4),this.writeBitsInt(i.enumKeyOrValueToNumber(t.cpuFrequencySpeed,e.CpuFrequencySpeed),2),this.writeBitsInt(i.enumKeyOrValueToNumber(t.lowPowerOptimizationLevel,e.LowPowerOptimizationLevel),2),this},i.TapStreamWriter.prototype.writeNetworkOptions=function(e){return this.forwardBits(3),this.writeBoolean(void 0!==e.radioMixEnabled?e.radioMixEnabled:0,1),this.writeBoolean(void 0!==e.lteEnabled?e.lteEnabled:0,1),this.writeBoolean(void 0!==e.ethernetEnabled?e.ethernetEnabled:0,1),this.writeBoolean(void 0!==e.wifiDisabled?e.wifiDisabled:0,1),this.writeBoolean(void 0!==e.wifiNetworkMode?e.wifiNetworkMode:0,1),this},i.TapStreamWriter.prototype.writeProtocolMaxFrameSize=function(e){return this.writeUnsigned(e.request,2),this.writeUnsigned(e.response,2),this},i.TapStreamWriter.prototype.writeMultiRequestFrame=function(e){var t,r;try{for(var i=s(e.requests),o=i.next();!o.done;o=i.next()){var n=o.value;this.writeMultiRequestFrameRequestItem(n)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},i.TapStreamWriter.prototype.writeMultiRequestFrameRequestItem=function(e){return this.writeUnsigned(e.requestLen,2),this.writeTapRequestFrame(e.request),this.writeUnsigned(e.expectedResponseStatus,1),this},i.TapStreamWriter.prototype.writeMultiResponseFrame=function(e){var t,r;try{for(var i=s(e.responses),o=i.next();!o.done;o=i.next()){var n=o.value;this.writeMultiResponseFrameResponseItem(n)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},i.TapStreamWriter.prototype.writeMultiResponseFrameResponseItem=function(e){return this.writeUnsigned(e.responseLen,2),this.writeTapResponseFrame(e.response),this};var C=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writeLoginCredential(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readLoginCredential()},e}(),T=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writeLoginCredentialHashed(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readLoginCredentialHashed()},e}(),v=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writeSecurityOptions(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readSecurityOptions()},e}(),R=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writeWirelessPairingOptions(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readWirelessPairingOptions()},e}(),A=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writeCpuFrequencyOptions(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readCpuFrequencyOptions()},e}(),b=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writePowerOptimizationOptions(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readPowerOptimizationOptions()},e}(),P=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writeNetworkOptions(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readNetworkOptions()},e}(),O=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writeProtocolMaxFrameSize(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readProtocolMaxFrameSize()},e}(),w=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writeMultiRequestFrame(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readMultiRequestFrame()},e}(),M=function(){function e(){}return e.prototype.encode=function(e,t){return void 0===t&&(t=new i.TapStreamWriter),t.writeMultiResponseFrame(e),t.toBytes},e.prototype.decode=function(e){return(e instanceof i.TapStreamReader?e:i.TapStreamReader.create(e)).readMultiResponseFrame()},e}(),F=new C,S=new T,q=new v,I=r.createEnumConverter(e.NfcPairingMode,1),B=r.createEnumArrayConverter(e.NfcPairingMode,1),x=new R,E=r.createEnumConverter(e.LowPowerOptimizationLevel,1),N=r.createEnumArrayConverter(e.LowPowerOptimizationLevel,1),D=new A,j=r.createEnumConverter(e.CpuFrequencySpeed,1),L=r.createEnumArrayConverter(e.CpuFrequencySpeed,1),U=new b,V=r.createEnumConverter(e.ServiceCode,1),z=r.createEnumArrayConverter(e.ServiceCode,1),k=new P,H=r.createEnumConverter(e.NfcConnectionPriority,1),G=r.createEnumArrayConverter(e.NfcConnectionPriority,1),W=new O,_=new w,K=new M,$=Object.freeze({__proto__:null,loginCredential:F,loginCredentialHashed:S,securityOptions:q,nfcPairingMode:I,nfcPairingModeArray:B,wirelessPairingOptions:x,lowPowerOptimizationLevel:E,lowPowerOptimizationLevelArray:N,cpuFrequencyOptions:D,cpuFrequencySpeed:j,cpuFrequencySpeedArray:L,powerOptimizationOptions:U,serviceCode:V,serviceCodeArray:z,networkOptions:k,nfcConnectionPriority:H,nfcConnectionPriorityArray:G,protocolMaxFrameSize:W,multiRequestFrame:_,multiResponseFrame:K}),Y=Object.assign(Object.assign({},r.converters),$),J={login:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/login",path:"/1024//0",bodyEncoder:Y.loginCredential},loginWithHash:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/login-with-hash",path:"/1024//0",bodyEncoder:Y.loginCredentialHashed},logout:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/logout",path:"/1024//1"},getCurrentProfileId:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/current-profile/id",path:"/1024//2",responseBodyDecoder:Y.uint16},getCurrentHostProtocol:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/current-host-protocol",path:"/1024//3",responseBodyDecoder:Y.hostProtocol},putCurrentHostProtocol:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/current-host-protocol",path:"/1024//3",bodyEncoder:Y.hostProtocol},getUID:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/uid",path:"/1024//5"},loginWithUID:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/uid",path:"/1024//5"},keepAlive:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/keep-alive",path:"/1024//4",responseBodyDecoder:Y.uint32},postKeepAlive:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/keep-alive",path:"/1024//4"},getSecurityOptions:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/security-options",path:"/1024//6",responseBodyDecoder:Y.securityOptions},putSecurityOptions:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/security-options",path:"/1024//6",bodyEncoder:Y.securityOptions},getCurrentGroupId:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/current-group-id",path:"/1024//7",responseBodyDecoder:Y.uint16},getBundleIdSwdDirectAccess:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/bundle-id-swd-direct-access",path:"/1024//100",responseBodyDecoder:Y.uint16},putBundleIdSwdDirectAccess:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/bundle-id-swd-direct-access",path:"/1024//100",bodyEncoder:Y.uint16},getBundleIdSerialAccess:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/bundle-id-serial-access",path:"/1024//101",responseBodyDecoder:Y.uint16},putBundleIdSerialAccess:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/bundle-id-serial-access",path:"/1024//101",bodyEncoder:Y.uint16},getBundleIdModbusDirectAccess:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/bundle-id-modbus-direct-access",path:"/1024//102",responseBodyDecoder:Y.uint16},putBundleIdModbusDirectAccess:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/bundle-id-modbus-direct-access",path:"/1024//102",bodyEncoder:Y.uint16},getBundleIdTapnpassControlAccess:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/bundle-id-tapnpass-control-access",path:"/1024//103",responseBodyDecoder:Y.uint16},putBundleIdTapnpassControlAccess:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/bundle-id-tapnpass-control-access",path:"/1024//103",bodyEncoder:Y.uint16},getBundleIdFirmwareUpdateAccess:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/bundle-id-firmware-update-access",path:"/1024//104",responseBodyDecoder:Y.uint16},putBundleIdFirmwareUpdateAccess:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/bundle-id-firmware-update-access",path:"/1024//104",bodyEncoder:Y.uint16},getBundleIdMqttIdsAccess:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/bundle-id-mqtt-ids-access",path:"/1024//105",responseBodyDecoder:Y.uint16},putBundleIdMqttIdsAccess:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/bundle-id-mqtt-ids-access",path:"/1024//105",bodyEncoder:Y.uint16},getBundleIdVariableConfigAccess:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/bundle-id-variable-config-access",path:"/1024//106",responseBodyDecoder:Y.uint16},putBundleIdVariableConfigAccess:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/bundle-id-variable-config-access",path:"/1024//106",bodyEncoder:Y.uint16},getBundleIdFileSystemAccess:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/bundle-id-file-system-access",path:"/1024//107",responseBodyDecoder:Y.uint16},putBundleIdFileSystemAccess:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/bundle-id-file-system-access",path:"/1024//107",bodyEncoder:Y.uint16},getConfigFormatVersion:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/config-format-version",path:"/1024//8",responseBodyDecoder:Y.uint16},putConfigFormatVersion:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/config-format-version",path:"/1024//8",bodyEncoder:Y.uint16},getAppName:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/app-name",path:"/1024//9",responseBodyDecoder:Y.ascii},putAppName:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/app-name",path:"/1024//9",bodyEncoder:Y.ascii},getConfigVersion:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/config-version",path:"/1024//10",responseBodyDecoder:Y.stringVersion},putConfigVersion:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/config-version",path:"/1024//10",bodyEncoder:Y.stringVersion},reloadConfig:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/config-version",path:"/1024//10"},getAppPath:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/app-path",path:"/1024//11",responseBodyDecoder:Y.ascii},putAppPath:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/app-path",path:"/1024//11",bodyEncoder:Y.ascii},postAppPath:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/app-path",path:"/1024//11",bodyEncoder:Y.ascii},getNfcPairingMode:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/nfc/pairing-mode",path:"/1024//13",responseBodyDecoder:Y.nfcPairingMode},putNfcPairingMode:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/nfc/pairing-mode",path:"/1024//13",bodyEncoder:Y.nfcPairingMode},getPairingOptions:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/pairing-options",path:"/1024//13",responseBodyDecoder:Y.wirelessPairingOptions},postPairingOptions:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/pairing-options",path:"/1024//13",bodyEncoder:Y.wirelessPairingOptions},putPairingOptions:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/pairing-options",path:"/1024//13",bodyEncoder:Y.wirelessPairingOptions},getPowerOptimisationLevel:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/power-optimisation-level",path:"/1024//14",responseBodyDecoder:Y.lowPowerOptimizationLevel},putPowerOptimisationLevel:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/power-optimisation-level",path:"/1024//14",bodyEncoder:Y.lowPowerOptimizationLevel},getCpuFrequencyOptions:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/cpu-frequency-options",path:"/1024//141",responseBodyDecoder:Y.cpuFrequencyOptions},putCpuFrequencyOptions:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/cpu-frequency-options",path:"/1024//141",bodyEncoder:Y.cpuFrequencySpeed},getPowerOptimisationOptions:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/power-optimisation-options",path:"/1024//142",responseBodyDecoder:Y.powerOptimizationOptions},putPowerOptimisationOptions:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/power-optimisation-options",path:"/1024//142",bodyEncoder:Y.powerOptimizationOptions},getMaxLowPowerTime:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/max-low-power-time",path:"/1024//33",responseBodyDecoder:Y.uint32},putMaxLowPowerTime:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/max-low-power-time",path:"/1024//33",bodyEncoder:Y.uint32},getAutoRebootTimeout:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/auto-reboot-timeout",path:"/1024//123",responseBodyDecoder:Y.uint16},putAutoRebootTimeout:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/auto-reboot-timeout",path:"/1024//123",bodyEncoder:Y.uint16},getAuthorizedHostProtocol:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/authorized-host-protocol",path:"/1024//17",responseBodyDecoder:Y.hostProtocolArray},putAuthorizedHostProtocol:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/authorized-host-protocol",path:"/1024//17",bodyEncoder:Y.hostProtocolArray},getConfigFormatFirmwareVersion:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/config-format-firmware-version",path:"/1024//18",responseBodyDecoder:Y.uint16},getUniversalLink:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/universal-link",path:"/1024//19",responseBodyDecoder:Y.ascii},putUniversalLink:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/universal-link",path:"/1024//19",bodyEncoder:Y.ascii},postUniversalLink:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/universal-link",path:"/1024//19",bodyEncoder:Y.ascii},listObjectInstances:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/list-object-instances",path:"/1024//140",bodyEncoder:Y.uint16},getAvailableHostProtocols:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/available-host-protocols",path:"/1024//21",responseBodyDecoder:Y.hostProtocolArray},getDisabledServices:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/disabled-services",path:"/1024//75",responseBodyDecoder:Y.serviceCodeArray},postDisabledServices:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/disabled-services",path:"/1024//75",bodyEncoder:Y.serviceCodeArray},getNetworkOptions:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/network-options",path:"/1024//127",responseBodyDecoder:Y.networkOptions},putNetworkOptions:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/network-options",path:"/1024//127",bodyEncoder:Y.networkOptions},getRadioMixEnabled:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/radio-mix-enabled",path:"/1024//132",responseBodyDecoder:Y.uint8},putRadioMixEnabled:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/radio-mix-enabled",path:"/1024//132",bodyEncoder:Y.uint8},getNfcConnectionPriority:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/nfc_connection_priority",path:"/1024//24",responseBodyDecoder:Y.nfcConnectionPriority},postNfcConnectionPriority:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/nfc_connection_priority",path:"/1024//24",bodyEncoder:Y.nfcConnectionPriority},putNfcConnectionPriority:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/nfc_connection_priority",path:"/1024//24",bodyEncoder:Y.nfcConnectionPriority},getNfcAutologProfileId:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/nfc-autolog-profile-id",path:"/1024//43",responseBodyDecoder:Y.uint16},putNfcAutologProfileId:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/nfc-autolog-profile-id",path:"/1024//43",bodyEncoder:Y.uint16},getHostInactivityPeriod:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/host-inactivity-period",path:"/1024//34",responseBodyDecoder:Y.uint16},putHostInactivityPeriod:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/host-inactivity-period",path:"/1024//34",bodyEncoder:Y.uint16},getApplicationData:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/application-data",path:"/1024//36"},putApplicationData:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/application-data",path:"/1024//36"},postApplicationData:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/application-data",path:"/1024//36"},getProductKey:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/product-key",path:"/1024//60",responseBodyDecoder:Y.ascii},getCurrentHostProtocolMaxFrameSize:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/current-host-protocol-max-frame-size",path:"/1024//88",responseBodyDecoder:Y.protocolMaxFrameSize},executeMultiRequestFrame:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/multi-request-frame",path:"/1024//89",responseBodyDecoder:Y.multiResponseFrame,bodyEncoder:Y.multiRequestFrame},putCertificatePublicKey:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/certificate/public-key",append:!0,path:"/1024//37"},putCertificatePrivateKey:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/certificate/private-key",append:!0,path:"/1024//38"},putCertificateRootKey:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/certificate/root-key",append:!0,path:"/1024//39"},getProductCode:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/product-code",path:"/1024//84",responseBodyDecoder:Y.ascii},putProductCode:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/product-code",path:"/1024//84",bodyEncoder:Y.ascii},getSpecialFeatureProfile:{method:t.TapRequestFrame.MethodType.GET,pathAlias:"/interface/special-feature/{featureId}",path:"/1024//{featureId}",responseBodyDecoder:Y.uint16},setSpecialFeatureProfile:{method:t.TapRequestFrame.MethodType.POST,pathAlias:"/interface/special-feature/{featureId}",path:"/1024//{featureId}",bodyEncoder:Y.uint16},putSpecialFeatureProfile:{method:t.TapRequestFrame.MethodType.PUT,pathAlias:"/interface/special-feature/{featureId}",path:"/1024//{featureId}",bodyEncoder:Y.uint16}},X=function(e){function t(){var t=e.apply(this,u([],p(arguments)))||this;return t.resources=J,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.login=function(e){return this.serviceCallRunner.execute(this.loginCall(e))},t.prototype.loginCall=function(e){var t=Object.assign({},this.resources.login);return t.body=e,t},t.prototype.loginWithHash=function(e){return this.serviceCallRunner.execute(this.loginWithHashCall(e))},t.prototype.loginWithHashCall=function(e){var t=Object.assign({},this.resources.loginWithHash);return t.body=e,t},t.prototype.logout=function(){return this.serviceCallRunner.execute(this.logoutCall())},t.prototype.logoutCall=function(){return Object.assign({},this.resources.logout)},t.prototype.getCurrentProfileId=function(){return this.serviceCallRunner.execute(this.getCurrentProfileIdCall())},t.prototype.getCurrentProfileIdCall=function(){return Object.assign({},this.resources.getCurrentProfileId)},t.prototype.getCurrentHostProtocol=function(){return this.serviceCallRunner.execute(this.getCurrentHostProtocolCall())},t.prototype.getCurrentHostProtocolCall=function(){return Object.assign({},this.resources.getCurrentHostProtocol)},t.prototype.putCurrentHostProtocol=function(e){return this.serviceCallRunner.execute(this.putCurrentHostProtocolCall(e))},t.prototype.putCurrentHostProtocolCall=function(e){var t=Object.assign({},this.resources.putCurrentHostProtocol);return t.body=e,t},t.prototype.getUID=function(){return this.serviceCallRunner.execute(this.getUIDCall())},t.prototype.getUIDCall=function(){return Object.assign({},this.resources.getUID)},t.prototype.loginWithUID=function(e){return this.serviceCallRunner.execute(this.loginWithUIDCall(e))},t.prototype.loginWithUIDCall=function(e){var t=Object.assign({},this.resources.loginWithUID);return t.body=e,t},t.prototype.keepAlive=function(){return this.serviceCallRunner.execute(this.keepAliveCall())},t.prototype.keepAliveCall=function(){return Object.assign({},this.resources.keepAlive)},t.prototype.postKeepAlive=function(){return this.serviceCallRunner.execute(this.postKeepAliveCall())},t.prototype.postKeepAliveCall=function(){return Object.assign({},this.resources.postKeepAlive)},t.prototype.getSecurityOptions=function(){return this.serviceCallRunner.execute(this.getSecurityOptionsCall())},t.prototype.getSecurityOptionsCall=function(){return Object.assign({},this.resources.getSecurityOptions)},t.prototype.putSecurityOptions=function(e){return this.serviceCallRunner.execute(this.putSecurityOptionsCall(e))},t.prototype.putSecurityOptionsCall=function(e){var t=Object.assign({},this.resources.putSecurityOptions);return t.body=e,t},t.prototype.getCurrentGroupId=function(){return this.serviceCallRunner.execute(this.getCurrentGroupIdCall())},t.prototype.getCurrentGroupIdCall=function(){return Object.assign({},this.resources.getCurrentGroupId)},t.prototype.getBundleIdSwdDirectAccess=function(){return this.serviceCallRunner.execute(this.getBundleIdSwdDirectAccessCall())},t.prototype.getBundleIdSwdDirectAccessCall=function(){return Object.assign({},this.resources.getBundleIdSwdDirectAccess)},t.prototype.putBundleIdSwdDirectAccess=function(e){return this.serviceCallRunner.execute(this.putBundleIdSwdDirectAccessCall(e))},t.prototype.putBundleIdSwdDirectAccessCall=function(e){var t=Object.assign({},this.resources.putBundleIdSwdDirectAccess);return t.body=e,t},t.prototype.getBundleIdSerialAccess=function(){return this.serviceCallRunner.execute(this.getBundleIdSerialAccessCall())},t.prototype.getBundleIdSerialAccessCall=function(){return Object.assign({},this.resources.getBundleIdSerialAccess)},t.prototype.putBundleIdSerialAccess=function(e){return this.serviceCallRunner.execute(this.putBundleIdSerialAccessCall(e))},t.prototype.putBundleIdSerialAccessCall=function(e){var t=Object.assign({},this.resources.putBundleIdSerialAccess);return t.body=e,t},t.prototype.getBundleIdModbusDirectAccess=function(){return this.serviceCallRunner.execute(this.getBundleIdModbusDirectAccessCall())},t.prototype.getBundleIdModbusDirectAccessCall=function(){return Object.assign({},this.resources.getBundleIdModbusDirectAccess)},t.prototype.putBundleIdModbusDirectAccess=function(e){return this.serviceCallRunner.execute(this.putBundleIdModbusDirectAccessCall(e))},t.prototype.putBundleIdModbusDirectAccessCall=function(e){var t=Object.assign({},this.resources.putBundleIdModbusDirectAccess);return t.body=e,t},t.prototype.getBundleIdTapnpassControlAccess=function(){return this.serviceCallRunner.execute(this.getBundleIdTapnpassControlAccessCall())},t.prototype.getBundleIdTapnpassControlAccessCall=function(){return Object.assign({},this.resources.getBundleIdTapnpassControlAccess)},t.prototype.putBundleIdTapnpassControlAccess=function(e){return this.serviceCallRunner.execute(this.putBundleIdTapnpassControlAccessCall(e))},t.prototype.putBundleIdTapnpassControlAccessCall=function(e){var t=Object.assign({},this.resources.putBundleIdTapnpassControlAccess);return t.body=e,t},t.prototype.getBundleIdFirmwareUpdateAccess=function(){return this.serviceCallRunner.execute(this.getBundleIdFirmwareUpdateAccessCall())},t.prototype.getBundleIdFirmwareUpdateAccessCall=function(){return Object.assign({},this.resources.getBundleIdFirmwareUpdateAccess)},t.prototype.putBundleIdFirmwareUpdateAccess=function(e){return this.serviceCallRunner.execute(this.putBundleIdFirmwareUpdateAccessCall(e))},t.prototype.putBundleIdFirmwareUpdateAccessCall=function(e){var t=Object.assign({},this.resources.putBundleIdFirmwareUpdateAccess);return t.body=e,t},t.prototype.getBundleIdMqttIdsAccess=function(){return this.serviceCallRunner.execute(this.getBundleIdMqttIdsAccessCall())},t.prototype.getBundleIdMqttIdsAccessCall=function(){return Object.assign({},this.resources.getBundleIdMqttIdsAccess)},t.prototype.putBundleIdMqttIdsAccess=function(e){return this.serviceCallRunner.execute(this.putBundleIdMqttIdsAccessCall(e))},t.prototype.putBundleIdMqttIdsAccessCall=function(e){var t=Object.assign({},this.resources.putBundleIdMqttIdsAccess);return t.body=e,t},t.prototype.getBundleIdVariableConfigAccess=function(){return this.serviceCallRunner.execute(this.getBundleIdVariableConfigAccessCall())},t.prototype.getBundleIdVariableConfigAccessCall=function(){return Object.assign({},this.resources.getBundleIdVariableConfigAccess)},t.prototype.putBundleIdVariableConfigAccess=function(e){return this.serviceCallRunner.execute(this.putBundleIdVariableConfigAccessCall(e))},t.prototype.putBundleIdVariableConfigAccessCall=function(e){var t=Object.assign({},this.resources.putBundleIdVariableConfigAccess);return t.body=e,t},t.prototype.getBundleIdFileSystemAccess=function(){return this.serviceCallRunner.execute(this.getBundleIdFileSystemAccessCall())},t.prototype.getBundleIdFileSystemAccessCall=function(){return Object.assign({},this.resources.getBundleIdFileSystemAccess)},t.prototype.putBundleIdFileSystemAccess=function(e){return this.serviceCallRunner.execute(this.putBundleIdFileSystemAccessCall(e))},t.prototype.putBundleIdFileSystemAccessCall=function(e){var t=Object.assign({},this.resources.putBundleIdFileSystemAccess);return t.body=e,t},t.prototype.getConfigFormatVersion=function(){return this.serviceCallRunner.execute(this.getConfigFormatVersionCall())},t.prototype.getConfigFormatVersionCall=function(){return Object.assign({},this.resources.getConfigFormatVersion)},t.prototype.putConfigFormatVersion=function(e){return this.serviceCallRunner.execute(this.putConfigFormatVersionCall(e))},t.prototype.putConfigFormatVersionCall=function(e){var t=Object.assign({},this.resources.putConfigFormatVersion);return t.body=e,t},t.prototype.getAppName=function(){return this.serviceCallRunner.execute(this.getAppNameCall())},t.prototype.getAppNameCall=function(){return Object.assign({},this.resources.getAppName)},t.prototype.putAppName=function(e){return this.serviceCallRunner.execute(this.putAppNameCall(e))},t.prototype.putAppNameCall=function(e){var t=Object.assign({},this.resources.putAppName);return t.body=e,t},t.prototype.getConfigVersion=function(){return this.serviceCallRunner.execute(this.getConfigVersionCall())},t.prototype.getConfigVersionCall=function(){return Object.assign({},this.resources.getConfigVersion)},t.prototype.putConfigVersion=function(e){return this.serviceCallRunner.execute(this.putConfigVersionCall(e))},t.prototype.putConfigVersionCall=function(e){var t=Object.assign({},this.resources.putConfigVersion);return t.body=e,t},t.prototype.reloadConfig=function(){return this.serviceCallRunner.execute(this.reloadConfigCall())},t.prototype.reloadConfigCall=function(){return Object.assign({},this.resources.reloadConfig)},t.prototype.getAppPath=function(){return this.serviceCallRunner.execute(this.getAppPathCall())},t.prototype.getAppPathCall=function(){return Object.assign({},this.resources.getAppPath)},t.prototype.putAppPath=function(e){return this.serviceCallRunner.execute(this.putAppPathCall(e))},t.prototype.putAppPathCall=function(e){var t=Object.assign({},this.resources.putAppPath);return t.body=e,t},t.prototype.postAppPath=function(e){return this.serviceCallRunner.execute(this.postAppPathCall(e))},t.prototype.postAppPathCall=function(e){var t=Object.assign({},this.resources.postAppPath);return t.body=e,t},t.prototype.getNfcPairingMode=function(){return this.serviceCallRunner.execute(this.getNfcPairingModeCall())},t.prototype.getNfcPairingModeCall=function(){return Object.assign({},this.resources.getNfcPairingMode)},t.prototype.putNfcPairingMode=function(e){return this.serviceCallRunner.execute(this.putNfcPairingModeCall(e))},t.prototype.putNfcPairingModeCall=function(e){var t=Object.assign({},this.resources.putNfcPairingMode);return t.body=e,t},t.prototype.getPairingOptions=function(){return this.serviceCallRunner.execute(this.getPairingOptionsCall())},t.prototype.getPairingOptionsCall=function(){return Object.assign({},this.resources.getPairingOptions)},t.prototype.postPairingOptions=function(e){return this.serviceCallRunner.execute(this.postPairingOptionsCall(e))},t.prototype.postPairingOptionsCall=function(e){var t=Object.assign({},this.resources.postPairingOptions);return t.body=e,t},t.prototype.putPairingOptions=function(e){return this.serviceCallRunner.execute(this.putPairingOptionsCall(e))},t.prototype.putPairingOptionsCall=function(e){var t=Object.assign({},this.resources.putPairingOptions);return t.body=e,t},t.prototype.getPowerOptimisationLevel=function(){return this.serviceCallRunner.execute(this.getPowerOptimisationLevelCall())},t.prototype.getPowerOptimisationLevelCall=function(){return Object.assign({},this.resources.getPowerOptimisationLevel)},t.prototype.putPowerOptimisationLevel=function(e){return this.serviceCallRunner.execute(this.putPowerOptimisationLevelCall(e))},t.prototype.putPowerOptimisationLevelCall=function(e){var t=Object.assign({},this.resources.putPowerOptimisationLevel);return t.body=e,t},t.prototype.getCpuFrequencyOptions=function(){return this.serviceCallRunner.execute(this.getCpuFrequencyOptionsCall())},t.prototype.getCpuFrequencyOptionsCall=function(){return Object.assign({},this.resources.getCpuFrequencyOptions)},t.prototype.putCpuFrequencyOptions=function(e){return this.serviceCallRunner.execute(this.putCpuFrequencyOptionsCall(e))},t.prototype.putCpuFrequencyOptionsCall=function(e){var t=Object.assign({},this.resources.putCpuFrequencyOptions);return t.body=e,t},t.prototype.getPowerOptimisationOptions=function(){return this.serviceCallRunner.execute(this.getPowerOptimisationOptionsCall())},t.prototype.getPowerOptimisationOptionsCall=function(){return Object.assign({},this.resources.getPowerOptimisationOptions)},t.prototype.putPowerOptimisationOptions=function(e){return this.serviceCallRunner.execute(this.putPowerOptimisationOptionsCall(e))},t.prototype.putPowerOptimisationOptionsCall=function(e){var t=Object.assign({},this.resources.putPowerOptimisationOptions);return t.body=e,t},t.prototype.getMaxLowPowerTime=function(){return this.serviceCallRunner.execute(this.getMaxLowPowerTimeCall())},t.prototype.getMaxLowPowerTimeCall=function(){return Object.assign({},this.resources.getMaxLowPowerTime)},t.prototype.putMaxLowPowerTime=function(e){return this.serviceCallRunner.execute(this.putMaxLowPowerTimeCall(e))},t.prototype.putMaxLowPowerTimeCall=function(e){var t=Object.assign({},this.resources.putMaxLowPowerTime);return t.body=e,t},t.prototype.getAutoRebootTimeout=function(){return this.serviceCallRunner.execute(this.getAutoRebootTimeoutCall())},t.prototype.getAutoRebootTimeoutCall=function(){return Object.assign({},this.resources.getAutoRebootTimeout)},t.prototype.putAutoRebootTimeout=function(e){return this.serviceCallRunner.execute(this.putAutoRebootTimeoutCall(e))},t.prototype.putAutoRebootTimeoutCall=function(e){var t=Object.assign({},this.resources.putAutoRebootTimeout);return t.body=e,t},t.prototype.getAuthorizedHostProtocol=function(){return this.serviceCallRunner.execute(this.getAuthorizedHostProtocolCall())},t.prototype.getAuthorizedHostProtocolCall=function(){return Object.assign({},this.resources.getAuthorizedHostProtocol)},t.prototype.putAuthorizedHostProtocol=function(e){return this.serviceCallRunner.execute(this.putAuthorizedHostProtocolCall(e))},t.prototype.putAuthorizedHostProtocolCall=function(e){var t=Object.assign({},this.resources.putAuthorizedHostProtocol);return t.body=e,t},t.prototype.getConfigFormatFirmwareVersion=function(){return this.serviceCallRunner.execute(this.getConfigFormatFirmwareVersionCall())},t.prototype.getConfigFormatFirmwareVersionCall=function(){return Object.assign({},this.resources.getConfigFormatFirmwareVersion)},t.prototype.getUniversalLink=function(){return this.serviceCallRunner.execute(this.getUniversalLinkCall())},t.prototype.getUniversalLinkCall=function(){return Object.assign({},this.resources.getUniversalLink)},t.prototype.putUniversalLink=function(e){return this.serviceCallRunner.execute(this.putUniversalLinkCall(e))},t.prototype.putUniversalLinkCall=function(e){var t=Object.assign({},this.resources.putUniversalLink);return t.body=e,t},t.prototype.postUniversalLink=function(e){return this.serviceCallRunner.execute(this.postUniversalLinkCall(e))},t.prototype.postUniversalLinkCall=function(e){var t=Object.assign({},this.resources.postUniversalLink);return t.body=e,t},t.prototype.listObjectInstances=function(e){return this.serviceCallRunner.execute(this.listObjectInstancesCall(e))},t.prototype.listObjectInstancesCall=function(e){var t=Object.assign({},this.resources.listObjectInstances);return t.body=e,t},t.prototype.getAvailableHostProtocols=function(){return this.serviceCallRunner.execute(this.getAvailableHostProtocolsCall())},t.prototype.getAvailableHostProtocolsCall=function(){return Object.assign({},this.resources.getAvailableHostProtocols)},t.prototype.getDisabledServices=function(){return this.serviceCallRunner.execute(this.getDisabledServicesCall())},t.prototype.getDisabledServicesCall=function(){return Object.assign({},this.resources.getDisabledServices)},t.prototype.postDisabledServices=function(e){return this.serviceCallRunner.execute(this.postDisabledServicesCall(e))},t.prototype.postDisabledServicesCall=function(e){var t=Object.assign({},this.resources.postDisabledServices);return t.body=e,t},t.prototype.getNetworkOptions=function(){return this.serviceCallRunner.execute(this.getNetworkOptionsCall())},t.prototype.getNetworkOptionsCall=function(){return Object.assign({},this.resources.getNetworkOptions)},t.prototype.putNetworkOptions=function(e){return this.serviceCallRunner.execute(this.putNetworkOptionsCall(e))},t.prototype.putNetworkOptionsCall=function(e){var t=Object.assign({},this.resources.putNetworkOptions);return t.body=e,t},t.prototype.getRadioMixEnabled=function(){return this.serviceCallRunner.execute(this.getRadioMixEnabledCall())},t.prototype.getRadioMixEnabledCall=function(){return Object.assign({},this.resources.getRadioMixEnabled)},t.prototype.putRadioMixEnabled=function(e){return this.serviceCallRunner.execute(this.putRadioMixEnabledCall(e))},t.prototype.putRadioMixEnabledCall=function(e){var t=Object.assign({},this.resources.putRadioMixEnabled);return t.body=e,t},t.prototype.getNfcConnectionPriority=function(){return this.serviceCallRunner.execute(this.getNfcConnectionPriorityCall())},t.prototype.getNfcConnectionPriorityCall=function(){return Object.assign({},this.resources.getNfcConnectionPriority)},t.prototype.postNfcConnectionPriority=function(e){return this.serviceCallRunner.execute(this.postNfcConnectionPriorityCall(e))},t.prototype.postNfcConnectionPriorityCall=function(e){var t=Object.assign({},this.resources.postNfcConnectionPriority);return t.body=e,t},t.prototype.putNfcConnectionPriority=function(e){return this.serviceCallRunner.execute(this.putNfcConnectionPriorityCall(e))},t.prototype.putNfcConnectionPriorityCall=function(e){var t=Object.assign({},this.resources.putNfcConnectionPriority);return t.body=e,t},t.prototype.getNfcAutologProfileId=function(){return this.serviceCallRunner.execute(this.getNfcAutologProfileIdCall())},t.prototype.getNfcAutologProfileIdCall=function(){return Object.assign({},this.resources.getNfcAutologProfileId)},t.prototype.putNfcAutologProfileId=function(e){return this.serviceCallRunner.execute(this.putNfcAutologProfileIdCall(e))},t.prototype.putNfcAutologProfileIdCall=function(e){var t=Object.assign({},this.resources.putNfcAutologProfileId);return t.body=e,t},t.prototype.getHostInactivityPeriod=function(){return this.serviceCallRunner.execute(this.getHostInactivityPeriodCall())},t.prototype.getHostInactivityPeriodCall=function(){return Object.assign({},this.resources.getHostInactivityPeriod)},t.prototype.putHostInactivityPeriod=function(e){return this.serviceCallRunner.execute(this.putHostInactivityPeriodCall(e))},t.prototype.putHostInactivityPeriodCall=function(e){var t=Object.assign({},this.resources.putHostInactivityPeriod);return t.body=e,t},t.prototype.getApplicationData=function(){return this.serviceCallRunner.execute(this.getApplicationDataCall())},t.prototype.getApplicationDataCall=function(){return Object.assign({},this.resources.getApplicationData)},t.prototype.putApplicationData=function(e){return this.serviceCallRunner.execute(this.putApplicationDataCall(e))},t.prototype.putApplicationDataCall=function(e){var t=Object.assign({},this.resources.putApplicationData);return t.body=e,t},t.prototype.postApplicationData=function(e){return this.serviceCallRunner.execute(this.postApplicationDataCall(e))},t.prototype.postApplicationDataCall=function(e){var t=Object.assign({},this.resources.postApplicationData);return t.body=e,t},t.prototype.getProductKey=function(){return this.serviceCallRunner.execute(this.getProductKeyCall())},t.prototype.getProductKeyCall=function(){return Object.assign({},this.resources.getProductKey)},t.prototype.getCurrentHostProtocolMaxFrameSize=function(){return this.serviceCallRunner.execute(this.getCurrentHostProtocolMaxFrameSizeCall())},t.prototype.getCurrentHostProtocolMaxFrameSizeCall=function(){return Object.assign({},this.resources.getCurrentHostProtocolMaxFrameSize)},t.prototype.executeMultiRequestFrame=function(e){return this.serviceCallRunner.execute(this.executeMultiRequestFrameCall(e))},t.prototype.executeMultiRequestFrameCall=function(e){var t=Object.assign({},this.resources.executeMultiRequestFrame);return t.body=e,t},t.prototype.putCertificatePublicKey=function(e){return this.serviceCallRunner.execute(this.putCertificatePublicKeyCall(e))},t.prototype.putCertificatePublicKeyAppendCalls=function(e,t){return this.serviceCallRunner.createAppendCalls(this.putCertificatePublicKeyCall(e),t)},t.prototype.putCertificatePublicKeyCall=function(e){var t=Object.assign({},this.resources.putCertificatePublicKey);return t.body=e,t},t.prototype.putCertificatePrivateKey=function(e){return this.serviceCallRunner.execute(this.putCertificatePrivateKeyCall(e))},t.prototype.putCertificatePrivateKeyAppendCalls=function(e,t){return this.serviceCallRunner.createAppendCalls(this.putCertificatePrivateKeyCall(e),t)},t.prototype.putCertificatePrivateKeyCall=function(e){var t=Object.assign({},this.resources.putCertificatePrivateKey);return t.body=e,t},t.prototype.putCertificateRootKey=function(e){return this.serviceCallRunner.execute(this.putCertificateRootKeyCall(e))},t.prototype.putCertificateRootKeyAppendCalls=function(e,t){return this.serviceCallRunner.createAppendCalls(this.putCertificateRootKeyCall(e),t)},t.prototype.putCertificateRootKeyCall=function(e){var t=Object.assign({},this.resources.putCertificateRootKey);return t.body=e,t},t.prototype.getProductCode=function(){return this.serviceCallRunner.execute(this.getProductCodeCall())},t.prototype.getProductCodeCall=function(){return Object.assign({},this.resources.getProductCode)},t.prototype.putProductCode=function(e){return this.serviceCallRunner.execute(this.putProductCodeCall(e))},t.prototype.putProductCodeCall=function(e){var t=Object.assign({},this.resources.putProductCode);return t.body=e,t},t.prototype.getSpecialFeatureProfile=function(e){return this.serviceCallRunner.execute(this.getSpecialFeatureProfileCall(e))},t.prototype.getSpecialFeatureProfileCall=function(e){var t=Object.assign({},this.resources.getSpecialFeatureProfile);return t.pathParameters={featureId:e},t},t.prototype.setSpecialFeatureProfile=function(e,t){return this.serviceCallRunner.execute(this.setSpecialFeatureProfileCall(e,t))},t.prototype.setSpecialFeatureProfileCall=function(e,t){var r=Object.assign({},this.resources.setSpecialFeatureProfile);return r.body=t,r.pathParameters={featureId:e},r},t.prototype.putSpecialFeatureProfile=function(e,t){return this.serviceCallRunner.execute(this.putSpecialFeatureProfileCall(e,t))},t.prototype.putSpecialFeatureProfileCall=function(e,t){var r=Object.assign({},this.resources.putSpecialFeatureProfile);return r.body=t,r.pathParameters={featureId:e},r},t}(o.AbstractService),Q=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{p(i.next(e))}catch(e){n(e)}}function s(e){try{p(i.throw(e))}catch(e){n(e)}}function p(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}p((i=i.apply(e,t||[])).next())}))};X.prototype.getAppUrl=function(){return Q(this,void 0,void 0,(function(){var e,t,r,i;return a(this,(function(o){switch(o.label){case 0:return[4,this.getAppPath()];case 1:if((e=o.sent()).isSuccessful()&&(t=e.body()).match(/^\$[1-6]\//)){switch(r=t.substring(0,3),i=t.substring(3),r){case"$1/":case"$5/":t="https://user.cloud.iotize.com/users/"+i;break;case"$2/":t="http://"+i;break;default:t=""}e.setBody(t)}return[2,e]}}))}))},X.prototype.getAndroidApplicationId=function(){return Q(this,void 0,void 0,(function(){var e,t;return a(this,(function(r){switch(r.label){case 0:return[4,this.getAppPath()];case 1:return(e=r.sent()).isSuccessful()&&((t=e.body()).startsWith("$4/")?e.setBody(t.substring(3)):e.setBody("")),[2,e]}}))}))},X.prototype.putAndroidApplicationId=function(e){return Q(this,void 0,void 0,(function(){return a(this,(function(t){return[2,this.putAppPath("$4/"+e)]}))}))};var Z=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{p(i.next(e))}catch(e){n(e)}}function s(e){try{p(i.throw(e))}catch(e){n(e)}}function p(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}p((i=i.apply(e,t||[])).next())}))};function ee(e){return"expectedResponseStatus"in e?e.call:e}X.prototype.executeMultipleCalls=function(t,r){return void 0===r&&(r=e.MultiRequestFrame.ExpectedResponseStatus.ANYTHING),Z(this,void 0,void 0,(function(){var i,n,s,p,u,c;return a(this,(function(a){switch(a.label){case 0:return i=t.map((function(e){return"function"==typeof(t=ee(e).responseBodyDecoder)?{decode:t}:t;var t})),n=function(t,r){void 0===r&&(r=e.MultiRequestFrame.ExpectedResponseStatus.ANYTHING);return t.map((function(e){var t,i;"expectedResponseStatus"in e?(t=e.call,i=e.expectedResponseStatus):(t=e,i=r);var n=o.ServiceCallRunner.toTapRequest(t),a=o.ServiceCallRunner.resolveResponseBodyDecoder(t);return{requestItem:{expectedResponseStatus:i,request:n,requestLen:n.payload.length+7},responseBodyDecoder:a}}))}(t,r),s={requests:n.map((function(e){return e.requestItem}))},[4,this.executeMultiRequestFrame(s)];case 1:if(p=a.sent(),(u=p.body()).responses.length!==t.length)throw new Error("API sent "+t.length+" request(s) but tap responded with "+u.responses.length+" response(s).");return c=u.responses.map((function(e,r){var a=new o.TapResponse(e.response),s=i[r];return s&&a.setBodyDecoder(s),a.setRequest(n[r].requestItem.request),a.isSuccessful()||a.setError(o.TapError.reponseStatusError(a,ee(t[r]))),a})),[2,c]}}))}))};var te=o.extendServiceContainer("interface",X);e.CpuFrequencyOptionsConverter=A,e.INTERFACE_SERVICE_CALLS=J,e.InterfaceResourceMetaData={"/interface/current-host-protocol":{put:{minApiVersion:1,configModeRequired:!0,schema:{$ref:"./definitions.yaml#/HostProtocol"}}},"/interface/security-options":{put:{minApiVersion:1,configModeRequired:!0,schema:{$ref:"./definitions.yaml#/SecurityOptions"}}},"/interface/bundle-id-swd-direct-access":{put:{minApiVersion:1.23,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/bundle-id-serial-access":{put:{minApiVersion:1.23,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/bundle-id-modbus-direct-access":{put:{minApiVersion:1.23,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/bundle-id-tapnpass-control-access":{put:{minApiVersion:1.23,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/bundle-id-firmware-update-access":{put:{minApiVersion:1.35,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/bundle-id-mqtt-ids-access":{put:{minApiVersion:1.35,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/bundle-id-variable-config-access":{put:{minApiVersion:2.11,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/bundle-id-file-system-access":{put:{minApiVersion:2.13,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/config-format-version":{put:{minApiVersion:1,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/app-name":{put:{minApiVersion:1,configModeRequired:!1,schema:{type:"string",example:"Sensor demo",maxLength:24}}},"/interface/config-version":{put:{minApiVersion:1,configModeRequired:!1,schema:{type:"string",format:"version",pattern:"^([0-9]+)\\.([0-9]+)\\.([0-9]+)$"}}},"/interface/app-path":{put:{minApiVersion:1,configModeRequired:!1,schema:{maxLength:100,type:"string",example:"$2/user.cloud.iotize.com/examples/Sensor_demo/index.html"}}},"/interface/nfc/pairing-mode":{put:{minApiVersion:1,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/NfcPairingMode"}}},"/interface/pairing-options":{put:{minApiVersion:1,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/WirelessPairingOptions"}}},"/interface/power-optimisation-level":{put:{minApiVersion:1,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/LowPowerOptimizationLevel"}}},"/interface/cpu-frequency-options":{put:{minApiVersion:2.15,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/CpuFrequencySpeed"}}},"/interface/power-optimisation-options":{put:{minApiVersion:2.15,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/PowerOptimizationOptions"}}},"/interface/max-low-power-time":{put:{minApiVersion:1,configModeRequired:!0,schema:{type:"integer",format:"uint32"}}},"/interface/auto-reboot-timeout":{put:{minApiVersion:2.11,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}},"/interface/authorized-host-protocol":{put:{minApiVersion:1,configModeRequired:!1,schema:{type:"array",items:{$ref:"./definitions.yaml#/HostProtocol"}}}},"/interface/universal-link":{put:{minApiVersion:1,configModeRequired:!1,schema:{type:"string",maxLength:100}}},"/interface/network-options":{put:{minApiVersion:2.13,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/NetworkOptions"}}},"/interface/radio-mix-enabled":{put:{minApiVersion:2.13,configModeRequired:!1,schema:{type:"integer",format:"uint8"}}},"/interface/nfc_connection_priority":{put:{minApiVersion:1.85,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/NfcConnectionPriority"}}},"/interface/nfc-autolog-profile-id":{put:{minApiVersion:1.55,configModeRequired:!1,schema:{type:"integer",format:"uint16"}}},"/interface/host-inactivity-period":{put:{minApiVersion:1,configModeRequired:!1,schema:{type:"integer",format:"uint16",minimum:0,maximum:255}}},"/interface/application-data":{put:{minApiVersion:1,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/Bytes"}}},"/interface/certificate/public-key":{put:{minApiVersion:1.86,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/Bytes"}}},"/interface/certificate/private-key":{put:{minApiVersion:1.86,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/Bytes"}}},"/interface/certificate/root-key":{put:{minApiVersion:1.86,configModeRequired:!1,schema:{$ref:"./definitions.yaml#/Bytes"}}},"/interface/product-code":{put:{minApiVersion:1.113,configModeRequired:!1,schema:{type:"string",maxLength:32}}},"/interface/special-feature/{featureId}":{put:{minApiVersion:1.23,configModeRequired:!0,schema:{type:"integer",format:"uint16"}}}},e.InterfaceService=X,e.LoginCredentialConverter=C,e.LoginCredentialHashedConverter=T,e.MultiRequestFrameConverter=w,e.MultiResponseFrameConverter=M,e.NetworkOptionsConverter=P,e.PowerOptimizationOptionsConverter=b,e.ProtocolMaxFrameSizeConverter=O,e.SecurityOptionsConverter=v,e.WirelessPairingOptionsConverter=R,e._TAP_SERVICE_EXTENSION_INTERFACE_=te,e.interfaceConverters=$,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=iotize-tap-service-impl-interface.umd.min.js.map