From 68dd697952ba947db88f067d1f87de5f81f515ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Arranz?= Date: Mon, 11 Jun 2018 17:43:47 +0200 Subject: [PATCH] Release v1.1.1 --- dist/NGSI.js | 4 ---- dist/NGSI.min.js | 4 ++-- dist/NGSI.min.js.map | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/dist/NGSI.js b/dist/NGSI.js index 6644493..74e81d0 100644 --- a/dist/NGSI.js +++ b/dist/NGSI.js @@ -123,10 +123,6 @@ } catch (e) { return null; } }; - Response.prototype.getAllResponseHeaders = function getAllResponseHeaders() { - return this.transport.getAllResponseHeaders(); - }; - var toQueryString = function toQueryString(parameters) { var key, query = []; diff --git a/dist/NGSI.min.js b/dist/NGSI.min.js index 9ff3293..9674717 100644 --- a/dist/NGSI.min.js +++ b/dist/NGSI.min.js @@ -1,3 +1,3 @@ -!function(){"use strict";var a,b=new WeakMap;if("function"==typeof require&&null!=typeof exports){a=exports;var c=require("whatwg-url").URL}else{a={};var c=window.URL,d=function(a){if(null==a||"object"!=typeof a)throw new TypeError("object argument must be an object");return Array.prototype.slice.call(arguments,1).forEach(function(b){null!=b&&Object.keys(b).forEach(function(c){a[c]=b[c]})}),a},e=function(){var a,b;"Content-Type"in(a=d({Accept:"text/javascript, text/html, application/xml, text/xml, */*"},this.options.requestHeaders))||null==this.options.contentType||(a["Content-Type"]=this.options.contentType,null!=this.options.encoding&&(a["Content-Type"]+="; charset="+this.options.encoding));for(b in a)null!=a[b]&&this.transport.setRequestHeader(b,a[b])},f=function(a){Object.defineProperties(this,{request:{value:a},transport:{value:a.transport},status:{value:a.transport.status},statusText:{value:a.transport.statusText},response:{value:a.transport.response}}),null!=a.options.responseType&&""!==a.options.responseType||Object.defineProperties(this,{responseText:{value:a.transport.responseText},responseXML:{value:a.transport.responseXML}})};f.prototype.getHeader=function(a){try{return this.transport.getResponseHeader(a)}catch(a){return null}},f.prototype.getAllResponseHeaders=function(){return this.transport.getAllResponseHeaders()};var g=function(a){var b,c=[];if(null==a||"object"!=typeof a)return null;for(b in a)void 0!==a[b]&&(null===a[b]?c.push(encodeURIComponent(b)+"="):c.push(encodeURIComponent(b)+"="+encodeURIComponent(a[b])));return c.length>0?c.join("&"):null},h=function(b,c){this.options=d({method:"POST",asynchronous:!0,responseType:null,contentType:null,encoding:null,postBody:null},c),Object.defineProperties(this,{method:{value:this.options.method.toUpperCase()}});var h=g(this.options.parameters);-1!==["PUT","POST"].indexOf(this.method)&&null==this.options.postBody?null!=h&&(this.options.postBody=h,null==this.options.contentType&&(this.options.contentType="application/x-www-form-urlencoded"),null==this.options.encoding&&(this.options.encoding="UTF-8")):null!=h&&(""!==b.search?b.search=b.search+"&"+h:b.search="?"+h),Object.defineProperties(this,{url:{value:b},abort:{value:function(){return this.transport.aborted=!0,this.transport.abort(),this}}}),Object.defineProperty(this,"transport",{value:new XMLHttpRequest}),!0===this.options.withCredentials&&this.options.supportsAccessControl&&(this.transport.withCredentials=!0),this.options.responseType&&(this.transport.responseType=this.options.responseType),this.promise=new Promise(function(b,c){this.transport.addEventListener("abort",function(a){a.stopPropagation(),a.preventDefault(),c("aborted")}),this.transport.addEventListener("load",function(){var a=new f(this);b(a)}.bind(this)),this.transport.addEventListener("error",function(){c(new a.ConnectionError(this))}.bind(this))}.bind(this)),this.transport.open(this.method,this.url,this.options.asynchronous),e.call(this),this.transport.send(this.options.postBody)};h.prototype.then=function(a,b){return this.promise.then(a,b)},h.prototype.catch=function(a){return this.promise.catch(a)};var i=function(a,b){return new h(a,b)}}a.endpoints={SERVER_DETAILS:"version",v1:{REGISTER_CONTEXT:"v1/registry/registerContext",DISCOVER_CONTEXT_AVAILABILITY:"v1/registry/discoverContextAvailability",SUBSCRIBE_CONTEXT_AVAILABILITY:"v1/registry/subscribeContextAvailability",UPDATE_CONTEXT_AVAILABILITY_SUBSCRIPTION:"v1/registry/updateContextAvailabilitySubscription",UNSUBSCRIBE_CONTEXT_AVAILABILITY:"v1/registry/unsubscribeContextAvailability",QUERY_CONTEXT:"v1/queryContext",UPDATE_CONTEXT:"v1/updateContext",SUBSCRIBE_CONTEXT:"v1/subscribeContext",UPDATE_CONTEXT_SUBSCRIPTION:"v1/updateContextSubscription",UNSUBSCRIBE_CONTEXT:"v1/unsubscribeContext",CONTEXT_TYPES:"v1/contextTypes"},v2:{BATCH_QUERY_OP:"v2/op/query",BATCH_UPDATE_OP:"v2/op/update",ENTITY_ATTRS_COLLECTION:"v2/entities/%(entityId)s/attrs",ENTITY_ATTR_ENTRY:"v2/entities/%(entityId)s/attrs/%(attribute)s",ENTITY_ATTR_VALUE_ENTRY:"v2/entities/%(entityId)s/attrs/%(attribute)s/value",ENTITY_COLLECTION:"v2/entities",ENTITY_ENTRY:"v2/entities/%(entityId)s",SUBSCRIPTION_COLLECTION:"v2/subscriptions",SUBSCRIPTION_ENTRY:"v2/subscriptions/%(subscriptionId)s",TYPE_COLLECTION:"v2/types",TYPE_ENTRY:"v2/types/%(typeId)s"}},a.proxy_endpoints={EVENTSOURCE_COLLECTION:"eventsource",CALLBACK_COLLECTION:"callbacks"};var j=function(a,b){return a.replace(/%\(\w+\)s/g,function(a){return String(b[a.slice(2,-2)])})},k=function(b,c,d,e,f){var g,h=null,i=null;null!=c&&(i="application/json",h=JSON.stringify(c)),g=JSON.parse(JSON.stringify(this.headers)),g.Accept="application/json",this.makeRequest(b,{method:null!=h?"POST":"GET",contentType:i,requestHeaders:g,parameters:f,postBody:h}).then(function(b){var c;if(200!==b.status)"function"==typeof e.onFailure&&(c=b instanceof a.ConnectionError?b:-1!==[0,502,504].indexOf(b.status)?new a.ConnectionError("Connection Error"):new a.InvalidResponseError("Unexpected error code: "+b.status),e.onFailure(c));else if("function"==typeof e.onSuccess){var f;try{try{f=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content")}f=d(f,e)}catch(a){return"function"==typeof e.onFailure&&e.onFailure(a),void("function"==typeof e.onComplete&&e.onComplete())}e.onSuccess.apply(null,f)}"function"==typeof e.onComplete&&e.onComplete()},function(b){if("function"==typeof e.onFailure){b instanceof a.ConnectionError||(b=new a.ConnectionError);try{e.onFailure(b)}catch(a){}}"function"==typeof e.onComplete&&e.onComplete()})},l=function(a,b){var c=a.trim().toLowerCase(),d=Object.keys(b),e=d.map(function(a){return a.trim().toLowerCase()}).indexOf(c);-1!==e&&delete b[d[e]]},m=function(b,c){null!=c.postBody&&(c.contentType="application/json",c.postBody=JSON.stringify(c.postBody));var d=JSON.parse(JSON.stringify(this.headers));d.Accept="application/json";for(var e in c.requestHeaders)null!=c.requestHeaders[e]&&(l(e,d),d[e]=c.requestHeaders[e]);return c.requestHeaders=d,this.makeRequest(b,c).then(function(b){return-1!==[0,502,504].indexOf(b.status)?Promise.reject(new a.ConnectionError):Promise.resolve(b)},function(b){return b instanceof a.ConnectionError||(b=new a.ConnectionError),Promise.reject(b)})},n=function(a){var b,c;return c="string"==typeof a.isPattern&&"true"===a.isPattern.trim().toLowerCase()||!0===a.isPattern,b={id:""+a.id,isPattern:""+c},null!=a.type&&(b.type=""+a.type),b},o=function(a){var b,c,d;if("polygon"in a.value){for(b={polygon:{vertices:[]}},c=0;c0)for(d.attributes=[],e=0;e0&&(j.metadatas=q(i.metadata)),g.push(j);c.contextElements.push(f)}return c},u=function(a,b){var c,d;for(c={entities:[],attributes:b},d=0;d0&&(g.attributes=b),null!=c&&(g.duration=""+c),null!=d&&(g.restriction=p(d)),g},w=function(a){return{subscriptionId:a}},x=function(a,b,c,d,e,f,g){var h,i,j,k;if(a)h={subscriptionId:a};else{for(h={entities:[],reference:g},i=0;i0&&(h.options=i.join(",")),m.call(f,g,{method:"POST",parameters:h,postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.updateEntityAttributes=function(d,e){if(null==e&&(e={}),null==d)throw new TypeError("missing changes parameter");var f=b.get(this),g=new c(j(a.endpoints.v2.ENTITY_ATTRS_COLLECTION,{entityId:encodeURIComponent(d.id)}),f.url),h={};return delete d.id,null!=d.type&&(h.type=d.type,delete d.type),!0===e.keyValues&&(h.options="keyValues"),m.call(f,g,{method:"PATCH",parameters:h,postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.replaceEntityAttributes=function(d,e){null==e&&(e={});var f=b.get(this),g=new c(j(a.endpoints.v2.ENTITY_ATTRS_COLLECTION,{entityId:encodeURIComponent(d.id)}),f.url),h={},i=z(d,e,h);return m.call(f,g,{method:"PUT",postBody:i,parameters:h,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c,entity:d})})},a.Connection.V2.prototype.deleteEntity=function(d){if(null==d)throw new TypeError("missing options parameter");if("string"==typeof d)d={id:d};else if(null==d.id)throw new TypeError("missing id option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ENTRY,{entityId:encodeURIComponent(d.id)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"DELETE",parameters:g,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(404===b.status){try{var d=V(b)}catch(b){return Promise.reject(new a.InvalidResponseError(null,c))}return Promise.reject(new a.NotFoundError({message:d.description,correlator:c}))}return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.getEntityAttribute=function(d){if(null==d)throw new TypeError("missing options parameter");if(null==d.id)throw new TypeError("missing id option");if(null==d.attribute)throw new TypeError("missing attribute option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ATTR_ENTRY,{entityId:encodeURIComponent(d.id),attribute:encodeURIComponent(d.attribute)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"GET",parameters:g,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status),c);try{var d=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content",c)}return Promise.resolve({correlator:c,attribute:d})})},a.Connection.V2.prototype.replaceEntityAttribute=function(d,e){if(null==d)throw new TypeError("missing changes parameter");if(null==e&&(e={attribute:d.attribute,correlator:d.correlator,id:d.id,service:d.service,servicepath:d.servicepath,type:d.type}),null==e.id)throw new TypeError("missing id option");if(null==e.attribute)throw new TypeError("missing attribute option");var f={value:d.value,metadata:d.metadata},g=b.get(this),h=new c(j(a.endpoints.v2.ENTITY_ATTR_ENTRY,{entityId:encodeURIComponent(e.id),attribute:encodeURIComponent(e.attribute)}),g.url),i={};return null!=e.type&&(i.type=e.type),m.call(g,h,{method:"PUT",parameters:i,postBody:f,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c,attribute:f})})},a.Connection.V2.prototype.deleteEntityAttribute=function(d){if(null==d)throw new TypeError("missing options parameter");if(null==d.id)throw new TypeError("missing id option");if(null==d.attribute)throw new TypeError("missing attribute option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ATTR_ENTRY,{entityId:encodeURIComponent(d.id),attribute:encodeURIComponent(d.attribute)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"DELETE",parameters:g,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(404===b.status){try{var d=V(b)}catch(b){return Promise.reject(new a.InvalidResponseError(null,c))}return Promise.reject(new a.NotFoundError({message:d.description,correlator:c}))}return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.getEntityAttributeValue=function(d){if(null==d)throw new TypeError("missing options parameter");if(null==d.id)throw new TypeError("missing id option");if(null==d.attribute)throw new TypeError("missing attribute option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ATTR_VALUE_ENTRY,{entityId:encodeURIComponent(d.id),attribute:encodeURIComponent(d.attribute)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"GET",parameters:g,requestHeaders:{Accept:"application/json, text/plain","FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));try{var d=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content",c)}return Promise.resolve({correlator:c,value:d})})},a.Connection.V2.prototype.replaceEntityAttributeValue=function(d){if(null==d)throw new TypeError("missing options parameter");if(null==d.id)throw new TypeError("missing id option");if(null==d.attribute)throw new TypeError("missing attribute option");if(void 0===d.value)throw new TypeError("missing value option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ATTR_VALUE_ENTRY,{entityId:encodeURIComponent(d.id),attribute:encodeURIComponent(d.attribute)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"PUT",parameters:g,postBody:d.value,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c,value:d.value})})},a.Connection.V2.prototype.listTypes=function(d){null==d&&(d={});var e=b.get(this),f=new c(a.endpoints.v2.TYPE_COLLECTION,e.url),g=[],h=U(d,g);return!0===d.values&&g.push("values"),0!==g.length&&(h.options=g.join(",")),m.call(e,f,{method:"GET",parameters:h,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));var e={correlator:c,limit:d.limit,offset:d.offset,results:JSON.parse(b.responseText)};return!0===d.count&&(e.count=parseInt(b.getHeader("Fiware-Total-Count"),10)),Promise.resolve(e)})},a.Connection.V2.prototype.getType=function(d){if(null==d)throw new TypeError("missing options parameter");"string"==typeof d&&(d={id:d});var e=b.get(this),f=new c(j(a.endpoints.v2.TYPE_ENTRY,{typeId:encodeURIComponent(d.id)}),e.url);return m.call(e,f,{method:"GET",requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));try{var d=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content",c)}return Promise.resolve({correlator:c,type:d})})},a.Connection.V2.prototype.listSubscriptions=function(d){null==d&&(d={});var e=b.get(this),f=new c(a.endpoints.v2.SUBSCRIPTION_COLLECTION,e.url),g=[],h=U(d,g);return 0!==g.length&&(h.options=g.join(",")),m.call(e,f,{method:"GET",parameters:h,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));var e={correlator:c,limit:d.limit,offset:d.offset,results:JSON.parse(b.responseText)};return!0===d.count&&(e.count=parseInt(b.getHeader("Fiware-Total-Count"),10)),Promise.resolve(e)})},a.Connection.V2.prototype.createSubscription=function(d,e){var f,g,h=b.get(this);if(null==e&&(e={}),"object"!=typeof d)throw new TypeError("invalid subscription parameter");if("callback"in d.notification){if("function"!=typeof d.notification.callback)throw new TypeError("invalid callback configuration");var i=function(a,b){var c=JSON.parse(a);c.attrsformat=b["ngsiv2-attrsformat"],this(c)}.bind(d.notification.callback);f=h.ngsi_proxy.requestCallback(i).then(function(a){g=a,delete d.notification.callback,d.notification.http={url:g.url}})}else f=Promise.resolve();var j=new c(a.endpoints.v2.SUBSCRIPTION_COLLECTION,h.url);return f.then(function(){return m.call(h,j,{method:"POST",postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}})}).then(function(b){var c=b.getHeader("Fiware-correlator");if(201!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));var e=b.getHeader("Location"),f=e.split("/").pop();return d.id=f,g&&this.ngsi_proxy.associateSubscriptionId(g.callback_id,f),Promise.resolve({correlator:c,subscription:d,location:e})}.bind(h),function(a){return g&&this.ngsi_proxy.closeCallback(g.callback_id),Promise.reject(a)}.bind(h))},a.Connection.V2.prototype.getSubscription=function(d){if(null==d)throw new TypeError("missing options parameter");"string"==typeof d&&(d={id:d});var e=b.get(this),f=new c(j(a.endpoints.v2.SUBSCRIPTION_ENTRY,{subscriptionId:encodeURIComponent(d.id)}),e.url);return m.call(e,f,{method:"GET",requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));try{var d=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content",c)}return Promise.resolve({correlator:c,subscription:d})})},a.Connection.V2.prototype.updateSubscription=function(d,e){null==e&&(e={});var f=b.get(this),g=new c(j(a.endpoints.v2.SUBSCRIPTION_ENTRY,{subscriptionId:encodeURIComponent(d.id)}),f.url);return delete d.id,m.call(f,g,{method:"PATCH",postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.deleteSubscription=function(d){if(null==d)throw new TypeError("missing options parameter");"string"==typeof d&&(d={id:d});var e=b.get(this),f=new c(j(a.endpoints.v2.SUBSCRIPTION_ENTRY,{subscriptionId:encodeURIComponent(d.id)}),e.url);return m.call(e,f,{method:"DELETE",requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(404===b.status){try{var d=V(b)}catch(b){return Promise.reject(new a.InvalidResponseError(null,c))}return Promise.reject(new a.NotFoundError({message:d.description,correlator:c}))}return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.batchUpdate=function(d,e){if(null==e&&(e={}),null==d)throw new TypeError("missing changes parameter");var f=b.get(this),g=new c(j(a.endpoints.v2.BATCH_UPDATE_OP),f.url),h={};return!0===e.keyValues&&(h.options="keyValues"),m.call(f,g,{method:"POST",parameters:h,postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.batchQuery=function(d,e){null==e&&(e={}),null==d?d={entities:[]}:null==d.entities&&null==d.attributes&&(d.entities=[]);var f=b.get(this),g=new c(a.endpoints.v2.BATCH_QUERY_OP,f.url),h=[],i=U(e,h);return!0===e.keyValues&&h.push("keyValues"),!0===e.values&&h.push("values"),!0===e.unique&&h.push("unique"),h.length>0&&(i.options=h.join(",")),i.orderBy=e.orderBy,m.call(f,g,{method:"POST",parameters:i,postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));try{var d=JSON.parse(b.responseText)}catch(b){return Promise.reject(new a.InvalidResponseError("Server returned invalid JSON content",c))}var f={correlator:c,limit:e.limit,offset:e.offset,results:d};return!0===e.count&&(f.count=parseInt(b.getHeader("Fiware-Total-Count"),10)),Promise.resolve(f)})},"undefined"!=typeof window&&(window.NGSI=a)}(); +!function(){"use strict";var a,b=new WeakMap;if("function"==typeof require&&null!=typeof exports){a=exports;var c=require("whatwg-url").URL}else{a={};var c=window.URL,d=function(a){if(null==a||"object"!=typeof a)throw new TypeError("object argument must be an object");return Array.prototype.slice.call(arguments,1).forEach(function(b){null!=b&&Object.keys(b).forEach(function(c){a[c]=b[c]})}),a},e=function(){var a,b;a=d({Accept:"application/json, */*"},this.options.requestHeaders),null==this.options.postBody||"Content-Type"in a||null==this.options.contentType||(a["Content-Type"]=this.options.contentType,null!=this.options.encoding&&(a["Content-Type"]+="; charset="+this.options.encoding));for(b in a)null!=a[b]&&this.transport.setRequestHeader(b,a[b])},f=function(a){Object.defineProperties(this,{request:{value:a},transport:{value:a.transport},status:{value:a.transport.status},statusText:{value:a.transport.statusText},response:{value:a.transport.response}}),null!=a.options.responseType&&""!==a.options.responseType||Object.defineProperties(this,{responseText:{value:a.transport.responseText},responseXML:{value:a.transport.responseXML}})};f.prototype.getHeader=function(a){try{return this.transport.getResponseHeader(a)}catch(a){return null}};var g=function(a){var b,c=[];if(null==a||"object"!=typeof a)return null;for(b in a)void 0!==a[b]&&(null===a[b]?c.push(encodeURIComponent(b)+"="):c.push(encodeURIComponent(b)+"="+encodeURIComponent(a[b])));return c.length>0?c.join("&"):null},h=function(b,c){this.options=d({method:"POST",asynchronous:!0,responseType:null,contentType:null,encoding:null,postBody:null},c),Object.defineProperties(this,{method:{value:this.options.method.toUpperCase()}});var h=g(this.options.parameters);-1!==["PUT","POST"].indexOf(this.method)&&null==this.options.postBody?null!=h&&(this.options.postBody=h,null==this.options.contentType&&(this.options.contentType="application/x-www-form-urlencoded"),null==this.options.encoding&&(this.options.encoding="UTF-8")):null!=h&&(""!==b.search?b.search=b.search+"&"+h:b.search="?"+h),Object.defineProperties(this,{url:{value:b},abort:{value:function(){return this.transport.aborted=!0,this.transport.abort(),this}}}),Object.defineProperty(this,"transport",{value:new XMLHttpRequest}),!0===this.options.withCredentials&&this.options.supportsAccessControl&&(this.transport.withCredentials=!0),this.options.responseType&&(this.transport.responseType=this.options.responseType),this.promise=new Promise(function(b,c){this.transport.addEventListener("abort",function(a){a.stopPropagation(),a.preventDefault(),c("aborted")}),this.transport.addEventListener("load",function(){var a=new f(this);b(a)}.bind(this)),this.transport.addEventListener("error",function(){c(new a.ConnectionError(this))}.bind(this))}.bind(this)),this.transport.open(this.method,this.url,this.options.asynchronous),e.call(this),this.transport.send(this.options.postBody)};h.prototype.then=function(a,b){return this.promise.then(a,b)},h.prototype.catch=function(a){return this.promise.catch(a)};var i=function(a,b){return new h(a,b)}}a.endpoints={SERVER_DETAILS:"version",v1:{REGISTER_CONTEXT:"v1/registry/registerContext",DISCOVER_CONTEXT_AVAILABILITY:"v1/registry/discoverContextAvailability",SUBSCRIBE_CONTEXT_AVAILABILITY:"v1/registry/subscribeContextAvailability",UPDATE_CONTEXT_AVAILABILITY_SUBSCRIPTION:"v1/registry/updateContextAvailabilitySubscription",UNSUBSCRIBE_CONTEXT_AVAILABILITY:"v1/registry/unsubscribeContextAvailability",QUERY_CONTEXT:"v1/queryContext",UPDATE_CONTEXT:"v1/updateContext",SUBSCRIBE_CONTEXT:"v1/subscribeContext",UPDATE_CONTEXT_SUBSCRIPTION:"v1/updateContextSubscription",UNSUBSCRIBE_CONTEXT:"v1/unsubscribeContext",CONTEXT_TYPES:"v1/contextTypes"},v2:{BATCH_QUERY_OP:"v2/op/query",BATCH_UPDATE_OP:"v2/op/update",ENTITY_ATTRS_COLLECTION:"v2/entities/%(entityId)s/attrs",ENTITY_ATTR_ENTRY:"v2/entities/%(entityId)s/attrs/%(attribute)s",ENTITY_ATTR_VALUE_ENTRY:"v2/entities/%(entityId)s/attrs/%(attribute)s/value",ENTITY_COLLECTION:"v2/entities",ENTITY_ENTRY:"v2/entities/%(entityId)s",SUBSCRIPTION_COLLECTION:"v2/subscriptions",SUBSCRIPTION_ENTRY:"v2/subscriptions/%(subscriptionId)s",TYPE_COLLECTION:"v2/types",TYPE_ENTRY:"v2/types/%(typeId)s"}},a.proxy_endpoints={EVENTSOURCE_COLLECTION:"eventsource",CALLBACK_COLLECTION:"callbacks"};var j=function(a,b){return a.replace(/%\(\w+\)s/g,function(a){return String(b[a.slice(2,-2)])})},k=function(b,c,d,e,f){var g,h=null,i=null;null!=c&&(i="application/json",h=JSON.stringify(c)),g=JSON.parse(JSON.stringify(this.headers)),g.Accept="application/json",this.makeRequest(b,{method:null!=h?"POST":"GET",contentType:i,requestHeaders:g,parameters:f,postBody:h}).then(function(b){var c;if(200!==b.status)"function"==typeof e.onFailure&&(c=b instanceof a.ConnectionError?b:-1!==[0,502,504].indexOf(b.status)?new a.ConnectionError("Connection Error"):new a.InvalidResponseError("Unexpected error code: "+b.status),e.onFailure(c));else if("function"==typeof e.onSuccess){var f;try{try{f=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content")}f=d(f,e)}catch(a){return"function"==typeof e.onFailure&&e.onFailure(a),void("function"==typeof e.onComplete&&e.onComplete())}e.onSuccess.apply(null,f)}"function"==typeof e.onComplete&&e.onComplete()},function(b){if("function"==typeof e.onFailure){b instanceof a.ConnectionError||(b=new a.ConnectionError);try{e.onFailure(b)}catch(a){}}"function"==typeof e.onComplete&&e.onComplete()})},l=function(a,b){var c=a.trim().toLowerCase(),d=Object.keys(b),e=d.map(function(a){return a.trim().toLowerCase()}).indexOf(c);-1!==e&&delete b[d[e]]},m=function(b,c){null!=c.postBody&&(c.contentType="application/json",c.postBody=JSON.stringify(c.postBody));var d=JSON.parse(JSON.stringify(this.headers));d.Accept="application/json";for(var e in c.requestHeaders)null!=c.requestHeaders[e]&&(l(e,d),d[e]=c.requestHeaders[e]);return c.requestHeaders=d,this.makeRequest(b,c).then(function(b){return-1!==[0,502,504].indexOf(b.status)?Promise.reject(new a.ConnectionError):Promise.resolve(b)},function(b){return b instanceof a.ConnectionError||(b=new a.ConnectionError),Promise.reject(b)})},n=function(a){var b,c;return c="string"==typeof a.isPattern&&"true"===a.isPattern.trim().toLowerCase()||!0===a.isPattern,b={id:""+a.id,isPattern:""+c},null!=a.type&&(b.type=""+a.type),b},o=function(a){var b,c,d;if("polygon"in a.value){for(b={polygon:{vertices:[]}},c=0;c0)for(d.attributes=[],e=0;e0&&(j.metadatas=q(i.metadata)),g.push(j);c.contextElements.push(f)}return c},u=function(a,b){var c,d;for(c={entities:[],attributes:b},d=0;d0&&(g.attributes=b),null!=c&&(g.duration=""+c),null!=d&&(g.restriction=p(d)),g},w=function(a){return{subscriptionId:a}},x=function(a,b,c,d,e,f,g){var h,i,j,k;if(a)h={subscriptionId:a};else{for(h={entities:[],reference:g},i=0;i0&&(h.options=i.join(",")),m.call(f,g,{method:"POST",parameters:h,postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.updateEntityAttributes=function(d,e){if(null==e&&(e={}),null==d)throw new TypeError("missing changes parameter");var f=b.get(this),g=new c(j(a.endpoints.v2.ENTITY_ATTRS_COLLECTION,{entityId:encodeURIComponent(d.id)}),f.url),h={};return delete d.id,null!=d.type&&(h.type=d.type,delete d.type),!0===e.keyValues&&(h.options="keyValues"),m.call(f,g,{method:"PATCH",parameters:h,postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.replaceEntityAttributes=function(d,e){null==e&&(e={});var f=b.get(this),g=new c(j(a.endpoints.v2.ENTITY_ATTRS_COLLECTION,{entityId:encodeURIComponent(d.id)}),f.url),h={},i=z(d,e,h);return m.call(f,g,{method:"PUT",postBody:i,parameters:h,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c,entity:d})})},a.Connection.V2.prototype.deleteEntity=function(d){if(null==d)throw new TypeError("missing options parameter");if("string"==typeof d)d={id:d};else if(null==d.id)throw new TypeError("missing id option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ENTRY,{entityId:encodeURIComponent(d.id)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"DELETE",parameters:g,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(404===b.status){try{var d=V(b)}catch(b){return Promise.reject(new a.InvalidResponseError(null,c))}return Promise.reject(new a.NotFoundError({message:d.description,correlator:c}))}return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.getEntityAttribute=function(d){if(null==d)throw new TypeError("missing options parameter");if(null==d.id)throw new TypeError("missing id option");if(null==d.attribute)throw new TypeError("missing attribute option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ATTR_ENTRY,{entityId:encodeURIComponent(d.id),attribute:encodeURIComponent(d.attribute)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"GET",parameters:g,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status),c);try{var d=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content",c)}return Promise.resolve({correlator:c,attribute:d})})},a.Connection.V2.prototype.replaceEntityAttribute=function(d,e){if(null==d)throw new TypeError("missing changes parameter");if(null==e&&(e={attribute:d.attribute,correlator:d.correlator,id:d.id,service:d.service,servicepath:d.servicepath,type:d.type}),null==e.id)throw new TypeError("missing id option");if(null==e.attribute)throw new TypeError("missing attribute option");var f={value:d.value,metadata:d.metadata},g=b.get(this),h=new c(j(a.endpoints.v2.ENTITY_ATTR_ENTRY,{entityId:encodeURIComponent(e.id),attribute:encodeURIComponent(e.attribute)}),g.url),i={};return null!=e.type&&(i.type=e.type),m.call(g,h,{method:"PUT",parameters:i,postBody:f,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c,attribute:f})})},a.Connection.V2.prototype.deleteEntityAttribute=function(d){if(null==d)throw new TypeError("missing options parameter");if(null==d.id)throw new TypeError("missing id option");if(null==d.attribute)throw new TypeError("missing attribute option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ATTR_ENTRY,{entityId:encodeURIComponent(d.id),attribute:encodeURIComponent(d.attribute)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"DELETE",parameters:g,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(404===b.status){try{var d=V(b)}catch(b){return Promise.reject(new a.InvalidResponseError(null,c))}return Promise.reject(new a.NotFoundError({message:d.description,correlator:c}))}return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.getEntityAttributeValue=function(d){if(null==d)throw new TypeError("missing options parameter");if(null==d.id)throw new TypeError("missing id option");if(null==d.attribute)throw new TypeError("missing attribute option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ATTR_VALUE_ENTRY,{entityId:encodeURIComponent(d.id),attribute:encodeURIComponent(d.attribute)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"GET",parameters:g,requestHeaders:{Accept:"application/json, text/plain","FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));try{var d=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content",c)}return Promise.resolve({correlator:c,value:d})})},a.Connection.V2.prototype.replaceEntityAttributeValue=function(d){if(null==d)throw new TypeError("missing options parameter");if(null==d.id)throw new TypeError("missing id option");if(null==d.attribute)throw new TypeError("missing attribute option");if(void 0===d.value)throw new TypeError("missing value option");var e=b.get(this),f=new c(j(a.endpoints.v2.ENTITY_ATTR_VALUE_ENTRY,{entityId:encodeURIComponent(d.id),attribute:encodeURIComponent(d.attribute)}),e.url),g={};return null!=d.type&&(g.type=d.type),m.call(e,f,{method:"PUT",parameters:g,postBody:d.value,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c,value:d.value})})},a.Connection.V2.prototype.listTypes=function(d){null==d&&(d={});var e=b.get(this),f=new c(a.endpoints.v2.TYPE_COLLECTION,e.url),g=[],h=U(d,g);return!0===d.values&&g.push("values"),0!==g.length&&(h.options=g.join(",")),m.call(e,f,{method:"GET",parameters:h,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));var e={correlator:c,limit:d.limit,offset:d.offset,results:JSON.parse(b.responseText)};return!0===d.count&&(e.count=parseInt(b.getHeader("Fiware-Total-Count"),10)),Promise.resolve(e)})},a.Connection.V2.prototype.getType=function(d){if(null==d)throw new TypeError("missing options parameter");"string"==typeof d&&(d={id:d});var e=b.get(this),f=new c(j(a.endpoints.v2.TYPE_ENTRY,{typeId:encodeURIComponent(d.id)}),e.url);return m.call(e,f,{method:"GET",requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));try{var d=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content",c)}return Promise.resolve({correlator:c,type:d})})},a.Connection.V2.prototype.listSubscriptions=function(d){null==d&&(d={});var e=b.get(this),f=new c(a.endpoints.v2.SUBSCRIPTION_COLLECTION,e.url),g=[],h=U(d,g);return 0!==g.length&&(h.options=g.join(",")),m.call(e,f,{method:"GET",parameters:h,requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));var e={correlator:c,limit:d.limit,offset:d.offset,results:JSON.parse(b.responseText)};return!0===d.count&&(e.count=parseInt(b.getHeader("Fiware-Total-Count"),10)),Promise.resolve(e)})},a.Connection.V2.prototype.createSubscription=function(d,e){var f,g,h=b.get(this);if(null==e&&(e={}),"object"!=typeof d)throw new TypeError("invalid subscription parameter");if("callback"in d.notification){if("function"!=typeof d.notification.callback)throw new TypeError("invalid callback configuration");var i=function(a,b){var c=JSON.parse(a);c.attrsformat=b["ngsiv2-attrsformat"],this(c)}.bind(d.notification.callback);f=h.ngsi_proxy.requestCallback(i).then(function(a){g=a,delete d.notification.callback,d.notification.http={url:g.url}})}else f=Promise.resolve();var j=new c(a.endpoints.v2.SUBSCRIPTION_COLLECTION,h.url);return f.then(function(){return m.call(h,j,{method:"POST",postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}})}).then(function(b){var c=b.getHeader("Fiware-correlator");if(201!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));var e=b.getHeader("Location"),f=e.split("/").pop();return d.id=f,g&&this.ngsi_proxy.associateSubscriptionId(g.callback_id,f),Promise.resolve({correlator:c,subscription:d,location:e})}.bind(h),function(a){return g&&this.ngsi_proxy.closeCallback(g.callback_id),Promise.reject(a)}.bind(h))},a.Connection.V2.prototype.getSubscription=function(d){if(null==d)throw new TypeError("missing options parameter");"string"==typeof d&&(d={id:d});var e=b.get(this),f=new c(j(a.endpoints.v2.SUBSCRIPTION_ENTRY,{subscriptionId:encodeURIComponent(d.id)}),e.url);return m.call(e,f,{method:"GET",requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));try{var d=JSON.parse(b.responseText)}catch(b){throw new a.InvalidResponseError("Server returned invalid JSON content",c)}return Promise.resolve({correlator:c,subscription:d})})},a.Connection.V2.prototype.updateSubscription=function(d,e){null==e&&(e={});var f=b.get(this),g=new c(j(a.endpoints.v2.SUBSCRIPTION_ENTRY,{subscriptionId:encodeURIComponent(d.id)}),f.url);return delete d.id,m.call(f,g,{method:"PATCH",postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.deleteSubscription=function(d){if(null==d)throw new TypeError("missing options parameter");"string"==typeof d&&(d={id:d});var e=b.get(this),f=new c(j(a.endpoints.v2.SUBSCRIPTION_ENTRY,{subscriptionId:encodeURIComponent(d.id)}),e.url);return m.call(e,f,{method:"DELETE",requestHeaders:{"FIWARE-Correlator":d.correlator,"FIWARE-Service":d.service,"FIWARE-ServicePath":d.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(404===b.status){try{var d=V(b)}catch(b){return Promise.reject(new a.InvalidResponseError(null,c))}return Promise.reject(new a.NotFoundError({message:d.description,correlator:c}))}return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.batchUpdate=function(d,e){if(null==e&&(e={}),null==d)throw new TypeError("missing changes parameter");var f=b.get(this),g=new c(j(a.endpoints.v2.BATCH_UPDATE_OP),f.url),h={};return!0===e.keyValues&&(h.options="keyValues"),m.call(f,g,{method:"POST",parameters:h,postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");return 204!==b.status?Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c)):Promise.resolve({correlator:c})})},a.Connection.V2.prototype.batchQuery=function(d,e){null==e&&(e={}),null==d?d={entities:[]}:null==d.entities&&null==d.attributes&&(d.entities=[]);var f=b.get(this),g=new c(a.endpoints.v2.BATCH_QUERY_OP,f.url),h=[],i=U(e,h);return!0===e.keyValues&&h.push("keyValues"),!0===e.values&&h.push("values"),!0===e.unique&&h.push("unique"),h.length>0&&(i.options=h.join(",")),i.orderBy=e.orderBy,m.call(f,g,{method:"POST",parameters:i,postBody:d,requestHeaders:{"FIWARE-Correlator":e.correlator,"FIWARE-Service":e.service,"FIWARE-ServicePath":e.servicepath}}).then(function(b){var c=b.getHeader("Fiware-correlator");if(200!==b.status)return Promise.reject(new a.InvalidResponseError("Unexpected error code: "+b.status,c));try{var d=JSON.parse(b.responseText)}catch(b){return Promise.reject(new a.InvalidResponseError("Server returned invalid JSON content",c))}var f={correlator:c,limit:e.limit,offset:e.offset,results:d};return!0===e.count&&(f.count=parseInt(b.getHeader("Fiware-Total-Count"),10)),Promise.resolve(f)})},"undefined"!=typeof window&&(window.NGSI=a)}(); //# sourceMappingURL=NGSI.min.js.map \ No newline at end of file diff --git a/dist/NGSI.min.js.map b/dist/NGSI.min.js.map index 0a75946..02ecdc0 100644 --- a/dist/NGSI.min.js.map +++ b/dist/NGSI.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["NGSI.js"],"names":["NGSI","privates","WeakMap","require","exports","URL","window","merge","object","TypeError","Array","prototype","slice","call","arguments","forEach","source","Object","keys","key","setRequestHeaders","headers","name","Accept","this","options","requestHeaders","contentType","encoding","transport","setRequestHeader","Response","request","defineProperties","value","status","statusText","response","responseType","responseText","responseXML","getHeader","getResponseHeader","e","getAllResponseHeaders","toQueryString","parameters","query","push","encodeURIComponent","length","join","Request","url","method","asynchronous","postBody","toUpperCase","indexOf","search","abort","aborted","defineProperty","XMLHttpRequest","withCredentials","supportsAccessControl","promise","Promise","resolve","reject","addEventListener","event","stopPropagation","preventDefault","bind","ConnectionError","open","send","then","onFulfilled","onRejected","catch","makeRequest","endpoints","SERVER_DETAILS","v1","REGISTER_CONTEXT","DISCOVER_CONTEXT_AVAILABILITY","SUBSCRIBE_CONTEXT_AVAILABILITY","UPDATE_CONTEXT_AVAILABILITY_SUBSCRIPTION","UNSUBSCRIBE_CONTEXT_AVAILABILITY","QUERY_CONTEXT","UPDATE_CONTEXT","SUBSCRIBE_CONTEXT","UPDATE_CONTEXT_SUBSCRIPTION","UNSUBSCRIBE_CONTEXT","CONTEXT_TYPES","v2","BATCH_QUERY_OP","BATCH_UPDATE_OP","ENTITY_ATTRS_COLLECTION","ENTITY_ATTR_ENTRY","ENTITY_ATTR_VALUE_ENTRY","ENTITY_COLLECTION","ENTITY_ENTRY","SUBSCRIPTION_COLLECTION","SUBSCRIPTION_ENTRY","TYPE_COLLECTION","TYPE_ENTRY","proxy_endpoints","EVENTSOURCE_COLLECTION","CALLBACK_COLLECTION","interpolate","pattern","attributes","replace","match","String","makeJSONRequest","payload","parse_func","callbacks","body","JSON","stringify","parse","error","onFailure","InvalidResponseError","onSuccess","data","e1","onComplete","apply","deleteHeader","headerName","headerNameLow","trim","toLowerCase","index","map","makeJSONRequest2","ngsi_build_entity_id_element_json","entity","entityId","isPattern","id","type","ngsi_build_scope_restriction_element_json","scope","result","i","vertice","polygon","vertices","latitude","longitude","inverted","circle","centerLatitude","centerLongitude","radius","ngsi_build_restriction_element_json","restriction","scopes","isArray","ngsi_build_attribute_metadata_element","metadata","ngsi_build_register_context_request","attr","duration","providingApplication","regId","doc","attribute","attributeElement","contextRegistrations","entities","isDomain","registrationId","ngsi_build_query_context_request","attrNames","ngsi_build_update_context_request","updateAction","update","j","contextElement","attributeListElement","contextElements","contextValue","metadatas","ngsi_build_discover_context_availability_request","ngsi_build_subscribe_update_context_availability_request","subscriptionId","onNotify","reference","ngsi_build_unsubscribe_context_availability_request","subId","ngsi_build_subscribe_update_context_request","throttling","conditions","condition","notifyConditionElement","notifyConditions","condValues","ngsi_build_unsubscribe_context_request","ngsi_build_replace_entity_request","keyValues","parse_register_context_response","process_error_code_json","parse_context_registration_response_list","registrationResponses","registrationResponse","registration","contextRegistration","parse_discover_context_availability_response","contextRegistrationResponses","parse_subscribe_update_context_availability_response","parse_unsubscribe_context_availability_response","statusCode","process_status_info_json","parse_context_response_list_json","elements","update_response","contextResponse","entry","flat","attribute_info","attribute_entry","status_info","error_data","code","parse_available_types_response","parsed_details","details","NGSI_INVALID_OFFSET_RE","text","matches","parseInt","offset","count","NGSI_QUERY_COUNT_RE","types","parse_type_info_response","NotFoundError","message","reasonPhrase","obj","InvalidRequestError","errorCode","RegExp","parse_query_context_response","contextResponses","parse_update_context_response","parse_subscribe_response_element","parse_subscribe_context_response","subscribeResponse","parse_update_context_subscription_response","parse_unsubscribe_context_response","parse_notify_context_availability_request","parse_pagination_options","default_details","limit","parse_pagination_options2","optionsparams","Number","isInteger","parse_error_response","parseNotifyContextRequest","originator","init","get","priv","source_url","connect_to_eventsource","closeTimeout","_wait_event_source_init","clearTimeout","connection_id","removeEventListener","callback_id","EventSource","setTimeout","close","on_callback_subscriptions_get","mapping","subscription","on_connected_get","on_connecting_get","on_connection_id_get","on_subscription_callbacks_get","subscriptions","callbacksBySubscriptionId","ProxyConnection","protocol","substr","pathname","set","connected","callbackSubscriptions","connecting","subscriptionCallbacks","connect","requestCallback","callback","async","closeCallback","purgeCallback","associateSubscriptionId","closeSubscriptionCallback","Error","constructor","correlator","ProxyConnectionError","cause","Connection","request_headers","service","servicepath","requestFunction","ngsi_proxy_connection","ngsi_proxy","ngsi_proxy_url","V2","getServerDetails","FIWARE-Correlator","createRegistration","updateRegistration","cancelRegistration","discoverAvailability","attributeNames","createAvailabilitySubscription","proxy_callback","oldOnFailure","oldOnSuccess","updateAvailabilitySubscription","cancelAvailabilitySubscription","attributesName","updateAttributes","addAttributes","toAdd","deleteAttributes","toDelete","createSubscription","cond","exception","updateSubscription","cancelSubscription","old_success_callback","getAvailableTypes","getTypeInfo","connection","listEntities","idPattern","typePattern","values","unique","attrs","orderBy","mq","q","georel","geometry","coords","FIWARE-Service","FIWARE-ServicePath","results","createEntity","location","getEntity","getEntityAttributes","appendEntityAttributes","changes","strict","updateEntityAttributes","replaceEntityAttributes","deleteEntity","description","getEntityAttribute","replaceEntityAttribute","deleteEntityAttribute","getEntityAttributeValue","replaceEntityAttributeValue","listTypes","getType","typeId","listSubscriptions","p","notification","attrsformat","http","subscription_url","subscription_id","split","pop","getSubscription","deleteSubscription","batchUpdate","batchQuery"],"mappings":"CAwCA,WAEI,YAMA,IAAIA,GAEAC,EAAW,GAAIC,QAInB,IAAwB,kBAAZC,UAA6C,YAAXC,SAAiB,CAC3DJ,EAAOI,OACP,IAAIC,GAAMF,QAAQ,cAAcE,QAC7B,CACHL,IACA,IAAIK,GAAMC,OAAOD,IAKbE,EAAQ,SAAeC,GAEvB,GAAc,MAAVA,GAAoC,gBAAXA,GACzB,KAAM,IAAIC,WAAU,oCAWxB,OARAC,OAAMC,UAAUC,MAAMC,KAAKC,UAAW,GAAGC,QAAQ,SAAUC,GACzC,MAAVA,GACAC,OAAOC,KAAKF,GAAQD,QAAQ,SAAUI,GAClCX,EAAOW,GAAOH,EAAOG,OAK1BX,GAGPY,EAAoB,WACpB,GAAIC,GAASC,CAMP,kBAJND,EAAUd,GACNgB,OAAU,8DACXC,KAAKC,QAAQC,kBAEgD,MAA5BF,KAAKC,QAAQE,cAC7CN,EAAQ,g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AAIhD,GAAIL,EAAKmF,UAAUc,GAAGC,eAAgB6P,EAAW1S,KAC3DmN,KACA1N,EAAayN,EAA0B9O,EAAS+O,EAiBpD,QAf0B,IAAtB/O,EAAQsL,WACRyD,EAAcxN,KAAK,cAEA,IAAnBvB,EAAQ0U,QACR3F,EAAcxN,KAAK,WAEA,IAAnBvB,EAAQ2U,QACR5F,EAAcxN,KAAK,UAEnBwN,EAActN,OAAS,IACvBJ,EAAWrB,QAAU+O,EAAcrN,KAAK,MAG5CL,EAAWwT,QAAU7U,EAAQ6U,QAEtBzN,EAAiBhI,KAAKkV,EAAY1S,GACrCC,OAAQ,OACRR,WAAYA,EACZU,SAAUT,EACVrB,gBACI2S,oBAAqB5S,EAAQ+R,WAC7BoD,iBAAkBnV,EAAQoS,QAC1BgD,qBAAsBpV,EAAQqS,eAEnChP,KAAK,SAAUzC,GACd,GAAImR,GAAanR,EAASI,UAAU,oBACpC,IAAwB,MAApBJ,EAASF,OACT,MAAOgC,SAAQE,OAAO,GAAIrE,GAAKgI,qBAAqB,0BAA4B3F,EAASF,OAAQqR,GAGrG,KACI,GAAItL,GAAOP,KAAKE,MAAMxF,EAASE,cACjC,MAAOI,GACL,MAAOwB,SAAQE,OAAO,GAAIrE,GAAKgI,qBAAqB,uCAAwCwL,IAGhG,GAAIlK,IACAkK,WAAYA,EACZlD,MAAO7O,EAAQ6O,MACfvB,OAAQtN,EAAQsN,OAChB+H,QAAS5O,EAMb,QAJsB,IAAlBzG,EAAQuN,QACR1F,EAAO0F,MAAQF,SAASzM,EAASI,UAAU,sBAAuB,KAG/D0B,QAAQC,QAAQkF,MAMT,mBAAXhJ,UACPA,OAAON,KAAOA","file":"NGSI.min.js"} \ No newline at end of file +{"version":3,"sources":["NGSI.js"],"names":["NGSI","privates","WeakMap","require","exports","URL","window","merge","object","TypeError","Array","prototype","slice","call","arguments","forEach","source","Object","keys","key","setRequestHeaders","headers","name","Accept","this","options","requestHeaders","postBody","contentType","encoding","transport","setRequestHeader","Response","request","defineProperties","value","status","statusText","response","responseType","responseText","responseXML","getHeader","getResponseHeader","e","toQueryString","parameters","query","push","encodeURIComponent","length","join","Request","url","method","asynchronous","toUpperCase","indexOf","search","abort","aborted","defineProperty","XMLHttpRequest","withCredentials","supportsAccessControl","promise","Promise","resolve","reject","addEventListener","event","stopPropagation","preventDefault","bind","ConnectionError","open","send","then","onFulfilled","onRejected","catch","makeRequest","endpoints","SERVER_DETAILS","v1","REGISTER_CONTEXT","DISCOVER_CONTEXT_AVAILABILITY","SUBSCRIBE_CONTEXT_AVAILABILITY","UPDATE_CONTEXT_AVAILABILITY_SUBSCRIPTION","UNSUBSCRIBE_CONTEXT_AVAILABILITY","QUERY_CONTEXT","UPDATE_CONTEXT","SUBSCRIBE_CONTEXT","UPDATE_CONTEXT_SUBSCRIPTION","UNSUBSCRIBE_CONTEXT","CONTEXT_TYPES","v2","BATCH_QUERY_OP","BATCH_UPDATE_OP","ENTITY_ATTRS_COLLECTION","ENTITY_ATTR_ENTRY","ENTITY_ATTR_VALUE_ENTRY","ENTITY_COLLECTION","ENTITY_ENTRY","SUBSCRIPTION_COLLECTION","SUBSCRIPTION_ENTRY","TYPE_COLLECTION","TYPE_ENTRY","proxy_endpoints","EVENTSOURCE_COLLECTION","CALLBACK_COLLECTION","interpolate","pattern","attributes","replace","match","String","makeJSONRequest","payload","parse_func","callbacks","body","JSON","stringify","parse","error","onFailure","InvalidResponseError","onSuccess","data","e1","onComplete","apply","deleteHeader","headerName","headerNameLow","trim","toLowerCase","index","map","makeJSONRequest2","ngsi_build_entity_id_element_json","entity","entityId","isPattern","id","type","ngsi_build_scope_restriction_element_json","scope","result","i","vertice","polygon","vertices","latitude","longitude","inverted","circle","centerLatitude","centerLongitude","radius","ngsi_build_restriction_element_json","restriction","scopes","isArray","ngsi_build_attribute_metadata_element","metadata","ngsi_build_register_context_request","attr","duration","providingApplication","regId","doc","attribute","attributeElement","contextRegistrations","entities","isDomain","registrationId","ngsi_build_query_context_request","attrNames","ngsi_build_update_context_request","updateAction","update","j","contextElement","attributeListElement","contextElements","contextValue","metadatas","ngsi_build_discover_context_availability_request","ngsi_build_subscribe_update_context_availability_request","subscriptionId","onNotify","reference","ngsi_build_unsubscribe_context_availability_request","subId","ngsi_build_subscribe_update_context_request","throttling","conditions","condition","notifyConditionElement","notifyConditions","condValues","ngsi_build_unsubscribe_context_request","ngsi_build_replace_entity_request","keyValues","parse_register_context_response","process_error_code_json","parse_context_registration_response_list","registrationResponses","registrationResponse","registration","contextRegistration","parse_discover_context_availability_response","contextRegistrationResponses","parse_subscribe_update_context_availability_response","parse_unsubscribe_context_availability_response","statusCode","process_status_info_json","parse_context_response_list_json","elements","update_response","contextResponse","entry","flat","attribute_info","attribute_entry","status_info","error_data","code","parse_available_types_response","parsed_details","details","NGSI_INVALID_OFFSET_RE","text","matches","parseInt","offset","count","NGSI_QUERY_COUNT_RE","types","parse_type_info_response","NotFoundError","message","reasonPhrase","obj","InvalidRequestError","errorCode","RegExp","parse_query_context_response","contextResponses","parse_update_context_response","parse_subscribe_response_element","parse_subscribe_context_response","subscribeResponse","parse_update_context_subscription_response","parse_unsubscribe_context_response","parse_notify_context_availability_request","parse_pagination_options","default_details","limit","parse_pagination_options2","optionsparams","Number","isInteger","parse_error_response","parseNotifyContextRequest","originator","init","get","priv","source_url","connect_to_eventsource","closeTimeout","_wait_event_source_init","clearTimeout","connection_id","removeEventListener","callback_id","EventSource","setTimeout","close","on_callback_subscriptions_get","mapping","subscription","on_connected_get","on_connecting_get","on_connection_id_get","on_subscription_callbacks_get","subscriptions","callbacksBySubscriptionId","ProxyConnection","protocol","substr","pathname","set","connected","callbackSubscriptions","connecting","subscriptionCallbacks","connect","requestCallback","callback","async","closeCallback","purgeCallback","associateSubscriptionId","closeSubscriptionCallback","Error","constructor","correlator","ProxyConnectionError","cause","Connection","request_headers","service","servicepath","requestFunction","ngsi_proxy_connection","ngsi_proxy","ngsi_proxy_url","V2","getServerDetails","FIWARE-Correlator","createRegistration","updateRegistration","cancelRegistration","discoverAvailability","attributeNames","createAvailabilitySubscription","proxy_callback","oldOnFailure","oldOnSuccess","updateAvailabilitySubscription","cancelAvailabilitySubscription","attributesName","updateAttributes","addAttributes","toAdd","deleteAttributes","toDelete","createSubscription","cond","exception","updateSubscription","cancelSubscription","old_success_callback","getAvailableTypes","getTypeInfo","connection","listEntities","idPattern","typePattern","values","unique","attrs","orderBy","mq","q","georel","geometry","coords","FIWARE-Service","FIWARE-ServicePath","results","createEntity","location","getEntity","getEntityAttributes","appendEntityAttributes","changes","strict","updateEntityAttributes","replaceEntityAttributes","deleteEntity","description","getEntityAttribute","replaceEntityAttribute","deleteEntityAttribute","getEntityAttributeValue","replaceEntityAttributeValue","listTypes","getType","typeId","listSubscriptions","p","notification","attrsformat","http","subscription_url","subscription_id","split","pop","getSubscription","deleteSubscription","batchUpdate","batchQuery"],"mappings":"CAwCA,WAEI,YAMA,IAAIA,GAEAC,EAAW,GAAIC,QAInB,IAAwB,kBAAZC,UAA6C,YAAXC,SAAiB,CAC3DJ,EAAOI,OACP,IAAIC,GAAMF,QAAQ,cAAcE,QAC7B,CACHL,IACA,IAAIK,GAAMC,OAAOD,IAKbE,EAAQ,SAAeC,GAEvB,GAAc,MAAVA,GAAoC,gBAAXA,GACzB,KAAM,IAAIC,WAAU,oCAWxB,OARAC,OAAMC,UAAUC,MAAMC,KAAKC,UAAW,GAAGC,QAAQ,SAAUC,GACzC,MAAVA,GACAC,OAAOC,KAAKF,GAAQD,QAAQ,SAAUI,GAClCX,EAAOW,GAAOH,EAAOG,OAK1BX,GAGPY,EAAoB,WACpB,GAAIC,GAASC,CAEbD,GAAUd,GACNgB,OAAU,yBACXC,KAAKC,QAAQC,gBAEa,MAAzBF,KAAKC,QAAQE,UAAsB,gBAAkBN,IAAwC,MAA5BG,KAAKC,QAAQG,cAC9EP,EAAQ,gBAAkBG,KAAKC,QAAQG,YACV,MAAzBJ,KAAKC,QAAQI,WACbR,EAAQ,iBAAmB,aAAeG,KA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AK,WAEA,IAAnBvB,EAAQ0U,QACR5F,EAAcvN,KAAK,UAEnBuN,EAAcrN,OAAS,IACvBJ,EAAWrB,QAAU8O,EAAcpN,KAAK,MAG5CL,EAAWuT,QAAU5U,EAAQ4U,QAEtBzN,EAAiB/H,KAAKiV,EAAYzS,GACrCC,OAAQ,OACRR,WAAYA,EACZnB,SAAUoB,EACVrB,gBACI0S,oBAAqB3S,EAAQ8R,WAC7BoD,iBAAkBlV,EAAQmS,QAC1BgD,qBAAsBnV,EAAQoS,eAEnChP,KAAK,SAAUvC,GACd,GAAIiR,GAAajR,EAASI,UAAU,oBACpC,IAAwB,MAApBJ,EAASF,OACT,MAAO8B,SAAQE,OAAO,GAAIpE,GAAK+H,qBAAqB,0BAA4BzF,EAASF,OAAQmR,GAGrG,KACI,GAAItL,GAAOP,KAAKE,MAAMtF,EAASE,cACjC,MAAOI,GACL,MAAOsB,SAAQE,OAAO,GAAIpE,GAAK+H,qBAAqB,uCAAwCwL,IAGhG,GAAIlK,IACAkK,WAAYA,EACZlD,MAAO5O,EAAQ4O,MACfvB,OAAQrN,EAAQqN,OAChB+H,QAAS5O,EAMb,QAJsB,IAAlBxG,EAAQsN,QACR1F,EAAO0F,MAAQF,SAASvM,EAASI,UAAU,sBAAuB,KAG/DwB,QAAQC,QAAQkF,MAMT,mBAAX/I,UACPA,OAAON,KAAOA","file":"NGSI.min.js"} \ No newline at end of file diff --git a/package.json b/package.json index 2f38fff..e9ab61d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "vendor": "CoNWeT", "name": "ngsijs", - "version": "1.1.0", + "version": "1.1.1", "description": "Node JavaScript library for Orion Context Broker", "main": "./ngsi-node.js", "repository": {