opengate-js 10.5.3 → 10.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/dump.json CHANGED
@@ -56896,7 +56896,7 @@
56896
56896
  "__docId__": 2143,
56897
56897
  "kind": "file",
56898
56898
  "name": "src/util/NorthAmpliaREST.js",
56899
- "content": "'use strict';\r\n\r\nimport merge from 'merge';\r\nimport urlencode from 'urlencode';\r\nimport request from 'superagent';\r\nimport q from 'q';\r\nimport fs from 'fs';\r\n// MOCK user searching\r\nimport _mock from 'superagent-mocker';\r\nconst mock = _mock(request);\r\n//\r\n\r\n/**\r\n * This is a wrapper of a Rest api javascript\r\n */\r\nexport default class NorthAmpliaREST {\r\n /**\r\n * @param {{ url: string,port: string,version: string,apiKey: string}} _options - this is configuration about Opengate North API.\r\n * @param {function} backend - this is a backend selected to manage a request to Opengate North API.\r\n */\r\n constructor(_options, headers) {\r\n this._options = merge.recursive(true, this.default(), _options);\r\n this._headers = headers;\r\n\r\n // ----------------------------------\r\n /*\r\n mock.post(_options.url + '/search/channels', function(req) {\r\n return {\r\n body: {\r\n \"channels\": [{\r\n \"name\": \"default_channel\",\r\n \"description\": \"Automatic channel\",\r\n \"organization\": \"organization_GetSetParam\",\r\n \"certificates\": []\r\n }]\r\n },\r\n statusCode: 200\r\n };\r\n }); \r\n */\r\n // mock.post(_options.url + '/search/catalog/operations', function(req) {\r\n // return {\r\n // body: {\r\n // \"operations\": [\r\n // {\r\n // \"name\": \"ADMINISTRATIVE_STATUS_CHANGE\",\r\n // \"title\": \"Administrative status change params\",\r\n // \"description\": \"Allows to change the administrative status of an entity\",\r\n // \"applicableTo\": [\r\n // \"GATEWAY\",\r\n // \"ASSET\",\r\n // \"SUBSCRIPTION\",\r\n // \"SUBSCRIBER\"\r\n // ],\r\n // \"categoryPath\": \"/admin\",\r\n // \"parameters\": {\r\n // \"schema\": {\r\n // \"type\": \"object\",\r\n // \"properties\": {\r\n // \"admsts\": {\r\n // \"type\": \"string\",\r\n // \"title\": \"Administrative status\"\r\n // }\r\n // },\r\n // \"additionalProperties\": false,\r\n // \"required\": [\"admsts\"]\r\n // }\r\n // },\r\n // \"steps\": [\r\n // {\r\n // \"name\": \"ADMINISTRATIVE_STATUS_CHANGE\",\r\n // \"title\": \"Administrative Status Change\",\r\n // \"description\": \"\"\r\n // }\r\n // ]\r\n // },\r\n // ]\r\n // },\r\n // statusCode: 200\r\n // };\r\n // }); \r\n // ----------------------------------\r\n\r\n }\r\n\r\n /**\r\n * This return a default configuration object\r\n * @return {object}\r\n */\r\n default () {\r\n return {\r\n timeout: 5000\r\n };\r\n }\r\n\r\n _url(options) {\r\n return options.url;\r\n }\r\n\r\n /**\r\n * Invoke GET action to url specified\r\n * @param {!string} url - url to execute GET\r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @param {boolean} asBlob - response body as Blob\r\n * @return {Promise} \r\n */\r\n get(url, timeout, headers, parameters, asBlob) {\r\n var req = request.get(this._createUrl(url, parameters));\r\n return this._createPromiseRequest(req, null, timeout, headers, asBlob);\r\n }\r\n\r\n /**\r\n * Invoke PATCH action to url and data specified\r\n * @param {!string} url - url to execute PATCH\r\n * @param {object} data - attach data to request PATCH\r\n * @param {number} timeout - timeout in milliseconds\r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n patch(url, data, timeout, headers, parameters) {\r\n var req = request.patch(this._createUrl(url, parameters))\r\n .send(data);\r\n\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n /**\r\n * Invoke POST action to url and data specified\r\n * @param {!string} url - url to execute POST\r\n * @param {object} data - attach data to request POST\r\n * @param {number} timeout - timeout in milliseconds\r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n post(url, data, timeout, headers, parameters) {\r\n var req = request.post(this._createUrl(url, parameters))\r\n .send(data);\r\n\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n\r\n /**\r\n * Invoke POST multipart action to url and data specified\r\n * @param {!string} url - url to execute POST\r\n * @param {FormData} formData - attach data to request POST\r\n * @param {object} events - events allowed, xhr.process \r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n post_multipart(url, formData, events, timeout, headers, parameters) {\r\n let req = request.post(this._createUrl(url, parameters));\r\n\r\n let sendFormData = true\r\n const formDataKeys = Object.keys(formData)\r\n formDataKeys.forEach(key => {\r\n switch (key) {\r\n case 'meta':\r\n case 'json':\r\n case 'file':\r\n req.field(key, formData[key]); \r\n delete formData[key]\r\n break\r\n case 'certificate': \r\n case 'processorBulkFile':\r\n req.attach('file', formData.processorBulkFile);\r\n sendFormData = false\r\n break\r\n case 'bulkFile':\r\n req.set('Content-Type', formData.ext);\r\n formData = formData.bulkFile;\r\n break\r\n default:\r\n break;\r\n }\r\n })\r\n if(sendFormData)\r\n req.send(formData);\r\n return this._createPromiseRequest(req, events, timeout, headers);\r\n \r\n }\r\n\r\n /**\r\n * Invoke PUT action to url and data specified\r\n * @param {!string} url - url to execute PUT\r\n * @param {object} data - attach data to request PUT\r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n put(url, data, timeout, headers, parameters) {\r\n var req = request.put(this._createUrl(url, parameters)).send(data);\r\n\r\n if (headers) {\r\n headers['Content-Type'] = 'application/json';\r\n } else {\r\n headers = {\r\n 'Content-Type': 'application/json'\r\n };\r\n }\r\n\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n /**\r\n * Invoke DELETE action to url specified\r\n * @param {!string} url - url to execute DELETE\r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n delete(url, timeout, headers, parameters) {\r\n var req = request.delete(this._createUrl(url, parameters));\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n _createUrl(relativeUrl, parameters) {\r\n var encode = [];\r\n\r\n if (parameters) {\r\n var keys = Object.keys(parameters);\r\n for (var i = 0; i < keys.length; i++) {\r\n var key = keys[i];\r\n var queryParameter = key + '=' + parameters[key];\r\n if (i === 0) {\r\n relativeUrl = relativeUrl + '?' + queryParameter;\r\n } else {\r\n relativeUrl = relativeUrl + '&' + queryParameter;\r\n }\r\n\r\n }\r\n console.log(JSON.stringify(parameters));\r\n }\r\n\r\n console.log(relativeUrl);\r\n\r\n var relativeUrlSplit = relativeUrl.split(\"/\");\r\n var length = relativeUrlSplit.length;\r\n\r\n relativeUrlSplit.forEach(function(item, index) {\r\n if (index === (length - 1) && item.indexOf(\"?\") > 0) {\r\n var parameters = item.substring(item.indexOf(\"?\"), item.length);\r\n var _item = item.substring(0, item.indexOf(\"?\"));\r\n encode.push(urlencode(_item) + parameters);\r\n } else {\r\n encode.push(urlencode(item));\r\n }\r\n });\r\n var returnUrl = this._url(this._options) + \"/\" + encode.join(\"/\");\r\n \r\n return returnUrl;\r\n }\r\n\r\n _createPromiseRequest(req, events, timeout, headers, asBlob) {\r\n let _timeout = timeout;\r\n if (typeof _timeout === \"undefined\" || _timeout === null) {\r\n _timeout = this._options.timeout;\r\n }\r\n let defered = q.defer();\r\n let promise = defered.promise;\r\n let apiKey = this._options.apiKey;\r\n let _req = _timeout === -1 ? req : req.timeout(_timeout);\r\n\r\n if (apiKey) {\r\n _req = _req.set('X-ApiKey', this._options.apiKey);\r\n }\r\n\r\n if (headers) {\r\n var keys = Object.keys(headers);\r\n for (var i = 0; i < keys.length; i++) {\r\n var key = keys[i];\r\n if (headers[key] !== undefined)\r\n _req = _req.set(key, headers[key]);\r\n }\r\n }\r\n\r\n if (events) {\r\n for (let event in events) {\r\n _req = _req.on(event, events[event]);\r\n }\r\n }\r\n if(asBlob){\r\n req.responseType('blob')\r\n }\r\n _req = _req.end(function(err, res) {\r\n if (err !== null) {\r\n let data;\r\n let status = err.status ? err.status : undefined;\r\n let errorMessage = {\r\n errors: [{\r\n code: status,\r\n message: 'OGAPI: Something is broken. Please contact with your administrator.'\r\n }]\r\n };\r\n \r\n if (typeof err.response !== \"undefined\") {\r\n data = err.response.body ? err.response.body : errorMessage;\r\n status = err.status;\r\n } else {\r\n if (!status) {\r\n data = errorMessage;\r\n status = 500;\r\n } else {\r\n data = err.message;\r\n status = 408;\r\n }\r\n }\r\n defered.reject({\r\n statusCode: status,\r\n 'data': data\r\n });\r\n } else {\r\n \r\n defered.resolve(res);\r\n }\r\n });\r\n\r\n return promise;\r\n }\r\n}",
56899
+ "content": "'use strict';\r\n\r\nimport merge from 'merge';\r\nimport urlencode from 'urlencode';\r\nimport request, { mkcol } from 'superagent';\r\nimport q from 'q';\r\nimport _ from 'lodash'\r\n// MOCK user searching\r\nimport _mock from 'superagent-mocker';\r\nconst mock = _mock(request);\r\n//\r\n\r\n/**\r\n * This is a wrapper of a Rest api javascript\r\n */\r\nexport default class NorthAmpliaREST {\r\n /**\r\n * @param {{ url: string,port: string,version: string,apiKey: string}} _options - this is configuration about Opengate North API.\r\n * @param {function} backend - this is a backend selected to manage a request to Opengate North API.\r\n */\r\n constructor(_options, headers) {\r\n this._options = merge.recursive(true, this.default(), _options);\r\n this._headers = headers;\r\n if (!_.isEmpty(_options.mocks)) {\r\n this._applyMocks(_options.mocks)\r\n }\r\n\r\n // ---------------------------------- EXAMPLE\r\n /*\r\n mock.post(_options.url + '/search/channels', function(req) {\r\n return {\r\n body: {\r\n \"channels\": [{\r\n \"name\": \"default_channel\",\r\n \"description\": \"Automatic channel\",\r\n \"organization\": \"organization_GetSetParam\",\r\n \"certificates\": []\r\n }]\r\n },\r\n statusCode: 200\r\n };\r\n }); \r\n */\r\n /*mock.post(_options.url + '/datasets/provision/organizations/:organization/:dataset/data', function(req){\r\n return {\r\n body: {\r\n \"page\": {\r\n \"number\": 26\r\n },\r\n \"columns\": [\r\n \"Coll Mobile ICC value\",\r\n \"Coll Mobile ICC date\",\r\n \"Prov Identifier\",\r\n \"Coll manufacturer\"\r\n ],\r\n \"data\": [\r\n [\r\n \"icc1\",\r\n \"2021-04-06T12:35:22.784Z\",\r\n \"MyDevice1\",\r\n \"OpenGate\"\r\n ],\r\n [\r\n \"icc2\",\r\n \"2021-04-06T07:45:57.468Z\",\r\n \"MyDevice2\",\r\n \"OpenGate\"\r\n ]\r\n ]\r\n },\r\n statusCode: 200\r\n };\r\n });\r\n mock.get(_options.url + '/datasets/provision/organizations/:organization', function(req) {\r\n return {\r\n body: {\r\n datasets: [\r\n {\r\n name: 'dataset1',\r\n identifier: '111',\r\n description: 'mock',\r\n type: 'CURRENT'\r\n },\r\n {\r\n name: 'dataset2',\r\n identifier: '2222',\r\n description: 'mock',\r\n type: 'HISTORY'\r\n }\r\n ]\r\n },\r\n statusCode: 200\r\n };\r\n }); \r\n mock.get(_options.url + '/datasets/provision/organizations/:organization/:dataset', function(req) {\r\n return {\r\n body: \r\n {\r\n \"name\": \"dataset_name\",\r\n \"description\": \"My dataset to get inventory data\",\r\n \"type\": \"CURRENT\",\r\n \"columns\": [\r\n {\r\n \"path\": \"provision.device.identifier._current.value\",\r\n \"name\": \"Prov identifier\",\r\n \"filter\": \"YES\",\r\n \"sort\": true\r\n },\r\n {\r\n \"path\": \"device.model._current.value.manufacturer\",\r\n \"name\": \"Coll manufacturer\",\r\n \"filter\": \"ALWAYS\",\r\n \"sort\": false\r\n },\r\n {\r\n \"path\": \"device.communicationModules[0].subscriber.mobile.icc._current.value\",\r\n \"name\": \"Coll Mobile ICC value\",\r\n \"filter\": \"NO\",\r\n \"sort\": false\r\n },\r\n {\r\n \"path\": \"device.communicationModules[0].subscriber.mobile.icc._current.at\",\r\n \"name\": \"Coll Mobile ICC date\",\r\n \"filter\": \"YES\",\r\n \"sort\": false\r\n }\r\n ]\r\n },\r\n statusCode: 200\r\n };\r\n }); \r\n */\r\n }\r\n\r\n _applyMocks (mocks) {\r\n const methods = Object.keys(mocks).filter((method) => !_.isEmpty(mocks[method]))\r\n methods.forEach(method => {\r\n console.log(`Mocking ${method.toLocaleUpperCase()} requests`);\r\n Object.keys(mocks[method]).forEach(url => {\r\n console.log('Mocking url:', url);\r\n console.log('Data returned:', mocks[method][url])\r\n const methodByUrl = mocks[method][url]\r\n mock[method](this._options.url + url, (req) => {\r\n if(typeof methodByUrl === 'function'){\r\n return methodByUrl(req)\r\n } else{\r\n const data = mocks[method][url]\r\n if (!data.headers) data.headers = {}\r\n return data\r\n }\r\n });\r\n })\r\n })\r\n }\r\n\r\n /**\r\n * This return a default configuration object\r\n * @return {object}\r\n */\r\n default () {\r\n return {\r\n timeout: 5000\r\n };\r\n }\r\n\r\n _url(options) {\r\n return options.url;\r\n }\r\n\r\n /**\r\n * Invoke GET action to url specified\r\n * @param {!string} url - url to execute GET\r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @param {boolean} asBlob - response body as Blob\r\n * @return {Promise} \r\n */\r\n get(url, timeout, headers, parameters, asBlob) {\r\n var req = request.get(this._createUrl(url, parameters));\r\n return this._createPromiseRequest(req, null, timeout, headers, asBlob);\r\n }\r\n\r\n /**\r\n * Invoke PATCH action to url and data specified\r\n * @param {!string} url - url to execute PATCH\r\n * @param {object} data - attach data to request PATCH\r\n * @param {number} timeout - timeout in milliseconds\r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n patch(url, data, timeout, headers, parameters) {\r\n var req = request.patch(this._createUrl(url, parameters))\r\n .send(data);\r\n\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n /**\r\n * Invoke POST action to url and data specified\r\n * @param {!string} url - url to execute POST\r\n * @param {object} data - attach data to request POST\r\n * @param {number} timeout - timeout in milliseconds\r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n post(url, data, timeout, headers, parameters) {\r\n var req = request.post(this._createUrl(url, parameters))\r\n .send(data);\r\n\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n\r\n /**\r\n * Invoke POST multipart action to url and data specified\r\n * @param {!string} url - url to execute POST\r\n * @param {FormData} formData - attach data to request POST\r\n * @param {object} events - events allowed, xhr.process \r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n post_multipart(url, formData, events, timeout, headers, parameters) {\r\n let req = request.post(this._createUrl(url, parameters));\r\n\r\n let sendFormData = true\r\n const formDataKeys = Object.keys(formData)\r\n formDataKeys.forEach(key => {\r\n switch (key) {\r\n case 'meta':\r\n case 'json':\r\n case 'file':\r\n req.field(key, formData[key]); \r\n delete formData[key]\r\n break\r\n case 'certificate': \r\n case 'processorBulkFile':\r\n req.attach('file', formData.processorBulkFile);\r\n sendFormData = false\r\n break\r\n case 'bulkFile':\r\n req.set('Content-Type', formData.ext);\r\n formData = formData.bulkFile;\r\n break\r\n default:\r\n break;\r\n }\r\n })\r\n if(sendFormData)\r\n req.send(formData);\r\n return this._createPromiseRequest(req, events, timeout, headers);\r\n \r\n }\r\n\r\n /**\r\n * Invoke PUT action to url and data specified\r\n * @param {!string} url - url to execute PUT\r\n * @param {object} data - attach data to request PUT\r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n put(url, data, timeout, headers, parameters) {\r\n var req = request.put(this._createUrl(url, parameters)).send(data);\r\n\r\n if (headers) {\r\n headers['Content-Type'] = 'application/json';\r\n } else {\r\n headers = {\r\n 'Content-Type': 'application/json'\r\n };\r\n }\r\n\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n /**\r\n * Invoke DELETE action to url specified\r\n * @param {!string} url - url to execute DELETE\r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @return {Promise} \r\n */\r\n delete(url, timeout, headers, parameters) {\r\n var req = request.delete(this._createUrl(url, parameters));\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n _createUrl(relativeUrl, parameters) {\r\n var encode = [];\r\n\r\n if (parameters) {\r\n var keys = Object.keys(parameters);\r\n for (var i = 0; i < keys.length; i++) {\r\n var key = keys[i];\r\n var queryParameter = key + '=' + parameters[key];\r\n if (i === 0) {\r\n relativeUrl = relativeUrl + '?' + queryParameter;\r\n } else {\r\n relativeUrl = relativeUrl + '&' + queryParameter;\r\n }\r\n\r\n }\r\n console.log(JSON.stringify(parameters));\r\n }\r\n\r\n console.log(relativeUrl);\r\n\r\n var relativeUrlSplit = relativeUrl.split(\"/\");\r\n var length = relativeUrlSplit.length;\r\n\r\n relativeUrlSplit.forEach(function(item, index) {\r\n if (index === (length - 1) && item.indexOf(\"?\") > 0) {\r\n var parameters = item.substring(item.indexOf(\"?\"), item.length);\r\n var _item = item.substring(0, item.indexOf(\"?\"));\r\n encode.push(urlencode(_item) + parameters);\r\n } else {\r\n encode.push(urlencode(item));\r\n }\r\n });\r\n var returnUrl = this._url(this._options) + \"/\" + encode.join(\"/\");\r\n \r\n return returnUrl;\r\n }\r\n\r\n _createPromiseRequest(req, events, timeout, headers, asBlob) {\r\n let _timeout = timeout;\r\n if (typeof _timeout === \"undefined\" || _timeout === null) {\r\n _timeout = this._options.timeout;\r\n }\r\n let defered = q.defer();\r\n let promise = defered.promise;\r\n let apiKey = this._options.apiKey;\r\n let _req = _timeout === -1 ? req : req.timeout(_timeout);\r\n\r\n if (apiKey) {\r\n _req = _req.set('X-ApiKey', this._options.apiKey);\r\n }\r\n\r\n if (headers) {\r\n var keys = Object.keys(headers);\r\n for (var i = 0; i < keys.length; i++) {\r\n var key = keys[i];\r\n if (headers[key] !== undefined)\r\n _req = _req.set(key, headers[key]);\r\n }\r\n }\r\n\r\n if (events) {\r\n for (let event in events) {\r\n _req = _req.on(event, events[event]);\r\n }\r\n }\r\n if(asBlob){\r\n req.responseType('blob')\r\n }\r\n _req = _req.end(function(err, res) {\r\n if (err !== null) {\r\n let data;\r\n let status = err.status ? err.status : undefined;\r\n let errorMessage = {\r\n errors: [{\r\n code: status,\r\n message: 'OGAPI: Something is broken. Please contact with your administrator.'\r\n }]\r\n };\r\n \r\n if (typeof err.response !== \"undefined\") {\r\n data = err.response.body ? err.response.body : errorMessage;\r\n status = err.status;\r\n } else {\r\n if (!status) {\r\n data = errorMessage;\r\n status = 500;\r\n } else {\r\n data = err.message;\r\n status = 408;\r\n }\r\n }\r\n defered.reject({\r\n statusCode: status,\r\n 'data': data\r\n });\r\n } else {\r\n \r\n defered.resolve(res);\r\n }\r\n });\r\n\r\n return promise;\r\n }\r\n}",
56900
56900
  "static": true,
56901
56901
  "longname": "src/util/NorthAmpliaREST.js",
56902
56902
  "access": null,
@@ -57028,6 +57028,34 @@
57028
57028
  {
57029
57029
  "__docId__": 2149,
57030
57030
  "kind": "method",
57031
+ "name": "_applyMocks",
57032
+ "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
57033
+ "generator": false,
57034
+ "async": false,
57035
+ "static": false,
57036
+ "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#_applyMocks",
57037
+ "access": null,
57038
+ "description": null,
57039
+ "lineNumber": 135,
57040
+ "undocument": true,
57041
+ "unknown": [
57042
+ {
57043
+ "tagName": "@_undocument",
57044
+ "tagValue": ""
57045
+ }
57046
+ ],
57047
+ "params": [
57048
+ {
57049
+ "name": "mocks",
57050
+ "types": [
57051
+ "*"
57052
+ ]
57053
+ }
57054
+ ]
57055
+ },
57056
+ {
57057
+ "__docId__": 2150,
57058
+ "kind": "method",
57031
57059
  "name": "default",
57032
57060
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
57033
57061
  "generator": false,
@@ -57036,7 +57064,7 @@
57036
57064
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#default",
57037
57065
  "access": null,
57038
57066
  "description": "This return a default configuration object",
57039
- "lineNumber": 90,
57067
+ "lineNumber": 160,
57040
57068
  "params": [],
57041
57069
  "return": {
57042
57070
  "nullable": null,
@@ -57048,7 +57076,7 @@
57048
57076
  }
57049
57077
  },
57050
57078
  {
57051
- "__docId__": 2150,
57079
+ "__docId__": 2151,
57052
57080
  "kind": "method",
57053
57081
  "name": "_url",
57054
57082
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -57058,7 +57086,7 @@
57058
57086
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#_url",
57059
57087
  "access": null,
57060
57088
  "description": null,
57061
- "lineNumber": 96,
57089
+ "lineNumber": 166,
57062
57090
  "undocument": true,
57063
57091
  "unknown": [
57064
57092
  {
@@ -57081,7 +57109,7 @@
57081
57109
  }
57082
57110
  },
57083
57111
  {
57084
- "__docId__": 2151,
57112
+ "__docId__": 2152,
57085
57113
  "kind": "method",
57086
57114
  "name": "get",
57087
57115
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -57091,7 +57119,7 @@
57091
57119
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#get",
57092
57120
  "access": null,
57093
57121
  "description": "Invoke GET action to url specified",
57094
- "lineNumber": 109,
57122
+ "lineNumber": 179,
57095
57123
  "params": [
57096
57124
  {
57097
57125
  "nullable": false,
@@ -57154,7 +57182,7 @@
57154
57182
  }
57155
57183
  },
57156
57184
  {
57157
- "__docId__": 2152,
57185
+ "__docId__": 2153,
57158
57186
  "kind": "method",
57159
57187
  "name": "patch",
57160
57188
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -57164,7 +57192,7 @@
57164
57192
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#patch",
57165
57193
  "access": null,
57166
57194
  "description": "Invoke PATCH action to url and data specified",
57167
- "lineNumber": 123,
57195
+ "lineNumber": 193,
57168
57196
  "params": [
57169
57197
  {
57170
57198
  "nullable": false,
@@ -57227,7 +57255,7 @@
57227
57255
  }
57228
57256
  },
57229
57257
  {
57230
- "__docId__": 2153,
57258
+ "__docId__": 2154,
57231
57259
  "kind": "method",
57232
57260
  "name": "post",
57233
57261
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -57237,7 +57265,7 @@
57237
57265
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#post",
57238
57266
  "access": null,
57239
57267
  "description": "Invoke POST action to url and data specified",
57240
- "lineNumber": 139,
57268
+ "lineNumber": 209,
57241
57269
  "params": [
57242
57270
  {
57243
57271
  "nullable": false,
@@ -57300,7 +57328,7 @@
57300
57328
  }
57301
57329
  },
57302
57330
  {
57303
- "__docId__": 2154,
57331
+ "__docId__": 2155,
57304
57332
  "kind": "method",
57305
57333
  "name": "post_multipart",
57306
57334
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -57310,7 +57338,7 @@
57310
57338
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#post_multipart",
57311
57339
  "access": null,
57312
57340
  "description": "Invoke POST multipart action to url and data specified",
57313
- "lineNumber": 157,
57341
+ "lineNumber": 227,
57314
57342
  "params": [
57315
57343
  {
57316
57344
  "nullable": false,
@@ -57383,7 +57411,7 @@
57383
57411
  }
57384
57412
  },
57385
57413
  {
57386
- "__docId__": 2155,
57414
+ "__docId__": 2156,
57387
57415
  "kind": "method",
57388
57416
  "name": "put",
57389
57417
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -57393,7 +57421,7 @@
57393
57421
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#put",
57394
57422
  "access": null,
57395
57423
  "description": "Invoke PUT action to url and data specified",
57396
- "lineNumber": 198,
57424
+ "lineNumber": 268,
57397
57425
  "params": [
57398
57426
  {
57399
57427
  "nullable": false,
@@ -57456,7 +57484,7 @@
57456
57484
  }
57457
57485
  },
57458
57486
  {
57459
- "__docId__": 2156,
57487
+ "__docId__": 2157,
57460
57488
  "kind": "method",
57461
57489
  "name": "delete",
57462
57490
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -57466,7 +57494,7 @@
57466
57494
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#delete",
57467
57495
  "access": null,
57468
57496
  "description": "Invoke DELETE action to url specified",
57469
- "lineNumber": 220,
57497
+ "lineNumber": 290,
57470
57498
  "params": [
57471
57499
  {
57472
57500
  "nullable": false,
@@ -57519,7 +57547,7 @@
57519
57547
  }
57520
57548
  },
57521
57549
  {
57522
- "__docId__": 2157,
57550
+ "__docId__": 2158,
57523
57551
  "kind": "method",
57524
57552
  "name": "_createUrl",
57525
57553
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -57529,7 +57557,7 @@
57529
57557
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#_createUrl",
57530
57558
  "access": null,
57531
57559
  "description": null,
57532
- "lineNumber": 225,
57560
+ "lineNumber": 295,
57533
57561
  "undocument": true,
57534
57562
  "unknown": [
57535
57563
  {
@@ -57558,7 +57586,7 @@
57558
57586
  }
57559
57587
  },
57560
57588
  {
57561
- "__docId__": 2158,
57589
+ "__docId__": 2159,
57562
57590
  "kind": "method",
57563
57591
  "name": "_createPromiseRequest",
57564
57592
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -57568,7 +57596,7 @@
57568
57596
  "longname": "src/util/NorthAmpliaREST.js~NorthAmpliaREST#_createPromiseRequest",
57569
57597
  "access": null,
57570
57598
  "description": null,
57571
- "lineNumber": 262,
57599
+ "lineNumber": 332,
57572
57600
  "undocument": true,
57573
57601
  "unknown": [
57574
57602
  {
@@ -57615,7 +57643,7 @@
57615
57643
  }
57616
57644
  },
57617
57645
  {
57618
- "__docId__": 2159,
57646
+ "__docId__": 2160,
57619
57647
  "kind": "file",
57620
57648
  "name": "src/util/SelectElement.js",
57621
57649
  "content": "'use strict';\r\n\r\nexport default class SelectElement {\r\n\r\n /**\r\n * @example\r\n * SE.element('provision.device.identifier', ['value'], 'identifier')\r\n * returns:\r\n * {\r\n * name : 'provision.device.identifier',\r\n * fields: ['value'],\r\n * alias: 'identifier\r\n * }\r\n *\r\n * SE.element('provision.device.identifier', ['value'])\r\n * returns:\r\n * {\r\n * name : 'provision.device.identifier',\r\n * fields: ['value']\r\n * }\r\n * @return {Object} This returns a json with the object element built.\r\n * @param {String} name - Indicates the datastream to show\r\n * @param {[{field: field, alias:alias}]} fields - The fields that you want to show from that datastream\r\n */\r\n static element(name, fields) {\r\n return { name: name, fields: fields };\r\n }\r\n\r\n}",
@@ -57626,7 +57654,7 @@
57626
57654
  "lineNumber": 1
57627
57655
  },
57628
57656
  {
57629
- "__docId__": 2160,
57657
+ "__docId__": 2161,
57630
57658
  "kind": "class",
57631
57659
  "name": "SelectElement",
57632
57660
  "memberof": "src/util/SelectElement.js",
@@ -57648,7 +57676,7 @@
57648
57676
  "interface": false
57649
57677
  },
57650
57678
  {
57651
- "__docId__": 2161,
57679
+ "__docId__": 2162,
57652
57680
  "kind": "method",
57653
57681
  "name": "element",
57654
57682
  "memberof": "src/util/SelectElement.js~SelectElement",
@@ -57694,7 +57722,7 @@
57694
57722
  }
57695
57723
  },
57696
57724
  {
57697
- "__docId__": 2162,
57725
+ "__docId__": 2163,
57698
57726
  "kind": "file",
57699
57727
  "name": "src/util/SouthAmpliaREST.js",
57700
57728
  "content": "import NorthAmpliaREST from './NorthAmpliaREST';\r\n\r\nexport default class SouthAmpliaREST extends NorthAmpliaREST {\r\n\r\n constructor(_options, headers) {\r\n super(_options, headers);\r\n }\r\n\r\n _url(options) {\r\n return options.south.url;\r\n }\r\n}",
@@ -57705,7 +57733,7 @@
57705
57733
  "lineNumber": 1
57706
57734
  },
57707
57735
  {
57708
- "__docId__": 2163,
57736
+ "__docId__": 2164,
57709
57737
  "kind": "class",
57710
57738
  "name": "SouthAmpliaREST",
57711
57739
  "memberof": "src/util/SouthAmpliaREST.js",
@@ -57730,7 +57758,7 @@
57730
57758
  ]
57731
57759
  },
57732
57760
  {
57733
- "__docId__": 2164,
57761
+ "__docId__": 2165,
57734
57762
  "kind": "constructor",
57735
57763
  "name": "constructor",
57736
57764
  "memberof": "src/util/SouthAmpliaREST.js~SouthAmpliaREST",
@@ -57764,7 +57792,7 @@
57764
57792
  ]
57765
57793
  },
57766
57794
  {
57767
- "__docId__": 2165,
57795
+ "__docId__": 2166,
57768
57796
  "kind": "method",
57769
57797
  "name": "_url",
57770
57798
  "memberof": "src/util/SouthAmpliaREST.js~SouthAmpliaREST",
@@ -57797,7 +57825,7 @@
57797
57825
  }
57798
57826
  },
57799
57827
  {
57800
- "__docId__": 2166,
57828
+ "__docId__": 2167,
57801
57829
  "kind": "file",
57802
57830
  "name": "src/util/formats/check_types.js",
57803
57831
  "content": "module.exports = {\r\n /* fields validations */\r\n _checkType: function(type, TYPE_ENUM) {\r\n let not_found = [];\r\n let found = TYPE_ENUM.find(function(type) {\r\n return type == this;\r\n }, type);\r\n\r\n if (typeof found === 'undefined') {\r\n not_found.push(type);\r\n }\r\n if (not_found.length !== 0) {\r\n throw new Error({ message: 'OGAPI_NOT_ALLOWED_PARAMETER', parameter: JSON.stringify(not_found), allowed: JSON.stringify(TYPE_ENUM) });\r\n }\r\n return type;\r\n },\r\n\r\n _checkString: function(parameter, length, name) {\r\n if (typeof parameter !== 'string' || parameter.length > length) {\r\n throw new Error([{ message: 'OGAPI_STRING_PARAMETER', parameter: name }, { message: 'OGAPI_MAX_LENGTH', parameter: length }]);\r\n }\r\n },\r\n\r\n _checkNumber: function(parameter, name) {\r\n if (typeof parameter !== 'number') {\r\n throw new Error([{ message: 'OGAPI_NUMBER_PARAMETER', parameter: name }]);\r\n }\r\n },\r\n _checkArray: function(parameter, name) {\r\n if (!Array.isArray(parameter) || parameter.length === 0) {\r\n throw new Error({ message: 'OGAPI_ARRAY_PARAMETER', parameter: name });\r\n }\r\n },\r\n _checkObject: function(parameter, name) {\r\n if (typeof parameter !== 'object') {\r\n throw new Error({ message: 'OGAPI_OBJECT_PARAMETER', parameter: name });\r\n }\r\n }\r\n\r\n}",
@@ -57808,7 +57836,7 @@
57808
57836
  "lineNumber": 1
57809
57837
  },
57810
57838
  {
57811
- "__docId__": 2167,
57839
+ "__docId__": 2168,
57812
57840
  "kind": "file",
57813
57841
  "name": "src/util/searchingFields/FieldFinder.js",
57814
57842
  "content": "import q from 'q';\nimport {\n GENERATED_FIELDS\n} from './source-precompiled/Fields';\nimport {\n IOT_FIELDS\n} from './IotFields';\n\nvar FIELDS = GENERATED_FIELDS;\nfor (var field in IOT_FIELDS) {\n if (FIELDS[field]) {\n for (var subfield in IOT_FIELDS[field]) {\n FIELDS[field][subfield] = IOT_FIELDS[field][subfield];\n }\n } else {\n FIELDS[field] = IOT_FIELDS[field];\n }\n}\n\nconst match_url = {\n '/jobs': 'JOB',\n '/tasks': 'TASKS',\n '/alarms': 'ENTITY_ALARM',\n '/operations': 'ENTITY_OPERATION',\n '/certificates': 'CERTIFICATE',\n '/bundles': 'UPDATE_BUNDLE_VERSION',\n '/datapoints': 'DATAPOINTS',\n '/datastreams': 'DATASTREAMS',\n '/datamodels': 'DATAMODELS',\n '/dmmQRating': 'DMMQRATING',\n '/iotQRating': 'IOTQRATING',\n '/catalog/softwares': 'SOFTWARE_VERSION',\n '/catalog/hardwares': 'MODEL',\n '/catalog/operators': 'OPERATORS',\n '/domains': 'DOMAIN',\n '/users': 'USER',\n '/areas': 'AREAS',\n '/bulk/async': 'LEGACY_BULK',\n 'provisionProcessors/bulk/search': 'BULK',\n '/devices': 'SearchOnDatamodel',\n '/subscriptions': 'SearchOnDatamodel',\n '/subscribers': 'SearchOnDatamodel',\n '/entities': 'SearchOnDatamodel',\n 'entity-asset': 'SearchOnDatamodel',\n '/tickets': 'SearchOnDatamodel',\n '/channels': 'SearchOnDatamodel'\n};\n\nconst match_context = {\n 'ENTITY_ALARM': 'alarm',\n 'UPDATE_BUNDLE_VERSION': 'bundle',\n 'DATAPOINTS': 'datapoints',\n 'ENTITY_OPERATION': ['operation', 'job']\n};\n\nconst match_url_resourceType = {\n get: function(url) {\n switch (url) {\n case 'entity-asset':\n return ['entity.asset'];\n case '/tickets':\n return ['ticket'];\n case '/channels':\n return ['channel'];\n default:\n return undefined;\n }\n }\n};\n\nconst match_type = {\n 'subscriber': 'DEVICE_PART_SUBSCRIBER',\n 'subscription': 'DEVICE_PART_SUBSCRIPTION',\n 'communicationsModule': 'DEVICE_PART_COMMSMODULE',\n 'device': 'DEVICE_PART_DEVICE'\n};\n\nconst match_type_inverse = {\n 'DEVICE_PART_SUBSCRIBER': 'subscriber',\n 'DEVICE_PART_SUBSCRIPTION': 'subscription',\n 'DEVICE_PART_COMMSMODULE': 'communicationsModule',\n 'DEVICE_PART_DEVICE': 'device'\n};\n\nconst fields_related = ['relColl', 'relProv'];\n\nconst complexPrimaryType = ['DEVICE_PART_SUBSCRIBER', 'DEVICE_PART_SUBSCRIPTION', 'DEVICE_PART_COMMSMODULE', 'DEVICE_PART_DEVICE'];\nconst complexFields = ['subscriber', 'subscription', 'communicationsModule', 'device'];\nconst SIMPLE_FIELDS = 'simple';\nconst COMPLEX_FIELDS = 'complex';\nconst SEARCH_FIELDS = 'search';\n\nconst TYPE_FIELD = {\n get: function(url) {\n if (complexPrimaryType.indexOf(match_url[url]) >= 0) {\n return COMPLEX_FIELDS;\n }\n if (match_url[url] === 'SearchOnDatamodel') {\n return SEARCH_FIELDS;\n }\n return SIMPLE_FIELDS;\n }\n};\n\nconst FIELD_SEARCHER = {\n \n [SEARCH_FIELDS]: function(states, context, primaryType, defered, selectedField, selectAll) {\n let datamodelSearchBuilder = this._ogapi.datamodelsSearchBuilder();\n\n let rtFilter = {\n 'and': []\n };\n\n if (this._resourceTypes) {\n rtFilter.and.push({\n 'in': {\n 'datamodels.allowedResourceTypes': this._resourceTypes\n }\n });\n }\n\n if (selectedField) {\n rtFilter.and.push({\n 'eq': {\n 'datamodels.categories.datastreams.identifier': selectedField\n }\n });\n }\n\n if (rtFilter.and.length > 0) {\n datamodelSearchBuilder.filter(rtFilter);\n }\n\n datamodelSearchBuilder.build().execute().then(function(response) {\n var datastreams = [];\n if (response.statusCode === 200) {\n datastreams = response.data.datamodels.map(function(datamodel) {\n var categories = datamodel.categories || [];\n return categories.map(function(category) {\n var datastreams = category.datastreams || [];\n return datastreams.map(function(ds) {\n if (selectedField || selectAll) {\n return ds;\n }\n return ds.identifier;\n });\n });\n });\n datastreams = reduce(datastreams);\n }\n if (selectedField) {\n defered.resolve(datastreams.find(function(dsIdTmp) {\n return selectedField === dsIdTmp.identifier;\n }));\n } else {\n defered.resolve(datastreams);\n }\n }).catch(function(error) {\n defered.reject(error);\n });\n\n function reduce(array) {\n if (array.length > 0 && array[0].constructor === Array) {\n array = array.reduce(function(preVal, elem) {\n return preVal.concat(elem);\n });\n return reduce(array);\n }\n return array;\n }\n\n },\n [SIMPLE_FIELDS]: function(states, context, primaryType, defered, field) {\n var paths = [];\n if (context[primaryType] instanceof Array) {\n if (field) {\n let fieldIdx = 0;\n let fieldMatch = null;\n for (fieldIdx = 0; fieldMatch === null && fieldIdx < context[primaryType].length; fieldIdx++) {\n let fieldTmp = context[primaryType][fieldIdx];\n if (fieldTmp.toLowerCase() === field.toLowerCase() ||\n fieldTmp.toLowerCase() === (field.toLowerCase() + 'name')) {\n fieldMatch = fieldTmp;\n } else if (match_context[primaryType]) {\n if (match_context[primaryType] instanceof Array) {\n match_context[primaryType].forEach(function(ctxMatch) {\n if (fieldTmp.toLowerCase() === (ctxMatch + field.toLowerCase()) ||\n fieldTmp.toLowerCase() === (ctxMatch + '.' + field.toLowerCase()) ||\n fieldTmp.toLowerCase() === (ctxMatch + field.toLowerCase() + 'name') ||\n fieldTmp.toLowerCase() === (ctxMatch + '.' + field.toLowerCase() + 'name')) {\n if (!fieldMatch) fieldMatch = fieldTmp;\n }\n });\n } else {\n if (fieldTmp.toLowerCase() === (match_context[primaryType] + field.toLowerCase()) ||\n fieldTmp.toLowerCase() === (match_context[primaryType] + '.' + field.toLowerCase()) ||\n fieldTmp.toLowerCase() === (match_context[primaryType] + field.toLowerCase() + 'name') ||\n fieldTmp.toLowerCase() === (match_context[primaryType] + '.' + field.toLowerCase() + 'name')) {\n fieldMatch = fieldTmp;\n }\n }\n }\n }\n\n if (fieldMatch)\n paths.push(fieldMatch);\n } else {\n paths = context[primaryType].slice();\n }\n } else {\n if (field) {\n if (context[primaryType][field]) {\n paths.push(context[primaryType][field]);\n } else {\n var fieldsCfg = Object.keys(context[primaryType]);\n\n for (var f = 0; f < fieldsCfg.length; f++) {\n if (context[primaryType][fieldsCfg[f]].toLowerCase().indexOf(field.toLowerCase()) > -1) {\n paths.push(context[primaryType][fieldsCfg[f]]);\n }\n }\n }\n } else {\n var fieldsCfg = Object.keys(context[primaryType]);\n\n for (var f = 0; f < fieldsCfg.length; f++) {\n paths.push(context[primaryType][fieldsCfg[f]]);\n }\n }\n }\n\n defered.resolve(paths.slice());\n },\n [COMPLEX_FIELDS]: function(states, context, primaryType, defered) {\n const finiteStateMachine = {\n 1: function(states, context) {\n // Fields del primaryType + los fields de los relacionados = complexFields\n return context[primaryType].concat(\n complexFields.filter(\n filterRelatedEntities,\n match_type_inverse[primaryType]\n )\n );\n },\n 2: function(states, context) {\n try {\n // Fields del relacionado + fields_related\n return appendPreviousStates(\n states,\n fieldsNestedState(states[0], context).concat(fields_related)\n );\n } catch (err) {\n //console.warn(err);\n return [];\n }\n },\n 3: function(states, context) {\n let secondState = states[1];\n if (fields_related.indexOf(secondState) === -1) return [];\n try {\n // Fields del relacionado \n return appendPreviousStates(\n states,\n fieldsNestedState(states[0], context)\n );\n } catch (err) {\n //console.warn(err);\n return [];\n }\n }\n };\n\n let statesSize = states.length;\n let currentState = finiteStateMachine[statesSize];\n if (typeof currentState === \"undefined\") return defered.resolve([]);\n return defered.resolve(currentState(states, context));\n\n function fieldsNestedState(state, context) {\n let fieldsRelated;\n if (!(fieldsNestedState = match_type[state]) || !(fieldsRelated = context[fieldsNestedState]))\n throw new Error('Invalid primaryType: ' + state);\n return fieldsRelated.slice();\n }\n\n function filterRelatedEntities(relatedEntity) {\n return relatedEntity != this;\n }\n\n function appendPreviousStates(states, fields) {\n let out = [];\n fields.forEach(function(field) {\n let arrayField = states.slice(0, -1);\n arrayField.push(field);\n out.push(arrayField.join(\".\"));\n });\n return out;\n }\n }\n}\n\nexport default class FieldFinder {\n constructor(ogapi, url) {\n this._ogapi = ogapi;\n this._url = url;\n this._type = TYPE_FIELD.get(url);\n\n if (this._type === SEARCH_FIELDS) {\n this._resourceTypes = match_url_resourceType.get(url);\n }\n }\n\n find(input = \"\") {\n let defered = q.defer();\n FIELD_SEARCHER[this._type].call(this, input.split('.'), FIELDS[match_url[this._url]], match_url[this._url], defered);\n return defered.promise;\n }\n findAll(input = \"\") {\n let defered = q.defer();\n FIELD_SEARCHER[this._type].call(this, input.split('.'), FIELDS[match_url[this._url]], match_url[this._url], defered, null ,true);\n return defered.promise;\n }\n\n findFieldPath(field = \"\") {\n let defered = q.defer();\n FIELD_SEARCHER[this._type].call(this, field, FIELDS[match_url[this._url]], match_url[this._url], defered, field);\n return defered.promise;\n }\n}",
@@ -57819,7 +57847,7 @@
57819
57847
  "lineNumber": 1
57820
57848
  },
57821
57849
  {
57822
- "__docId__": 2168,
57850
+ "__docId__": 2169,
57823
57851
  "kind": "variable",
57824
57852
  "name": "FIELDS",
57825
57853
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -57845,7 +57873,7 @@
57845
57873
  }
57846
57874
  },
57847
57875
  {
57848
- "__docId__": 2169,
57876
+ "__docId__": 2170,
57849
57877
  "kind": "variable",
57850
57878
  "name": "match_url",
57851
57879
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -57871,7 +57899,7 @@
57871
57899
  }
57872
57900
  },
57873
57901
  {
57874
- "__docId__": 2170,
57902
+ "__docId__": 2171,
57875
57903
  "kind": "variable",
57876
57904
  "name": "match_context",
57877
57905
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -57897,7 +57925,7 @@
57897
57925
  }
57898
57926
  },
57899
57927
  {
57900
- "__docId__": 2171,
57928
+ "__docId__": 2172,
57901
57929
  "kind": "variable",
57902
57930
  "name": "match_url_resourceType",
57903
57931
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -57923,7 +57951,7 @@
57923
57951
  }
57924
57952
  },
57925
57953
  {
57926
- "__docId__": 2172,
57954
+ "__docId__": 2173,
57927
57955
  "kind": "variable",
57928
57956
  "name": "match_type",
57929
57957
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -57949,7 +57977,7 @@
57949
57977
  }
57950
57978
  },
57951
57979
  {
57952
- "__docId__": 2173,
57980
+ "__docId__": 2174,
57953
57981
  "kind": "variable",
57954
57982
  "name": "match_type_inverse",
57955
57983
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -57975,7 +58003,7 @@
57975
58003
  }
57976
58004
  },
57977
58005
  {
57978
- "__docId__": 2174,
58006
+ "__docId__": 2175,
57979
58007
  "kind": "variable",
57980
58008
  "name": "fields_related",
57981
58009
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -58001,7 +58029,7 @@
58001
58029
  }
58002
58030
  },
58003
58031
  {
58004
- "__docId__": 2175,
58032
+ "__docId__": 2176,
58005
58033
  "kind": "variable",
58006
58034
  "name": "complexPrimaryType",
58007
58035
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -58027,7 +58055,7 @@
58027
58055
  }
58028
58056
  },
58029
58057
  {
58030
- "__docId__": 2176,
58058
+ "__docId__": 2177,
58031
58059
  "kind": "variable",
58032
58060
  "name": "complexFields",
58033
58061
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -58053,7 +58081,7 @@
58053
58081
  }
58054
58082
  },
58055
58083
  {
58056
- "__docId__": 2177,
58084
+ "__docId__": 2178,
58057
58085
  "kind": "variable",
58058
58086
  "name": "SIMPLE_FIELDS",
58059
58087
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -58079,7 +58107,7 @@
58079
58107
  }
58080
58108
  },
58081
58109
  {
58082
- "__docId__": 2178,
58110
+ "__docId__": 2179,
58083
58111
  "kind": "variable",
58084
58112
  "name": "COMPLEX_FIELDS",
58085
58113
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -58105,7 +58133,7 @@
58105
58133
  }
58106
58134
  },
58107
58135
  {
58108
- "__docId__": 2179,
58136
+ "__docId__": 2180,
58109
58137
  "kind": "variable",
58110
58138
  "name": "SEARCH_FIELDS",
58111
58139
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -58131,7 +58159,7 @@
58131
58159
  }
58132
58160
  },
58133
58161
  {
58134
- "__docId__": 2180,
58162
+ "__docId__": 2181,
58135
58163
  "kind": "variable",
58136
58164
  "name": "TYPE_FIELD",
58137
58165
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -58157,7 +58185,7 @@
58157
58185
  }
58158
58186
  },
58159
58187
  {
58160
- "__docId__": 2181,
58188
+ "__docId__": 2182,
58161
58189
  "kind": "variable",
58162
58190
  "name": "FIELD_SEARCHER",
58163
58191
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -58183,7 +58211,7 @@
58183
58211
  }
58184
58212
  },
58185
58213
  {
58186
- "__docId__": 2182,
58214
+ "__docId__": 2183,
58187
58215
  "kind": "class",
58188
58216
  "name": "FieldFinder",
58189
58217
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -58205,7 +58233,7 @@
58205
58233
  "interface": false
58206
58234
  },
58207
58235
  {
58208
- "__docId__": 2183,
58236
+ "__docId__": 2184,
58209
58237
  "kind": "constructor",
58210
58238
  "name": "constructor",
58211
58239
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -58239,7 +58267,7 @@
58239
58267
  ]
58240
58268
  },
58241
58269
  {
58242
- "__docId__": 2184,
58270
+ "__docId__": 2185,
58243
58271
  "kind": "member",
58244
58272
  "name": "_ogapi",
58245
58273
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -58262,7 +58290,7 @@
58262
58290
  }
58263
58291
  },
58264
58292
  {
58265
- "__docId__": 2185,
58293
+ "__docId__": 2186,
58266
58294
  "kind": "member",
58267
58295
  "name": "_url",
58268
58296
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -58285,7 +58313,7 @@
58285
58313
  }
58286
58314
  },
58287
58315
  {
58288
- "__docId__": 2186,
58316
+ "__docId__": 2187,
58289
58317
  "kind": "member",
58290
58318
  "name": "_type",
58291
58319
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -58308,7 +58336,7 @@
58308
58336
  }
58309
58337
  },
58310
58338
  {
58311
- "__docId__": 2187,
58339
+ "__docId__": 2188,
58312
58340
  "kind": "member",
58313
58341
  "name": "_resourceTypes",
58314
58342
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -58331,7 +58359,7 @@
58331
58359
  }
58332
58360
  },
58333
58361
  {
58334
- "__docId__": 2188,
58362
+ "__docId__": 2189,
58335
58363
  "kind": "method",
58336
58364
  "name": "find",
58337
58365
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -58367,7 +58395,7 @@
58367
58395
  }
58368
58396
  },
58369
58397
  {
58370
- "__docId__": 2189,
58398
+ "__docId__": 2190,
58371
58399
  "kind": "method",
58372
58400
  "name": "findAll",
58373
58401
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -58403,7 +58431,7 @@
58403
58431
  }
58404
58432
  },
58405
58433
  {
58406
- "__docId__": 2190,
58434
+ "__docId__": 2191,
58407
58435
  "kind": "method",
58408
58436
  "name": "findFieldPath",
58409
58437
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -58439,7 +58467,7 @@
58439
58467
  }
58440
58468
  },
58441
58469
  {
58442
- "__docId__": 2191,
58470
+ "__docId__": 2192,
58443
58471
  "kind": "file",
58444
58472
  "name": "src/util/searchingFields/IotFields.js",
58445
58473
  "content": "// Fields generated at: Thu Feb 09 2017 11:06:37 GMT+0100 (CET)\n// DB: 172.19.18.242:1521/QA\nexport const IOT_FIELDS = {\n \"DATAPOINTS\": {\n \"DATAPOINTS\": [\n \"datapoints.organization\",\n \"datapoints.channel\",\n \"datapoints.datastreamId\",\n \"datapoints.entityIdentifier\",\n \"datapoints.subEntityIdentifier\",\n \"datapoints.entityRelated\",\n \"datapoints._current.feedId\",\n \"datapoints._current.date\",\n \"datapoints._current.at\",\n \"datapoints._current.value\",\n \"datapoints._current.tags\",\n \"datapoints._current.scoring.performance\",\n \"datapoints._current.scoring.qrating.min_required.value\",\n \"datapoints._current.scoring.qrating.min_required.label\",\n \"datapoints._current.scoring.qrating.min_desired.value\",\n \"datapoints._current.scoring.qrating.min_desired.label\",\n \"datapoints._current.scoring.qrating.ideal.value\",\n \"datapoints._current.scoring.qrating.ideal.label\",\n \"datapoints._current.scoring.qrating.max_desired.value\",\n \"datapoints._current.scoring.qrating.max_desired.label\",\n \"datapoints._current.scoring.qrating.max_allowed.value\",\n \"datapoints._current.scoring.qrating.max_allowed.label\",\n \"datapoints._current.scoring.qrating.max_score\",\n \"datapoints._current.scoring.qrating.cumulative_period_divisor\",\n \"datapoints._current.scoring.qrating.conversion_matrix\",\n \"datapoints._current.scoring.qrating.version\"\n ]\n },\n \"DATAMODELS\": {\n \"DATAMODELS\": [\n \"datamodels.organizationName\",\n \"datamodels.identifier\",\n \"datamodels.name\",\n \"datamodels.description\",\n \"datamodels.version\",\n \"datamodels.categories.name\",\n \"datamodels.categories.identifier\",\n \"datamodels.categories.datastreams.identifier\",\n \"datamodels.categories.datastreams.name\",\n \"datamodels.categories.datastreams.description\",\n \"datamodels.categories.datastreams.hardwareIds\",\n \"datamodels.categories.datastreams.unit\",\n \"datamodels.categories.datastreams.unit.type\",\n \"datamodels.categories.datastreams.unit.label\",\n \"datamodels.categories.datastreams.unit.symbol\",\n \"datamodels.categories.datastreams.period\",\n \"datamodels.categories.datastreams.access\",\n \"datamodels.categories.datastreams.schema\",\n \"datamodels.categories.datastreams.storage\",\n \"datamodels.categories.datastreams.storage.period\",\n \"datamodels.categories.datastreams.storage.total\",\n \"datamodels.categories.datastreams.tags\",\n \"datamodels.categories.datastreams.views\",\n \"datamodels.categories.datastreams.icon\",\n \"datamodels.categories.datastreams.modifiable\",\n \"datamodels.categories.datastreams.required\",\n \"datamodels.categories.datastreams.qrating.min_required.value\",\n \"datamodels.categories.datastreams.qrating.min_required.label\",\n \"datamodels.categories.datastreams.qrating.min_desired.value\",\n \"datamodels.categories.datastreams.qrating.min_desired.label\",\n \"datamodels.categories.datastreams.qrating.ideal.value\",\n \"datamodels.categories.datastreams.qrating.ideal.label\",\n \"datamodels.categories.datastreams.qrating.max_desired.value\",\n \"datamodels.categories.datastreams.qrating.max_desired.label\",\n \"datamodels.categories.datastreams.qrating.max_allowed.value\",\n \"datamodels.categories.datastreams.qrating.max_allowed.label\",\n \"datamodels.categories.datastreams.qrating.max_score\",\n \"datamodels.categories.datastreams.qrating.cumulative_period_divisor\",\n \"datamodels.categories.datastreams.qrating.conversion_matrix\",\n \"datamodels.categories.datastreams.qrating.version\"\n ]\n },\n \"DATASTREAMS\": {\n \"DATASTREAMS\": [\n \"datastreams.datastreamId\",\n \"datastreams.name\",\n \"datastreams.description\",\n \"datastreams.unit.type\",\n \"datastreams.unit.label\",\n \"datastreams.unit.symbol\",\n \"datastreams.period\",\n \"datastreams._current.tags\",\n \"datastreams._current.date\",\n \"datastreams._current.value\",\n \"datastreams.categoryId\",\n \"datastreams.datamodelId\",\n \"datastreams.access\",\n \"datastreams.channel\",\n \"datastreams.organization\",\n \"datastreams.entityIdentifier\",\n \"feeds.entityIdentifier\",\n \"datastreams._id.subEntityIdentifier\",\n \"datastreams._current.scoring.qrating.min_required.value\",\n \"datastreams._current.scoring.qrating.min_required.label\",\n \"datastreams._current.scoring.qrating.min_desired.value\",\n \"datastreams._current.scoring.qrating.min_desired.label\",\n \"datastreams._current.scoring.qrating.ideal.value\",\n \"datastreams._current.scoring.qrating.ideal.label\",\n \"datastreams._current.scoring.qrating.max_desired.value\",\n \"datastreams._current.scoring.qrating.max_desired.label\",\n \"datastreams._current.scoring.qrating.max_allowed.value\",\n \"datastreams._current.scoring.qrating.max_allowed.label\",\n \"datastreams._current.scoring.qrating.max_score\",\n \"datastreams._current.scoring.qrating.cumulative_period_divisor\",\n \"datastreams._current.scoring.qrating.max_score\",\n \"datastreams._current.scoring.qrating.conversion_matrix\",\n \"datastreams.version\",\n \"feeds.identifier\",\n \"datastreams._current.scoring.qrating.version\",\n \"datastreams._current.scoring.scoringPerformance\"\n\n ]\n },\n \"DEVICE_PART_DEVICE\": {\n \"IOT\": [\n \"datastream.id\",\n \"datastream.name\",\n \"datastream.feed\",\n \"datastream.device\",\n \"datastream.description\",\n \"datastream.unit.type\",\n \"datastream.unit.label\",\n \"datastream.unit.symbol\",\n \"datastream.period\",\n \"datastream.tags\",\n \"datastream.updated\",\n \"datastream.minValue\",\n \"datastream.maxValue\",\n \"datastream.currentValue\",\n \"datastream.categoryName\",\n \"datastream.profileId\",\n \"datastream.profileName\",\n \"datastream.profileDescription\",\n \"datastream.profileVersion\",\n \"datastream.qratingScoringQValue\",\n \"datastream.qratingScoringQScore\",\n \"datastream.qratingScoringQuality\",\n \"datastream.qratingScoringPerformance\",\n \"datastream.qratingMinRequiredValue\",\n \"datastream.qratingMinRequiredLabel\",\n \"datastream.qratingMinDesiredValue\",\n \"datastream.qratingMinDesiredLabel\",\n \"datastream.qratingIdealValue\",\n \"datastream.qratingIdealLabel\",\n \"datastream.qratingMaxDesiredValue\",\n \"datastream.qratingMaxDesiredLabel\",\n \"datastream.qratingMaxAllowedValue\",\n \"datastream.qratingMaxAllowedLabel\",\n \"datastream.qratingMaxScore\",\n \"deviceId\",\n \"feedId\",\n \"deviceOrganization\",\n \"profile.Name\",\n \"profile.Description\",\n \"profile.Version\",\n \"profile.Score\",\n \"profile.MaxScore\",\n \"profile.Performance\",\n \"profile.AvgPerformance\",\n \"profile.Quality\",\n \"category.Name\",\n \"category.Score\",\n \"category.MaxScore\",\n \"category.Performance\",\n \"category.AvgPerformance\",\n \"category.Quality\",\n \"device.Score\",\n \"device.MaxScore\",\n \"device.Performance\",\n \"device.AvgPerformance\",\n \"device.Quality\",\n \"device.Channel\",\n \"device.EntityType\"\n ]\n },\n \"USER\": {\n \"USER\": {\n \"email\": \"user.email\",\n \"description\": \"user.description\",\n \"workgroup\": \"workgroup.name\",\n \"domain\": \"domain.name\",\n \"profile\": \"profile.name\",\n \"name\": \"user.name\",\n \"surname\": \"user.surname\",\n \"countryCode\": \"country.code\",\n \"langCode\": \"language.code\",\n \"timezone\": \"user.timezone\"\n }\n },\n \"DOMAIN\": {\n \"DOMAIN\": [\n \"domain.name\",\n \"domain.description\"\n ]\n },\n \"AREAS\": {\n \"AREAS\": {\n \"identifier\": \"areas.identifier\",\n \"name\": \"areas.name\",\n \"description\": \"areas.description\",\n \"entities\": \"areas.entities\",\n \"geometry\": \"areas.geometry\",\n \"color\": \"areas.color\",\n \"organization\": \"areas.organization\"\n }\n },\n \"TASKS\": {\n \"TASKS\": [\n \"tasks.id\",\n \"tasks.name\",\n \"tasks.description\",\n \"tasks.state\",\n \"tasks.domain\",\n \"tasks.workgroup\",\n \"tasks.job.request.user\"\n ]\n },\n \"LEGACY_BULK\": {\n \"LEGACY_BULK\": {\n \"identifier\": \"bulks.identifier\",\n \"organization\": \"bulks.organization\",\n \"fileName\": \"bulks.request.fileName\",\n \"userEmail\": \"bulks.request.userEmail\",\n \"headerAccept\": \"bulks.request.header.accept\",\n \"contentType\": \"bulks.request.header.contentType\",\n \"headerCsvFormat\": \"bulks.request.header.csvFormat\",\n \"paramsFlattened\": \"bulks.request.params.flattened\",\n \"paramsAction\": \"bulks.request.params.action\",\n \"paramsFull\": \"bulks.request.params.full\",\n \"paramsType\": \"bulks.request.params.type\",\n \"status\": \"bulks.status\",\n \"startedDate\": \"bulks.startedDate\",\n \"finishedDate\": \"bulks.finishedDate\",\n \"processed\": \"bulks.summary.processed\",\n \"successful\": \"bulks.summary.successful\",\n \"error\": \"bulks.summary.error\"\n }\n },\n \"BULK\": {\n \"BULK\": {\n \"identifier\": \"bulks.identifier\",\n \"provisionProcessorId\": \"bulks.provisionProcessorId\",\n \"organization\": \"bulks.organization\",\n \"userEmail\": \"bulks.request.userEmail\",\n \"fileName\": \"bulks.request.fileName\",\n \"headerAccept\": \"bulks.request.header.accept\",\n \"contentType\": \"bulks.request.header.contentType\",\n \"status\": \"bulks.status\",\n \"startedDate\": \"bulks.startedDate\",\n \"finishedDate\": \"bulks.finishedDate\",\n \"processed\": \"bulks.summary.processed\",\n \"successful\": \"bulks.summary.successful\",\n \"error\": \"bulks.summary.error\"\n }\n },\n \"RULE\": {\n \"RULE\": {\n \"organizationId\": \"rule.organizationId\",\n \"channelId\": \"rule.channelId\",\n \"name\": \"rule.name\",\n \"active\": \"rule.active\"\n }\n },\n \"ENTITY_ALARM\": {\n \"ENTITY_ALARM\": {\n \"alarmId\": \"alarm.identifier\",\n \"alarmSubEntityIdentifier\": \"alarm.subEntityIdentifier\",\n \"entityId\": \"alarm.entityIdentifier\",\n \"entityType\": \"alarm.resourceType\",\n \"organizationName\": \"alarm.organization\",\n \"channelName\": \"alarm.channel\",\n \"alarmRuleName\": \"alarm.rule\",\n \"alarmName\": \"alarm.name\",\n \"alarmSeverity\": \"alarm.severity\",\n \"alarmPriority\": \"alarm.priority\",\n \"alarmDescription\": \"alarm.description\",\n \"alarmStatus\": \"alarm.status\",\n \"alarmOpenDate\": \"alarm.openingDate\",\n \"alarmAttentionDate\": \"alarm.attentionDate\",\n \"alarmAttentionUser\": \"alarm.attentionUser\",\n \"alarmAttentionNote\": \"alarm.attentionNote\",\n \"alarmClosureDate\": \"alarm.closureDate\",\n \"alarmClosureUser\": \"alarm.closureUser\",\n \"alarmClosureNote\": \"alarm.closureNote\"\n }\n },\n \"GENERAL\": {\n \"GENERAL\": []\n },\n \"EMPTY\": {\n \"EMPTY\": []\n },\n \"OPERATORS\": {\n \"OPERATORS\": [\n \"operator.name\"\n ]\n }\n};",
@@ -58450,7 +58478,7 @@
58450
58478
  "lineNumber": 1
58451
58479
  },
58452
58480
  {
58453
- "__docId__": 2192,
58481
+ "__docId__": 2193,
58454
58482
  "kind": "variable",
58455
58483
  "name": "IOT_FIELDS",
58456
58484
  "memberof": "src/util/searchingFields/IotFields.js",
@@ -58476,7 +58504,7 @@
58476
58504
  }
58477
58505
  },
58478
58506
  {
58479
- "__docId__": 2193,
58507
+ "__docId__": 2194,
58480
58508
  "kind": "file",
58481
58509
  "name": "src/util/searchingFields/source-precompiled/Fields.js",
58482
58510
  "content": "// Fields generated at: Tue Oct 17 2017 15:39:26 GMT+0200 (CEST)\r\n// DB: 172.19.18.242:1521/QA\r\nexport const GENERATED_FIELDS = {\r\n \"DEVICE_PART_COMMSMODULE\": {\r\n \"DEVICE_PART_COMMSMODULE\": [\r\n \"alarmAttentionDate\",\r\n \"alarmAttentionNote\",\r\n \"alarmAttentionUser\",\r\n \"alarmClosureDate\",\r\n \"alarmClosureNote\",\r\n \"alarmClosureUser\",\r\n \"alarmDescription\",\r\n \"alarmIdentifier\",\r\n \"alarmSubEntityIdentifier\",\r\n \"alarmEntityIdentifier\",\r\n \"alarmResourceType\",\r\n \"alarmOpeningDate\",\r\n \"alarmPriority\",\r\n \"alarmRuleName\",\r\n \"alarmSeverity\",\r\n \"alarmStatus\",\r\n \"applicationEmail\",\r\n \"channelName\",\r\n \"collectedAntennaInfoSrc\",\r\n \"collectedAntennaInfoStatus\",\r\n \"collectedAntennaInfoStatusTs\",\r\n \"collectedCommunicationResets\",\r\n \"collectedCommunicationResetsEventSource\",\r\n \"collectedCountry\",\r\n \"collectedCpuUsageCurrentPercentage\",\r\n \"collectedCustomId\",\r\n \"collectedCustomIdSrc\",\r\n \"collectedCustomIdTs\",\r\n \"collectedEntityDescription\",\r\n \"collectedEntityDescriptionSrc\",\r\n \"collectedEntityDescriptionTs\",\r\n \"collectedEntityName\",\r\n \"collectedEntityNameSrc\",\r\n \"collectedEntityNameTs\",\r\n \"collectedErrors\",\r\n \"collectedErrorsEventSource\",\r\n \"collectedFirstActivity\",\r\n \"collectedFirstActivitySrc\",\r\n \"collectedFirstActivityTs\",\r\n \"collectedFrequencyBandHz\",\r\n \"collectedHardwareReboots\",\r\n \"collectedHardwareRebootsEventSource\",\r\n \"collectedHomeCountryCode\",\r\n \"collectedHomeCountryName\",\r\n \"collectedHomeMcc\",\r\n \"collectedHomeMnc\",\r\n \"collectedImei\",\r\n \"collectedImeiSrc\",\r\n \"collectedImeiTs\",\r\n \"collectedLatitude\",\r\n \"collectedLocationTs\",\r\n \"collectedLongitude\",\r\n \"collectedMac\",\r\n \"collectedMacSrc\",\r\n \"collectedMacTs\",\r\n \"collectedMainPath\",\r\n \"collectedMainPathSrc\",\r\n \"collectedMainPathTs\",\r\n \"collectedManufacturer\",\r\n \"collectedManufacturerOUI\",\r\n \"collectedModel\",\r\n \"collectedModelInfoSrc\",\r\n \"collectedModelInfoTs\",\r\n \"collectedModelVersion\",\r\n \"collectedNonVolatilStorageUsageCurrentPercentage\",\r\n \"collectedNonVolatilStorageUsageLastTimeAverage\",\r\n \"collectedNonVolatilStorageUsageLastTimeMax\",\r\n \"collectedNonVolatilStorageUsageLastTimeMin\",\r\n \"collectedOperationalStatus\",\r\n \"collectedOperationalStatusSrc\",\r\n \"collectedOperationalStatusTs\",\r\n \"collectedPostalCode\",\r\n \"collectedProvince\",\r\n \"collectedRadioInfoSrc\",\r\n \"collectedRadioInfoSrcInfo\",\r\n \"collectedRadioInfoTs\",\r\n \"collectedRegion\",\r\n \"collectedRegisteredCountryCode\",\r\n \"collectedRegisteredCountryName\",\r\n \"collectedSignalQualityLastTimeAverage\",\r\n \"collectedSignalQualityLastTimeMax\",\r\n \"collectedSignalQualityLastTimeMin\",\r\n \"collectedSignalStrengthLastTimeAverage\",\r\n \"collectedSignalStrengthLastTimeMax\",\r\n \"collectedSignalStrengthLastTimeMin\",\r\n \"collectedSoftwareName\",\r\n \"collectedSoftwareReboots\",\r\n \"collectedSoftwareRebootsEventSource\",\r\n \"collectedSoftwareSrc\",\r\n \"collectedSoftwareTs\",\r\n \"collectedSoftwareType\",\r\n \"collectedSoftwareVersion\",\r\n \"collectedSpecificType\",\r\n \"collectedSpecificTypeSrc\",\r\n \"collectedSpecificTypeTs\",\r\n \"collectedStopTime\",\r\n \"collectedSuccessfullRequests\",\r\n \"collectedSuccessfullRequestsEventSource\",\r\n \"collectedUnsuccessfullRequests\",\r\n \"collectedUnsuccessfullRequestsEventSource\",\r\n \"collectedVolatilStorageUsageCurrentPercentage\",\r\n \"collectedVolatilStorageUsageLastTimeAverage\",\r\n \"collectedVolatilStorageUsageLastTimeMax\",\r\n \"collectedVolatilStorageUsageLastTimeMin\",\r\n \"customIdProvType\",\r\n \"domainName\",\r\n \"entityId\",\r\n \"entityNameProvType\",\r\n \"entityType\",\r\n \"jobActivatedDate\",\r\n \"jobEntityTotal\",\r\n \"jobErrorCode\",\r\n \"jobErrorDescription\",\r\n \"jobFinishedCancelledByEngine\",\r\n \"jobFinishedCancelledByExternal\",\r\n \"jobFinishedCancelledByExternalTimeout\",\r\n \"jobFinishedCancelledByTimeout\",\r\n \"jobFinishedCancelledByUser\",\r\n \"jobFinishedCancelledTotal\",\r\n \"jobFinishedDate\",\r\n \"jobFinishedError\",\r\n \"jobFinishedOotError\",\r\n \"jobFinishedOotSuccessful\",\r\n \"jobFinishedOotTotal\",\r\n \"jobFinishedSuccessful\",\r\n \"jobFinishedTotal\",\r\n \"jobId\",\r\n \"jobInProgressPendingExecution\",\r\n \"jobInProgressScheduled\",\r\n \"jobInProgressStarted\",\r\n \"jobInProgressTotal\",\r\n \"jobInProgressWaitingForConnection\",\r\n \"jobJson\",\r\n \"jobStartedDate\",\r\n \"jobTotal\",\r\n \"jobUser\",\r\n \"operationAttemptCurrent\",\r\n \"operationAttemptMax\",\r\n \"operationDate\",\r\n \"operationEndDate\",\r\n \"operationId\",\r\n \"operationInitDate\",\r\n \"operationJson\",\r\n \"operationName\",\r\n \"operationNotify\",\r\n \"operationResult\",\r\n \"operationStatus\",\r\n \"operationStepDescription\",\r\n \"operationStepName\",\r\n \"operationStepResponse\",\r\n \"operationStepResult\",\r\n \"operationStepTimestamp\",\r\n \"organizationName\",\r\n \"provAddressType\",\r\n \"provAdministrativeState\",\r\n \"provCountry\",\r\n \"provCustomId\",\r\n \"provEntityDescription\",\r\n \"provEntityName\",\r\n \"provHardwareId\",\r\n \"provIMEI\",\r\n \"provLatitude\",\r\n \"provLocationTimestamp\",\r\n \"provLongitude\",\r\n \"provMac\",\r\n \"provMainPath\",\r\n \"provManufacturer\",\r\n \"provModel\",\r\n \"provOperationalStatus\",\r\n \"provPostalCode\",\r\n \"provProvince\",\r\n \"provRegion\",\r\n \"provSoftwareId\",\r\n \"provSpecificType\",\r\n \"provTemplate\",\r\n \"provTemplateProvType\",\r\n \"serviceGroupName\",\r\n \"tag\",\r\n \"taskId\",\r\n \"workgroupName\"\r\n ],\r\n \"DEVICE_PART_DEVICE\": [\r\n \"collectedAntennaInfoSrc\",\r\n \"collectedAntennaInfoStatus\",\r\n \"collectedAntennaInfoStatusTs\",\r\n \"collectedFrequencyBandHz\",\r\n \"collectedImei\",\r\n \"collectedImeiTs\",\r\n \"collectedMac\",\r\n \"collectedMacTs\",\r\n \"collectedRadioInfoSrc\",\r\n \"collectedRadioInfoSrcInfo\",\r\n \"collectedRadioInfoTs\",\r\n \"collectedRelatedEntityCommsmoduleId\",\r\n \"provIMEI\",\r\n \"provMac\",\r\n \"relatedEntityCommsModule\",\r\n \"relatedEntityCommsModuleKey\",\r\n \"relatedEntityCommsModuleName\",\r\n \"relatedEntityCommsModuleType\"\r\n ],\r\n \"DEVICE_PART_SUBSCRIBER\": [\r\n \"collectedAntennaInfoSrc\",\r\n \"collectedAntennaInfoStatus\",\r\n \"collectedAntennaInfoStatusTs\",\r\n \"collectedFrequencyBandHz\",\r\n \"collectedImei\",\r\n \"collectedImeiTs\",\r\n \"collectedMac\",\r\n \"collectedMacTs\",\r\n \"collectedRadioInfoSrc\",\r\n \"collectedRadioInfoSrcInfo\",\r\n \"collectedRadioInfoTs\",\r\n \"collectedRelatedEntityCommsmoduleId\",\r\n \"provIMEI\",\r\n \"provMac\",\r\n \"relatedEntityCommsModule\",\r\n \"relatedEntityCommsModuleKey\",\r\n \"relatedEntityCommsModuleName\",\r\n \"relatedEntityCommsModuleType\"\r\n ],\r\n \"DEVICE_PART_SUBSCRIPTION\": [\r\n \"collectedAntennaInfoSrc\",\r\n \"collectedAntennaInfoStatus\",\r\n \"collectedAntennaInfoStatusTs\",\r\n \"collectedFrequencyBandHz\",\r\n \"collectedImei\",\r\n \"collectedImeiTs\",\r\n \"collectedMac\",\r\n \"collectedMacTs\",\r\n \"collectedRadioInfoSrc\",\r\n \"collectedRadioInfoSrcInfo\",\r\n \"collectedRadioInfoTs\",\r\n \"collectedRelatedEntityCommsmoduleId\",\r\n \"provIMEI\",\r\n \"provMac\",\r\n \"relatedEntityCommsModule\",\r\n \"relatedEntityCommsModuleKey\",\r\n \"relatedEntityCommsModuleName\",\r\n \"relatedEntityCommsModuleType\"\r\n ]\r\n },\r\n \"DEVICE_PART_SUBSCRIBER\": {\r\n \"DEVICE_PART_SUBSCRIBER\": [\r\n \"ElementIdentifier\",\r\n \"ElementName\",\r\n \"alarmAttentionDate\",\r\n \"alarmAttentionNote\",\r\n \"alarmAttentionUser\",\r\n \"alarmClosureDate\",\r\n \"alarmClosureNote\",\r\n \"alarmClosureUser\",\r\n \"alarmDescription\",\r\n \"alarmIdentifier\",\r\n \"alarmSubEntityIdentifier\",\r\n \"alarmEntityIdentifier\",\r\n \"alarmResourceType\",\r\n \"alarmOpeningDate\",\r\n \"alarmPriority\",\r\n \"alarmRuleName\",\r\n \"alarmSeverity\",\r\n \"alarmSeverityKey\",\r\n \"alarmStatus\",\r\n \"alarmStatusKey\",\r\n \"applicationEmail\",\r\n \"channelKey\",\r\n \"channelName\",\r\n \"collectedCommunicationResets\",\r\n \"collectedCommunicationResetsEventSource\",\r\n \"collectedCountry\",\r\n \"collectedCpuUsageCurrentPercentage\",\r\n \"collectedCustomId\",\r\n \"collectedCustomIdSrc\",\r\n \"collectedCustomIdTs\",\r\n \"collectedEntityDescription\",\r\n \"collectedEntityDescriptionSrc\",\r\n \"collectedEntityDescriptionTs\",\r\n \"collectedEntityName\",\r\n \"collectedEntityNameSrc\",\r\n \"collectedEntityNameTs\",\r\n \"collectedErrors\",\r\n \"collectedErrorsEventSource\",\r\n \"collectedFirstActivity\",\r\n \"collectedFirstActivitySrc\",\r\n \"collectedFirstActivityTs\",\r\n \"collectedHardwareReboots\",\r\n \"collectedHardwareRebootsEventSource\",\r\n \"collectedHomeCountryCode\",\r\n \"collectedHomeCountryName\",\r\n \"collectedHomeMcc\",\r\n \"collectedHomeMnc\",\r\n \"collectedIcc\",\r\n \"collectedIccSrc\",\r\n \"collectedIccTs\",\r\n \"collectedLatitude\",\r\n \"collectedLocationTs\",\r\n \"collectedLongitude\",\r\n \"collectedMainPath\",\r\n \"collectedMainPathSrc\",\r\n \"collectedMainPathTs\",\r\n \"collectedManufacturer\",\r\n \"collectedManufacturerOUI\",\r\n \"collectedModel\",\r\n \"collectedModelInfoSrc\",\r\n \"collectedModelInfoTs\",\r\n \"collectedModelVersion\",\r\n \"collectedNonVolatilStorageUsageCurrentPercentage\",\r\n \"collectedNonVolatilStorageUsageLastTimeAverage\",\r\n \"collectedNonVolatilStorageUsageLastTimeMax\",\r\n \"collectedNonVolatilStorageUsageLastTimeMin\",\r\n \"collectedOperationalStatus\",\r\n \"collectedOperationalStatusSrc\",\r\n \"collectedOperationalStatusTs\",\r\n \"collectedPostalCode\",\r\n \"collectedProvince\",\r\n \"collectedRegion\",\r\n \"collectedRegisteredCountryCode\",\r\n \"collectedRegisteredCountryName\",\r\n \"collectedSignalQualityLastTimeAverage\",\r\n \"collectedSignalQualityLastTimeMax\",\r\n \"collectedSignalQualityLastTimeMin\",\r\n \"collectedSignalStrengthLastTimeAverage\",\r\n \"collectedSignalStrengthLastTimeMax\",\r\n \"collectedSignalStrengthLastTimeMin\",\r\n \"collectedSoftwareName\",\r\n \"collectedSoftwareReboots\",\r\n \"collectedSoftwareRebootsEventSource\",\r\n \"collectedSoftwareSrc\",\r\n \"collectedSoftwareTs\",\r\n \"collectedSoftwareType\",\r\n \"collectedSoftwareVersion\",\r\n \"collectedSpecificType\",\r\n \"collectedSpecificTypeSrc\",\r\n \"collectedSpecificTypeTs\",\r\n \"collectedStopTime\",\r\n \"collectedSuccessfullRequests\",\r\n \"collectedSuccessfullRequestsEventSource\",\r\n \"collectedUnsuccessfullRequests\",\r\n \"collectedUnsuccessfullRequestsEventSource\",\r\n \"collectedVolatilStorageUsageCurrentPercentage\",\r\n \"collectedVolatilStorageUsageLastTimeAverage\",\r\n \"collectedVolatilStorageUsageLastTimeMax\",\r\n \"collectedVolatilStorageUsageLastTimeMin\",\r\n \"customIdProvType\",\r\n \"domainName\",\r\n \"entityAddressProvType\",\r\n \"entityId\",\r\n \"entityNameProvType\",\r\n \"entityType\",\r\n \"homeOperatorProvTypeKey\",\r\n \"iccProvTypeKey\",\r\n \"imeiProvTypeKey\",\r\n \"imsiProvType\",\r\n \"imsiProvTypeKey\",\r\n \"jobActivatedDate\",\r\n \"jobEntityTotal\",\r\n \"jobErrorCode\",\r\n \"jobErrorDescription\",\r\n \"jobFinishedCancelledByEngine\",\r\n \"jobFinishedCancelledByExternal\",\r\n \"jobFinishedCancelledByExternalTimeout\",\r\n \"jobFinishedCancelledByTimeout\",\r\n \"jobFinishedCancelledByUser\",\r\n \"jobFinishedCancelledTotal\",\r\n \"jobFinishedDate\",\r\n \"jobFinishedError\",\r\n \"jobFinishedOotError\",\r\n \"jobFinishedOotSuccessful\",\r\n \"jobFinishedOotTotal\",\r\n \"jobFinishedSuccessful\",\r\n \"jobFinishedTotal\",\r\n \"jobId\",\r\n \"jobInProgressPendingExecution\",\r\n \"jobInProgressScheduled\",\r\n \"jobInProgressStarted\",\r\n \"jobInProgressTotal\",\r\n \"jobInProgressWaitingForConnection\",\r\n \"jobJson\",\r\n \"jobStartedDate\",\r\n \"jobTotal\",\r\n \"jobUser\",\r\n \"latitudeProvType\",\r\n \"longitudeProvType\",\r\n \"macProvTypeKey\",\r\n \"modelProvType\",\r\n \"modelProvTypeKey\",\r\n \"msisdnProvTypeKey\",\r\n \"operationAttemptCurrent\",\r\n \"operationAttemptMax\",\r\n \"operationDate\",\r\n \"operationEndDate\",\r\n \"operationId\",\r\n \"operationInitDate\",\r\n \"operationJson\",\r\n \"operationName\",\r\n \"operationNotify\",\r\n \"operationResult\",\r\n \"operationStatus\",\r\n \"operationStatusKey\",\r\n \"operationStepDescription\",\r\n \"operationStepName\",\r\n \"operationStepResponse\",\r\n \"operationStepResult\",\r\n \"operationStepTimestamp\",\r\n \"organizationGroupKey\",\r\n \"organizationKey\",\r\n \"organizationName\",\r\n \"positionProvTypeKey\",\r\n \"postalCodeProvType\",\r\n \"postalCodeProvTypeKey\",\r\n \"provAddressType\",\r\n \"provAdministrativeState\",\r\n \"provAdministrativeStateKey\",\r\n \"provCountry\",\r\n \"provCustomId\",\r\n \"provEntityDescription\",\r\n \"provEntityName\",\r\n \"provHardwareId\",\r\n \"provICC\",\r\n \"provLatitude\",\r\n \"provLocationTimestamp\",\r\n \"provLongitude\",\r\n \"provMainPath\",\r\n \"provManufacturer\",\r\n \"provModel\",\r\n \"provOperationalStatus\",\r\n \"provPostalCode\",\r\n \"provProvince\",\r\n \"provRegion\",\r\n \"provSoftwareId\",\r\n \"provSoftwareName\",\r\n \"provSoftwareType\",\r\n \"provSoftwareVersion\",\r\n \"provSpecificType\",\r\n \"provTemplate\",\r\n \"provTemplateProvType\",\r\n \"provinceProvType\",\r\n \"registeredOperatorProvTypeKey\",\r\n \"serialNumberProvType\",\r\n \"serialNumberProvTypeKey\",\r\n \"serviceGroupName\",\r\n \"softwareProvTypeKey\",\r\n \"tag\",\r\n \"taskId\",\r\n \"workgroupKey\",\r\n \"workgroupName\"\r\n ],\r\n \"DEVICE_PART_COMMSMODULE\": [\r\n \"collectedIcc\",\r\n \"collectedIccTs\",\r\n \"collectedRelatedEntitySubscriberId\",\r\n \"provICC\",\r\n \"relatedEntitySubscriber\",\r\n \"relatedEntitySubscriberKey\",\r\n \"relatedEntitySubscriberName\",\r\n \"relatedEntitySubscriberType\"\r\n ],\r\n \"DEVICE_PART_DEVICE\": [\r\n \"collectedIcc\",\r\n \"collectedIccTs\",\r\n \"collectedRelatedEntitySubscriberId\",\r\n \"provICC\",\r\n \"relatedEntitySubscriber\",\r\n \"relatedEntitySubscriberKey\",\r\n \"relatedEntitySubscriberName\",\r\n \"relatedEntitySubscriberType\"\r\n ],\r\n \"DEVICE_PART_SUBSCRIPTION\": [\r\n \"collectedIcc\",\r\n \"collectedIccTs\",\r\n \"collectedRelatedEntitySubscriberId\",\r\n \"provICC\",\r\n \"relatedEntitySubscriber\",\r\n \"relatedEntitySubscriberKey\",\r\n \"relatedEntitySubscriberName\",\r\n \"relatedEntitySubscriberType\"\r\n ]\r\n },\r\n \"DEVICE_PART_DEVICE\": {\r\n \"DEVICE_PART_DEVICE\": [\r\n \"ElementIdentifier\",\r\n \"ElementName\",\r\n \"alarmAttentionDate\",\r\n \"alarmAttentionNote\",\r\n \"alarmAttentionUser\",\r\n \"alarmClosureDate\",\r\n \"alarmClosureNote\",\r\n \"alarmClosureUser\",\r\n \"alarmDescription\",\r\n \"alarmEntityIdentifier\",\r\n \"alarmSubEntityIdentifier\",\r\n \"alarmIdentifier\",\r\n \"alarmSubEntityIdentifier\",\r\n \"alarmResourceType\",\r\n \"alarmOpeningDate\",\r\n \"alarmPriority\",\r\n \"alarmRuleName\",\r\n \"alarmSeverity\",\r\n \"alarmSeverityKey\",\r\n \"alarmStatus\",\r\n \"alarmStatusKey\",\r\n \"applicationEmail\",\r\n \"certificateId\",\r\n \"channelKey\",\r\n \"channelName\",\r\n \"collectedBatteryChargeLevelPercentage\",\r\n \"collectedBatteryChargeLevelStatus\",\r\n \"collectedBirthDate\",\r\n \"collectedBirthDateSrc\",\r\n \"collectedBirthDateTs\",\r\n \"collectedClockDatetime\",\r\n \"collectedClockDstBegin\",\r\n \"collectedClockDstDeviation\",\r\n \"collectedClockDstEnabled\",\r\n \"collectedClockDstEnd\",\r\n \"collectedClockSrc\",\r\n \"collectedClockTimezone\",\r\n \"collectedClockTs\",\r\n \"collectedCommunicationResets\",\r\n \"collectedCommunicationResetsEventSource\",\r\n \"collectedCountry\",\r\n \"collectedCpuUsageCurrentPercentage\",\r\n \"collectedCpuUsageLastTimeAverage\",\r\n \"collectedCpuUsageLastTimeMax\",\r\n \"collectedCpuUsageLastTimeMin\",\r\n \"collectedCpuUsagePercentage\",\r\n \"collectedCpuUsageSrc\",\r\n \"collectedCpuUsageSrcInfo\",\r\n \"collectedCpuUsageTs\",\r\n \"collectedCustomId\",\r\n \"collectedCustomIdSrc\",\r\n \"collectedCustomIdTs\",\r\n \"collectedEntityDescription\",\r\n \"collectedEntityDescriptionSrc\",\r\n \"collectedEntityDescriptionTs\",\r\n \"collectedEntityName\",\r\n \"collectedEntityNameSrc\",\r\n \"collectedEntityNameTs\",\r\n \"collectedErrors\",\r\n \"collectedErrorsEventSource\",\r\n \"collectedFirstActivity\",\r\n \"collectedFirstActivitySrc\",\r\n \"collectedFirstActivityTs\",\r\n \"collectedHardwareReboots\",\r\n \"collectedHardwareRebootsEventSource\",\r\n \"collectedHomeCountryCode\",\r\n \"collectedHomeCountryName\",\r\n \"collectedHomeMcc\",\r\n \"collectedHomeMnc\",\r\n \"collectedLastMaxTempDegreesReached\",\r\n \"collectedLastMinTempDegreesReached\",\r\n \"collectedLastTimeAvgCpuUsagePercent\",\r\n \"collectedLastTimeAvgMemoryUsagePercent\",\r\n \"collectedLastTimeAvgNonVolatilStorageUsagePercent\",\r\n \"collectedLastTimeAvgVolatilStorageUsagePercent\",\r\n \"collectedLastTimeMaxCpuUsagePercent\",\r\n \"collectedLastTimeMaxMemoryUsagePercent\",\r\n \"collectedLastTimeMaxNonVolatilStorageUsagePercent\",\r\n \"collectedLastTimeMaxVolatilStorageUsagePercent\",\r\n \"collectedLastTimeMinCpuUsagePercent\",\r\n \"collectedLastTimeMinMemoryUsagePercent\",\r\n \"collectedLastTimeMinNonVolatilStorageUsagePercent\",\r\n \"collectedLastTimeMinVolatilStorageUsagePercent\",\r\n \"collectedLastTimeTempDegreesAvg\",\r\n \"collectedLatitude\",\r\n \"collectedLocationSrc\",\r\n \"collectedLocationTs\",\r\n \"collectedLongitude\",\r\n \"collectedMainPath\",\r\n \"collectedMainPathSrc\",\r\n \"collectedMainPathTs\",\r\n \"collectedManufacturer\",\r\n \"collectedManufacturerOUI\",\r\n \"collectedMemoryTotalAvailable\",\r\n \"collectedMemoryUsageCurrentPercentage\",\r\n \"collectedMemoryUsageLastTimeAverage\",\r\n \"collectedMemoryUsageLastTimeMax\",\r\n \"collectedMemoryUsageLastTimeMin\",\r\n \"collectedMemoryUsagePercentage\",\r\n \"collectedMemoryUsageSrc\",\r\n \"collectedMemoryUsageSrcInfo\",\r\n \"collectedMemoryUsageTs\",\r\n \"collectedModel\",\r\n \"collectedModelInfoSrc\",\r\n \"collectedModelInfoTs\",\r\n \"collectedModelVersion\",\r\n \"collectedNonVolatilStorageUsageCurrentPercentage\",\r\n \"collectedNonVolatilStorageUsageLastTimeAverage\",\r\n \"collectedNonVolatilStorageUsageLastTimeMax\",\r\n \"collectedNonVolatilStorageUsageLastTimeMin\",\r\n \"collectedNonVolatilStorageUsagePercentage\",\r\n \"collectedNonVolatilStorageUsageSrc\",\r\n \"collectedNonVolatilStorageUsageSrcInfo\",\r\n \"collectedNonVolatilStorageUsageTs\",\r\n \"collectedOperationalStatus\",\r\n \"collectedOperationalStatusSrc\",\r\n \"collectedOperationalStatusTs\",\r\n \"collectedOutAgeDuration\",\r\n \"collectedOutAgeTime\",\r\n \"collectedPostalCode\",\r\n \"collectedPowerSupplySource\",\r\n \"collectedPowerSupplySrc\",\r\n \"collectedPowerSupplyStatus\",\r\n \"collectedPowerSupplyTs\",\r\n \"collectedProvince\",\r\n \"collectedRegion\",\r\n \"collectedRegisteredCountryCode\",\r\n \"collectedRegisteredCountryName\",\r\n \"collectedSerialNumber\",\r\n \"collectedSerialNumberSrc\",\r\n \"collectedSerialNumberTs\",\r\n \"collectedSignalQualityLastTimeAverage\",\r\n \"collectedSignalQualityLastTimeMax\",\r\n \"collectedSignalQualityLastTimeMin\",\r\n \"collectedSignalStrengthLastTimeAverage\",\r\n \"collectedSignalStrengthLastTimeMax\",\r\n \"collectedSignalStrengthLastTimeMin\",\r\n \"collectedSoftwareName\",\r\n \"collectedSoftwareReboots\",\r\n \"collectedSoftwareRebootsEventSource\",\r\n \"collectedSoftwareSrc\",\r\n \"collectedSoftwareTs\",\r\n \"collectedSoftwareType\",\r\n \"collectedSoftwareVersion\",\r\n \"collectedSpecificType\",\r\n \"collectedSpecificTypeSrc\",\r\n \"collectedSpecificTypeTs\",\r\n \"collectedStopTime\",\r\n \"collectedSuccessfullRequests\",\r\n \"collectedSuccessfullRequestsEventSource\",\r\n \"collectedTemperatureDegrees\",\r\n \"collectedTemperatureSrc\",\r\n \"collectedTemperatureSrcInfo\",\r\n \"collectedTemperatureStatus\",\r\n \"collectedTemperatureTrend\",\r\n \"collectedTemperatureTs\",\r\n \"collectedUnsuccessfullRequests\",\r\n \"collectedUnsuccessfullRequestsEventSource\",\r\n \"collectedUpTime\",\r\n \"collectedUpTimeSrc\",\r\n \"collectedUpTimeTs\",\r\n \"collectedVolatilStorageUsageCurrentPercentage\",\r\n \"collectedVolatilStorageUsageLastTimeAverage\",\r\n \"collectedVolatilStorageUsageLastTimeMax\",\r\n \"collectedVolatilStorageUsageLastTimeMin\",\r\n \"collectedVolatilStorageUsagePercentage\",\r\n \"collectedVolatilStorageUsageSrc\",\r\n \"collectedVolatilStorageUsageSrcInfo\",\r\n \"collectedVolatilStorageUsageTs\",\r\n \"customIdProvType\",\r\n \"domainName\",\r\n \"entityAddressProvType\",\r\n \"entityId\",\r\n \"entityNameProvType\",\r\n \"entityType\",\r\n \"homeOperatorProvTypeKey\",\r\n \"iccProvTypeKey\",\r\n \"imeiProvTypeKey\",\r\n \"imsiProvType\",\r\n \"imsiProvTypeKey\",\r\n \"jobActivatedDate\",\r\n \"jobEntityTotal\",\r\n \"jobErrorCode\",\r\n \"jobErrorDescription\",\r\n \"jobFinishedCancelledByEngine\",\r\n \"jobFinishedCancelledByExternal\",\r\n \"jobFinishedCancelledByExternalTimeout\",\r\n \"jobFinishedCancelledByTimeout\",\r\n \"jobFinishedCancelledByUser\",\r\n \"jobFinishedCancelledTotal\",\r\n \"jobFinishedDate\",\r\n \"jobFinishedError\",\r\n \"jobFinishedOotError\",\r\n \"jobFinishedOotSuccessful\",\r\n \"jobFinishedOotTotal\",\r\n \"jobFinishedSuccessful\",\r\n \"jobFinishedTotal\",\r\n \"jobId\",\r\n \"jobInProgressPendingExecution\",\r\n \"jobInProgressScheduled\",\r\n \"jobInProgressStarted\",\r\n \"jobInProgressTotal\",\r\n \"jobInProgressWaitingForConnection\",\r\n \"jobJson\",\r\n \"jobStartedDate\",\r\n \"jobTotal\",\r\n \"jobUser\",\r\n \"latitudeProvType\",\r\n \"locationTimestampProvType\",\r\n \"longitudeProvType\",\r\n \"macProvTypeKey\",\r\n \"modelProvType\",\r\n \"modelProvTypeKey\",\r\n \"msisdnProvTypeKey\",\r\n \"operationAttemptCurrent\",\r\n \"operationAttemptMax\",\r\n \"operationDate\",\r\n \"operationEndDate\",\r\n \"operationId\",\r\n \"operationInitDate\",\r\n \"operationJson\",\r\n \"operationName\",\r\n \"operationNotify\",\r\n \"operationResult\",\r\n \"operationStatus\",\r\n \"operationStatusKey\",\r\n \"operationStepDescription\",\r\n \"operationStepName\",\r\n \"operationStepResponse\",\r\n \"operationStepResult\",\r\n \"operationStepTimestamp\",\r\n \"organizationGroupKey\",\r\n \"organizationKey\",\r\n \"organizationName\",\r\n \"planIdentifier\",\r\n \"positionProvTypeKey\",\r\n \"postalCodeProvType\",\r\n \"postalCodeProvTypeKey\",\r\n \"provAddressType\",\r\n \"provAdministrativeState\",\r\n \"provAdministrativeStateKey\",\r\n \"provCountry\",\r\n \"provCustomId\",\r\n \"provEntityDescription\",\r\n \"provEntityName\",\r\n \"provHardwareId\",\r\n \"provLatitude\",\r\n \"provLocationTimestamp\",\r\n \"provLongitude\",\r\n \"provMainPath\",\r\n \"provManufacturer\",\r\n \"provModel\",\r\n \"provOperationalStatus\",\r\n \"provPostalCode\",\r\n \"provProvince\",\r\n \"provRegion\",\r\n \"provSerialNumber\",\r\n \"provSoftwareId\",\r\n \"provSoftwareName\",\r\n \"provSoftwareType\",\r\n \"provSoftwareVersion\",\r\n \"provSpecificType\",\r\n \"provTemplate\",\r\n \"provTemplateProvType\",\r\n \"provinceProvType\",\r\n \"registeredOperatorProvTypeKey\",\r\n \"serialNumberProvType\",\r\n \"serialNumberProvTypeKey\",\r\n \"serviceGroupName\",\r\n \"softwareProvTypeKey\",\r\n \"tag\",\r\n \"taskId\",\r\n \"workgroupKey\",\r\n \"workgroupName\"\r\n ],\r\n \"DEVICE_PART_COMMSMODULE\": [\r\n \"collectedBatteryChargeLevelPercentage\",\r\n \"collectedBatteryChargeLevelStatus\",\r\n \"collectedBirthDate\",\r\n \"collectedBirthDateTs\",\r\n \"collectedClockDatetime\",\r\n \"collectedClockDstBegin\",\r\n \"collectedClockDstDeviation\",\r\n \"collectedClockDstEnabled\",\r\n \"collectedClockDstEnd\",\r\n \"collectedClockTimezone\",\r\n \"collectedClockTs\",\r\n \"collectedCpuUsageLastTimeAverage\",\r\n \"collectedCpuUsageLastTimeMax\",\r\n \"collectedCpuUsageLastTimeMin\",\r\n \"collectedCpuUsageSrc\",\r\n \"collectedCpuUsageTs\",\r\n \"collectedLastMaxTempDegreesReached\",\r\n \"collectedLastMinTempDegreesReached\",\r\n \"collectedLastTimeTempDegreesAvg\",\r\n \"collectedMemoryTotalAvailable\",\r\n \"collectedMemoryUsageCurrentPercentage\",\r\n \"collectedMemoryUsageLastTimeAverage\",\r\n \"collectedMemoryUsageLastTimeMax\",\r\n \"collectedMemoryUsageLastTimeMin\",\r\n \"collectedMemoryUsageSrc\",\r\n \"collectedMemoryUsageTs\",\r\n \"collectedNonVolatilStorageUsageTs\",\r\n \"collectedOutAgeDuration\",\r\n \"collectedOutAgeTime\",\r\n \"collectedPowerSupplySource\",\r\n \"collectedPowerSupplyStatus\",\r\n \"collectedPowerSupplyTs\",\r\n \"collectedRelatedEntityDeviceId\",\r\n \"collectedSerialNumber\",\r\n \"collectedSerialNumberTs\",\r\n \"collectedTemperatureDegrees\",\r\n \"collectedTemperatureStatus\",\r\n \"collectedTemperatureTrend\",\r\n \"collectedTemperatureTs\",\r\n \"collectedUpTime\",\r\n \"collectedUpTimeSrc\",\r\n \"collectedUpTimeTs\",\r\n \"collectedVolatilStorageUsageTs\",\r\n \"provSerialNumber\",\r\n \"relatedEntityDevice\",\r\n \"relatedEntityDeviceKey\",\r\n \"relatedEntityDeviceName\",\r\n \"relatedEntityDeviceType\"\r\n ],\r\n \"DEVICE_PART_SUBSCRIBER\": [\r\n \"collectedBatteryChargeLevelPercentage\",\r\n \"collectedBatteryChargeLevelStatus\",\r\n \"collectedBirthDate\",\r\n \"collectedBirthDateTs\",\r\n \"collectedClockDatetime\",\r\n \"collectedClockDstBegin\",\r\n \"collectedClockDstDeviation\",\r\n \"collectedClockDstEnabled\",\r\n \"collectedClockDstEnd\",\r\n \"collectedClockTimezone\",\r\n \"collectedClockTs\",\r\n \"collectedCpuUsageLastTimeAverage\",\r\n \"collectedCpuUsageLastTimeMax\",\r\n \"collectedCpuUsageLastTimeMin\",\r\n \"collectedCpuUsageSrc\",\r\n \"collectedCpuUsageTs\",\r\n \"collectedLastMaxTempDegreesReached\",\r\n \"collectedLastMinTempDegreesReached\",\r\n \"collectedLastTimeTempDegreesAvg\",\r\n \"collectedMemoryTotalAvailable\",\r\n \"collectedMemoryUsageCurrentPercentage\",\r\n \"collectedMemoryUsageLastTimeAverage\",\r\n \"collectedMemoryUsageLastTimeMax\",\r\n \"collectedMemoryUsageLastTimeMin\",\r\n \"collectedMemoryUsageSrc\",\r\n \"collectedMemoryUsageTs\",\r\n \"collectedNonVolatilStorageUsageTs\",\r\n \"collectedOutAgeDuration\",\r\n \"collectedOutAgeTime\",\r\n \"collectedPowerSupplySource\",\r\n \"collectedPowerSupplyStatus\",\r\n \"collectedPowerSupplyTs\",\r\n \"collectedRelatedEntityDeviceId\",\r\n \"collectedSerialNumber\",\r\n \"collectedSerialNumberTs\",\r\n \"collectedTemperatureDegrees\",\r\n \"collectedTemperatureStatus\",\r\n \"collectedTemperatureTrend\",\r\n \"collectedTemperatureTs\",\r\n \"collectedUpTime\",\r\n \"collectedUpTimeSrc\",\r\n \"collectedUpTimeTs\",\r\n \"collectedVolatilStorageUsageTs\",\r\n \"provSerialNumber\",\r\n \"relatedEntityDevice\",\r\n \"relatedEntityDeviceKey\",\r\n \"relatedEntityDeviceName\",\r\n \"relatedEntityDeviceType\"\r\n ],\r\n \"DEVICE_PART_SUBSCRIPTION\": [\r\n \"collectedBatteryChargeLevelPercentage\",\r\n \"collectedBatteryChargeLevelStatus\",\r\n \"collectedBirthDate\",\r\n \"collectedBirthDateTs\",\r\n \"collectedClockDatetime\",\r\n \"collectedClockDstBegin\",\r\n \"collectedClockDstDeviation\",\r\n \"collectedClockDstEnabled\",\r\n \"collectedClockDstEnd\",\r\n \"collectedClockTimezone\",\r\n \"collectedClockTs\",\r\n \"collectedCpuUsageLastTimeAverage\",\r\n \"collectedCpuUsageLastTimeMax\",\r\n \"collectedCpuUsageLastTimeMin\",\r\n \"collectedCpuUsageSrc\",\r\n \"collectedCpuUsageTs\",\r\n \"collectedLastMaxTempDegreesReached\",\r\n \"collectedLastMinTempDegreesReached\",\r\n \"collectedLastTimeTempDegreesAvg\",\r\n \"collectedMemoryTotalAvailable\",\r\n \"collectedMemoryUsageCurrentPercentage\",\r\n \"collectedMemoryUsageLastTimeAverage\",\r\n \"collectedMemoryUsageLastTimeMax\",\r\n \"collectedMemoryUsageLastTimeMin\",\r\n \"collectedMemoryUsageSrc\",\r\n \"collectedMemoryUsageTs\",\r\n \"collectedNonVolatilStorageUsageTs\",\r\n \"collectedOutAgeDuration\",\r\n \"collectedOutAgeTime\",\r\n \"collectedPowerSupplySource\",\r\n \"collectedPowerSupplyStatus\",\r\n \"collectedPowerSupplyTs\",\r\n \"collectedRelatedEntityDeviceId\",\r\n \"collectedSerialNumber\",\r\n \"collectedSerialNumberTs\",\r\n \"collectedTemperatureDegrees\",\r\n \"collectedTemperatureStatus\",\r\n \"collectedTemperatureTrend\",\r\n \"collectedTemperatureTs\",\r\n \"collectedUpTime\",\r\n \"collectedUpTimeSrc\",\r\n \"collectedUpTimeTs\",\r\n \"collectedVolatilStorageUsageTs\",\r\n \"provSerialNumber\",\r\n \"relatedEntityDevice\",\r\n \"relatedEntityDeviceKey\",\r\n \"relatedEntityDeviceName\",\r\n \"relatedEntityDeviceType\"\r\n ]\r\n },\r\n \"DEVICE_PART_SUBSCRIPTION\": {\r\n \"DEVICE_PART_SUBSCRIPTION\": [\r\n \"ElementIdentifier\",\r\n \"ElementName\",\r\n \"alarmAttentionDate\",\r\n \"alarmAttentionNote\",\r\n \"alarmAttentionUser\",\r\n \"alarmClosureDate\",\r\n \"alarmClosureNote\",\r\n \"alarmClosureUser\",\r\n \"alarmDescription\",\r\n \"alarmIdentifier\",\r\n \"alarmSubEntityIdentifier\",\r\n \"alarmEntityIdentifier\",\r\n \"alarmResourceType\",\r\n \"alarmOpeningDate\",\r\n \"alarmPriority\",\r\n \"alarmRuleName\",\r\n \"alarmSeverity\",\r\n \"alarmSeverityKey\",\r\n \"alarmStatus\",\r\n \"applicationEmail\",\r\n \"channelKey\",\r\n \"channelName\",\r\n \"collectedAddress\",\r\n \"collectedAddressEventId\",\r\n \"collectedAddressSrc\",\r\n \"collectedAddressSubType\",\r\n \"collectedAddressTs\",\r\n \"collectedAddressType\",\r\n \"collectedApn\",\r\n \"collectedBcch\",\r\n \"collectedBytesReceived\",\r\n \"collectedBytesSent\",\r\n \"collectedCellId\",\r\n \"collectedCellInfoSrc\",\r\n \"collectedCellInfoTs\",\r\n \"collectedCellRegInfoSrc\",\r\n \"collectedCellRegInfoTs\",\r\n \"collectedCgi\",\r\n \"collectedCommunicationResets\",\r\n \"collectedCommunicationResetsEventSource\",\r\n \"collectedCountry\",\r\n \"collectedCpuUsageCurrentPercentage\",\r\n \"collectedCustomId\",\r\n \"collectedCustomIdSrc\",\r\n \"collectedCustomIdTs\",\r\n \"collectedEcgi\",\r\n \"collectedEcgiEci\",\r\n \"collectedEntityDescription\",\r\n \"collectedEntityDescriptionSrc\",\r\n \"collectedEntityDescriptionTs\",\r\n \"collectedEntityName\",\r\n \"collectedEntityNameSrc\",\r\n \"collectedEntityNameTs\",\r\n \"collectedErrors\",\r\n \"collectedErrorsEventSource\",\r\n \"collectedFirstActivity\",\r\n \"collectedFirstActivitySrc\",\r\n \"collectedFirstActivityTs\",\r\n \"collectedGgsnCountry\",\r\n \"collectedGgsnCountryCode\",\r\n \"collectedGgsnInfoSrc\",\r\n \"collectedGgsnInfoTs\",\r\n \"collectedGgsnIp\",\r\n \"collectedGgsnOperator\",\r\n \"collectedGgsnPlmn\",\r\n \"collectedGprsPresenceSrc\",\r\n \"collectedGprsPresenceTs\",\r\n \"collectedGprsStatus\",\r\n \"collectedGsmPresenceSrc\",\r\n \"collectedGsmPresenceTs\",\r\n \"collectedGsmStatus\",\r\n \"collectedHardwareReboots\",\r\n \"collectedHardwareRebootsEventSource\",\r\n \"collectedHomeCountryCode\",\r\n \"collectedHomeCountryName\",\r\n \"collectedHomeMcc\",\r\n \"collectedHomeMnc\",\r\n \"collectedHomeOperator\",\r\n \"collectedHomePlmn\",\r\n \"collectedImsi\",\r\n \"collectedImsiSrc\",\r\n \"collectedImsiTs\",\r\n \"collectedIpPresenceEventId\",\r\n \"collectedIpStatus\",\r\n \"collectedIpStatusSrc\",\r\n \"collectedIpStatusTs\",\r\n \"collectedLac\",\r\n \"collectedLastActivity\",\r\n \"collectedLastActivitySrc\",\r\n \"collectedLastActivityTs\",\r\n \"collectedLastTimeAvgSignalQualityPercent\",\r\n \"collectedLastTimeAvgSignalStrengthDbm\",\r\n \"collectedLatitude\",\r\n \"collectedLocationSrc\",\r\n \"collectedLocationTs\",\r\n \"collectedLongitude\",\r\n \"collectedMainPath\",\r\n \"collectedMainPathSrc\",\r\n \"collectedMainPathTs\",\r\n \"collectedManufacturer\",\r\n \"collectedManufacturerOUI\",\r\n \"collectedModel\",\r\n \"collectedModelInfoSrc\",\r\n \"collectedModelInfoTs\",\r\n \"collectedModelVersion\",\r\n \"collectedMr\",\r\n \"collectedMscCountry\",\r\n \"collectedMscCountryCode\",\r\n \"collectedMscGlobalTitle\",\r\n \"collectedMscInfoSrc\",\r\n \"collectedMscInfoTs\",\r\n \"collectedMscOperator\",\r\n \"collectedMsisdn\",\r\n \"collectedMsisdnSrc\",\r\n \"collectedMsisdnTs\",\r\n \"collectedNasIp\",\r\n \"collectedNetSigCurStrengthDbm\",\r\n \"collectedNetSigSrc\",\r\n \"collectedNetSigTs\",\r\n \"collectedNonVolatilStorageUsageCurrentPercentage\",\r\n \"collectedNonVolatilStorageUsageLastTimeAverage\",\r\n \"collectedNonVolatilStorageUsageLastTimeMax\",\r\n \"collectedNonVolatilStorageUsageLastTimeMin\",\r\n \"collectedOperationalStatus\",\r\n \"collectedOperationalStatusSrc\",\r\n \"collectedOperationalStatusTs\",\r\n \"collectedPacketsReceived\",\r\n \"collectedPacketsSent\",\r\n \"collectedPostalCode\",\r\n \"collectedProvince\",\r\n \"collectedRadiusClientIp\",\r\n \"collectedRatType\",\r\n \"collectedRefreshTime\",\r\n \"collectedRegion\",\r\n \"collectedRegisteredCountryCode\",\r\n \"collectedRegisteredCountryName\",\r\n \"collectedRegisteredMcc\",\r\n \"collectedRegisteredMnc\",\r\n \"collectedRegisteredOperator\",\r\n \"collectedRegisteredPlmn\",\r\n \"collectedRtt\",\r\n \"collectedSai\",\r\n \"collectedSaiLac\",\r\n \"collectedSaiSac\",\r\n \"collectedSessionId\",\r\n \"collectedSessionTime\",\r\n \"collectedSgsnCountry\",\r\n \"collectedSgsnCountryCode\",\r\n \"collectedSgsnGlobalTitle\",\r\n \"collectedSgsnGt\",\r\n \"collectedSgsnInfoSrc\",\r\n \"collectedSgsnInfoTs\",\r\n \"collectedSgsnIp\",\r\n \"collectedSgsnOperator\",\r\n \"collectedSgsnPlmn\",\r\n \"collectedSignalQualityLastTimeAverage\",\r\n \"collectedSignalQualityLastTimeMax\",\r\n \"collectedSignalQualityLastTimeMin\",\r\n \"collectedSignalQualityPercentage\",\r\n \"collectedSignalQualityStatus\",\r\n \"collectedSignalStrengthLastTimeAverage\",\r\n \"collectedSignalStrengthLastTimeMax\",\r\n \"collectedSignalStrengthLastTimeMin\",\r\n \"collectedSignalStrengthStatus\",\r\n \"collectedSoftwareName\",\r\n \"collectedSoftwareReboots\",\r\n \"collectedSoftwareRebootsEventSource\",\r\n \"collectedSoftwareSrc\",\r\n \"collectedSoftwareTs\",\r\n \"collectedSoftwareType\",\r\n \"collectedSoftwareVersion\",\r\n \"collectedSpecificType\",\r\n \"collectedSpecificTypeSrc\",\r\n \"collectedSpecificTypeTs\",\r\n \"collectedStartTime\",\r\n \"collectedStopTime\",\r\n \"collectedSuccessfullRequests\",\r\n \"collectedSuccessfullRequestsEventSource\",\r\n \"collectedTai\",\r\n \"collectedTaiTac\",\r\n \"collectedTimingAdvance\",\r\n \"collectedUli\",\r\n \"collectedUnifiedPresence\",\r\n \"collectedUnifiedPresenceEventSrc\",\r\n \"collectedUnifiedPresenceInfo\",\r\n \"collectedUnifiedPresenceTs\",\r\n \"collectedUnsuccessfullRequests\",\r\n \"collectedUnsuccessfullRequestsEventSource\",\r\n \"collectedVlrCountry\",\r\n \"collectedVlrCountryCode\",\r\n \"collectedVlrGlobalTitle\",\r\n \"collectedVlrGt\",\r\n \"collectedVlrInfoSrc\",\r\n \"collectedVlrInfoTs\",\r\n \"collectedVlrOperator\",\r\n \"collectedVolatilStorageUsageCurrentPercentage\",\r\n \"collectedVolatilStorageUsageLastTimeAverage\",\r\n \"collectedVolatilStorageUsageLastTimeMax\",\r\n \"collectedVolatilStorageUsageLastTimeMin\",\r\n \"customIdProvType\",\r\n \"domainName\",\r\n \"entityAddressProvType\",\r\n \"entityId\",\r\n \"entityNameProvType\",\r\n \"entityType\",\r\n \"homeOperatorProvTypeKey\",\r\n \"iccProvTypeKey\",\r\n \"imeiProvTypeKey\",\r\n \"imsiProvType\",\r\n \"imsiProvTypeKey\",\r\n \"jobActivatedDate\",\r\n \"jobEntityTotal\",\r\n \"jobErrorCode\",\r\n \"jobErrorDescription\",\r\n \"jobFinishedCancelledByEngine\",\r\n \"jobFinishedCancelledByExternal\",\r\n \"jobFinishedCancelledByExternalTimeout\",\r\n \"jobFinishedCancelledByTimeout\",\r\n \"jobFinishedCancelledByUser\",\r\n \"jobFinishedCancelledTotal\",\r\n \"jobFinishedDate\",\r\n \"jobFinishedError\",\r\n \"jobFinishedOotError\",\r\n \"jobFinishedOotSuccessful\",\r\n \"jobFinishedOotTotal\",\r\n \"jobFinishedSuccessful\",\r\n \"jobFinishedTotal\",\r\n \"jobId\",\r\n \"jobInProgressPendingExecution\",\r\n \"jobInProgressScheduled\",\r\n \"jobInProgressStarted\",\r\n \"jobInProgressTotal\",\r\n \"jobInProgressWaitingForConnection\",\r\n \"jobJson\",\r\n \"jobStartedDate\",\r\n \"jobTotal\",\r\n \"jobUser\",\r\n \"latitudeProvType\",\r\n \"locationTimestampProvType\",\r\n \"longitudeProvType\",\r\n \"macProvTypeKey\",\r\n \"modelProvType\",\r\n \"modelProvTypeKey\",\r\n \"msisdnProvTypeKey\",\r\n \"operationAttemptCurrent\",\r\n \"operationAttemptMax\",\r\n \"operationDate\",\r\n \"operationEndDate\",\r\n \"operationId\",\r\n \"operationInitDate\",\r\n \"operationJson\",\r\n \"operationName\",\r\n \"operationNotify\",\r\n \"operationResult\",\r\n \"operationStatus\",\r\n \"operationStatusKey\",\r\n \"operationStepDescription\",\r\n \"operationStepName\",\r\n \"operationStepResponse\",\r\n \"operationStepResult\",\r\n \"operationStepTimestamp\",\r\n \"organizationGroupKey\",\r\n \"organizationKey\",\r\n \"organizationName\",\r\n \"positionProvTypeKey\",\r\n \"postalCodeProvType\",\r\n \"postalCodeProvTypeKey\",\r\n \"provAddress\",\r\n \"provAddressType\",\r\n \"provAdministrativeState\",\r\n \"provAdministrativeStateKey\",\r\n \"provApn\",\r\n \"provCountry\",\r\n \"provCustomId\",\r\n \"provEntityDescription\",\r\n \"provEntityName\",\r\n \"provHardwareId\",\r\n \"provHomeOperator\",\r\n \"provIMSI\",\r\n \"provLatitude\",\r\n \"provLocationTimestamp\",\r\n \"provLongitude\",\r\n \"provMainPath\",\r\n \"provManufacturer\",\r\n \"provModel\",\r\n \"provMsisdn\",\r\n \"provOperationalStatus\",\r\n \"provPostalCode\",\r\n \"provProvince\",\r\n \"provRegion\",\r\n \"provRegisteredOperator\",\r\n \"provSoftwareId\",\r\n \"provSoftwareName\",\r\n \"provSoftwareType\",\r\n \"provSoftwareVersion\",\r\n \"provSpecificType\",\r\n \"provTemplate\",\r\n \"provTemplateProvType\",\r\n \"provinceProvType\",\r\n \"registeredOperatorProvTypeKey\",\r\n \"serialNumberProvType\",\r\n \"serialNumberProvTypeKey\",\r\n \"serviceGroupName\",\r\n \"softwareProvTypeKey\",\r\n \"tag\",\r\n \"taskId\",\r\n \"workgroupKey\",\r\n \"workgroupName\"\r\n ],\r\n \"DEVICE_PART_COMMSMODULE\": [\r\n \"collectedAddress\",\r\n \"collectedAddressSubType\",\r\n \"collectedAddressTs\",\r\n \"collectedAddressType\",\r\n \"collectedApn\",\r\n \"collectedBcch\",\r\n \"collectedBytesReceived\",\r\n \"collectedBytesSent\",\r\n \"collectedCellId\",\r\n \"collectedCellInfoTs\",\r\n \"collectedCellRegInfoTs\",\r\n \"collectedCgi\",\r\n \"collectedEcgi\",\r\n \"collectedEcgiEci\",\r\n \"collectedGgsnCountry\",\r\n \"collectedGgsnCountryCode\",\r\n \"collectedGgsnInfoTs\",\r\n \"collectedGgsnIp\",\r\n \"collectedGgsnOperator\",\r\n \"collectedGgsnPlmn\",\r\n \"collectedGprsPresenceTs\",\r\n \"collectedGprsStatus\",\r\n \"collectedGsmPresenceTs\",\r\n \"collectedGsmStatus\",\r\n \"collectedHomeOperator\",\r\n \"collectedHomePlmn\",\r\n \"collectedImsi\",\r\n \"collectedImsiTs\",\r\n \"collectedIpStatus\",\r\n \"collectedIpStatusTs\",\r\n \"collectedLac\",\r\n \"collectedLastActivity\",\r\n \"collectedLastActivitySrc\",\r\n \"collectedLastActivityTs\",\r\n \"collectedMr\",\r\n \"collectedMscCountry\",\r\n \"collectedMscCountryCode\",\r\n \"collectedMscGlobalTitle\",\r\n \"collectedMscInfoTs\",\r\n \"collectedMscOperator\",\r\n \"collectedMsisdn\",\r\n \"collectedMsisdnTs\",\r\n \"collectedNasIp\",\r\n \"collectedNetSigCurStrengthDbm\",\r\n \"collectedNetSigTs\",\r\n \"collectedPacketsReceived\",\r\n \"collectedPacketsSent\",\r\n \"collectedRadiusClientIp\",\r\n \"collectedRatType\",\r\n \"collectedRefreshTime\",\r\n \"collectedRegisteredMcc\",\r\n \"collectedRegisteredMnc\",\r\n \"collectedRegisteredOperator\",\r\n \"collectedRegisteredPlmn\",\r\n \"collectedRelatedEntitySubscriptionId\",\r\n \"collectedRtt\",\r\n \"collectedSai\",\r\n \"collectedSaiLac\",\r\n \"collectedSaiSac\",\r\n \"collectedSessionId\",\r\n \"collectedSessionTime\",\r\n \"collectedSgsnCountry\",\r\n \"collectedSgsnCountryCode\",\r\n \"collectedSgsnGlobalTitle\",\r\n \"collectedSgsnGt\",\r\n \"collectedSgsnInfoTs\",\r\n \"collectedSgsnIp\",\r\n \"collectedSgsnOperator\",\r\n \"collectedSgsnPlmn\",\r\n \"collectedSignalQualityPercentage\",\r\n \"collectedSignalQualityStatus\",\r\n \"collectedSignalStrengthStatus\",\r\n \"collectedStartTime\",\r\n \"collectedTai\",\r\n \"collectedTaiTac\",\r\n \"collectedTimingAdvance\",\r\n \"collectedUli\",\r\n \"collectedUnifiedPresence\",\r\n \"collectedUnifiedPresenceEventSrc\",\r\n \"collectedUnifiedPresenceInfo\",\r\n \"collectedUnifiedPresenceTs\",\r\n \"collectedVlrCountry\",\r\n \"collectedVlrCountryCode\",\r\n \"collectedVlrGlobalTitle\",\r\n \"collectedVlrGt\",\r\n \"collectedVlrInfoTs\",\r\n \"collectedVlrOperator\",\r\n \"provAddress\",\r\n \"provApn\",\r\n \"provHomeOperator\",\r\n \"provIMSI\",\r\n \"provMsisdn\",\r\n \"provRegisteredOperator\",\r\n \"relatedEntitySubscription\",\r\n \"relatedEntitySubscriptionKey\",\r\n \"relatedEntitySubscriptionName\",\r\n \"relatedEntitySubscriptionType\"\r\n ],\r\n \"DEVICE_PART_DEVICE\": [\r\n \"collectedAddress\",\r\n \"collectedAddressSrc\",\r\n \"collectedAddressSubType\",\r\n \"collectedAddressTs\",\r\n \"collectedAddressType\",\r\n \"collectedApn\",\r\n \"collectedBcch\",\r\n \"collectedBytesReceived\",\r\n \"collectedBytesSent\",\r\n \"collectedCellId\",\r\n \"collectedCellInfoTs\",\r\n \"collectedCellRegInfoTs\",\r\n \"collectedCgi\",\r\n \"collectedEcgi\",\r\n \"collectedEcgiEci\",\r\n \"collectedGgsnCountry\",\r\n \"collectedGgsnCountryCode\",\r\n \"collectedGgsnInfoTs\",\r\n \"collectedGgsnIp\",\r\n \"collectedGgsnOperator\",\r\n \"collectedGgsnPlmn\",\r\n \"collectedGprsPresenceTs\",\r\n \"collectedGprsStatus\",\r\n \"collectedGsmPresenceTs\",\r\n \"collectedGsmStatus\",\r\n \"collectedHomeOperator\",\r\n \"collectedHomePlmn\",\r\n \"collectedImsi\",\r\n \"collectedImsiTs\",\r\n \"collectedIpStatus\",\r\n \"collectedIpStatusTs\",\r\n \"collectedLac\",\r\n \"collectedLastActivity\",\r\n \"collectedLastActivitySrc\",\r\n \"collectedLastActivityTs\",\r\n \"collectedMr\",\r\n \"collectedMscCountry\",\r\n \"collectedMscCountryCode\",\r\n \"collectedMscGlobalTitle\",\r\n \"collectedMscInfoTs\",\r\n \"collectedMscOperator\",\r\n \"collectedMsisdn\",\r\n \"collectedMsisdnTs\",\r\n \"collectedNasIp\",\r\n \"collectedNetSigCurStrengthDbm\",\r\n \"collectedNetSigTs\",\r\n \"collectedPacketsReceived\",\r\n \"collectedPacketsSent\",\r\n \"collectedRadiusClientIp\",\r\n \"collectedRatType\",\r\n \"collectedRefreshTime\",\r\n \"collectedRegisteredMcc\",\r\n \"collectedRegisteredMnc\",\r\n \"collectedRegisteredOperator\",\r\n \"collectedRegisteredPlmn\",\r\n \"collectedRelatedEntitySubscriptionId\",\r\n \"collectedRelatedEntitySubscriptionSpecificType\",\r\n \"collectedRtt\",\r\n \"collectedSai\",\r\n \"collectedSaiLac\",\r\n \"collectedSaiSac\",\r\n \"collectedSessionId\",\r\n \"collectedSessionTime\",\r\n \"collectedSgsnCountry\",\r\n \"collectedSgsnCountryCode\",\r\n \"collectedSgsnGlobalTitle\",\r\n \"collectedSgsnGt\",\r\n \"collectedSgsnInfoTs\",\r\n \"collectedSgsnIp\",\r\n \"collectedSgsnOperator\",\r\n \"collectedSgsnPlmn\",\r\n \"collectedSignalQualityPercentage\",\r\n \"collectedSignalQualityStatus\",\r\n \"collectedSignalStrengthStatus\",\r\n \"collectedStartTime\",\r\n \"collectedTai\",\r\n \"collectedTaiTac\",\r\n \"collectedTimingAdvance\",\r\n \"collectedUli\",\r\n \"collectedUnifiedPresence\",\r\n \"collectedUnifiedPresenceEventSrc\",\r\n \"collectedUnifiedPresenceInfo\",\r\n \"collectedUnifiedPresenceTs\",\r\n \"collectedVlrCountry\",\r\n \"collectedVlrCountryCode\",\r\n \"collectedVlrGlobalTitle\",\r\n \"collectedVlrGt\",\r\n \"collectedVlrInfoTs\",\r\n \"collectedVlrOperator\",\r\n \"provAddress\",\r\n \"provApn\",\r\n \"provHomeOperator\",\r\n \"provIMSI\",\r\n \"provMsisdn\",\r\n \"provRegisteredOperator\",\r\n \"relatedEntitySubscription\",\r\n \"relatedEntitySubscriptionKey\",\r\n \"relatedEntitySubscriptionName\",\r\n \"relatedEntitySubscriptionType\"\r\n ],\r\n \"DEVICE_PART_SUBSCRIBER\": [\r\n \"collectedAddress\",\r\n \"collectedAddressSubType\",\r\n \"collectedAddressTs\",\r\n \"collectedAddressType\",\r\n \"collectedApn\",\r\n \"collectedBcch\",\r\n \"collectedBytesReceived\",\r\n \"collectedBytesSent\",\r\n \"collectedCellId\",\r\n \"collectedCellInfoSrc\",\r\n \"collectedCellInfoTs\",\r\n \"collectedCellRegInfoSrc\",\r\n \"collectedCellRegInfoTs\",\r\n \"collectedCgi\",\r\n \"collectedEcgi\",\r\n \"collectedEcgiEci\",\r\n \"collectedGgsnCountry\",\r\n \"collectedGgsnCountryCode\",\r\n \"collectedGgsnInfoTs\",\r\n \"collectedGgsnIp\",\r\n \"collectedGgsnOperator\",\r\n \"collectedGgsnPlmn\",\r\n \"collectedGprsPresenceTs\",\r\n \"collectedGprsStatus\",\r\n \"collectedGsmPresenceTs\",\r\n \"collectedGsmStatus\",\r\n \"collectedHomeOperator\",\r\n \"collectedHomePlmn\",\r\n \"collectedImsi\",\r\n \"collectedImsiSrc\",\r\n \"collectedImsiTs\",\r\n \"collectedIpStatus\",\r\n \"collectedIpStatusTs\",\r\n \"collectedLac\",\r\n \"collectedLastActivity\",\r\n \"collectedLastActivitySrc\",\r\n \"collectedLastActivityTs\",\r\n \"collectedMr\",\r\n \"collectedMscCountry\",\r\n \"collectedMscCountryCode\",\r\n \"collectedMscGlobalTitle\",\r\n \"collectedMscInfoTs\",\r\n \"collectedMscOperator\",\r\n \"collectedMsisdn\",\r\n \"collectedMsisdnTs\",\r\n \"collectedNasIp\",\r\n \"collectedNetSigCurStrengthDbm\",\r\n \"collectedNetSigTs\",\r\n \"collectedPacketsReceived\",\r\n \"collectedPacketsSent\",\r\n \"collectedRadiusClientIp\",\r\n \"collectedRatType\",\r\n \"collectedRefreshTime\",\r\n \"collectedRegisteredMcc\",\r\n \"collectedRegisteredMnc\",\r\n \"collectedRegisteredOperator\",\r\n \"collectedRegisteredPlmn\",\r\n \"collectedRelatedEntitySubscriptionId\",\r\n \"collectedRtt\",\r\n \"collectedSai\",\r\n \"collectedSaiLac\",\r\n \"collectedSaiSac\",\r\n \"collectedSessionId\",\r\n \"collectedSessionTime\",\r\n \"collectedSgsnCountry\",\r\n \"collectedSgsnCountryCode\",\r\n \"collectedSgsnGlobalTitle\",\r\n \"collectedSgsnGt\",\r\n \"collectedSgsnInfoTs\",\r\n \"collectedSgsnIp\",\r\n \"collectedSgsnOperator\",\r\n \"collectedSgsnPlmn\",\r\n \"collectedSignalQualityPercentage\",\r\n \"collectedSignalQualityStatus\",\r\n \"collectedSignalStrengthStatus\",\r\n \"collectedStartTime\",\r\n \"collectedTai\",\r\n \"collectedTaiTac\",\r\n \"collectedTimingAdvance\",\r\n \"collectedUli\",\r\n \"collectedUnifiedPresence\",\r\n \"collectedUnifiedPresenceEventSrc\",\r\n \"collectedUnifiedPresenceInfo\",\r\n \"collectedUnifiedPresenceTs\",\r\n \"collectedVlrCountry\",\r\n \"collectedVlrCountryCode\",\r\n \"collectedVlrGlobalTitle\",\r\n \"collectedVlrGt\",\r\n \"collectedVlrInfoTs\",\r\n \"collectedVlrOperator\",\r\n \"provAddress\",\r\n \"provApn\",\r\n \"provHomeOperator\",\r\n \"provIMSI\",\r\n \"provMsisdn\",\r\n \"provRegisteredOperator\",\r\n \"relatedEntitySubscription\",\r\n \"relatedEntitySubscriptionKey\",\r\n \"relatedEntitySubscriptionName\",\r\n \"relatedEntitySubscriptionType\"\r\n ]\r\n },\r\n \"MANUFACTURER\": {\r\n \"MANUFACTURER\": [\r\n \"comboboxManufacturer\",\r\n \"manufacturerAddress\",\r\n \"manufacturerDescription\",\r\n \"manufacturerEmail\",\r\n \"manufacturerFax\",\r\n \"manufacturerIdentifier\",\r\n \"manufacturerMediaFileName\",\r\n \"manufacturerMediaHeight\",\r\n \"manufacturerMediaIdentifier\",\r\n \"manufacturerMediaName\",\r\n \"manufacturerMediaSize\",\r\n \"manufacturerMediaTypeName\",\r\n \"manufacturerMediaWidth\",\r\n \"manufacturerName\",\r\n \"manufacturerNotes\",\r\n \"manufacturerTelephone\",\r\n \"manufacturerUrl\",\r\n \"modelDescription\",\r\n \"modelIdentifier\",\r\n \"modelMediaFileName\",\r\n \"modelMediaHeight\",\r\n \"modelMediaIdentifier\",\r\n \"modelMediaName\",\r\n \"modelMediaSize\",\r\n \"modelMediaTypeName\",\r\n \"modelMediaWidth\",\r\n \"modelName\",\r\n \"modelNotes\",\r\n \"modelUrl\",\r\n \"modelVersion\"\r\n ]\r\n },\r\n \"ENTITY_OPERATION\": {\r\n \"ENTITY_OPERATION\": [\r\n \"ElementIdentifier\",\r\n \"ElementName\",\r\n \"alarmRuleName\",\r\n \"alarmSeverity\",\r\n \"alarmSeverityKey\",\r\n \"alarmStatus\",\r\n \"applicationEmail\",\r\n \"channelKey\",\r\n \"channelName\",\r\n \"collectedAddress\",\r\n \"collectedAddressSubType\",\r\n \"collectedAddressTs\",\r\n \"collectedAddressType\",\r\n \"collectedApn\",\r\n \"collectedBcch\",\r\n \"collectedBirthDate\",\r\n \"collectedBirthDateTs\",\r\n \"collectedBytesReceived\",\r\n \"collectedBytesSent\",\r\n \"collectedCellInfoTs\",\r\n \"collectedCellRegInfoTs\",\r\n \"collectedCgi\",\r\n \"collectedClockDatetime\",\r\n \"collectedClockDstBegin\",\r\n \"collectedClockDstDeviation\",\r\n \"collectedClockDstEnabled\",\r\n \"collectedClockDstEnd\",\r\n \"collectedClockTimezone\",\r\n \"collectedClockTs\",\r\n \"collectedCountry\",\r\n \"collectedCpuUsageCurrentPercentage\",\r\n \"collectedCpuUsageLastTimeAverage\",\r\n \"collectedCpuUsageLastTimeMax\",\r\n \"collectedCpuUsageLastTimeMin\",\r\n \"collectedCpuUsageSrc\",\r\n \"collectedCpuUsageTs\",\r\n \"collectedCustomId\",\r\n \"collectedCustomIdTs\",\r\n \"collectedEcgi\",\r\n \"collectedEcgiEci\",\r\n \"collectedEntityDescription\",\r\n \"collectedEntityName\",\r\n \"collectedEntityNameTs\",\r\n \"collectedFirstActivity\",\r\n \"collectedFirstActivityTs\",\r\n \"collectedFrequencyBandHz\",\r\n \"collectedGgsnCountry\",\r\n \"collectedGgsnCountryCode\",\r\n \"collectedGgsnIp\",\r\n \"collectedGgsnOperator\",\r\n \"collectedGgsnPlmn\",\r\n \"collectedGprsStatus\",\r\n \"collectedGsmStatus\",\r\n \"collectedHomeCountryCode\",\r\n \"collectedHomeCountryName\",\r\n \"collectedHomeMcc\",\r\n \"collectedHomeMnc\",\r\n \"collectedHomeOperator\",\r\n \"collectedHomePlmn\",\r\n \"collectedIcc\",\r\n \"collectedIccTs\",\r\n \"collectedImei\",\r\n \"collectedImeiTs\",\r\n \"collectedImsi\",\r\n \"collectedIpStatus\",\r\n \"collectedIpStatusTs\",\r\n \"collectedLac\",\r\n \"collectedLatitude\",\r\n \"collectedLocationTs\",\r\n \"collectedLongitude\",\r\n \"collectedMac\",\r\n \"collectedMainPath\",\r\n \"collectedMainPathTs\",\r\n \"collectedManufacturer\",\r\n \"collectedManufacturerOUI\",\r\n \"collectedMemoryTotalAvailable\",\r\n \"collectedMemoryUsageCurrentPercentage\",\r\n \"collectedMemoryUsageLastTimeAverage\",\r\n \"collectedMemoryUsageLastTimeMax\",\r\n \"collectedMemoryUsageLastTimeMin\",\r\n \"collectedMemoryUsageSrc\",\r\n \"collectedMemoryUsageTs\",\r\n \"collectedModel\",\r\n \"collectedMr\",\r\n \"collectedMscCountry\",\r\n \"collectedMscCountryCode\",\r\n \"collectedMscGlobalTitle\",\r\n \"collectedMscOperator\",\r\n \"collectedMsisdn\",\r\n \"collectedMsisdnTs\",\r\n \"collectedNasIp\",\r\n \"collectedNetSigCurStrengthDbm\",\r\n \"collectedNonVolatilStorageUsageCurrentPercentage\",\r\n \"collectedNonVolatilStorageUsageLastTimeAverage\",\r\n \"collectedNonVolatilStorageUsageLastTimeMax\",\r\n \"collectedNonVolatilStorageUsageLastTimeMin\",\r\n \"collectedOperationalStatus\",\r\n \"collectedOperationalStatusTs\",\r\n \"collectedPacketsReceived\",\r\n \"collectedPacketsSent\",\r\n \"collectedPostalCode\",\r\n \"collectedPowerSupplySource\",\r\n \"collectedPowerSupplyStatus\",\r\n \"collectedPowerSupplyTs\",\r\n \"collectedProvince\",\r\n \"collectedRadioInfoTs\",\r\n \"collectedRadiusClientIp\",\r\n \"collectedRatType\",\r\n \"collectedRefreshTime\",\r\n \"collectedRegion\",\r\n \"collectedRegisteredCountryCode\",\r\n \"collectedRegisteredCountryName\",\r\n \"collectedRegisteredMcc\",\r\n \"collectedRegisteredMnc\",\r\n \"collectedRegisteredOperator\",\r\n \"collectedRegisteredPlmn\",\r\n \"collectedRtt\",\r\n \"collectedSai\",\r\n \"collectedSaiLac\",\r\n \"collectedSaiSac\",\r\n \"collectedSerialNumber\",\r\n \"collectedSerialNumberTs\",\r\n \"collectedSessionId\",\r\n \"collectedSessionTime\",\r\n \"collectedSgsnCountry\",\r\n \"collectedSgsnCountryCode\",\r\n \"collectedSgsnGlobalTitle\",\r\n \"collectedSgsnIp\",\r\n \"collectedSgsnOperator\",\r\n \"collectedSgsnPlmn\",\r\n \"collectedSignalQualityLastTimeAverage\",\r\n \"collectedSignalQualityLastTimeMax\",\r\n \"collectedSignalQualityLastTimeMin\",\r\n \"collectedSignalStrengthLastTimeAverage\",\r\n \"collectedSignalStrengthLastTimeMax\",\r\n \"collectedSignalStrengthLastTimeMin\",\r\n \"collectedSoftwareName\",\r\n \"collectedSoftwareTs\",\r\n \"collectedSoftwareType\",\r\n \"collectedSoftwareVersion\",\r\n \"collectedSpecificType\",\r\n \"collectedSpecificTypeTs\",\r\n \"collectedStartTime\",\r\n \"collectedStopTime\",\r\n \"collectedTai\",\r\n \"collectedTaiTac\",\r\n \"collectedTemperatureTrend\",\r\n \"collectedTemperatureTs\",\r\n \"collectedTimingAdvance\",\r\n \"collectedUli\",\r\n \"collectedUnifiedPresence\",\r\n \"collectedVlrCountry\",\r\n \"collectedVlrCountryCode\",\r\n \"collectedVlrGlobalTitle\",\r\n \"collectedVlrOperator\",\r\n \"collectedVolatilStorageUsageCurrentPercentage\",\r\n \"collectedVolatilStorageUsageLastTimeAverage\",\r\n \"collectedVolatilStorageUsageLastTimeMax\",\r\n \"collectedVolatilStorageUsageLastTimeMin\",\r\n \"collectedVolatilStorageUsageTs\",\r\n \"domainKey\",\r\n \"entityId\",\r\n \"entityType\",\r\n \"entityUk\",\r\n \"homeOperatorProvTypeKey\",\r\n \"iccProvTypeKey\",\r\n \"imeiProvTypeKey\",\r\n \"imsiProvTypeKey\",\r\n \"jobActivatedDate\",\r\n \"jobEntityTotal\",\r\n \"jobErrorCode\",\r\n \"jobErrorDescription\",\r\n \"jobFinishedCancelledByEngine\",\r\n \"jobFinishedCancelledByExternal\",\r\n \"jobFinishedCancelledByExternalTimeout\",\r\n \"jobFinishedCancelledByTimeout\",\r\n \"jobFinishedCancelledByUser\",\r\n \"jobFinishedCancelledTotal\",\r\n \"jobFinishedDate\",\r\n \"jobFinishedError\",\r\n \"jobFinishedOotError\",\r\n \"jobFinishedOotSuccessful\",\r\n \"jobFinishedOotTotal\",\r\n \"jobFinishedSuccessful\",\r\n \"jobFinishedTotal\",\r\n \"jobId\",\r\n \"jobInProgressPendingExecution\",\r\n \"jobInProgressScheduled\",\r\n \"jobInProgressStarted\",\r\n \"jobInProgressTotal\",\r\n \"jobInProgressWaitingForConnection\",\r\n \"jobJson\",\r\n \"jobStartedDate\",\r\n \"jobState\",\r\n \"jobStatus\",\r\n \"jobTotal\",\r\n \"jobUser\",\r\n \"jobUserNotes\",\r\n \"macProvTypeKey\",\r\n \"modelProvTypeKey\",\r\n \"msisdnProvTypeKey\",\r\n \"notDeletable\",\r\n \"operationAttemptCurrent\",\r\n \"operationAttemptMax\",\r\n \"operationDate\",\r\n \"operationDetails\",\r\n \"operationEndDate\",\r\n \"operationEntityType\",\r\n \"operationId\",\r\n \"operationInitDate\",\r\n \"operationJson\",\r\n \"operationName\",\r\n \"operationNotify\",\r\n \"operationResult\",\r\n \"operationScheduleTimestamp\",\r\n \"operationStatus\",\r\n \"operationStatusKey\",\r\n \"operationStepDescription\",\r\n \"operationStepName\",\r\n \"operationStepResponse\",\r\n \"operationStepResult\",\r\n \"operationStepTimestamp\",\r\n \"operationTimeoutTimestamp\",\r\n \"operationUserNotes\",\r\n \"organizationGroupKey\",\r\n \"organizationKey\",\r\n \"organizationName\",\r\n \"positionProvTypeKey\",\r\n \"postalCodeProvTypeKey\",\r\n \"profileKey\",\r\n \"provAddress\",\r\n \"provAddressType\",\r\n \"provAdministrativeState\",\r\n \"provAdministrativeStateKey\",\r\n \"provApn\",\r\n \"provCountry\",\r\n \"provCustomId\",\r\n \"provDefaultFeed\",\r\n \"provEntityDescription\",\r\n \"provEntityName\",\r\n \"provHardwareId\",\r\n \"provHomeOperator\",\r\n \"provICC\",\r\n \"provIMEI\",\r\n \"provIMSI\",\r\n \"provLatitude\",\r\n \"provLocationTimestamp\",\r\n \"provLongitude\",\r\n \"provMainPath\",\r\n \"provManufacturer\",\r\n \"provModel\",\r\n \"provMsisdn\",\r\n \"provPostalCode\",\r\n \"provProvince\",\r\n \"provRegion\",\r\n \"provRegisteredOperator\",\r\n \"provSerialNumber\",\r\n \"provSoftwareId\",\r\n \"provSoftwareName\",\r\n \"provSoftwareType\",\r\n \"provSoftwareVersion\",\r\n \"provSpecificType\",\r\n \"registeredOperatorProvTypeKey\",\r\n \"serialNumberProvTypeKey\",\r\n \"serviceGroupName\",\r\n \"softwareId\",\r\n \"softwareName\",\r\n \"softwareProvTypeKey\",\r\n \"softwareType\",\r\n \"softwareVersion\",\r\n \"tag\",\r\n \"taskEmpty_null\",\r\n \"taskId\",\r\n \"taskKey\",\r\n \"taskName\",\r\n \"taskState\",\r\n \"taskStatus\",\r\n \"workgroupKey\",\r\n \"workgroupName\"\r\n ]\r\n },\r\n \"JOB\": {\r\n \"JOB\": [\r\n \"jobActivatedDate\",\r\n \"jobActivatedTime\",\r\n \"jobCallback\",\r\n \"jobEntityTotal\",\r\n \"jobErrorCode\",\r\n \"jobErrorDescription\",\r\n \"jobFinishedCancelledByEngine\",\r\n \"jobFinishedCancelledByExternal\",\r\n \"jobFinishedCancelledByExternalTimeout\",\r\n \"jobFinishedCancelledByTimeout\",\r\n \"jobFinishedCancelledByUser\",\r\n \"jobFinishedCancelledTotal\",\r\n \"jobFinishedDate\",\r\n \"jobFinishedError\",\r\n \"jobFinishedOotError\",\r\n \"jobFinishedOotSuccessful\",\r\n \"jobFinishedOotTotal\",\r\n \"jobFinishedSuccessful\",\r\n \"jobFinishedTime\",\r\n \"jobFinishedTotal\",\r\n \"jobId\",\r\n \"jobInProgressPendingExecution\",\r\n \"jobInProgressScheduled\",\r\n \"jobInProgressStarted\",\r\n \"jobInProgressTotal\",\r\n \"jobInProgressWaitingForConnection\",\r\n \"jobJson\",\r\n \"jobOperationName\",\r\n \"jobScheduledTime\",\r\n \"jobStartedDate\",\r\n \"jobState\",\r\n \"jobStatus\",\r\n \"jobTotal\",\r\n \"jobTrap\",\r\n \"jobUser\",\r\n \"jobUserNotes\",\r\n \"jobVisible\",\r\n \"operationId\",\r\n \"operationName\",\r\n \"operationResult\",\r\n \"operationStatusKey\",\r\n \"taskCoremessage\",\r\n \"taskId\",\r\n \"taskKey\",\r\n \"taskName\",\r\n \"taskNextExecution\",\r\n \"taskState\",\r\n \"taskStatus\"\r\n ]\r\n },\r\n \"MODEL\": {\r\n \"MODEL\": [\r\n \"manufacturerIdentifier\",\r\n \"manufacturerMediaIdentifier\",\r\n \"modelIdentifier\",\r\n \"modelMediaIdentifier\",\r\n \"manufacturerName\",\r\n \"manufacturerMediaName\",\r\n \"manufacturerMediaName\",\r\n \"modelName\",\r\n \"modelMediaName\"\r\n ]\r\n },\r\n \"OPERATION_TYPE\": {\r\n \"OPERATION_TYPE\": [\r\n \"comboboxOperationType\",\r\n \"domainKey\",\r\n \"operationCategoryPath\",\r\n \"operationDetails\",\r\n \"operationEntityType\",\r\n \"operationGenericParameters\",\r\n \"operationName\",\r\n \"operationParameters\",\r\n \"operationTypeSteps\",\r\n \"operationTypeTitle\",\r\n \"profileKey\"\r\n ]\r\n },\r\n \"SOFTWARE_VERSION\": {\r\n \"SOFTWARE_VERSION\": [\r\n \"comboboxSoftwareVersion\",\r\n \"manufacturerAddress\",\r\n \"manufacturerDescription\",\r\n \"manufacturerEmail\",\r\n \"manufacturerFax\",\r\n \"manufacturerIdentifier\",\r\n \"manufacturerName\",\r\n \"manufacturerNotes\",\r\n \"manufacturerTelephone\",\r\n \"manufacturerUrl\",\r\n \"modelDescription\",\r\n \"modelIdentifier\",\r\n \"modelName\",\r\n \"modelNotes\",\r\n \"modelUrl\",\r\n \"modelVersion\",\r\n \"softwareId\",\r\n \"softwareName\",\r\n \"softwareType\",\r\n \"softwareVersion\"\r\n ]\r\n },\r\n \"UPDATE_BUNDLE_VERSION\": {\r\n \"UPDATE_BUNDLE_VERSION\": [\r\n \"bundleActionDef\",\r\n \"bundleActionOrder\",\r\n \"bundleActionType\",\r\n \"bundleActive\",\r\n \"bundleConstrained\",\r\n \"bundleCreationDate\",\r\n \"bundleDeploymentElementDownloadUrl\",\r\n \"bundleDeploymentElementId\",\r\n \"bundleDeploymentElementName\",\r\n \"bundleDeploymentElementOperation\",\r\n \"bundleDeploymentElementOption\",\r\n \"bundleDeploymentElementOrder\",\r\n \"bundleDeploymentElementPath\",\r\n \"bundleDeploymentElementSize\",\r\n \"bundleDeploymentElementType\",\r\n \"bundleDeploymentElementValidators\",\r\n \"bundleDeploymentElementVersion\",\r\n \"bundleDescription\",\r\n \"bundleHardware\",\r\n \"bundleId\",\r\n \"bundleName\",\r\n \"bundleUserNotes\",\r\n \"bundleVersion\",\r\n \"bundleWorkgroup\",\r\n \"comboboxBundleVersion\",\r\n \"updateBundleDate\",\r\n \"updateBundleManufacturer\",\r\n \"updateBundleModel\",\r\n \"updateBundleName\",\r\n \"updateBundleVersion\",\r\n \"updateBundleVersionUuid\",\r\n \"updateDescription\"\r\n ]\r\n },\r\n \"DATAMODEL\": {\r\n \"DATAMODEL\": [\r\n \"datamodelDescription\",\r\n \"datamodelHardwareId\",\r\n \"datamodelJson\",\r\n \"datamodelName\",\r\n \"datamodelParameterAccess\",\r\n \"datamodelParameterDescription\",\r\n \"datamodelParameterJson\",\r\n \"datamodelParameterName\",\r\n \"datamodelParameterNodeJPath\",\r\n \"datamodelParameterProtocolsJson\",\r\n \"datamodelParameterProtocolsName\",\r\n \"datamodelParameterSubtype\",\r\n \"datamodelParameterType\",\r\n \"manufacturerAddress\",\r\n \"manufacturerDescription\",\r\n \"manufacturerEmail\",\r\n \"manufacturerFax\",\r\n \"manufacturerIdentifier\",\r\n \"manufacturerName\",\r\n \"manufacturerNotes\",\r\n \"manufacturerTelephone\",\r\n \"manufacturerUrl\",\r\n \"modelName\",\r\n \"organizationName\"\r\n ]\r\n },\r\n \"CERTIFICATE\": {\r\n \"CERTIFICATE\": [\r\n \"certificateAdministrativeState\",\r\n \"certificateDescription\",\r\n \"certificateDomain\",\r\n \"certificateId\",\r\n \"certificateIssuer\",\r\n \"certificateManufacturer\",\r\n \"certificateModel\",\r\n \"certificateModelIdentifier\",\r\n \"certificateModelVersion\",\r\n \"certificateName\",\r\n \"certificatePublicKeyAlgorithm\",\r\n \"certificatePublicKeyFormat\",\r\n \"certificatePublicKeySize\",\r\n \"certificateSerialNumber\",\r\n \"certificateSubject\",\r\n \"certificateTag\",\r\n \"certificateTrustChain\",\r\n \"certificateUsage\",\r\n \"certificateValidFrom\",\r\n \"certificateValidUntil\",\r\n \"certificateVersion\"\r\n ]\r\n }\r\n}",
@@ -58487,7 +58515,7 @@
58487
58515
  "lineNumber": 1
58488
58516
  },
58489
58517
  {
58490
- "__docId__": 2194,
58518
+ "__docId__": 2195,
58491
58519
  "kind": "variable",
58492
58520
  "name": "GENERATED_FIELDS",
58493
58521
  "memberof": "src/util/searchingFields/source-precompiled/Fields.js",
@@ -58513,7 +58541,7 @@
58513
58541
  }
58514
58542
  },
58515
58543
  {
58516
- "__docId__": 2195,
58544
+ "__docId__": 2196,
58517
58545
  "kind": "file",
58518
58546
  "name": "src/workgroups/WorkgroupFinder.js",
58519
58547
  "content": "'use strict';\r\n\r\nimport ProvisionGenericFinder from '../ProvisionGenericFinder';\r\n\r\n/**\r\n * This class allow make get request to workgroup resource into Opengate North API.\r\n */\r\nexport default class WorkgroupFinder extends ProvisionGenericFinder {\r\n\r\n /** \r\n * @param {InternalOpenGateAPI} Reference to the API object.\r\n */\r\n constructor(ogapi) {\r\n super(ogapi, 'domains', 'workgroup', 'Workgroup not found');\r\n }\r\n\r\n /**\r\n * @return {String} This returns a string with the URL of the request.\r\n * @private\r\n */\r\n _composeUrl() {\r\n return this._baseUrl + \"/\" + this._domain + \"/workgroups/\" + this._name;\r\n }\r\n\r\n /**\r\n * @param {string} domain - domain name \r\n * @param {string} name - workgroup name \r\n * @return {Promise} \r\n */\r\n findByDomainAndName(domain, name) {\r\n this._domain = domain;\r\n this._name = name;\r\n return this._execute();\r\n }\r\n}",
@@ -58524,7 +58552,7 @@
58524
58552
  "lineNumber": 1
58525
58553
  },
58526
58554
  {
58527
- "__docId__": 2196,
58555
+ "__docId__": 2197,
58528
58556
  "kind": "class",
58529
58557
  "name": "WorkgroupFinder",
58530
58558
  "memberof": "src/workgroups/WorkgroupFinder.js",
@@ -58542,7 +58570,7 @@
58542
58570
  ]
58543
58571
  },
58544
58572
  {
58545
- "__docId__": 2197,
58573
+ "__docId__": 2198,
58546
58574
  "kind": "constructor",
58547
58575
  "name": "constructor",
58548
58576
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -58567,7 +58595,7 @@
58567
58595
  ]
58568
58596
  },
58569
58597
  {
58570
- "__docId__": 2198,
58598
+ "__docId__": 2199,
58571
58599
  "kind": "method",
58572
58600
  "name": "_composeUrl",
58573
58601
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -58589,7 +58617,7 @@
58589
58617
  }
58590
58618
  },
58591
58619
  {
58592
- "__docId__": 2199,
58620
+ "__docId__": 2200,
58593
58621
  "kind": "method",
58594
58622
  "name": "findByDomainAndName",
58595
58623
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -58632,7 +58660,7 @@
58632
58660
  }
58633
58661
  },
58634
58662
  {
58635
- "__docId__": 2200,
58663
+ "__docId__": 2201,
58636
58664
  "kind": "member",
58637
58665
  "name": "_domain",
58638
58666
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -58655,7 +58683,7 @@
58655
58683
  }
58656
58684
  },
58657
58685
  {
58658
- "__docId__": 2201,
58686
+ "__docId__": 2202,
58659
58687
  "kind": "member",
58660
58688
  "name": "_name",
58661
58689
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -58678,7 +58706,7 @@
58678
58706
  }
58679
58707
  },
58680
58708
  {
58681
- "__docId__": 2202,
58709
+ "__docId__": 2203,
58682
58710
  "kind": "file",
58683
58711
  "name": "src/workgroups/WorkgroupRelations.js",
58684
58712
  "content": "'use strict';\r\n\r\nimport BaseProvision from '../provision/BaseProvision';\r\nimport Workgroups from './Workgroups';\r\nimport Channels from '../channels/Channels';\r\n\r\n/**\r\n * This is a base object that contains all you can do about workgroups.\r\n */\r\nexport default class WorkgroupRelations extends BaseProvision {\r\n\r\n /** \r\n * @param {InternalOpenGateAPI} Reference to the API object.\r\n */\r\n constructor(ogapi) {\r\n super(ogapi, \"/domains\", undefined, [\"workgroup\", \"channels\"]);\r\n this._ogapi = ogapi;\r\n this._action = \"CREATE\";\r\n }\r\n\r\n /**\r\n * Set the workgroup attribute\r\n * @param {string} workgroup - required field\r\n * @return {WorkgroupRelations}\r\n */\r\n withWorkgroup(workgroup) {\r\n if (workgroup.constructor.prototype != Workgroups.prototype)\r\n throw new Error('Parameter workgroup must be a workgroup');\r\n\r\n this._workgroup = workgroup;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the channel attribute\r\n * @param {string} channel - required field for creation or update\r\n * @return {WorkgroupRelations}\r\n */\r\n withChannel(channel) {\r\n if (channel.constructor.prototype != Channels.prototype)\r\n throw new Error('Parameter channel must be a channel');\r\n\r\n if (!this._channels)\r\n this._channels = [];\r\n\r\n this._channels.push({\r\n 'organization': channel._organization,\r\n 'channel': channel._name\r\n });\r\n\r\n return this;\r\n }\r\n\r\n _composeElement() {\r\n this._checkRequiredParameters();\r\n\r\n this._resource = 'provision/domains/' + this._workgroup._domainName + '/workgroups/' + this._workgroup._name + '/relations';\r\n\r\n var workgroup = {\r\n \"workgroupRelation\": {\r\n \"channels\": this._channels ? this._channels : undefined\r\n }\r\n };\r\n\r\n return workgroup;\r\n }\r\n\r\n _buildURL() {\r\n var url = 'provision/domains/' + this._workgroup._domainName + '/workgroups/' + this._workgroup._name + '/relations';\r\n return url;\r\n }\r\n\r\n create() {\r\n var relations = this._composeElement();\r\n\r\n var petitionUrl = this._resource;\r\n this._setUrlParameters({\r\n action: 'CREATE'\r\n });\r\n return this._doNorthPost(petitionUrl, relations);\r\n }\r\n\r\n delete() {\r\n this._setUrlParameters({\r\n action: 'DELETE'\r\n });\r\n var petitionUrl = this._buildURL();\r\n\r\n if (this._channels) {\r\n var relations = this._composeElement();\r\n return this._doNorthPost(petitionUrl, relations);\r\n } else {\r\n return this._doNorthPost(petitionUrl, {\r\n \"workgroupRelation\": {\r\n \"channels\": []\r\n }\r\n });\r\n }\r\n }\r\n\r\n /** \r\n * Update not allowed\r\n * @throws {Error} \r\n */\r\n update() {\r\n throw new Error(\"Workgroup relation update not allowed\");\r\n }\r\n\r\n}",
@@ -58689,7 +58717,7 @@
58689
58717
  "lineNumber": 1
58690
58718
  },
58691
58719
  {
58692
- "__docId__": 2203,
58720
+ "__docId__": 2204,
58693
58721
  "kind": "class",
58694
58722
  "name": "WorkgroupRelations",
58695
58723
  "memberof": "src/workgroups/WorkgroupRelations.js",
@@ -58707,7 +58735,7 @@
58707
58735
  ]
58708
58736
  },
58709
58737
  {
58710
- "__docId__": 2204,
58738
+ "__docId__": 2205,
58711
58739
  "kind": "constructor",
58712
58740
  "name": "constructor",
58713
58741
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58732,7 +58760,7 @@
58732
58760
  ]
58733
58761
  },
58734
58762
  {
58735
- "__docId__": 2205,
58763
+ "__docId__": 2206,
58736
58764
  "kind": "member",
58737
58765
  "name": "_ogapi",
58738
58766
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58755,7 +58783,7 @@
58755
58783
  }
58756
58784
  },
58757
58785
  {
58758
- "__docId__": 2206,
58786
+ "__docId__": 2207,
58759
58787
  "kind": "member",
58760
58788
  "name": "_action",
58761
58789
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58778,7 +58806,7 @@
58778
58806
  }
58779
58807
  },
58780
58808
  {
58781
- "__docId__": 2207,
58809
+ "__docId__": 2208,
58782
58810
  "kind": "method",
58783
58811
  "name": "withWorkgroup",
58784
58812
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58811,7 +58839,7 @@
58811
58839
  }
58812
58840
  },
58813
58841
  {
58814
- "__docId__": 2208,
58842
+ "__docId__": 2209,
58815
58843
  "kind": "member",
58816
58844
  "name": "_workgroup",
58817
58845
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58834,7 +58862,7 @@
58834
58862
  }
58835
58863
  },
58836
58864
  {
58837
- "__docId__": 2209,
58865
+ "__docId__": 2210,
58838
58866
  "kind": "method",
58839
58867
  "name": "withChannel",
58840
58868
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58867,7 +58895,7 @@
58867
58895
  }
58868
58896
  },
58869
58897
  {
58870
- "__docId__": 2210,
58898
+ "__docId__": 2211,
58871
58899
  "kind": "member",
58872
58900
  "name": "_channels",
58873
58901
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58890,7 +58918,7 @@
58890
58918
  }
58891
58919
  },
58892
58920
  {
58893
- "__docId__": 2211,
58921
+ "__docId__": 2212,
58894
58922
  "kind": "method",
58895
58923
  "name": "_composeElement",
58896
58924
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58916,7 +58944,7 @@
58916
58944
  }
58917
58945
  },
58918
58946
  {
58919
- "__docId__": 2212,
58947
+ "__docId__": 2213,
58920
58948
  "kind": "member",
58921
58949
  "name": "_resource",
58922
58950
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58939,7 +58967,7 @@
58939
58967
  }
58940
58968
  },
58941
58969
  {
58942
- "__docId__": 2213,
58970
+ "__docId__": 2214,
58943
58971
  "kind": "method",
58944
58972
  "name": "_buildURL",
58945
58973
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58965,7 +58993,7 @@
58965
58993
  }
58966
58994
  },
58967
58995
  {
58968
- "__docId__": 2214,
58996
+ "__docId__": 2215,
58969
58997
  "kind": "method",
58970
58998
  "name": "create",
58971
58999
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -58991,7 +59019,7 @@
58991
59019
  }
58992
59020
  },
58993
59021
  {
58994
- "__docId__": 2215,
59022
+ "__docId__": 2216,
58995
59023
  "kind": "method",
58996
59024
  "name": "delete",
58997
59025
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -59017,7 +59045,7 @@
59017
59045
  }
59018
59046
  },
59019
59047
  {
59020
- "__docId__": 2216,
59048
+ "__docId__": 2217,
59021
59049
  "kind": "method",
59022
59050
  "name": "update",
59023
59051
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -59039,7 +59067,7 @@
59039
59067
  ]
59040
59068
  },
59041
59069
  {
59042
- "__docId__": 2217,
59070
+ "__docId__": 2218,
59043
59071
  "kind": "file",
59044
59072
  "name": "src/workgroups/WorkgroupRelationsFinder.js",
59045
59073
  "content": "'use strict';\r\n\r\nimport ProvisionGenericFinder from '../ProvisionGenericFinder';\r\n\r\n/**\r\n * This class allow make get request to workgroup relation resource into Opengate North API.\r\n */\r\nexport default class WorkgroupRelationsFinder extends ProvisionGenericFinder {\r\n\r\n /** \r\n * @param {InternalOpenGateAPI} Reference to the API object.\r\n */\r\n constructor(ogapi) {\r\n super(ogapi, 'domains', 'workgroup', 'Workgroup relation not found');\r\n }\r\n\r\n /**\r\n * @return {String} This returns a string with the URL of the request.\r\n * @private\r\n */\r\n _composeUrl() {\r\n return this._baseUrl + \"/\" + this._domain + \"/workgroups/\" + this._name + \"/relations\";\r\n }\r\n\r\n /**\r\n * @param {string} domain - domain name \r\n * @param {string} name - workgroup name\r\n * @return {Promise} \r\n */\r\n findByDomainAndName(domain, name) {\r\n this._domain = domain;\r\n this._name = name;\r\n return this._execute();\r\n }\r\n}",
@@ -59050,7 +59078,7 @@
59050
59078
  "lineNumber": 1
59051
59079
  },
59052
59080
  {
59053
- "__docId__": 2218,
59081
+ "__docId__": 2219,
59054
59082
  "kind": "class",
59055
59083
  "name": "WorkgroupRelationsFinder",
59056
59084
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js",
@@ -59068,7 +59096,7 @@
59068
59096
  ]
59069
59097
  },
59070
59098
  {
59071
- "__docId__": 2219,
59099
+ "__docId__": 2220,
59072
59100
  "kind": "constructor",
59073
59101
  "name": "constructor",
59074
59102
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -59093,7 +59121,7 @@
59093
59121
  ]
59094
59122
  },
59095
59123
  {
59096
- "__docId__": 2220,
59124
+ "__docId__": 2221,
59097
59125
  "kind": "method",
59098
59126
  "name": "_composeUrl",
59099
59127
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -59115,7 +59143,7 @@
59115
59143
  }
59116
59144
  },
59117
59145
  {
59118
- "__docId__": 2221,
59146
+ "__docId__": 2222,
59119
59147
  "kind": "method",
59120
59148
  "name": "findByDomainAndName",
59121
59149
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -59158,7 +59186,7 @@
59158
59186
  }
59159
59187
  },
59160
59188
  {
59161
- "__docId__": 2222,
59189
+ "__docId__": 2223,
59162
59190
  "kind": "member",
59163
59191
  "name": "_domain",
59164
59192
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -59181,7 +59209,7 @@
59181
59209
  }
59182
59210
  },
59183
59211
  {
59184
- "__docId__": 2223,
59212
+ "__docId__": 2224,
59185
59213
  "kind": "member",
59186
59214
  "name": "_name",
59187
59215
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -59204,7 +59232,7 @@
59204
59232
  }
59205
59233
  },
59206
59234
  {
59207
- "__docId__": 2224,
59235
+ "__docId__": 2225,
59208
59236
  "kind": "file",
59209
59237
  "name": "src/workgroups/Workgroups.js",
59210
59238
  "content": "'use strict';\r\n\r\nimport q from 'q';\r\nimport BaseProvision from '../provision/BaseProvision';\r\n\r\n/**\r\n * This is a base object that contains all you can do about workgroups.\r\n */\r\nexport default class Workgroups extends BaseProvision {\r\n\r\n /** \r\n * @param {InternalOpenGateAPI} Reference to the API object.\r\n */\r\n constructor(ogapi) {\r\n super(ogapi, \"/domains\", undefined, [\"name\", \"domainName\"]);\r\n this._ogapi = ogapi;\r\n }\r\n\r\n /**\r\n * Set the name attribute\r\n * @param {string} name - required field\r\n * @return {Workgroups}\r\n */\r\n withName(name) {\r\n if (typeof name !== 'string' || name.length > 50)\r\n throw new Error({\r\n message: \"OGAPI_STRING_PARAMETER_MAX_LENGTH_50\",\r\n parameter: 'name'\r\n });\r\n this._name = name;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the description attribute\r\n * @param {string} description - required field\r\n * @return {Workgroups}\r\n */\r\n withDescription(description) {\r\n if (typeof description !== 'string' || description.length > 250)\r\n throw new Error({\r\n message: \"OGAPI_STRING_PARAMETER_MAX_LENGTH_250\",\r\n parameter: 'description'\r\n });\r\n this._description = description;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the administrative attribute\r\n * @param {boolean} administrative \r\n * @return {Workgroups}\r\n */\r\n withAdministrative(administrative) {\r\n /*if (typeof administrative !== 'boolean')\r\n throw new Error('Parameter administrative must be a boolean');*/\r\n this._administrative = administrative;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the domain attribute\r\n * @param {string} domainName - required field\r\n * @return {Workgroups}\r\n */\r\n withDomainName(domainName) {\r\n if (typeof domainName !== 'string' || domainName.length > 50)\r\n throw new Error({\r\n message: \"OGAPI_STRING_PARAMETER_MAX_LENGTH_50\",\r\n parameter: 'domainName'\r\n });\r\n this._domainName = domainName;\r\n return this;\r\n }\r\n\r\n _composeElement() {\r\n this._checkRequiredParameters();\r\n this._resource = 'provision/domains/' + this._domainName + '/workgroups';\r\n\r\n var workgroup = {\r\n \"workgroup\": {\r\n name: this._name || undefined,\r\n description: this._description || undefined,\r\n administrative: this._administrative || false\r\n }\r\n };\r\n\r\n return workgroup;\r\n }\r\n\r\n _composeElementUpdate() {\r\n this._checkRequiredParameters();\r\n this._resource = 'provision/domains/' + this._domainName + '/workgroups';\r\n\r\n var workgroup = {\r\n \"workgroup\": {\r\n description: this._description || undefined\r\n }\r\n };\r\n\r\n return workgroup;\r\n }\r\n\r\n _buildURL() {\r\n var url = 'provision/domains/' + this._domainName + '/workgroups/' + this._name;\r\n return url;\r\n }\r\n\r\n update() {\r\n var defered = q.defer();\r\n var promise = defered.promise;\r\n this._ogapi.Napi.put(this._buildURL(), this._composeElementUpdate(), undefined, this._getExtraHeaders(), this._getUrlParameters())\r\n .then((res) => {\r\n if (res.statusCode === 200) {\r\n defered.resolve({\r\n statusCode: res.statusCode\r\n });\r\n } else if (res.status === 200) {\r\n defered.resolve({\r\n statusCode: res.status\r\n });\r\n } else {\r\n defered.reject({\r\n errors: res.errors,\r\n statusCode: res.statusCode\r\n });\r\n }\r\n })\r\n .catch((error) => {\r\n defered.reject(error);\r\n });\r\n return promise;\r\n }\r\n\r\n}",
@@ -59215,7 +59243,7 @@
59215
59243
  "lineNumber": 1
59216
59244
  },
59217
59245
  {
59218
- "__docId__": 2225,
59246
+ "__docId__": 2226,
59219
59247
  "kind": "class",
59220
59248
  "name": "Workgroups",
59221
59249
  "memberof": "src/workgroups/Workgroups.js",
@@ -59233,7 +59261,7 @@
59233
59261
  ]
59234
59262
  },
59235
59263
  {
59236
- "__docId__": 2226,
59264
+ "__docId__": 2227,
59237
59265
  "kind": "constructor",
59238
59266
  "name": "constructor",
59239
59267
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59258,7 +59286,7 @@
59258
59286
  ]
59259
59287
  },
59260
59288
  {
59261
- "__docId__": 2227,
59289
+ "__docId__": 2228,
59262
59290
  "kind": "member",
59263
59291
  "name": "_ogapi",
59264
59292
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59281,7 +59309,7 @@
59281
59309
  }
59282
59310
  },
59283
59311
  {
59284
- "__docId__": 2228,
59312
+ "__docId__": 2229,
59285
59313
  "kind": "method",
59286
59314
  "name": "withName",
59287
59315
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59314,7 +59342,7 @@
59314
59342
  }
59315
59343
  },
59316
59344
  {
59317
- "__docId__": 2229,
59345
+ "__docId__": 2230,
59318
59346
  "kind": "member",
59319
59347
  "name": "_name",
59320
59348
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59337,7 +59365,7 @@
59337
59365
  }
59338
59366
  },
59339
59367
  {
59340
- "__docId__": 2230,
59368
+ "__docId__": 2231,
59341
59369
  "kind": "method",
59342
59370
  "name": "withDescription",
59343
59371
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59370,7 +59398,7 @@
59370
59398
  }
59371
59399
  },
59372
59400
  {
59373
- "__docId__": 2231,
59401
+ "__docId__": 2232,
59374
59402
  "kind": "member",
59375
59403
  "name": "_description",
59376
59404
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59393,7 +59421,7 @@
59393
59421
  }
59394
59422
  },
59395
59423
  {
59396
- "__docId__": 2232,
59424
+ "__docId__": 2233,
59397
59425
  "kind": "method",
59398
59426
  "name": "withAdministrative",
59399
59427
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59426,7 +59454,7 @@
59426
59454
  }
59427
59455
  },
59428
59456
  {
59429
- "__docId__": 2233,
59457
+ "__docId__": 2234,
59430
59458
  "kind": "member",
59431
59459
  "name": "_administrative",
59432
59460
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59449,7 +59477,7 @@
59449
59477
  }
59450
59478
  },
59451
59479
  {
59452
- "__docId__": 2234,
59480
+ "__docId__": 2235,
59453
59481
  "kind": "method",
59454
59482
  "name": "withDomainName",
59455
59483
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59482,7 +59510,7 @@
59482
59510
  }
59483
59511
  },
59484
59512
  {
59485
- "__docId__": 2235,
59513
+ "__docId__": 2236,
59486
59514
  "kind": "member",
59487
59515
  "name": "_domainName",
59488
59516
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59505,7 +59533,7 @@
59505
59533
  }
59506
59534
  },
59507
59535
  {
59508
- "__docId__": 2236,
59536
+ "__docId__": 2237,
59509
59537
  "kind": "method",
59510
59538
  "name": "_composeElement",
59511
59539
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59531,7 +59559,7 @@
59531
59559
  }
59532
59560
  },
59533
59561
  {
59534
- "__docId__": 2237,
59562
+ "__docId__": 2238,
59535
59563
  "kind": "member",
59536
59564
  "name": "_resource",
59537
59565
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59554,7 +59582,7 @@
59554
59582
  }
59555
59583
  },
59556
59584
  {
59557
- "__docId__": 2238,
59585
+ "__docId__": 2239,
59558
59586
  "kind": "method",
59559
59587
  "name": "_composeElementUpdate",
59560
59588
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59580,7 +59608,7 @@
59580
59608
  }
59581
59609
  },
59582
59610
  {
59583
- "__docId__": 2239,
59611
+ "__docId__": 2240,
59584
59612
  "kind": "member",
59585
59613
  "name": "_resource",
59586
59614
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59603,7 +59631,7 @@
59603
59631
  }
59604
59632
  },
59605
59633
  {
59606
- "__docId__": 2240,
59634
+ "__docId__": 2241,
59607
59635
  "kind": "method",
59608
59636
  "name": "_buildURL",
59609
59637
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59629,7 +59657,7 @@
59629
59657
  }
59630
59658
  },
59631
59659
  {
59632
- "__docId__": 2241,
59660
+ "__docId__": 2242,
59633
59661
  "kind": "method",
59634
59662
  "name": "update",
59635
59663
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -59655,7 +59683,7 @@
59655
59683
  }
59656
59684
  },
59657
59685
  {
59658
- "__docId__": 2243,
59686
+ "__docId__": 2244,
59659
59687
  "kind": "external",
59660
59688
  "name": "Infinity",
59661
59689
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity",
@@ -59667,7 +59695,7 @@
59667
59695
  "builtinExternal": true
59668
59696
  },
59669
59697
  {
59670
- "__docId__": 2244,
59698
+ "__docId__": 2245,
59671
59699
  "kind": "external",
59672
59700
  "name": "NaN",
59673
59701
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN",
@@ -59679,7 +59707,7 @@
59679
59707
  "builtinExternal": true
59680
59708
  },
59681
59709
  {
59682
- "__docId__": 2245,
59710
+ "__docId__": 2246,
59683
59711
  "kind": "external",
59684
59712
  "name": "undefined",
59685
59713
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined",
@@ -59691,7 +59719,7 @@
59691
59719
  "builtinExternal": true
59692
59720
  },
59693
59721
  {
59694
- "__docId__": 2246,
59722
+ "__docId__": 2247,
59695
59723
  "kind": "external",
59696
59724
  "name": "null",
59697
59725
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null",
@@ -59703,7 +59731,7 @@
59703
59731
  "builtinExternal": true
59704
59732
  },
59705
59733
  {
59706
- "__docId__": 2247,
59734
+ "__docId__": 2248,
59707
59735
  "kind": "external",
59708
59736
  "name": "Object",
59709
59737
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
@@ -59715,7 +59743,7 @@
59715
59743
  "builtinExternal": true
59716
59744
  },
59717
59745
  {
59718
- "__docId__": 2248,
59746
+ "__docId__": 2249,
59719
59747
  "kind": "external",
59720
59748
  "name": "object",
59721
59749
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
@@ -59727,7 +59755,7 @@
59727
59755
  "builtinExternal": true
59728
59756
  },
59729
59757
  {
59730
- "__docId__": 2249,
59758
+ "__docId__": 2250,
59731
59759
  "kind": "external",
59732
59760
  "name": "Function",
59733
59761
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
@@ -59739,7 +59767,7 @@
59739
59767
  "builtinExternal": true
59740
59768
  },
59741
59769
  {
59742
- "__docId__": 2250,
59770
+ "__docId__": 2251,
59743
59771
  "kind": "external",
59744
59772
  "name": "function",
59745
59773
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
@@ -59751,7 +59779,7 @@
59751
59779
  "builtinExternal": true
59752
59780
  },
59753
59781
  {
59754
- "__docId__": 2251,
59782
+ "__docId__": 2252,
59755
59783
  "kind": "external",
59756
59784
  "name": "Boolean",
59757
59785
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
@@ -59763,7 +59791,7 @@
59763
59791
  "builtinExternal": true
59764
59792
  },
59765
59793
  {
59766
- "__docId__": 2252,
59794
+ "__docId__": 2253,
59767
59795
  "kind": "external",
59768
59796
  "name": "boolean",
59769
59797
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
@@ -59775,7 +59803,7 @@
59775
59803
  "builtinExternal": true
59776
59804
  },
59777
59805
  {
59778
- "__docId__": 2253,
59806
+ "__docId__": 2254,
59779
59807
  "kind": "external",
59780
59808
  "name": "Symbol",
59781
59809
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol",
@@ -59787,7 +59815,7 @@
59787
59815
  "builtinExternal": true
59788
59816
  },
59789
59817
  {
59790
- "__docId__": 2254,
59818
+ "__docId__": 2255,
59791
59819
  "kind": "external",
59792
59820
  "name": "Error",
59793
59821
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error",
@@ -59799,7 +59827,7 @@
59799
59827
  "builtinExternal": true
59800
59828
  },
59801
59829
  {
59802
- "__docId__": 2255,
59830
+ "__docId__": 2256,
59803
59831
  "kind": "external",
59804
59832
  "name": "EvalError",
59805
59833
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError",
@@ -59811,7 +59839,7 @@
59811
59839
  "builtinExternal": true
59812
59840
  },
59813
59841
  {
59814
- "__docId__": 2256,
59842
+ "__docId__": 2257,
59815
59843
  "kind": "external",
59816
59844
  "name": "InternalError",
59817
59845
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError",
@@ -59823,7 +59851,7 @@
59823
59851
  "builtinExternal": true
59824
59852
  },
59825
59853
  {
59826
- "__docId__": 2257,
59854
+ "__docId__": 2258,
59827
59855
  "kind": "external",
59828
59856
  "name": "RangeError",
59829
59857
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError",
@@ -59835,7 +59863,7 @@
59835
59863
  "builtinExternal": true
59836
59864
  },
59837
59865
  {
59838
- "__docId__": 2258,
59866
+ "__docId__": 2259,
59839
59867
  "kind": "external",
59840
59868
  "name": "ReferenceError",
59841
59869
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError",
@@ -59847,7 +59875,7 @@
59847
59875
  "builtinExternal": true
59848
59876
  },
59849
59877
  {
59850
- "__docId__": 2259,
59878
+ "__docId__": 2260,
59851
59879
  "kind": "external",
59852
59880
  "name": "SyntaxError",
59853
59881
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError",
@@ -59859,7 +59887,7 @@
59859
59887
  "builtinExternal": true
59860
59888
  },
59861
59889
  {
59862
- "__docId__": 2260,
59890
+ "__docId__": 2261,
59863
59891
  "kind": "external",
59864
59892
  "name": "TypeError",
59865
59893
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError",
@@ -59871,7 +59899,7 @@
59871
59899
  "builtinExternal": true
59872
59900
  },
59873
59901
  {
59874
- "__docId__": 2261,
59902
+ "__docId__": 2262,
59875
59903
  "kind": "external",
59876
59904
  "name": "URIError",
59877
59905
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError",
@@ -59883,7 +59911,7 @@
59883
59911
  "builtinExternal": true
59884
59912
  },
59885
59913
  {
59886
- "__docId__": 2262,
59914
+ "__docId__": 2263,
59887
59915
  "kind": "external",
59888
59916
  "name": "Number",
59889
59917
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
@@ -59895,7 +59923,7 @@
59895
59923
  "builtinExternal": true
59896
59924
  },
59897
59925
  {
59898
- "__docId__": 2263,
59926
+ "__docId__": 2264,
59899
59927
  "kind": "external",
59900
59928
  "name": "number",
59901
59929
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
@@ -59907,7 +59935,7 @@
59907
59935
  "builtinExternal": true
59908
59936
  },
59909
59937
  {
59910
- "__docId__": 2264,
59938
+ "__docId__": 2265,
59911
59939
  "kind": "external",
59912
59940
  "name": "Date",
59913
59941
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date",
@@ -59919,7 +59947,7 @@
59919
59947
  "builtinExternal": true
59920
59948
  },
59921
59949
  {
59922
- "__docId__": 2265,
59950
+ "__docId__": 2266,
59923
59951
  "kind": "external",
59924
59952
  "name": "String",
59925
59953
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
@@ -59931,7 +59959,7 @@
59931
59959
  "builtinExternal": true
59932
59960
  },
59933
59961
  {
59934
- "__docId__": 2266,
59962
+ "__docId__": 2267,
59935
59963
  "kind": "external",
59936
59964
  "name": "string",
59937
59965
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
@@ -59943,7 +59971,7 @@
59943
59971
  "builtinExternal": true
59944
59972
  },
59945
59973
  {
59946
- "__docId__": 2267,
59974
+ "__docId__": 2268,
59947
59975
  "kind": "external",
59948
59976
  "name": "RegExp",
59949
59977
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp",
@@ -59955,7 +59983,7 @@
59955
59983
  "builtinExternal": true
59956
59984
  },
59957
59985
  {
59958
- "__docId__": 2268,
59986
+ "__docId__": 2269,
59959
59987
  "kind": "external",
59960
59988
  "name": "Array",
59961
59989
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
@@ -59967,7 +59995,7 @@
59967
59995
  "builtinExternal": true
59968
59996
  },
59969
59997
  {
59970
- "__docId__": 2269,
59998
+ "__docId__": 2270,
59971
59999
  "kind": "external",
59972
60000
  "name": "Int8Array",
59973
60001
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array",
@@ -59979,7 +60007,7 @@
59979
60007
  "builtinExternal": true
59980
60008
  },
59981
60009
  {
59982
- "__docId__": 2270,
60010
+ "__docId__": 2271,
59983
60011
  "kind": "external",
59984
60012
  "name": "Uint8Array",
59985
60013
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array",
@@ -59991,7 +60019,7 @@
59991
60019
  "builtinExternal": true
59992
60020
  },
59993
60021
  {
59994
- "__docId__": 2271,
60022
+ "__docId__": 2272,
59995
60023
  "kind": "external",
59996
60024
  "name": "Uint8ClampedArray",
59997
60025
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray",
@@ -60003,7 +60031,7 @@
60003
60031
  "builtinExternal": true
60004
60032
  },
60005
60033
  {
60006
- "__docId__": 2272,
60034
+ "__docId__": 2273,
60007
60035
  "kind": "external",
60008
60036
  "name": "Int16Array",
60009
60037
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array",
@@ -60015,7 +60043,7 @@
60015
60043
  "builtinExternal": true
60016
60044
  },
60017
60045
  {
60018
- "__docId__": 2273,
60046
+ "__docId__": 2274,
60019
60047
  "kind": "external",
60020
60048
  "name": "Uint16Array",
60021
60049
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array",
@@ -60027,7 +60055,7 @@
60027
60055
  "builtinExternal": true
60028
60056
  },
60029
60057
  {
60030
- "__docId__": 2274,
60058
+ "__docId__": 2275,
60031
60059
  "kind": "external",
60032
60060
  "name": "Int32Array",
60033
60061
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array",
@@ -60039,7 +60067,7 @@
60039
60067
  "builtinExternal": true
60040
60068
  },
60041
60069
  {
60042
- "__docId__": 2275,
60070
+ "__docId__": 2276,
60043
60071
  "kind": "external",
60044
60072
  "name": "Uint32Array",
60045
60073
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array",
@@ -60051,7 +60079,7 @@
60051
60079
  "builtinExternal": true
60052
60080
  },
60053
60081
  {
60054
- "__docId__": 2276,
60082
+ "__docId__": 2277,
60055
60083
  "kind": "external",
60056
60084
  "name": "Float32Array",
60057
60085
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array",
@@ -60063,7 +60091,7 @@
60063
60091
  "builtinExternal": true
60064
60092
  },
60065
60093
  {
60066
- "__docId__": 2277,
60094
+ "__docId__": 2278,
60067
60095
  "kind": "external",
60068
60096
  "name": "Float64Array",
60069
60097
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array",
@@ -60075,7 +60103,7 @@
60075
60103
  "builtinExternal": true
60076
60104
  },
60077
60105
  {
60078
- "__docId__": 2278,
60106
+ "__docId__": 2279,
60079
60107
  "kind": "external",
60080
60108
  "name": "Map",
60081
60109
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map",
@@ -60087,7 +60115,7 @@
60087
60115
  "builtinExternal": true
60088
60116
  },
60089
60117
  {
60090
- "__docId__": 2279,
60118
+ "__docId__": 2280,
60091
60119
  "kind": "external",
60092
60120
  "name": "Set",
60093
60121
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set",
@@ -60099,7 +60127,7 @@
60099
60127
  "builtinExternal": true
60100
60128
  },
60101
60129
  {
60102
- "__docId__": 2280,
60130
+ "__docId__": 2281,
60103
60131
  "kind": "external",
60104
60132
  "name": "WeakMap",
60105
60133
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap",
@@ -60111,7 +60139,7 @@
60111
60139
  "builtinExternal": true
60112
60140
  },
60113
60141
  {
60114
- "__docId__": 2281,
60142
+ "__docId__": 2282,
60115
60143
  "kind": "external",
60116
60144
  "name": "WeakSet",
60117
60145
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet",
@@ -60123,7 +60151,7 @@
60123
60151
  "builtinExternal": true
60124
60152
  },
60125
60153
  {
60126
- "__docId__": 2282,
60154
+ "__docId__": 2283,
60127
60155
  "kind": "external",
60128
60156
  "name": "ArrayBuffer",
60129
60157
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer",
@@ -60135,7 +60163,7 @@
60135
60163
  "builtinExternal": true
60136
60164
  },
60137
60165
  {
60138
- "__docId__": 2283,
60166
+ "__docId__": 2284,
60139
60167
  "kind": "external",
60140
60168
  "name": "DataView",
60141
60169
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView",
@@ -60147,7 +60175,7 @@
60147
60175
  "builtinExternal": true
60148
60176
  },
60149
60177
  {
60150
- "__docId__": 2284,
60178
+ "__docId__": 2285,
60151
60179
  "kind": "external",
60152
60180
  "name": "JSON",
60153
60181
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON",
@@ -60159,7 +60187,7 @@
60159
60187
  "builtinExternal": true
60160
60188
  },
60161
60189
  {
60162
- "__docId__": 2285,
60190
+ "__docId__": 2286,
60163
60191
  "kind": "external",
60164
60192
  "name": "Promise",
60165
60193
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise",
@@ -60171,7 +60199,7 @@
60171
60199
  "builtinExternal": true
60172
60200
  },
60173
60201
  {
60174
- "__docId__": 2286,
60202
+ "__docId__": 2287,
60175
60203
  "kind": "external",
60176
60204
  "name": "Generator",
60177
60205
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator",
@@ -60183,7 +60211,7 @@
60183
60211
  "builtinExternal": true
60184
60212
  },
60185
60213
  {
60186
- "__docId__": 2287,
60214
+ "__docId__": 2288,
60187
60215
  "kind": "external",
60188
60216
  "name": "GeneratorFunction",
60189
60217
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction",
@@ -60195,7 +60223,7 @@
60195
60223
  "builtinExternal": true
60196
60224
  },
60197
60225
  {
60198
- "__docId__": 2288,
60226
+ "__docId__": 2289,
60199
60227
  "kind": "external",
60200
60228
  "name": "Reflect",
60201
60229
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect",
@@ -60207,7 +60235,7 @@
60207
60235
  "builtinExternal": true
60208
60236
  },
60209
60237
  {
60210
- "__docId__": 2289,
60238
+ "__docId__": 2290,
60211
60239
  "kind": "external",
60212
60240
  "name": "Proxy",
60213
60241
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy",
@@ -60220,7 +60248,7 @@
60220
60248
  "builtinExternal": true
60221
60249
  },
60222
60250
  {
60223
- "__docId__": 2291,
60251
+ "__docId__": 2292,
60224
60252
  "kind": "external",
60225
60253
  "name": "CanvasRenderingContext2D",
60226
60254
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D",
@@ -60232,7 +60260,7 @@
60232
60260
  "builtinExternal": true
60233
60261
  },
60234
60262
  {
60235
- "__docId__": 2292,
60263
+ "__docId__": 2293,
60236
60264
  "kind": "external",
60237
60265
  "name": "DocumentFragment",
60238
60266
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment",
@@ -60244,7 +60272,7 @@
60244
60272
  "builtinExternal": true
60245
60273
  },
60246
60274
  {
60247
- "__docId__": 2293,
60275
+ "__docId__": 2294,
60248
60276
  "kind": "external",
60249
60277
  "name": "Element",
60250
60278
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element",
@@ -60256,7 +60284,7 @@
60256
60284
  "builtinExternal": true
60257
60285
  },
60258
60286
  {
60259
- "__docId__": 2294,
60287
+ "__docId__": 2295,
60260
60288
  "kind": "external",
60261
60289
  "name": "Event",
60262
60290
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event",
@@ -60268,7 +60296,7 @@
60268
60296
  "builtinExternal": true
60269
60297
  },
60270
60298
  {
60271
- "__docId__": 2295,
60299
+ "__docId__": 2296,
60272
60300
  "kind": "external",
60273
60301
  "name": "Node",
60274
60302
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node",
@@ -60280,7 +60308,7 @@
60280
60308
  "builtinExternal": true
60281
60309
  },
60282
60310
  {
60283
- "__docId__": 2296,
60311
+ "__docId__": 2297,
60284
60312
  "kind": "external",
60285
60313
  "name": "NodeList",
60286
60314
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList",
@@ -60292,7 +60320,7 @@
60292
60320
  "builtinExternal": true
60293
60321
  },
60294
60322
  {
60295
- "__docId__": 2297,
60323
+ "__docId__": 2298,
60296
60324
  "kind": "external",
60297
60325
  "name": "XMLHttpRequest",
60298
60326
  "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest",
@@ -60304,7 +60332,7 @@
60304
60332
  "builtinExternal": true
60305
60333
  },
60306
60334
  {
60307
- "__docId__": 2298,
60335
+ "__docId__": 2299,
60308
60336
  "kind": "external",
60309
60337
  "name": "AudioContext",
60310
60338
  "externalLink": "https://developer.mozilla.org/en/docs/Web/API/AudioContext",
@@ -60317,7 +60345,7 @@
60317
60345
  "builtinExternal": true
60318
60346
  },
60319
60347
  {
60320
- "__docId__": 2299,
60348
+ "__docId__": 2300,
60321
60349
  "kind": "testFile",
60322
60350
  "name": "client/autogeneratedFields/fields.spec.js",
60323
60351
  "content": "define(function () {\r\n mocha.setup('bdd');\r\n\r\n describe('Testing fields finder api', function () {\r\n it('search a fields communicationsModulesSearchBuilder', function () {\r\n return ogapi.communicationsModulesSearchBuilder().findFields(\"sub\").then(function (fields) {\r\n assert.notEqual(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n\r\n it('search a fields communicationsModulesSearchBuilder', function () {\r\n return ogapi.communicationsModulesSearchBuilder().findFields(\"alarmAttentionDate.a\").then(function (fields) {\r\n console.log(fields);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n\r\n it('search a fields devicesSearchBuilder', function () {\r\n return ogapi.devicesSearchBuilder().findFields(\"sub\").then(function (fields) {\r\n assert.notEqual(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n\r\n it('search a fields devicesSearchBuilder with first level nested', function () {\r\n return ogapi.devicesSearchBuilder().findFields(\"subscription.asd\").then(function (fields) {\r\n assert.notEqual(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n\r\n });\r\n\r\n it('search a fields devicesSearchBuilder with different level', function () {\r\n var fieldsSearching1, fieldsSearching2;\r\n ogapi.devicesSearchBuilder().findFields(\"subs\").then(function (fields) {\r\n fieldsSearching1 = fields;\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n\r\n ogapi.devicesSearchBuilder().findFields(\"subscription.\").then(function (fields) {\r\n fieldsSearching2 = fields;\r\n assert.notEqual(fieldsSearching1.length, fieldsSearching2.length);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n\r\n it('search a fields devicesSearchBuilder that does not exist', function () {\r\n\r\n ogapi.devicesSearchBuilder().findFields(\"subscription.relColl.prov\").then(function (fields) {\r\n assert.equal(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n\r\n\r\n it('search a fields devicesSearchBuilder with second level nested', function () {\r\n return ogapi.devicesSearchBuilder().findFields(\"subscription.relColl.a\").then(function (fields) {\r\n assert.notEqual(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n\r\n it('search a fields operationsSearchBuilder', function () {\r\n return ogapi.operationsSearchBuilder().findFields(\"sub\").then(function (fields) {\r\n assert.notEqual(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n\r\n it('search a fields executionsSearchBuilder', function () {\r\n return ogapi.executionsSearchBuilder().findFields(\"sub\").then(function (fields) {\r\n assert.notEqual(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n it('search a fields alarmsSearchBuilder', function () {\r\n return ogapi.alarmsSearchBuilder().findFields(\"sub\").then(function (fields) {\r\n assert.notEqual(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n it('search a fields certificatesSearchBuilder', function () {\r\n return ogapi.certificatesSearchBuilder().findFields(\"\").then(function (fields) {\r\n assert.notEqual(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n\r\n it('search a fields bundlesSearchBuilder', function () {\r\n return ogapi.bundlesSearchBuilder().findFields(\"sub\").then(function (fields) {\r\n assert.notEqual(fields.length, 0);\r\n }).catch(function (err) {\r\n assert.strictEqual(true, false);\r\n });\r\n });\r\n });\r\n});",
@@ -60328,7 +60356,7 @@
60328
60356
  "lineNumber": 1
60329
60357
  },
60330
60358
  {
60331
- "__docId__": 2300,
60359
+ "__docId__": 2301,
60332
60360
  "kind": "testDescribe",
60333
60361
  "name": "describe0",
60334
60362
  "testId": 0,
@@ -60341,7 +60369,7 @@
60341
60369
  "lineNumber": 4
60342
60370
  },
60343
60371
  {
60344
- "__docId__": 2301,
60372
+ "__docId__": 2302,
60345
60373
  "kind": "testIt",
60346
60374
  "name": "it1",
60347
60375
  "testId": 1,
@@ -60354,7 +60382,7 @@
60354
60382
  "lineNumber": 5
60355
60383
  },
60356
60384
  {
60357
- "__docId__": 2302,
60385
+ "__docId__": 2303,
60358
60386
  "kind": "testIt",
60359
60387
  "name": "it2",
60360
60388
  "testId": 2,
@@ -60367,7 +60395,7 @@
60367
60395
  "lineNumber": 13
60368
60396
  },
60369
60397
  {
60370
- "__docId__": 2303,
60398
+ "__docId__": 2304,
60371
60399
  "kind": "testIt",
60372
60400
  "name": "it3",
60373
60401
  "testId": 3,
@@ -60380,7 +60408,7 @@
60380
60408
  "lineNumber": 21
60381
60409
  },
60382
60410
  {
60383
- "__docId__": 2304,
60411
+ "__docId__": 2305,
60384
60412
  "kind": "testIt",
60385
60413
  "name": "it4",
60386
60414
  "testId": 4,
@@ -60393,7 +60421,7 @@
60393
60421
  "lineNumber": 29
60394
60422
  },
60395
60423
  {
60396
- "__docId__": 2305,
60424
+ "__docId__": 2306,
60397
60425
  "kind": "testIt",
60398
60426
  "name": "it5",
60399
60427
  "testId": 5,
@@ -60406,7 +60434,7 @@
60406
60434
  "lineNumber": 38
60407
60435
  },
60408
60436
  {
60409
- "__docId__": 2306,
60437
+ "__docId__": 2307,
60410
60438
  "kind": "testIt",
60411
60439
  "name": "it6",
60412
60440
  "testId": 6,
@@ -60419,7 +60447,7 @@
60419
60447
  "lineNumber": 54
60420
60448
  },
60421
60449
  {
60422
- "__docId__": 2307,
60450
+ "__docId__": 2308,
60423
60451
  "kind": "testIt",
60424
60452
  "name": "it7",
60425
60453
  "testId": 7,
@@ -60432,7 +60460,7 @@
60432
60460
  "lineNumber": 64
60433
60461
  },
60434
60462
  {
60435
- "__docId__": 2308,
60463
+ "__docId__": 2309,
60436
60464
  "kind": "testIt",
60437
60465
  "name": "it8",
60438
60466
  "testId": 8,
@@ -60445,7 +60473,7 @@
60445
60473
  "lineNumber": 72
60446
60474
  },
60447
60475
  {
60448
- "__docId__": 2309,
60476
+ "__docId__": 2310,
60449
60477
  "kind": "testIt",
60450
60478
  "name": "it9",
60451
60479
  "testId": 9,
@@ -60458,7 +60486,7 @@
60458
60486
  "lineNumber": 80
60459
60487
  },
60460
60488
  {
60461
- "__docId__": 2310,
60489
+ "__docId__": 2311,
60462
60490
  "kind": "testIt",
60463
60491
  "name": "it10",
60464
60492
  "testId": 10,
@@ -60471,7 +60499,7 @@
60471
60499
  "lineNumber": 87
60472
60500
  },
60473
60501
  {
60474
- "__docId__": 2311,
60502
+ "__docId__": 2312,
60475
60503
  "kind": "testIt",
60476
60504
  "name": "it11",
60477
60505
  "testId": 11,
@@ -60484,7 +60512,7 @@
60484
60512
  "lineNumber": 94
60485
60513
  },
60486
60514
  {
60487
- "__docId__": 2312,
60515
+ "__docId__": 2313,
60488
60516
  "kind": "testIt",
60489
60517
  "name": "it12",
60490
60518
  "testId": 12,
@@ -60497,7 +60525,7 @@
60497
60525
  "lineNumber": 102
60498
60526
  },
60499
60527
  {
60500
- "__docId__": 2313,
60528
+ "__docId__": 2314,
60501
60529
  "kind": "testFile",
60502
60530
  "name": "client/bundles/bundles.spec.js",
60503
60531
  "content": "define(function() {\r\n mocha.setup('bdd');\r\n /** @test {InternalOpenGateAPI#bundlesBuilder()} */\r\n describe('Check funcionality bundles module:', function() {\r\n var bundle;\r\n before(function() {\r\n bundle = ogapi.bundlesBuilder();\r\n });\r\n /** @test {InternalOpenGateAPI#bundlesBuilder} */\r\n /*describe('Check basic parameters:', function() {\r\n\r\n it('Name is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withName(11);\r\n }, \"Parameter name must be a string and has a maximum length of 255\");\r\n\r\n });\r\n\r\n it('version is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withVersion(1);\r\n }, \"Parameter version must be a string and has a maximum length of 50\");\r\n\r\n });\r\n\r\n it('Hardware is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withHardware(1);\r\n }, \"Parameter hardware must be a string\");\r\n\r\n });\r\n\r\n it('workgroup is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withWorkgroup(1);\r\n }, \"Parameter workgroup must be a string\");\r\n\r\n });\r\n\r\n it('description is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withDescription(1);\r\n }, \"Parameter description must be a string and has a maximum length of 250\");\r\n\r\n });\r\n\r\n it('UserNotes is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withUserNotes(1);\r\n }, \"Parameter notes must be a string and has a maximum length of 250\");\r\n\r\n });\r\n\r\n it('POSTACTION is not an Array', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withPreaction(\"\");\r\n }, \"Parameter preaction must be typeof Array\");\r\n\r\n });\r\n\r\n it('POSTACTION does not have at least one element', function() {\r\n assert.doesNotThrow(function() {\r\n ogapi.bundlesBuilder().withPreaction([]);\r\n });\r\n\r\n });\r\n\r\n it('POSTACTION does not have correct Elements', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withPreaction([\"dd\"]);\r\n }, 'Any action into parameter preaction is not allowed. Parameter value <\\'[\"dd\"]\\'>, preaction allowed <\\'[\"HARDWARE_RESET\",\"SOFTWARE_RESET\",\"COMMS_DOWN\",\"COMMS_UP\",\"COMMS_RESET\"]\\'>');\r\n\r\n });\r\n\r\n it('POSTACTION have correct Elements', function() {\r\n assert.doesNotThrow(function() {\r\n ogapi.bundlesBuilder().withPreaction([\"HARDWARE_RESET\", \"SOFTWARE_RESET\", \"COMMS_DOWN\", \"COMMS_UP\", \"COMMS_RESET\"]);\r\n });\r\n });\r\n\r\n\r\n it('Required parameters', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().create();\r\n }, \"Parameters name, version, hardware, workgroup must be defined\");\r\n });\r\n\r\n it('Check parameters type', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withName(222);\r\n }, \"Parameter name must be a string\");\r\n });\r\n });\r\n describe('Create a Bundle:', function() {\r\n\r\n before(function() {\r\n bundle.withName('bundle_testing').withVersion('V1').withWorkgroup('baseWorkGroup');\r\n });\r\n\r\n it('Check basic parameters', function() {\r\n assert.throws(function() {\r\n bundle.create();\r\n }, \"Parameters name, version, hardware, workgroup must be defined\");\r\n });\r\n\r\n it('Create a bundle without Hardware', function() {\r\n assert.throws(function() {\r\n bundle.create();\r\n }, \"Parameters name, version, hardware, workgroup must be defined\");\r\n });\r\n\r\n it('Create a bundle', function() {\r\n assert.doesNotThrow(function() {\r\n bundle.withHardware(\"OWA21\").create();\r\n });\r\n });\r\n it('Activate a bundle', function() {\r\n assert.doesNotThrow(function() {\r\n bundle.activate();\r\n });\r\n });\r\n /*\r\n it('Delete a bundle', function() {\r\n assert.doesNotThrow(function() {\r\n bundle.delete();\r\n });\r\n \r\n });*/\r\n });\r\n\r\n /* describe('Check Deployment Element:', function() {\r\n\r\n it('Check constructor Deployment Element', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().addDeploymentElement();\r\n }, \"Parameters name, version must be defined\");\r\n });\r\n\r\n it('Deploy element', function() {\r\n assert.doesNotThrow(function() {\r\n ogapi.bundlesBuilder().withName('bundle_testing').withVersion('V1').addDeploymentElement();\r\n });\r\n });\r\n describe('Check Deployment Element basic elements:', function() {\r\n var deploymentElement;\r\n before(function() {\r\n deploymentElement = ogapi.bundlesBuilder().withName('bundle_testing').withVersion('V1').addDeploymentElement();\r\n });\r\n\r\n it('Check parameter name', function() {\r\n assert.throws(function() {\r\n deploymentElement.withName(111);\r\n }, \"Parameter name must be a string and has a maximum length of 50\");\r\n });\r\n it('Check parameter version', function() {\r\n assert.throws(function() {\r\n deploymentElement.withVersion(111);\r\n }, \"Parameter version must be a string and has a maximum length of 50\");\r\n });\r\n it('Check parameter Type', function() {\r\n assert.throws(function() {\r\n deploymentElement.withType(111);\r\n }, \"Parameter type must be typeof string\");\r\n });\r\n it('Check parameter Type', function() {\r\n assert.throws(function() {\r\n deploymentElement.withType(\"Type\");\r\n }, 'Parameter type is not allowed. Parameter value <\\'\"Type\"\\'>, type allowed <\\'[\"SOFTWARE\",\"FIRMWARE\",\"CONFIGURATION\",\"PARAMETERS\"]\\'>');\r\n });\r\n it('Check parameter Path', function() {\r\n assert.throws(function() {\r\n deploymentElement.withPath(111);\r\n }, \"Parameter path must be a string\");\r\n });\r\n it('Check parameter Order', function() {\r\n assert.doesNotThrow(function() {\r\n deploymentElement.withOrder(111);\r\n });\r\n });\r\n it('Check parameter Operation', function() {\r\n assert.throws(function() {\r\n deploymentElement.withOperation(111);\r\n }, \"Parameter operation must be typeof string\");\r\n });\r\n it('Check parameter Operation', function() {\r\n assert.throws(function() {\r\n deploymentElement.withOperation(\"OPERATION\");\r\n }, 'Parameter operation is not allowed. Parameter value <\\'\"OPERATION\"\\'>, operation allowed <\\'[\"INSTALL\",\"UNINSTALL\",\"UPGRADE\"]\\'>');\r\n });\r\n it('Check parameter Option', function() {\r\n assert.throws(function() {\r\n deploymentElement.withOption(111);\r\n }, \"Parameter option must be typeof string\");\r\n });\r\n it('Check parameter Option', function() {\r\n assert.throws(function() {\r\n deploymentElement.withOption(\"option\");\r\n }, 'Parameter option is not allowed. Parameter value <\\'\"option\"\\'>, option allowed <\\'[\"MANDATORY\",\"OPTIONAL\"]\\'>');\r\n });\r\n it('Check parameter Validator is an Array', function() {\r\n assert.throws(function() {\r\n deploymentElement.withValidators(\"\");\r\n }, 'Parameter validators must be typeof Array');\r\n });\r\n it('Check parameter Validator have at least one element', function() {\r\n assert.doesNotThrow(function() {\r\n deploymentElement.withValidators([]);\r\n });\r\n });\r\n\r\n it('Check parameter type in validator is a string', function() {\r\n var validators = [{\r\n type: 1,\r\n value: \"\",\r\n mode: \"\"\r\n }];\r\n\r\n assert.throws(function() {\r\n deploymentElement.withValidators(validators);\r\n }, 'Parameter type must be typeof string');\r\n });\r\n it('Check parameter type in validator have a correct value', function() {\r\n\r\n var validators = [{\r\n type: \"SHA-1\"\r\n }];\r\n\r\n assert.doesNotThrow(function() {\r\n deploymentElement.withValidators(validators);\r\n });\r\n });\r\n it('Check parameter type in validator is typeof string', function() {\r\n\r\n var validators = [{\r\n type: \"SHA-1\",\r\n value: 1\r\n }];\r\n\r\n assert.throws(function() {\r\n deploymentElement.withValidators(validators);\r\n }, 'Parameter value must be a string');\r\n });\r\n it('Check parameter mode in validator is typeof string', function() {\r\n\r\n var validators = [{\r\n type: \"SHA-1\",\r\n value: \"\",\r\n mode: 1\r\n }];\r\n\r\n assert.throws(function() {\r\n deploymentElement.withValidators(validators);\r\n }, 'Parameter mode must be a string');\r\n });\r\n\r\n it('Check parameter mode in validator is typeof string', function() {\r\n\r\n var validators = [{\r\n type: \"SHA-1\",\r\n value: \"\",\r\n mode: \"\"\r\n }, {\r\n type: \"MD5\",\r\n value: \"\",\r\n mode: 1\r\n }];\r\n\r\n assert.throws(function() {\r\n deploymentElement.withValidators(validators);\r\n }, 'Parameter mode must be a string');\r\n });\r\n\r\n it('Check parameter DownloadUrl', function() {\r\n assert.throws(function() {\r\n deploymentElement.withDownloadUrl(111);\r\n }, \"Parameter downloadUrl must be a string\");\r\n });\r\n it('Check parameter FileName', function() {\r\n assert.throws(function() {\r\n deploymentElement.withFileName(111);\r\n }, \"Parameter fileName must be a string\");\r\n });\r\n });\r\n describe('Check DeploymentElement basic elements:', function() {\r\n var deploymentElement;\r\n before(function() {\r\n bundle = ogapi.bundlesBuilder();\r\n bundle.withName('bundle_testing_2').withVersion('V1').withWorkgroup('baseWorkGroup').withHardware(\"OWA21\");\r\n try {\r\n bundle.delete();\r\n } catch (error) {\r\n\r\n };\r\n bundle.create();\r\n deploymentElement = bundle.addDeploymentElement();\r\n });\r\n\r\n it('Define a deployment element', function() {\r\n assert.throws(function() {\r\n deploymentElement.withName(1);\r\n }, \"Parameter name must be a string\");\r\n });\r\n it('Create a deployment element', function() {\r\n assert.throws(function() {\r\n deploymentElement.withVersion(\"bundles-file-example\").create();\r\n }, \"Method not allowed - You must define the basic element [name, version, type, path, order and operation]\");\r\n });\r\n it('Check urls:', function() {\r\n assert.strictEqual(deploymentElement._url, 'provision/bundles/bundle_testing_2/versions/V1/deploymentElements');\r\n });\r\n\r\n it('Create a deployment element', function() {\r\n var file = new Blob([\"bundle ejemplo\"], {\r\n type: 'text/plain'\r\n });\r\n assert.doesNotThrow(function() {\r\n deploymentElement.withName(\"file_1\").withVersion(\"1\").withType(\"SOFTWARE\")\r\n .withPath(\"/\").withOrder(\"1\").withOperation(\"INSTALL\").withDownloadUrl(\"/\")\r\n .withValidators([{ \"type\": \"SHA-1\", \"value\": \"123\" }]).withOption(\"OPTIONAL\").create(file);\r\n });\r\n bundle.activate();\r\n\r\n });\r\n });\r\n\r\n });\r\n\r\n\r\n });*/\r\n});",
@@ -60508,7 +60536,7 @@
60508
60536
  "lineNumber": 1
60509
60537
  },
60510
60538
  {
60511
- "__docId__": 2314,
60539
+ "__docId__": 2315,
60512
60540
  "kind": "testDescribe",
60513
60541
  "name": "describe13",
60514
60542
  "testId": 13,
@@ -60530,7 +60558,7 @@
60530
60558
  ]
60531
60559
  },
60532
60560
  {
60533
- "__docId__": 2315,
60561
+ "__docId__": 2316,
60534
60562
  "kind": "testFile",
60535
60563
  "name": "client/collection/iot.spec.js",
60536
60564
  "content": "define(function() {\r\n mocha.setup('bdd');\r\n /** @test {InternalOpenGateAPI#bundlesBuilder()} */\r\n describe('Check funcionality bundles module:', function() {\r\n var bundle;\r\n before(function() {\r\n bundle = ogapi.bundlesBuilder();\r\n });\r\n /** @test {InternalOpenGateAPI#bundlesBuilder} */\r\n describe('Check basic parameters:', function() {\r\n\r\n it('Name is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withName(11);\r\n }, \"Parameter name must be a string and has a maximum length of 255\");\r\n\r\n });\r\n\r\n \r\n });\r\n \r\n\r\n\r\n });\r\n});\r\n",
@@ -60541,7 +60569,7 @@
60541
60569
  "lineNumber": 1
60542
60570
  },
60543
60571
  {
60544
- "__docId__": 2316,
60572
+ "__docId__": 2317,
60545
60573
  "kind": "testDescribe",
60546
60574
  "name": "describe14",
60547
60575
  "testId": 14,
@@ -60563,7 +60591,7 @@
60563
60591
  ]
60564
60592
  },
60565
60593
  {
60566
- "__docId__": 2317,
60594
+ "__docId__": 2318,
60567
60595
  "kind": "testDescribe",
60568
60596
  "name": "describe15",
60569
60597
  "testId": 15,
@@ -60585,7 +60613,7 @@
60585
60613
  ]
60586
60614
  },
60587
60615
  {
60588
- "__docId__": 2318,
60616
+ "__docId__": 2319,
60589
60617
  "kind": "testIt",
60590
60618
  "name": "it16",
60591
60619
  "testId": 16,
@@ -60598,7 +60626,7 @@
60598
60626
  "lineNumber": 12
60599
60627
  },
60600
60628
  {
60601
- "__docId__": 2319,
60629
+ "__docId__": 2320,
60602
60630
  "kind": "testFile",
60603
60631
  "name": "client/device/device.spec.js",
60604
60632
  "content": "define(function() {\r\n mocha.setup('bdd');\r\n /** @test {InternalOpenGateAPI#bundlesBuilder()} */\r\n describe('Check funcionality bundles module:', function() {\r\n var bundle;\r\n before(function() {\r\n bundle = ogapi.bundlesBuilder();\r\n });\r\n /** @test {InternalOpenGateAPI#bundlesBuilder} */\r\n describe('Check basic parameters:', function() {\r\n\r\n it('Name is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withName(11);\r\n }, \"Parameter name must be a string and has a maximum length of 255\");\r\n\r\n });\r\n\r\n it('version is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withVersion(1);\r\n }, \"Parameter version must be a string and has a maximum length of 50\");\r\n\r\n });\r\n\r\n it('Hardware is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withHardware(1);\r\n }, \"Parameter hardware must be a string\");\r\n\r\n });\r\n\r\n it('workgroup is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withWorkgroup(1);\r\n }, \"Parameter workgroup must be a string\");\r\n\r\n });\r\n\r\n it('description is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withDescription(1);\r\n }, \"Parameter description must be a string and has a maximum length of 250\");\r\n\r\n });\r\n\r\n it('UserNotes is not a String', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withUserNotes(1);\r\n }, \"Parameter notes must be a string and has a maximum length of 250\");\r\n\r\n });\r\n\r\n it('POSTACTION is not an Array', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withPreaction(\"\");\r\n }, \"Parameter preaction must be typeof Array\");\r\n\r\n });\r\n\r\n it('POSTACTION does not have at least one element', function() {\r\n assert.doesNotThrow(function() {\r\n ogapi.bundlesBuilder().withPreaction([]);\r\n });\r\n\r\n });\r\n\r\n it('POSTACTION does not have correct Elements', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withPreaction([\"dd\"]);\r\n }, 'Any action into parameter preaction is not allowed. Parameter value <\\'[\"dd\"]\\'>, preaction allowed <\\'[\"HARDWARE_RESET\",\"SOFTWARE_RESET\",\"COMMS_DOWN\",\"COMMS_UP\",\"COMMS_RESET\"]\\'>');\r\n\r\n });\r\n\r\n it('POSTACTION have correct Elements', function() {\r\n assert.doesNotThrow(function() {\r\n ogapi.bundlesBuilder().withPreaction([\"HARDWARE_RESET\", \"SOFTWARE_RESET\", \"COMMS_DOWN\", \"COMMS_UP\", \"COMMS_RESET\"]);\r\n });\r\n });\r\n\r\n\r\n it('Required parameters', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().create();\r\n }, \"Parameters name, version, hardware, workgroup must be defined\");\r\n });\r\n\r\n it('Check parameters type', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().withName(222);\r\n }, \"Parameter name must be a string\");\r\n });\r\n });\r\n describe('Create a Bundle:', function() {\r\n\r\n before(function() {\r\n bundle.withName('bundle_testing').withVersion('V1').withWorkgroup('baseWorkGroup');\r\n });\r\n\r\n it('Check basic parameters', function() {\r\n assert.throws(function() {\r\n bundle.create();\r\n }, \"Parameters name, version, hardware, workgroup must be defined\");\r\n });\r\n\r\n it('Create a bundle without Hardware', function() {\r\n assert.throws(function() {\r\n bundle.create();\r\n }, \"Parameters name, version, hardware, workgroup must be defined\");\r\n });\r\n\r\n it('Create a bundle', function() {\r\n assert.doesNotThrow(function() {\r\n bundle.withHardware(\"OWA21\").create();\r\n });\r\n });\r\n it('Activate a bundle', function() {\r\n assert.doesNotThrow(function() {\r\n bundle.activate();\r\n });\r\n });\r\n /*\r\n it('Delete a bundle', function() {\r\n assert.doesNotThrow(function() {\r\n bundle.delete();\r\n });\r\n \r\n });*/\r\n });\r\n\r\n describe('Check Deployment Element:', function() {\r\n\r\n it('Check constructor Deployment Element', function() {\r\n assert.throws(function() {\r\n ogapi.bundlesBuilder().addDeploymentElement();\r\n }, \"Parameters name, version must be defined\");\r\n });\r\n\r\n it('Deploy element', function() {\r\n assert.doesNotThrow(function() {\r\n ogapi.bundlesBuilder().withName('bundle_testing').withVersion('V1').addDeploymentElement();\r\n });\r\n });\r\n describe('Check Deployment Element basic elements:', function() {\r\n var deploymentElement;\r\n before(function() {\r\n deploymentElement = ogapi.bundlesBuilder().withName('bundle_testing').withVersion('V1').addDeploymentElement();\r\n });\r\n\r\n it('Check parameter name', function() {\r\n assert.throws(function() {\r\n deploymentElement.withName(111);\r\n }, \"Parameter name must be a string and has a maximum length of 50\");\r\n });\r\n it('Check parameter version', function() {\r\n assert.throws(function() {\r\n deploymentElement.withVersion(111);\r\n }, \"Parameter version must be a string and has a maximum length of 50\");\r\n });\r\n it('Check parameter Type', function() {\r\n assert.throws(function() {\r\n deploymentElement.withType(111);\r\n }, \"Parameter type must be typeof string\");\r\n });\r\n it('Check parameter Type', function() {\r\n assert.throws(function() {\r\n deploymentElement.withType(\"Type\");\r\n }, 'Parameter type is not allowed. Parameter value <\\'\"Type\"\\'>, type allowed <\\'[\"SOFTWARE\",\"FIRMWARE\",\"CONFIGURATION\",\"PARAMETERS\"]\\'>');\r\n });\r\n it('Check parameter Path', function() {\r\n assert.throws(function() {\r\n deploymentElement.withPath(111);\r\n }, \"Parameter path must be a string\");\r\n });\r\n it('Check parameter Order', function() {\r\n assert.doesNotThrow(function() {\r\n deploymentElement.withOrder(111);\r\n });\r\n });\r\n it('Check parameter Operation', function() {\r\n assert.throws(function() {\r\n deploymentElement.withOperation(111);\r\n }, \"Parameter operation must be typeof string\");\r\n });\r\n it('Check parameter Operation', function() {\r\n assert.throws(function() {\r\n deploymentElement.withOperation(\"OPERATION\");\r\n }, 'Parameter operation is not allowed. Parameter value <\\'\"OPERATION\"\\'>, operation allowed <\\'[\"INSTALL\",\"UNINSTALL\",\"UPGRADE\"]\\'>');\r\n });\r\n it('Check parameter Option', function() {\r\n assert.throws(function() {\r\n deploymentElement.withOption(111);\r\n }, \"Parameter option must be typeof string\");\r\n });\r\n it('Check parameter Option', function() {\r\n assert.throws(function() {\r\n deploymentElement.withOption(\"option\");\r\n }, 'Parameter option is not allowed. Parameter value <\\'\"option\"\\'>, option allowed <\\'[\"MANDATORY\",\"OPTIONAL\"]\\'>');\r\n });\r\n it('Check parameter Validator is an Array', function() {\r\n assert.throws(function() {\r\n deploymentElement.withValidators(\"\");\r\n }, 'Parameter validators must be typeof Array');\r\n });\r\n it('Check parameter Validator have at least one element', function() {\r\n assert.doesNotThrow(function() {\r\n deploymentElement.withValidators([]);\r\n });\r\n });\r\n\r\n it('Check parameter type in validator is a string', function() {\r\n var validators = [{\r\n type: 1,\r\n value: \"\",\r\n mode: \"\"\r\n }];\r\n\r\n assert.throws(function() {\r\n deploymentElement.withValidators(validators);\r\n }, 'Parameter type must be typeof string');\r\n });\r\n it('Check parameter type in validator have a correct value', function() {\r\n\r\n var validators = [{\r\n type: \"SHA-1\"\r\n }];\r\n\r\n assert.doesNotThrow(function() {\r\n deploymentElement.withValidators(validators);\r\n });\r\n });\r\n it('Check parameter type in validator is typeof string', function() {\r\n\r\n var validators = [{\r\n type: \"SHA-1\",\r\n value: 1\r\n }];\r\n\r\n assert.throws(function() {\r\n deploymentElement.withValidators(validators);\r\n }, 'Parameter value must be a string');\r\n });\r\n it('Check parameter mode in validator is typeof string', function() {\r\n\r\n var validators = [{\r\n type: \"SHA-1\",\r\n value: \"\",\r\n mode: 1\r\n }];\r\n\r\n assert.throws(function() {\r\n deploymentElement.withValidators(validators);\r\n }, 'Parameter mode must be a string');\r\n });\r\n\r\n it('Check parameter mode in validator is typeof string', function() {\r\n\r\n var validators = [{\r\n type: \"SHA-1\",\r\n value: \"\",\r\n mode: \"\"\r\n }, {\r\n type: \"MD5\",\r\n value: \"\",\r\n mode: 1\r\n }];\r\n\r\n assert.throws(function() {\r\n deploymentElement.withValidators(validators);\r\n }, 'Parameter mode must be a string');\r\n });\r\n\r\n it('Check parameter DownloadUrl', function() {\r\n assert.throws(function() {\r\n deploymentElement.withDownloadUrl(111);\r\n }, \"Parameter downloadUrl must be a string\");\r\n });\r\n it('Check parameter FileName', function() {\r\n assert.throws(function() {\r\n deploymentElement.withFileName(111);\r\n }, \"Parameter fileName must be a string\");\r\n });\r\n });\r\n describe('Check DeploymentElement basic elements:', function() {\r\n var deploymentElement;\r\n before(function() {\r\n bundle = ogapi.bundlesBuilder();\r\n bundle.withName('bundle_testing_2').withVersion('V1').withWorkgroup('baseWorkGroup').withHardware(\"OWA21\");\r\n try {\r\n bundle.delete();\r\n } catch (error) {\r\n\r\n }\r\n bundle.create();\r\n deploymentElement = bundle.addDeploymentElement();\r\n });\r\n\r\n it('Define a deployment element', function() {\r\n assert.throws(function() {\r\n deploymentElement.withName(1);\r\n }, \"Parameter name must be a string\");\r\n });\r\n it('Create a deployment element', function() {\r\n assert.throws(function() {\r\n deploymentElement.withVersion(\"bundles-file-example\").create();\r\n }, \"Method not allowed - You must define the basic element [name, version, type, path, order and operation]\");\r\n });\r\n it('Check urls:', function() {\r\n assert.strictEqual(deploymentElement._url, 'provision/bundles/bundle_testing_2/versions/V1/deploymentElements');\r\n });\r\n\r\n it('Create a deployment element', function() {\r\n var file = new Blob([\"bundle ejemplo\"], {\r\n type: 'text/plain'\r\n });\r\n assert.doesNotThrow(function() {\r\n deploymentElement.withName(\"file_1\").withVersion(\"1\").withType(\"SOFTWARE\")\r\n .withPath(\"/\").withOrder(\"1\").withOperation(\"INSTALL\").withDownloadUrl(\"/\")\r\n .withValidators([{ \"type\": \"SHA-1\", \"value\": \"123\" }]).withOption(\"OPTIONAL\").create(file);\r\n });\r\n bundle.activate();\r\n\r\n });\r\n });\r\n\r\n });\r\n\r\n\r\n });\r\n});\r\n",
@@ -60609,7 +60637,7 @@
60609
60637
  "lineNumber": 1
60610
60638
  },
60611
60639
  {
60612
- "__docId__": 2320,
60640
+ "__docId__": 2321,
60613
60641
  "kind": "testDescribe",
60614
60642
  "name": "describe17",
60615
60643
  "testId": 17,
@@ -60631,7 +60659,7 @@
60631
60659
  ]
60632
60660
  },
60633
60661
  {
60634
- "__docId__": 2321,
60662
+ "__docId__": 2322,
60635
60663
  "kind": "testDescribe",
60636
60664
  "name": "describe18",
60637
60665
  "testId": 18,
@@ -60653,7 +60681,7 @@
60653
60681
  ]
60654
60682
  },
60655
60683
  {
60656
- "__docId__": 2322,
60684
+ "__docId__": 2323,
60657
60685
  "kind": "testIt",
60658
60686
  "name": "it19",
60659
60687
  "testId": 19,
@@ -60666,7 +60694,7 @@
60666
60694
  "lineNumber": 12
60667
60695
  },
60668
60696
  {
60669
- "__docId__": 2323,
60697
+ "__docId__": 2324,
60670
60698
  "kind": "testIt",
60671
60699
  "name": "it20",
60672
60700
  "testId": 20,
@@ -60679,7 +60707,7 @@
60679
60707
  "lineNumber": 19
60680
60708
  },
60681
60709
  {
60682
- "__docId__": 2324,
60710
+ "__docId__": 2325,
60683
60711
  "kind": "testIt",
60684
60712
  "name": "it21",
60685
60713
  "testId": 21,
@@ -60692,7 +60720,7 @@
60692
60720
  "lineNumber": 26
60693
60721
  },
60694
60722
  {
60695
- "__docId__": 2325,
60723
+ "__docId__": 2326,
60696
60724
  "kind": "testIt",
60697
60725
  "name": "it22",
60698
60726
  "testId": 22,
@@ -60705,7 +60733,7 @@
60705
60733
  "lineNumber": 33
60706
60734
  },
60707
60735
  {
60708
- "__docId__": 2326,
60736
+ "__docId__": 2327,
60709
60737
  "kind": "testIt",
60710
60738
  "name": "it23",
60711
60739
  "testId": 23,
@@ -60718,7 +60746,7 @@
60718
60746
  "lineNumber": 40
60719
60747
  },
60720
60748
  {
60721
- "__docId__": 2327,
60749
+ "__docId__": 2328,
60722
60750
  "kind": "testIt",
60723
60751
  "name": "it24",
60724
60752
  "testId": 24,
@@ -60731,7 +60759,7 @@
60731
60759
  "lineNumber": 47
60732
60760
  },
60733
60761
  {
60734
- "__docId__": 2328,
60762
+ "__docId__": 2329,
60735
60763
  "kind": "testIt",
60736
60764
  "name": "it25",
60737
60765
  "testId": 25,
@@ -60744,7 +60772,7 @@
60744
60772
  "lineNumber": 54
60745
60773
  },
60746
60774
  {
60747
- "__docId__": 2329,
60775
+ "__docId__": 2330,
60748
60776
  "kind": "testIt",
60749
60777
  "name": "it26",
60750
60778
  "testId": 26,
@@ -60757,7 +60785,7 @@
60757
60785
  "lineNumber": 61
60758
60786
  },
60759
60787
  {
60760
- "__docId__": 2330,
60788
+ "__docId__": 2331,
60761
60789
  "kind": "testIt",
60762
60790
  "name": "it27",
60763
60791
  "testId": 27,
@@ -60770,7 +60798,7 @@
60770
60798
  "lineNumber": 68
60771
60799
  },
60772
60800
  {
60773
- "__docId__": 2331,
60801
+ "__docId__": 2332,
60774
60802
  "kind": "testIt",
60775
60803
  "name": "it28",
60776
60804
  "testId": 28,
@@ -60783,7 +60811,7 @@
60783
60811
  "lineNumber": 75
60784
60812
  },
60785
60813
  {
60786
- "__docId__": 2332,
60814
+ "__docId__": 2333,
60787
60815
  "kind": "testIt",
60788
60816
  "name": "it29",
60789
60817
  "testId": 29,
@@ -60796,7 +60824,7 @@
60796
60824
  "lineNumber": 82
60797
60825
  },
60798
60826
  {
60799
- "__docId__": 2333,
60827
+ "__docId__": 2334,
60800
60828
  "kind": "testIt",
60801
60829
  "name": "it30",
60802
60830
  "testId": 30,
@@ -60809,7 +60837,7 @@
60809
60837
  "lineNumber": 88
60810
60838
  },
60811
60839
  {
60812
- "__docId__": 2334,
60840
+ "__docId__": 2335,
60813
60841
  "kind": "testDescribe",
60814
60842
  "name": "describe31",
60815
60843
  "testId": 31,
@@ -60822,7 +60850,7 @@
60822
60850
  "lineNumber": 94
60823
60851
  },
60824
60852
  {
60825
- "__docId__": 2335,
60853
+ "__docId__": 2336,
60826
60854
  "kind": "testIt",
60827
60855
  "name": "it32",
60828
60856
  "testId": 32,
@@ -60835,7 +60863,7 @@
60835
60863
  "lineNumber": 100
60836
60864
  },
60837
60865
  {
60838
- "__docId__": 2336,
60866
+ "__docId__": 2337,
60839
60867
  "kind": "testIt",
60840
60868
  "name": "it33",
60841
60869
  "testId": 33,
@@ -60848,7 +60876,7 @@
60848
60876
  "lineNumber": 106
60849
60877
  },
60850
60878
  {
60851
- "__docId__": 2337,
60879
+ "__docId__": 2338,
60852
60880
  "kind": "testIt",
60853
60881
  "name": "it34",
60854
60882
  "testId": 34,
@@ -60861,7 +60889,7 @@
60861
60889
  "lineNumber": 112
60862
60890
  },
60863
60891
  {
60864
- "__docId__": 2338,
60892
+ "__docId__": 2339,
60865
60893
  "kind": "testIt",
60866
60894
  "name": "it35",
60867
60895
  "testId": 35,
@@ -60874,7 +60902,7 @@
60874
60902
  "lineNumber": 117
60875
60903
  },
60876
60904
  {
60877
- "__docId__": 2339,
60905
+ "__docId__": 2340,
60878
60906
  "kind": "testDescribe",
60879
60907
  "name": "describe36",
60880
60908
  "testId": 36,
@@ -60887,7 +60915,7 @@
60887
60915
  "lineNumber": 131
60888
60916
  },
60889
60917
  {
60890
- "__docId__": 2340,
60918
+ "__docId__": 2341,
60891
60919
  "kind": "testIt",
60892
60920
  "name": "it37",
60893
60921
  "testId": 37,
@@ -60900,7 +60928,7 @@
60900
60928
  "lineNumber": 133
60901
60929
  },
60902
60930
  {
60903
- "__docId__": 2341,
60931
+ "__docId__": 2342,
60904
60932
  "kind": "testIt",
60905
60933
  "name": "it38",
60906
60934
  "testId": 38,
@@ -60913,7 +60941,7 @@
60913
60941
  "lineNumber": 139
60914
60942
  },
60915
60943
  {
60916
- "__docId__": 2342,
60944
+ "__docId__": 2343,
60917
60945
  "kind": "testDescribe",
60918
60946
  "name": "describe39",
60919
60947
  "testId": 39,
@@ -60926,7 +60954,7 @@
60926
60954
  "lineNumber": 144
60927
60955
  },
60928
60956
  {
60929
- "__docId__": 2343,
60957
+ "__docId__": 2344,
60930
60958
  "kind": "testIt",
60931
60959
  "name": "it40",
60932
60960
  "testId": 40,
@@ -60939,7 +60967,7 @@
60939
60967
  "lineNumber": 150
60940
60968
  },
60941
60969
  {
60942
- "__docId__": 2344,
60970
+ "__docId__": 2345,
60943
60971
  "kind": "testIt",
60944
60972
  "name": "it41",
60945
60973
  "testId": 41,
@@ -60952,7 +60980,7 @@
60952
60980
  "lineNumber": 155
60953
60981
  },
60954
60982
  {
60955
- "__docId__": 2345,
60983
+ "__docId__": 2346,
60956
60984
  "kind": "testIt",
60957
60985
  "name": "it42",
60958
60986
  "testId": 42,
@@ -60965,7 +60993,7 @@
60965
60993
  "lineNumber": 160
60966
60994
  },
60967
60995
  {
60968
- "__docId__": 2346,
60996
+ "__docId__": 2347,
60969
60997
  "kind": "testIt",
60970
60998
  "name": "it43",
60971
60999
  "testId": 43,
@@ -60978,7 +61006,7 @@
60978
61006
  "lineNumber": 165
60979
61007
  },
60980
61008
  {
60981
- "__docId__": 2347,
61009
+ "__docId__": 2348,
60982
61010
  "kind": "testIt",
60983
61011
  "name": "it44",
60984
61012
  "testId": 44,
@@ -60991,7 +61019,7 @@
60991
61019
  "lineNumber": 170
60992
61020
  },
60993
61021
  {
60994
- "__docId__": 2348,
61022
+ "__docId__": 2349,
60995
61023
  "kind": "testIt",
60996
61024
  "name": "it45",
60997
61025
  "testId": 45,
@@ -61004,7 +61032,7 @@
61004
61032
  "lineNumber": 175
61005
61033
  },
61006
61034
  {
61007
- "__docId__": 2349,
61035
+ "__docId__": 2350,
61008
61036
  "kind": "testIt",
61009
61037
  "name": "it46",
61010
61038
  "testId": 46,
@@ -61017,7 +61045,7 @@
61017
61045
  "lineNumber": 180
61018
61046
  },
61019
61047
  {
61020
- "__docId__": 2350,
61048
+ "__docId__": 2351,
61021
61049
  "kind": "testIt",
61022
61050
  "name": "it47",
61023
61051
  "testId": 47,
@@ -61030,7 +61058,7 @@
61030
61058
  "lineNumber": 185
61031
61059
  },
61032
61060
  {
61033
- "__docId__": 2351,
61061
+ "__docId__": 2352,
61034
61062
  "kind": "testIt",
61035
61063
  "name": "it48",
61036
61064
  "testId": 48,
@@ -61043,7 +61071,7 @@
61043
61071
  "lineNumber": 190
61044
61072
  },
61045
61073
  {
61046
- "__docId__": 2352,
61074
+ "__docId__": 2353,
61047
61075
  "kind": "testIt",
61048
61076
  "name": "it49",
61049
61077
  "testId": 49,
@@ -61056,7 +61084,7 @@
61056
61084
  "lineNumber": 195
61057
61085
  },
61058
61086
  {
61059
- "__docId__": 2353,
61087
+ "__docId__": 2354,
61060
61088
  "kind": "testIt",
61061
61089
  "name": "it50",
61062
61090
  "testId": 50,
@@ -61069,7 +61097,7 @@
61069
61097
  "lineNumber": 200
61070
61098
  },
61071
61099
  {
61072
- "__docId__": 2354,
61100
+ "__docId__": 2355,
61073
61101
  "kind": "testIt",
61074
61102
  "name": "it51",
61075
61103
  "testId": 51,
@@ -61082,7 +61110,7 @@
61082
61110
  "lineNumber": 205
61083
61111
  },
61084
61112
  {
61085
- "__docId__": 2355,
61113
+ "__docId__": 2356,
61086
61114
  "kind": "testIt",
61087
61115
  "name": "it52",
61088
61116
  "testId": 52,
@@ -61095,7 +61123,7 @@
61095
61123
  "lineNumber": 211
61096
61124
  },
61097
61125
  {
61098
- "__docId__": 2356,
61126
+ "__docId__": 2357,
61099
61127
  "kind": "testIt",
61100
61128
  "name": "it53",
61101
61129
  "testId": 53,
@@ -61108,7 +61136,7 @@
61108
61136
  "lineNumber": 222
61109
61137
  },
61110
61138
  {
61111
- "__docId__": 2357,
61139
+ "__docId__": 2358,
61112
61140
  "kind": "testIt",
61113
61141
  "name": "it54",
61114
61142
  "testId": 54,
@@ -61121,7 +61149,7 @@
61121
61149
  "lineNumber": 232
61122
61150
  },
61123
61151
  {
61124
- "__docId__": 2358,
61152
+ "__docId__": 2359,
61125
61153
  "kind": "testIt",
61126
61154
  "name": "it55",
61127
61155
  "testId": 55,
@@ -61134,7 +61162,7 @@
61134
61162
  "lineNumber": 243
61135
61163
  },
61136
61164
  {
61137
- "__docId__": 2359,
61165
+ "__docId__": 2360,
61138
61166
  "kind": "testIt",
61139
61167
  "name": "it56",
61140
61168
  "testId": 56,
@@ -61147,7 +61175,7 @@
61147
61175
  "lineNumber": 256
61148
61176
  },
61149
61177
  {
61150
- "__docId__": 2360,
61178
+ "__docId__": 2361,
61151
61179
  "kind": "testIt",
61152
61180
  "name": "it57",
61153
61181
  "testId": 57,
@@ -61160,7 +61188,7 @@
61160
61188
  "lineNumber": 273
61161
61189
  },
61162
61190
  {
61163
- "__docId__": 2361,
61191
+ "__docId__": 2362,
61164
61192
  "kind": "testIt",
61165
61193
  "name": "it58",
61166
61194
  "testId": 58,
@@ -61173,7 +61201,7 @@
61173
61201
  "lineNumber": 278
61174
61202
  },
61175
61203
  {
61176
- "__docId__": 2362,
61204
+ "__docId__": 2363,
61177
61205
  "kind": "testDescribe",
61178
61206
  "name": "describe59",
61179
61207
  "testId": 59,
@@ -61186,7 +61214,7 @@
61186
61214
  "lineNumber": 284
61187
61215
  },
61188
61216
  {
61189
- "__docId__": 2363,
61217
+ "__docId__": 2364,
61190
61218
  "kind": "testIt",
61191
61219
  "name": "it60",
61192
61220
  "testId": 60,
@@ -61199,7 +61227,7 @@
61199
61227
  "lineNumber": 298
61200
61228
  },
61201
61229
  {
61202
- "__docId__": 2364,
61230
+ "__docId__": 2365,
61203
61231
  "kind": "testIt",
61204
61232
  "name": "it61",
61205
61233
  "testId": 61,
@@ -61212,7 +61240,7 @@
61212
61240
  "lineNumber": 303
61213
61241
  },
61214
61242
  {
61215
- "__docId__": 2365,
61243
+ "__docId__": 2366,
61216
61244
  "kind": "testIt",
61217
61245
  "name": "it62",
61218
61246
  "testId": 62,
@@ -61225,7 +61253,7 @@
61225
61253
  "lineNumber": 308
61226
61254
  },
61227
61255
  {
61228
- "__docId__": 2366,
61256
+ "__docId__": 2367,
61229
61257
  "kind": "testIt",
61230
61258
  "name": "it63",
61231
61259
  "testId": 63,
@@ -61238,7 +61266,7 @@
61238
61266
  "lineNumber": 312
61239
61267
  },
61240
61268
  {
61241
- "__docId__": 2367,
61269
+ "__docId__": 2368,
61242
61270
  "kind": "testFile",
61243
61271
  "name": "client/provision/devices.provision.spec.js",
61244
61272
  "content": "define(function() {\r\n mocha.setup('bdd');\r\n /** @test {InternalOpenGateAPI#datapointsSearchBuilder} */\r\n describe('Check funcionality devicesBuilder module:', function() {\r\n it('Create new devicesBuilder object', function() {\r\n var entity = null;\r\n ogapi.entityBuilder.devicesBuilder(\"base_organization\")\r\n .then(function(res) {\r\n console.log(res);\r\n entity = res;\r\n entity.with(\"provision.administration.channel\", \"default_channel\");\r\n entity.with(\"provision.administration.organization\", \"base_organization\");\r\n entity.with(\"provision.administration.serviceGroup\", \"emptyServiceGroup\");\r\n entity.with(\"provision.device.identifier\", \"device_oux\");\r\n })\r\n .catch(function(err) {\r\n console.log(err);\r\n });\r\n\r\n //assert.isDefined(ogapi.entityBuilder.devicesBuilder(\"organization_Dani\"));\r\n\r\n });\r\n });\r\n\r\n /**\r\n * \r\n * var user = ogapi.usersBuilder();\r\nuser.withEmail(\"katherin.moscoso@amplia.es\").withPassword(\"amplia\")\r\n.updatePassword(\"amplia123\")\r\n.then(function(res){console.log(res)})\r\n.catch(function(err){console.log(err)})\r\n */\r\n /*\r\n\r\n \r\n describe('Check funcionality devicesBuilder module:', function() {\r\n it('Create new subscribersBuilder object', function() {\r\n var entity = null;\r\n ogapi.entityBuilder.subscribersBuilder(\"organization_UX\")\r\n .then(function(res) {\r\n console.log(res);\r\n entity = res;\r\n entity.with(\"provision.administration.channel\", \"channel_1\");\r\n entity.with(\"provision.administration.organization\", \"organization_UX\");\r\n entity.with(\"provision.administration.serviceGroup\", \"emptyServiceGroup\");\r\n entity.with(\"provision.device.communicationModules[].subscriber.identifier\", \"s_1\");\r\n })\r\n .catch(function(err) {\r\n console.log(err);\r\n });\r\n\r\n //device.with(\"\", \"\");\r\n assert.isDefined(ogapi.entityBuilder.devicesBuilder(\"organization_Dani\"));\r\n\r\n });\r\n });\r\n\r\n\r\n describe('Check funcionality devicesBuilder module:', function() {\r\n it('Create new subscribersBuilder object', function() {\r\n var entity = null;\r\n ogapi.entityBuilder.subscriptionsBuilder(\"organization_Dani\")\r\n .then(function(res) {\r\n console.log(res);\r\n entity = res;\r\n entity.with(\"provision.administration.channel\", \"channel_1\");\r\n entity.with(\"provision.administration.organization\", \"organization_UX\");\r\n entity.with(\"provision.administration.serviceGroup\", \"emptyServiceGroup\");\r\n entity.with(\"provision.device.communicationModules[].subscriber.identifier\", \"s_1\");\r\n })\r\n .catch(function(err) {\r\n console.log(err);\r\n });\r\n\r\n //device.with(\"\", \"\");\r\n assert.isDefined(ogapi.entityBuilder.devicesBuilder(\"organization_Dani\"));\r\n\r\n });\r\n });\r\n\r\n */\r\n\r\n /* describe('Check funcionality devicesBuilder module:', function() {\r\n it('Create new datamodel object', function() {\r\n var datamodel = ogapi.datamodelsBuilder(\"organization_UX\");\r\n datamodel.withName(\"name1\").withIdentifier(\"id_2\").withVersion(\"1.0.0\")\r\n\r\n\r\n });\r\n });*/\r\n});",
@@ -61249,7 +61277,7 @@
61249
61277
  "lineNumber": 1
61250
61278
  },
61251
61279
  {
61252
- "__docId__": 2368,
61280
+ "__docId__": 2369,
61253
61281
  "kind": "testDescribe",
61254
61282
  "name": "describe64",
61255
61283
  "testId": 64,
@@ -61271,7 +61299,7 @@
61271
61299
  ]
61272
61300
  },
61273
61301
  {
61274
- "__docId__": 2369,
61302
+ "__docId__": 2370,
61275
61303
  "kind": "testIt",
61276
61304
  "name": "it65",
61277
61305
  "testId": 65,
@@ -61284,7 +61312,7 @@
61284
61312
  "lineNumber": 5
61285
61313
  },
61286
61314
  {
61287
- "__docId__": 2370,
61315
+ "__docId__": 2371,
61288
61316
  "kind": "testFile",
61289
61317
  "name": "client/searching/FilterBuilder.spec.js",
61290
61318
  "content": "\r\ndefine(function () {\r\n\tmocha.setup('bdd'); \r\n\t/** @test {InternalOpenGateAPI#newFilterBuilder} */\r\n\tdescribe('Check funcionality FilterBuilder module:', function(){\t\t\t\t\t\t\r\n\t\tit('Create new FilterBuilder object', function(){\t\t\t\r\n\t\t\tassert.isDefined(ogapi.newFilterBuilder);\r\n\t\t});\r\n\t\t/** @test {FilterBuilder#or} */\r\n\t\tit('Creating a logical operator \\\"or\\\"', function(){\t\t\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.newFilterBuilder().or()._filterTemplate), \"{\\\"filter\\\":{\\\"or\\\":[]}}\")\r\n\t\t});\r\n\t\t/** @test {FilterBuilder#and} */\r\n\t\tit('Creating a logical operator \\\"and\\\"', function(){\t\t\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.newFilterBuilder().and()._filterTemplate), \"{\\\"filter\\\":{\\\"and\\\":[]}}\")\r\n\t\t});\r\n\t\t/** @test {FilterBuilder#and} */\r\n\t\tit('Creating like inside the and', function(){\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.newFilterBuilder().and(ogapi.EX.like(\"hello\", \"world\"))._filterTemplate), \"{\\\"filter\\\":{\\\"and\\\":[{\\\"like\\\":{\\\"hello\\\":\\\"world\\\"}}]}}\")\r\n\t\t});\r\n\t\t/** @test {FilterBuilder#and} */\r\n\t\tit('Creating two operators inside the and', function(){\r\n\t\t\tvar resul = \"{\\\"filter\\\":{\\\"and\\\":[{\\\"like\\\":{\\\"hello\\\":\\\"world\\\"}},{\\\"neq\\\":{\\\"hello\\\":\\\"world\\\"}}]}}\"\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.newFilterBuilder().and(ogapi.EX.like(\"hello\", \"world\"), ogapi.EX.neq(\"hello\", \"world\"))._filterTemplate), resul)\r\n\t\t});\r\n\t});\r\n});",
@@ -61295,7 +61323,7 @@
61295
61323
  "lineNumber": 1
61296
61324
  },
61297
61325
  {
61298
- "__docId__": 2371,
61326
+ "__docId__": 2372,
61299
61327
  "kind": "testDescribe",
61300
61328
  "name": "describe66",
61301
61329
  "testId": 66,
@@ -61317,7 +61345,7 @@
61317
61345
  ]
61318
61346
  },
61319
61347
  {
61320
- "__docId__": 2372,
61348
+ "__docId__": 2373,
61321
61349
  "kind": "testIt",
61322
61350
  "name": "it67",
61323
61351
  "testId": 67,
@@ -61330,7 +61358,7 @@
61330
61358
  "lineNumber": 6
61331
61359
  },
61332
61360
  {
61333
- "__docId__": 2373,
61361
+ "__docId__": 2374,
61334
61362
  "kind": "testIt",
61335
61363
  "name": "it68",
61336
61364
  "testId": 68,
@@ -61352,7 +61380,7 @@
61352
61380
  ]
61353
61381
  },
61354
61382
  {
61355
- "__docId__": 2374,
61383
+ "__docId__": 2375,
61356
61384
  "kind": "testIt",
61357
61385
  "name": "it69",
61358
61386
  "testId": 69,
@@ -61374,7 +61402,7 @@
61374
61402
  ]
61375
61403
  },
61376
61404
  {
61377
- "__docId__": 2375,
61405
+ "__docId__": 2376,
61378
61406
  "kind": "testIt",
61379
61407
  "name": "it70",
61380
61408
  "testId": 70,
@@ -61396,7 +61424,7 @@
61396
61424
  ]
61397
61425
  },
61398
61426
  {
61399
- "__docId__": 2376,
61427
+ "__docId__": 2377,
61400
61428
  "kind": "testIt",
61401
61429
  "name": "it71",
61402
61430
  "testId": 71,
@@ -61418,7 +61446,7 @@
61418
61446
  ]
61419
61447
  },
61420
61448
  {
61421
- "__docId__": 2377,
61449
+ "__docId__": 2378,
61422
61450
  "kind": "testFile",
61423
61451
  "name": "client/searching/datapoints.search.spec.js",
61424
61452
  "content": "define(function () {\r\n\tmocha.setup('bdd');\r\n\t/** @test {InternalOpenGateAPI#datapointsSearchBuilder} */\r\n\tdescribe('Check funcionality datapointsSearchBuilder module:', function () {\r\n\t\tit('Create new datapointsSearchBuilder object', function () {\r\n\t\t\tassert.isDefined(ogapi.datapointsSearchBuilder());\r\n\t\t});\r\n\t});\r\n\r\n\tdescribe('Setting a filter:', function () {\r\n\t\tit('withDeviceId', function () {\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.datapointsSearchBuilder()\r\n\t\t\t\t.withDeviceId('myDevice')\r\n\t\t\t\t.build()._postObj.filter), '{\"and\":[{\"eq\":{\"datapoint.device\":\"myDevice\"}}]}');\r\n\t\t});\r\n\t\tit('withDatastream', function () {\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.datapointsSearchBuilder()\r\n\t\t\t\t.withDatastream('myDatastream')\r\n\t\t\t\t.build()._postObj.filter), '{\"and\":[{\"eq\":{\"datapoint.datastream\":\"myDatastream\"}}]}');\r\n\t\t});\r\n\t\tit('withFeed', function () {\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.datapointsSearchBuilder()\r\n\t\t\t\t.withFeed('myDatastream')\r\n\t\t\t\t.build()._postObj.filter), '{\"and\":[{\"eq\":{\"datapoint.feed\":\"myDatastream\"}}]}');\r\n\t\t});\r\n\t\tit('CustomFilter', function () {\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.datapointsSearchBuilder()\r\n\t\t\t\t.filter({ filter: { and: [] } })\r\n\t\t\t\t.build()._postObj.filter), '{\"filter\":{\"and\":[]}}');\r\n\t\t});\r\n\t\tit('time window', function () {\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.datapointsSearchBuilder()\r\n\t\t\t\t.betweenDates(new Date('2015-10-16T10:39:05Z'), new Date('2015-10-16T10:39:06Z'))\r\n\t\t\t\t.build()._postObj.filter), '{\"and\":[{\"gt\":{\"datapoint.at\":\"2015-10-16T10:39:05.000Z\"}},{\"lt\":{\"datapoint.at\":\"2015-10-16T10:39:06.000Z\"}}]}');\r\n\t\t});\r\n\t\tit('withDatastream and withDeviceId', function () {\r\n\t\t\tassert.strictEqual(JSON.stringify(ogapi.datapointsSearchBuilder()\r\n\t\t\t\t.withDeviceId('myDevice')\r\n\t\t\t\t.withDatastream('myDatastream')\r\n\t\t\t\t.build()._postObj.filter), '{\"and\":[{\"eq\":{\"datapoint.device\":\"myDevice\"}},{\"eq\":{\"datapoint.datastream\":\"myDatastream\"}}]}');\r\n\t\t});\r\n\t\tit('Throw error if set a custom filter and create fluent filter', function () {\r\n\t\t\tassert.throws(function () {\r\n\t\t\t\togapi.datapointsSearchBuilder()\r\n\t\t\t\t\t.withDeviceId('myDevice')\r\n\t\t\t\t\t.filter({ and: [] })\r\n\t\t\t\t\t.build();\r\n\t\t\t}, 'Incompatible filters. You only can create a filter using fluent mode [betweenDates, addTag, withDatastreamId, withDeviceId] methods or custom filter [filter] method');\r\n\t\t});\r\n\t});\r\n\r\n\tdescribe('Setting bad parameters creating fluent filter', function () {\r\n\t\tit('not deviceId string parameter', function () {\r\n\t\t\tassert.throws(function () {\r\n\t\t\t\togapi.datapointsSearchBuilder()\r\n\t\t\t\t\t.withDeviceId(123)\r\n\t\t\t\t\t.build();\r\n\t\t\t}, 'Parameter deviceId must be a string');\r\n\t\t});\r\n\t\tit('not datastreamId string parameter', function () {\r\n\t\t\tassert.throws(function () {\r\n\t\t\t\togapi.datapointsSearchBuilder()\r\n\t\t\t\t\t.withDatastream(123)\r\n\t\t\t\t\t.build();\r\n\t\t\t}, 'Parameter datastreamId must be a string');\r\n\r\n\t\t});\r\n\t\tit('not feedId string parameter', function () {\r\n\t\t\tassert.throws(function () {\r\n\t\t\t\togapi.datapointsSearchBuilder()\r\n\t\t\t\t\t.withFeed(123)\r\n\t\t\t\t\t.build();\r\n\t\t\t}, 'Parameter feedId must be a string');\r\n\t\t});\r\n\t\tit('not fromDate date parameter', function () {\r\n\t\t\tassert.throws(function () {\r\n\t\t\t\togapi.datapointsSearchBuilder()\r\n\t\t\t\t\t.betweenDates(123)\r\n\t\t\t\t\t.build();\r\n\t\t\t}, 'Parameter fromDate must be a Date');\r\n\t\t});\r\n\t\tit('not toDate date parameter', function () {\r\n\t\t\tassert.throws(function () {\r\n\t\t\t\togapi.datapointsSearchBuilder()\r\n\t\t\t\t\t.betweenDates(new Date(), 123)\r\n\t\t\t\t\t.build();\r\n\t\t\t}, 'Parameter toDate must be a Date');\r\n\t\t});\r\n\t});\r\n\r\n\tit('Check urls:', function () {\r\n\t\tassert.strictEqual(ogapi.datapointsSearchBuilder()\r\n\t\t\t.withDeviceId('myDevice')\r\n\t\t\t.build()._resource, 'search/iot/datapoints');\r\n\t});\r\n});",
@@ -61429,7 +61457,7 @@
61429
61457
  "lineNumber": 1
61430
61458
  },
61431
61459
  {
61432
- "__docId__": 2378,
61460
+ "__docId__": 2379,
61433
61461
  "kind": "testDescribe",
61434
61462
  "name": "describe72",
61435
61463
  "testId": 72,
@@ -61451,7 +61479,7 @@
61451
61479
  ]
61452
61480
  },
61453
61481
  {
61454
- "__docId__": 2379,
61482
+ "__docId__": 2380,
61455
61483
  "kind": "testIt",
61456
61484
  "name": "it73",
61457
61485
  "testId": 73,
@@ -61464,7 +61492,7 @@
61464
61492
  "lineNumber": 5
61465
61493
  },
61466
61494
  {
61467
- "__docId__": 2380,
61495
+ "__docId__": 2381,
61468
61496
  "kind": "testDescribe",
61469
61497
  "name": "describe74",
61470
61498
  "testId": 74,
@@ -61477,7 +61505,7 @@
61477
61505
  "lineNumber": 10
61478
61506
  },
61479
61507
  {
61480
- "__docId__": 2381,
61508
+ "__docId__": 2382,
61481
61509
  "kind": "testIt",
61482
61510
  "name": "it75",
61483
61511
  "testId": 75,
@@ -61490,7 +61518,7 @@
61490
61518
  "lineNumber": 11
61491
61519
  },
61492
61520
  {
61493
- "__docId__": 2382,
61521
+ "__docId__": 2383,
61494
61522
  "kind": "testIt",
61495
61523
  "name": "it76",
61496
61524
  "testId": 76,
@@ -61503,7 +61531,7 @@
61503
61531
  "lineNumber": 16
61504
61532
  },
61505
61533
  {
61506
- "__docId__": 2383,
61534
+ "__docId__": 2384,
61507
61535
  "kind": "testIt",
61508
61536
  "name": "it77",
61509
61537
  "testId": 77,
@@ -61516,7 +61544,7 @@
61516
61544
  "lineNumber": 21
61517
61545
  },
61518
61546
  {
61519
- "__docId__": 2384,
61547
+ "__docId__": 2385,
61520
61548
  "kind": "testIt",
61521
61549
  "name": "it78",
61522
61550
  "testId": 78,
@@ -61529,7 +61557,7 @@
61529
61557
  "lineNumber": 26
61530
61558
  },
61531
61559
  {
61532
- "__docId__": 2385,
61560
+ "__docId__": 2386,
61533
61561
  "kind": "testIt",
61534
61562
  "name": "it79",
61535
61563
  "testId": 79,
@@ -61542,7 +61570,7 @@
61542
61570
  "lineNumber": 31
61543
61571
  },
61544
61572
  {
61545
- "__docId__": 2386,
61573
+ "__docId__": 2387,
61546
61574
  "kind": "testIt",
61547
61575
  "name": "it80",
61548
61576
  "testId": 80,
@@ -61555,7 +61583,7 @@
61555
61583
  "lineNumber": 36
61556
61584
  },
61557
61585
  {
61558
- "__docId__": 2387,
61586
+ "__docId__": 2388,
61559
61587
  "kind": "testIt",
61560
61588
  "name": "it81",
61561
61589
  "testId": 81,
@@ -61568,7 +61596,7 @@
61568
61596
  "lineNumber": 42
61569
61597
  },
61570
61598
  {
61571
- "__docId__": 2388,
61599
+ "__docId__": 2389,
61572
61600
  "kind": "testDescribe",
61573
61601
  "name": "describe82",
61574
61602
  "testId": 82,
@@ -61581,7 +61609,7 @@
61581
61609
  "lineNumber": 52
61582
61610
  },
61583
61611
  {
61584
- "__docId__": 2389,
61612
+ "__docId__": 2390,
61585
61613
  "kind": "testIt",
61586
61614
  "name": "it83",
61587
61615
  "testId": 83,
@@ -61594,7 +61622,7 @@
61594
61622
  "lineNumber": 53
61595
61623
  },
61596
61624
  {
61597
- "__docId__": 2390,
61625
+ "__docId__": 2391,
61598
61626
  "kind": "testIt",
61599
61627
  "name": "it84",
61600
61628
  "testId": 84,
@@ -61607,7 +61635,7 @@
61607
61635
  "lineNumber": 60
61608
61636
  },
61609
61637
  {
61610
- "__docId__": 2391,
61638
+ "__docId__": 2392,
61611
61639
  "kind": "testIt",
61612
61640
  "name": "it85",
61613
61641
  "testId": 85,
@@ -61620,7 +61648,7 @@
61620
61648
  "lineNumber": 68
61621
61649
  },
61622
61650
  {
61623
- "__docId__": 2392,
61651
+ "__docId__": 2393,
61624
61652
  "kind": "testIt",
61625
61653
  "name": "it86",
61626
61654
  "testId": 86,
@@ -61633,7 +61661,7 @@
61633
61661
  "lineNumber": 75
61634
61662
  },
61635
61663
  {
61636
- "__docId__": 2393,
61664
+ "__docId__": 2394,
61637
61665
  "kind": "testIt",
61638
61666
  "name": "it87",
61639
61667
  "testId": 87,
@@ -61646,7 +61674,7 @@
61646
61674
  "lineNumber": 82
61647
61675
  },
61648
61676
  {
61649
- "__docId__": 2394,
61677
+ "__docId__": 2395,
61650
61678
  "kind": "testIt",
61651
61679
  "name": "it88",
61652
61680
  "testId": 88,
@@ -61659,7 +61687,7 @@
61659
61687
  "lineNumber": 91
61660
61688
  },
61661
61689
  {
61662
- "__docId__": 2395,
61690
+ "__docId__": 2396,
61663
61691
  "kind": "testFile",
61664
61692
  "name": "client/searching/module.searching.spec.js",
61665
61693
  "content": "define(function () {\r\n\tmocha.setup('bdd');\r\n\t/** @test {InternalOpenGateAPI} */\r\n\tdescribe('Check if all searching modules exists:', function () {\r\n\t\t/** @test {InternalOpenGateAPI#newQuickSearch} */\r\n\t\tit('Exist newQuickSearch function', function () {\r\n\t\t\tassert.isFunction(ogapi.newQuickSearch, 'Module newQuickSearch is not loaded');\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#rawSearchBuilder} */\r\n\t\tit('Exist rawSearchBuilder function', function () {\r\n\t\t\tassert.isFunction(ogapi.rawSearchBuilder, 'Module rawSearchBuilder is not loaded');\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#devicesSearchBuilder} */\r\n\t\tit('Exist Builder devicesSearchBuilder function', function () {\r\n\t\t\tassert.isFunction(ogapi.devicesSearchBuilder, 'Builder devicesSearchBuilder is not loaded');\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#subscriptionsSearchBuilder} */\r\n\t\tit('Exist Builder subscriptionsSearchBuilder function', function () {\r\n\t\t\tassert.isFunction(ogapi.subscriptionsSearchBuilder, 'Builder subscriptionsSearchBuilder is not loaded');\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#subscribersSearchBuilder} */\r\n\t\tit('Exist Builder subscribersSearchBuilder function', function () {\r\n\t\t\tassert.isFunction(ogapi.subscribersSearchBuilder, 'Builder subscribersSearchBuilder is not loaded');\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#communicationsModulesSearchBuilder} */\r\n\t\tit('Exist Builder communicationsModulesSearchBuilder function', function () {\r\n\t\t\tassert.isFunction(ogapi.communicationsModulesSearchBuilder, 'Builder communicationsModulesSearchBuilder is not loaded');\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#operationsSearchBuilder} */\r\n\t\tit('Exist Builder operationsSearchBuilder function', function () {\r\n\t\t\tassert.isFunction(ogapi.operationsSearchBuilder, 'Builder operationsSearchBuilder is not loaded');\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#executionsSearchBuilder} */\r\n\t\tit('Exist Builder executionsSearchBuilder function', function () {\r\n\t\t\tassert.isFunction(ogapi.executionsSearchBuilder, 'Builder executionsSearchBuilder is not loaded');\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#alarmsSearchBuilder} */\r\n\t\tit('Exist Builder alarmsSearchBuilder function', function () {\r\n\t\t\tassert.isFunction(ogapi.alarmsSearchBuilder, 'Builder alarmsSearchBuilder is not loaded');\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#bundlesSearchBuilder} */\r\n\t\tit('Exist Builder bundlesSearchBuilder function', function () {\r\n\t\t\tassert.isFunction(ogapi.bundlesSearchBuilder, 'Builder bundlesSearchBuilder is not loaded');\r\n\t\t});\r\n\t});\r\n});\r\n\r\n\r\n",
@@ -61670,7 +61698,7 @@
61670
61698
  "lineNumber": 1
61671
61699
  },
61672
61700
  {
61673
- "__docId__": 2396,
61701
+ "__docId__": 2397,
61674
61702
  "kind": "testDescribe",
61675
61703
  "name": "describe89",
61676
61704
  "testId": 89,
@@ -61692,7 +61720,7 @@
61692
61720
  ]
61693
61721
  },
61694
61722
  {
61695
- "__docId__": 2397,
61723
+ "__docId__": 2398,
61696
61724
  "kind": "testIt",
61697
61725
  "name": "it90",
61698
61726
  "testId": 90,
@@ -61714,7 +61742,7 @@
61714
61742
  ]
61715
61743
  },
61716
61744
  {
61717
- "__docId__": 2398,
61745
+ "__docId__": 2399,
61718
61746
  "kind": "testIt",
61719
61747
  "name": "it91",
61720
61748
  "testId": 91,
@@ -61736,7 +61764,7 @@
61736
61764
  ]
61737
61765
  },
61738
61766
  {
61739
- "__docId__": 2399,
61767
+ "__docId__": 2400,
61740
61768
  "kind": "testIt",
61741
61769
  "name": "it92",
61742
61770
  "testId": 92,
@@ -61758,7 +61786,7 @@
61758
61786
  ]
61759
61787
  },
61760
61788
  {
61761
- "__docId__": 2400,
61789
+ "__docId__": 2401,
61762
61790
  "kind": "testIt",
61763
61791
  "name": "it93",
61764
61792
  "testId": 93,
@@ -61780,7 +61808,7 @@
61780
61808
  ]
61781
61809
  },
61782
61810
  {
61783
- "__docId__": 2401,
61811
+ "__docId__": 2402,
61784
61812
  "kind": "testIt",
61785
61813
  "name": "it94",
61786
61814
  "testId": 94,
@@ -61802,7 +61830,7 @@
61802
61830
  ]
61803
61831
  },
61804
61832
  {
61805
- "__docId__": 2402,
61833
+ "__docId__": 2403,
61806
61834
  "kind": "testIt",
61807
61835
  "name": "it95",
61808
61836
  "testId": 95,
@@ -61824,7 +61852,7 @@
61824
61852
  ]
61825
61853
  },
61826
61854
  {
61827
- "__docId__": 2403,
61855
+ "__docId__": 2404,
61828
61856
  "kind": "testIt",
61829
61857
  "name": "it96",
61830
61858
  "testId": 96,
@@ -61846,7 +61874,7 @@
61846
61874
  ]
61847
61875
  },
61848
61876
  {
61849
- "__docId__": 2404,
61877
+ "__docId__": 2405,
61850
61878
  "kind": "testIt",
61851
61879
  "name": "it97",
61852
61880
  "testId": 97,
@@ -61868,7 +61896,7 @@
61868
61896
  ]
61869
61897
  },
61870
61898
  {
61871
- "__docId__": 2405,
61899
+ "__docId__": 2406,
61872
61900
  "kind": "testIt",
61873
61901
  "name": "it98",
61874
61902
  "testId": 98,
@@ -61890,7 +61918,7 @@
61890
61918
  ]
61891
61919
  },
61892
61920
  {
61893
- "__docId__": 2406,
61921
+ "__docId__": 2407,
61894
61922
  "kind": "testIt",
61895
61923
  "name": "it99",
61896
61924
  "testId": 99,
@@ -61912,7 +61940,7 @@
61912
61940
  ]
61913
61941
  },
61914
61942
  {
61915
- "__docId__": 2407,
61943
+ "__docId__": 2408,
61916
61944
  "kind": "testFile",
61917
61945
  "name": "client/searching/quicksearch.spec.js",
61918
61946
  "content": "define(function () {\r\n\tmocha.setup('bdd'); \r\n\t/** @test {InternalOpenGateAPI} */\r\n\tdescribe('Check funcionality newQuickSearch module:', function(){\r\n\t\t/** @test {InternalOpenGateAPI#newQuickSearch} */\r\n\t\tit('Create new QuickSearch object', function(){\r\n\t\t\tassert.isDefined(ogapi.newQuickSearch());\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#newQuickSearch} */\r\n\t\tit('Set string parameter and get filter', function(){\r\n\t\t\tassert.isDefined(ogapi.newQuickSearch(\"myDevice\")._filter());\r\n\t\t});\r\n\t\t/** @test {InternalOpenGateAPI#newQuickSearch} */\r\n\t\tit('Set string parameter and check filter', function(){\r\n\t\t\tvar quickSearch = ogapi.newQuickSearch('myDevice');\r\n\t\t\tvar filterContainer = quickSearch._filter();\t\t\r\n\t\t\tfor (var i = 0; i < filterContainer.filter.or.length; i++) {\r\n\t\t\t\tvar likeItem = filterContainer.filter.or[i]; \r\n\t\t\t\tfor(var prop in likeItem.like){ \r\n\t\t\t\t\tassert.include(quickSearch._defaultParameters(), prop); \r\n\t\t\t\t\tassert.strictEqual(likeItem.like[prop], 'myDevice');\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t});\t\r\n\t});\r\n});\r\n",
@@ -61923,7 +61951,7 @@
61923
61951
  "lineNumber": 1
61924
61952
  },
61925
61953
  {
61926
- "__docId__": 2408,
61954
+ "__docId__": 2409,
61927
61955
  "kind": "testDescribe",
61928
61956
  "name": "describe100",
61929
61957
  "testId": 100,
@@ -61945,7 +61973,7 @@
61945
61973
  ]
61946
61974
  },
61947
61975
  {
61948
- "__docId__": 2409,
61976
+ "__docId__": 2410,
61949
61977
  "kind": "testIt",
61950
61978
  "name": "it101",
61951
61979
  "testId": 101,
@@ -61967,7 +61995,7 @@
61967
61995
  ]
61968
61996
  },
61969
61997
  {
61970
- "__docId__": 2410,
61998
+ "__docId__": 2411,
61971
61999
  "kind": "testIt",
61972
62000
  "name": "it102",
61973
62001
  "testId": 102,
@@ -61989,7 +62017,7 @@
61989
62017
  ]
61990
62018
  },
61991
62019
  {
61992
- "__docId__": 2411,
62020
+ "__docId__": 2412,
61993
62021
  "kind": "testIt",
61994
62022
  "name": "it103",
61995
62023
  "testId": 103,
@@ -62011,7 +62039,7 @@
62011
62039
  ]
62012
62040
  },
62013
62041
  {
62014
- "__docId__": 2412,
62042
+ "__docId__": 2413,
62015
62043
  "kind": "testFile",
62016
62044
  "name": "client/searching/rawsearch.spec.js",
62017
62045
  "content": "define(function () {\r\n\tmocha.setup('bdd'); \r\n\t/** @test {InternalOpenGateAPI#rawSearchBuilder} */\r\n\tdescribe('Check funcionality newRawSearch module:', function(){\r\n\t\tit('Create new RawSearch object', function(){\r\n\t\t\tassert.isDefined(ogapi.rawSearchBuilder());\r\n\t\t});\r\n\t\t\r\n\t\t/** @test {InternalOpenGateAPI#rawSearchBuilder} */\r\n\t\tit('Set string parameter and get filter', function(){\r\n\t\t\tvar filter = { \"filter\": { \"and\": [{ \"like\": { \"entityId\": \"0000000000000001\" } }] } };\r\n\t\t\tassert.isDefined(ogapi.rawSearchBuilder().filter(filter).from(\"\").build()._filter());\r\n\t\t});\r\n\r\n\t\t/** @test {InternalOpenGateAPI#rawSearchBuilder} */\r\n\t\tit('Set string parameter and check filter', function(){\r\n\t\t\tvar filter = {\"filter\":{\"and\": [{\"like\": {\"entityId\": \"0000000000000001\"}}]}};\r\n\t\t\tvar rawSearch = ogapi.rawSearchBuilder().from(\"\").filter(filter).build();\r\n\t\t\tvar filterContainer = rawSearch._filter();\r\n\t\t\tassert.strictEqual(filterContainer.filter, filter);\r\n\t\t});\r\n\r\n\t\t/** @test {InternalOpenGateAPI#rawSearchBuilder} */\r\n\t\tit('Set custom url and check', function(){\r\n\t\t\tvar rawSearch = ogapi.rawSearchBuilder().from(\"/test/resource\").build();\r\n\t\t\tvar resource = rawSearch._resource;\r\n\t\t\tassert.strictEqual(resource, \"search/test/resource\");\r\n\t\t});\r\n\r\n\t\t/** @test {InternalOpenGateAPI#rawSearchBuilder} */\r\n\t\tit('Url is mandatory field', function(){\r\n\t\t\tassert.throws(function(){ogapi.rawSearchBuilder().from();},\"Url parameter is mandatory and must be a string\");\r\n\t\t\t\r\n\t\t});\r\n\r\n\t\t/** @test {InternalOpenGateAPI#rawSearchBuilder} */\r\n\t\tit('Url is mandatory field on build', function(){\r\n\t\t\tassert.throws(function(){ogapi.rawSearchBuilder().build();},\"Url parameter is mandatory and must be a string\");\r\n\t\t\t\r\n\t\t});\r\n /** @test {InternalOpenGateAPI#rawSearchBuilder} */\r\n it('Set string parameter, check filter and limit', function(){\r\n var filter = {};\r\n var limit = {\"start\":1, \"size\":1000};\r\n var rawSearch = ogapi.rawSearchBuilder().from(\"/catalog/hardwares\").filter(filter).limit(limit).build();\r\n var filterContainer = rawSearch._filter();\r\n\t\t\tassert.strictEqual(filterContainer.filter, filter);\r\n\t\t\tassert.strictEqual(filterContainer.limit, limit);\r\n });\r\n\r\n\t});\r\n});",
@@ -62022,7 +62050,7 @@
62022
62050
  "lineNumber": 1
62023
62051
  },
62024
62052
  {
62025
- "__docId__": 2413,
62053
+ "__docId__": 2414,
62026
62054
  "kind": "testDescribe",
62027
62055
  "name": "describe104",
62028
62056
  "testId": 104,
@@ -62044,7 +62072,7 @@
62044
62072
  ]
62045
62073
  },
62046
62074
  {
62047
- "__docId__": 2414,
62075
+ "__docId__": 2415,
62048
62076
  "kind": "testIt",
62049
62077
  "name": "it105",
62050
62078
  "testId": 105,
@@ -62057,7 +62085,7 @@
62057
62085
  "lineNumber": 5
62058
62086
  },
62059
62087
  {
62060
- "__docId__": 2415,
62088
+ "__docId__": 2416,
62061
62089
  "kind": "testIt",
62062
62090
  "name": "it106",
62063
62091
  "testId": 106,
@@ -62079,7 +62107,7 @@
62079
62107
  ]
62080
62108
  },
62081
62109
  {
62082
- "__docId__": 2416,
62110
+ "__docId__": 2417,
62083
62111
  "kind": "testIt",
62084
62112
  "name": "it107",
62085
62113
  "testId": 107,
@@ -62101,7 +62129,7 @@
62101
62129
  ]
62102
62130
  },
62103
62131
  {
62104
- "__docId__": 2417,
62132
+ "__docId__": 2418,
62105
62133
  "kind": "testIt",
62106
62134
  "name": "it108",
62107
62135
  "testId": 108,
@@ -62123,7 +62151,7 @@
62123
62151
  ]
62124
62152
  },
62125
62153
  {
62126
- "__docId__": 2418,
62154
+ "__docId__": 2419,
62127
62155
  "kind": "testIt",
62128
62156
  "name": "it109",
62129
62157
  "testId": 109,
@@ -62145,7 +62173,7 @@
62145
62173
  ]
62146
62174
  },
62147
62175
  {
62148
- "__docId__": 2419,
62176
+ "__docId__": 2420,
62149
62177
  "kind": "testIt",
62150
62178
  "name": "it110",
62151
62179
  "testId": 110,
@@ -62167,7 +62195,7 @@
62167
62195
  ]
62168
62196
  },
62169
62197
  {
62170
- "__docId__": 2420,
62198
+ "__docId__": 2421,
62171
62199
  "kind": "testIt",
62172
62200
  "name": "it111",
62173
62201
  "testId": 111,
@@ -62189,7 +62217,7 @@
62189
62217
  ]
62190
62218
  },
62191
62219
  {
62192
- "__docId__": 2421,
62220
+ "__docId__": 2422,
62193
62221
  "kind": "testFile",
62194
62222
  "name": "client/searching/search.spec.js",
62195
62223
  "content": "define(function () {\r\n\tmocha.setup('bdd');\r\n\t/** \r\n\t\t@test {InternalOpenGateAPI#devicesSearchBuilder} \r\n\t\t@test {InternalOpenGateAPI#subscribersSearchBuilder} \t\t\r\n\t\t@test {InternalOpenGateAPI#subscriptionsSearchBuilder} \r\n\t\t@test {InternalOpenGateAPI#communicationsModulesSearchBuilder}\t\t\r\n\t\t@test {InternalOpenGateAPI#executionsSearchBuilder} \r\n\t\t@test {InternalOpenGateAPI#operationsSearchBuilder} \r\n\t\t@test {InternalOpenGateAPI#alarmsSearchBuilder} \r\n\t\t@test {InternalOpenGateAPI#bundlesSearchBuilder} \r\n\t*/\r\n\tdescribe('Check funcionality newSearchBuilder module:', function () {\r\n\r\n\t\t/** @test {SearchBuilder} */\r\n\t\tdescribe('Check setting timeout', function (done) {\r\n\t\t\t/** @test {SearchBuilder#withTimeout} */\r\n\t\t\tit('Throw error on exceeded timeout', function () {\r\n\t\t\t\togapi.devicesSearchBuilder().onProvisioned().addSortBy('prov.customId', 'ASCENDING').summary().withTimeout(10).build().execute().catch(function (err) {\r\n\t\t\t\t\tassert.equal(err.message, \"Timeout exceeded\");\r\n\t\t\t\t\tdone();\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t/** @test {SearchBuilder#withTimeout} */\r\n\t\t\tit('It is all ok when not exceeded timeout', function () {\r\n\t\t\t\togapi.devicesSearchBuilder().onProvisioned().addSortBy('prov.customId', 'ASCENDING').summary().withTimeout(10000).build().execute().then(function (response, statusCode) {\r\n\t\t\t\t\tassert.equal(statusCode, 200);\r\n\t\t\t\t\tdone();\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t/** @test {SearchBuilder#withTimeout} */\r\n\t\t\tit('Check default timeout value when it is no setted', function () {\r\n\t\t\t\tassert.strictEqual(ogapi.devicesSearchBuilder().onProvisioned().build()._timeout, 5000);\r\n\t\t\t});\r\n\t\t\t/** @test {SearchBuilder#withTimeout} */\r\n\t\t\tit('withTimeout parameter must be a number', function () {\r\n\t\t\t\tassert.throws(function () { ogapi.devicesSearchBuilder().withTimeout(\"a\"); }, \"Parameter ms must be a number\");\r\n\t\t\t});\r\n\t\t});\r\n\t\t/** @test {SearchBuilder}*/\r\n\t\tdescribe('Check on entity searching:', function () {\r\n\t\t\t/** @test {SearchBuilder#filter}*/\r\n\t\t\tdescribe('with empty filter:', function () {\r\n\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#filter}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#devicesSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\tassert.doesNotThrow(function () { ogapi.devicesSearchBuilder().filter().onProvisioned().build(); });\r\n\t\t\t\t});\r\n\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#filter}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#subscriptionsSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\tassert.doesNotThrow(function () { ogapi.subscriptionsSearchBuilder().filter().onProvisioned().build(); });\r\n\t\t\t\t});\r\n\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#filter}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#subscribersSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\tassert.doesNotThrow(function () { ogapi.subscribersSearchBuilder().filter().onProvisioned().build(); });\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#filter}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#communicationsModulesSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\tassert.doesNotThrow(function () { ogapi.communicationsModulesSearchBuilder().filter().onProvisioned().build(); });\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\tdescribe('On sort:', function () {\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#addSortAscendingBy}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#devicesSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('Ascending sort', function () {\r\n\t\t\t\t\tassert.deepEqual(ogapi.devicesSearchBuilder().onProvisioned().addSortAscendingBy('param').build()._postObj.sort, { parameters: [{ name: 'param', type: 'ASCENDING' }] });\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#addSortDescendingBy}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#devicesSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('Ascending sort', function () {\r\n\t\t\t\t\tassert.deepEqual(ogapi.devicesSearchBuilder().onProvisioned().addSortDescendingBy('param').build()._postObj.sort, { parameters: [{ name: 'param', type: 'DESCENDING' }] });\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#addSortBy}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#devicesSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('Generic sort', function () {\r\n\t\t\t\t\tassert.deepEqual(ogapi.devicesSearchBuilder().onProvisioned().addSortBy('param', 'sorting').build()._postObj.sort, { parameters: [{ name: 'param', type: 'sorting' }] });\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\tdescribe('with empty filter:', function () {\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#filter}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#devicesSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\tassert.doesNotThrow(function () { ogapi.devicesSearchBuilder().filter().onProvisioned().build(); });\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#filter}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#subscriptionsSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\tassert.doesNotThrow(function () { ogapi.subscriptionsSearchBuilder().filter().onProvisioned().build(); });\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#filter}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#subscribersSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\tassert.doesNotThrow(function () { ogapi.subscribersSearchBuilder().filter().onProvisioned().build(); });\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t\t@test {SearchBuilder#filter}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t\t@test {InternalOpenGateAPI#communicationsModulesSearchBuilder}\r\n\t\t\t\t*/\r\n\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\tassert.doesNotThrow(function () { ogapi.communicationsModulesSearchBuilder().filter().onProvisioned().build(); });\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t/** @test {SearchBuilder#build} \r\n\t\t\t\t@test {SearchBuilder#filter}\r\n\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t@test {InternalOpenGateAPI#devicesSearchBuilder}\r\n\t\t\t*/\r\n\t\t\tdescribe('using filterBuilder:', function () {\r\n\t\t\t\tit('simple filter', function () {\r\n\t\t\t\t\tvar filterExpected = JSON.parse(\"{\\\"and\\\":[{\\\"like\\\":{\\\"hello\\\":\\\"world\\\"}}]}\");\r\n\t\t\t\t\tassert.deepEqual(ogapi.devicesSearchBuilder().\r\n\t\t\t\t\t\tonProvisioned().\r\n\t\t\t\t\t\tfilter(\r\n\t\t\t\t\t\t\togapi.newFilterBuilder().\r\n\t\t\t\t\t\t\t\tand(ogapi.EX.like(\"hello\", \"world\")))\r\n\t\t\t\t\t\t.build()._postObj.filter, filterExpected);\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t/** @test {SearchBuilder#limit}*/\r\n\t\t\tdescribe('On limit:', function () {\r\n\t\t\t\tit('undefined size parameter', function () {\r\n\t\t\t\t\tassert.throws(function () { ogapi.devicesSearchBuilder().limit(); }, 'size parameter must be a number');\r\n\t\t\t\t});\r\n\t\t\t\tit('size parameter not a number', function () {\r\n\t\t\t\t\tassert.throws(function () { ogapi.devicesSearchBuilder().limit('5'); }, 'size parameter must be a number');\r\n\t\t\t\t});\r\n\t\t\t\tit('well build with only size', function () {\r\n\t\t\t\t\tassert.deepEqual(ogapi.devicesSearchBuilder().limit(5).onProvisioned().build()._postObj.limit, { size: 5, start: 1 });\r\n\t\t\t\t});\r\n\t\t\t\tit('well build with size and offset', function () {\r\n\t\t\t\t\tassert.deepEqual(ogapi.devicesSearchBuilder().limit(5, 15).onProvisioned().build()._postObj.limit, { size: 5, start: 15 });\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t\t/** @test {EntitySearchBuilder#onProvisioned}*/\r\n\t\t\tdescribe('On provisioned data:', function () {\r\n\t\t\t\t/** @test {DevicesSearchBuilder#onProvisioned}*/\r\n\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.devicesSearchBuilder().onProvisioned().build()._resource, 'search/entities/devices/provision');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SubscriptionsSearchBuilder#onProvisioned}*/\r\n\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.subscriptionsSearchBuilder().onProvisioned().build()._resource, 'search/entities/subscriptions/provision');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SubscribersSearchBuilder#onProvisioned}*/\r\n\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.subscribersSearchBuilder().onProvisioned().build()._resource, 'search/entities/subscribers/provision');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {CommunicationsModulesSearchBuilder#onProvisioned}*/\r\n\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.communicationsModulesSearchBuilder().onProvisioned().build()._resource, 'search/entities/communicationsModules/provision');\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t/** @test {EntitySearchBuilder#onCollected}*/\r\n\t\t\tdescribe('On collected data:', function () {\r\n\t\t\t\t/** @test {DevicesSearchBuilder#onCollected}*/\r\n\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.devicesSearchBuilder().onCollected().build()._resource, 'search/entities/devices/collection');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SubscriptionsSearchBuilder#onCollected}*/\r\n\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.subscriptionsSearchBuilder().onCollected().build()._resource, 'search/entities/subscriptions/collection');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SubscribersSearchBuilder#onCollected}*/\r\n\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.subscribersSearchBuilder().onCollected().build()._resource, 'search/entities/subscribers/collection');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {CommunicationsModulesSearchBuilder#onCollected}*/\r\n\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.communicationsModulesSearchBuilder().onCollected().build()._resource, 'search/entities/communicationsModules/collection');\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t/** @test {SearchBuilder#build}*/\r\n\t\t\tdescribe('On collected and provisioned data:', function () {\r\n\t\t\t\t/** @test {DevicesSearchBuilder#build}*/\r\n\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.devicesSearchBuilder().onCollected().onProvisioned().build()._resource, 'search/entities/devices');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SubscriptionsSearchBuilder#build}*/\r\n\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.subscriptionsSearchBuilder().onCollected().onProvisioned().build()._resource, 'search/entities/subscriptions');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {SubscribersSearchBuilder#build}*/\r\n\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.subscribersSearchBuilder().onCollected().onProvisioned().build()._resource, 'search/entities/subscribers');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {CommunicationsModulesSearchBuilder#build}*/\r\n\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.communicationsModulesSearchBuilder().onCollected().onProvisioned().build()._resource, 'search/entities/communicationsModules');\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t/** @test {SearchBuilder#summary}*/\r\n\t\t\tdescribe('Summary data:', function () {\r\n\t\t\t\tdescribe('without source data:', function () {\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {DevicesSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {DevicesSearchBuilder#build}\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.throws(function () { ogapi.devicesSearchBuilder().summary().build(); }, 'Must select one at least: [\"onProvisioned\",\"onCollected\"]');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {SubscriptionsSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {SubscriptionsSearchBuilder#build}\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.throws(function () { ogapi.subscriptionsSearchBuilder().summary().build(); }, 'Must select one at least: [\"onProvisioned\",\"onCollected\"]');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {SubscribersSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {SubscribersSearchBuilder#build}\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.throws(function () { ogapi.subscribersSearchBuilder().summary().build(); }, 'Must select one at least: [\"onProvisioned\",\"onCollected\"]');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#build}\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.throws(function () { ogapi.communicationsModulesSearchBuilder().summary().build(); }, 'Must select one at least: [\"onProvisioned\",\"onCollected\"]');\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\t/** \r\n\t\t\t\t\t@test {SearchBuilder#summary}\r\n\t\t\t\t\t@test {EntitySearchBuilder#onProvisioned}\r\n\t\t\t\t*/\r\n\t\t\t\tdescribe('On provisioned data:', function () {\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {DevicesSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {DevicesSearchBuilder#onProvisioned}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.devicesSearchBuilder().onProvisioned().summary().build()._resource, 'search/entities/devices/provision/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {SubscriptionsSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {SubscriptionsSearchBuilder#onProvisioned}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.subscriptionsSearchBuilder().onProvisioned().summary().build()._resource, 'search/entities/subscriptions/provision/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {SubscribersSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {SubscribersSearchBuilder#onProvisioned}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.subscribersSearchBuilder().onProvisioned().summary().build()._resource, 'search/entities/subscribers/provision/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#onProvisioned}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.communicationsModulesSearchBuilder().onProvisioned().summary().build()._resource, 'search/entities/communicationsModules/provision/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\tdescribe('On collected data:', function () {\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {DevicesSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {DevicesSearchBuilder#onProvisioned}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.devicesSearchBuilder().onCollected().summary().build()._resource, 'search/entities/devices/collection/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {SubscriptionsSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {SubscriptionsSearchBuilder#onProvisioned}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.subscriptionsSearchBuilder().onCollected().summary().build()._resource, 'search/entities/subscriptions/collection/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {SubscribersSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {SubscribersSearchBuilder#onProvisioned}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.subscribersSearchBuilder().onCollected().summary().build()._resource, 'search/entities/subscribers/collection/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#onProvisioned}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.communicationsModulesSearchBuilder().onCollected().summary().build()._resource, 'search/entities/communicationsModules/collection/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\tdescribe('On collected and provisioned data', function () {\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {DevicesSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {DevicesSearchBuilder#build}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.devicesSearchBuilder().onCollected().onProvisioned().summary().build()._resource, 'search/entities/devices/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {SubscriptionsSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {SubscriptionsSearchBuilder#build}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.subscriptionsSearchBuilder().onCollected().onProvisioned().summary().build()._resource, 'search/entities/subscriptions/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {SubscribersSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {SubscribersSearchBuilder#build}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.subscribersSearchBuilder().onCollected().onProvisioned().summary().build()._resource, 'search/entities/subscribers/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** \r\n\t\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#summary}\r\n\t\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#build}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.communicationsModulesSearchBuilder().onCollected().onProvisioned().summary().build()._resource, 'search/entities/communicationsModules/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\r\n\t\t\t});\r\n\t\t\tdescribe('On without source data:', function () {\r\n\t\t\t\t/** \r\n\t\t\t\t\t@test {DevicesSearchBuilder#summary}\r\n\t\t\t\t\t@test {DevicesSearchBuilder#build}\r\n\t\t\t\t*/\r\n\t\t\t\tit('devicesSearchBuilder', function () {\r\n\t\t\t\t\tassert.throws(function () { ogapi.devicesSearchBuilder().build(); }, 'Must select one at least: [\"onProvisioned\",\"onCollected\"]');\r\n\t\t\t\t});\r\n\t\t\t\t/** \r\n\t\t\t\t\t@test {SubscriptionsSearchBuilder#summary}\r\n\t\t\t\t\t@test {SubscriptionsSearchBuilder#build}\r\n\t\t\t\t*/\r\n\t\t\t\tit('subscriptionsSearchBuilder', function () {\r\n\t\t\t\t\tassert.throws(function () { ogapi.subscriptionsSearchBuilder().build(); }, 'Must select one at least: [\"onProvisioned\",\"onCollected\"]');\r\n\t\t\t\t});\r\n\t\t\t\t/** \r\n\t\t\t\t\t@test {SubscribersSearchBuilder#summary}\r\n\t\t\t\t\t@test {SubscribersSearchBuilder#build}\r\n\t\t\t\t*/\r\n\t\t\t\tit('subscribersSearchBuilder', function () {\r\n\t\t\t\t\tassert.throws(function () { ogapi.subscribersSearchBuilder().build(); }, 'Must select one at least: [\"onProvisioned\",\"onCollected\"]');\r\n\t\t\t\t});\r\n\t\t\t\t/** \r\n\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#summary}\r\n\t\t\t\t\t@test {CommunicationsModulesSearchBuilder#build}\r\n\t\t\t\t*/\r\n\t\t\t\tit('communicationsModulesSearchBuilder', function () {\r\n\t\t\t\t\tassert.throws(function () { ogapi.communicationsModulesSearchBuilder().build(); }, 'Must select one at least: [\"onProvisioned\",\"onCollected\"]');\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tdescribe('Check on operation searching:', function () {\r\n\t\t\t/** \t\t\t\t\r\n\t\t\t\t@test {ExecutionsSearchBuilder#build}\r\n\t\t\t*/\r\n\t\t\tit('without source data', function () {\r\n\t\t\t\tassert.throws(function () { ogapi.executionsSearchBuilder().build(); }, 'Must select one at least: [\"onDevices\",\"onSubscribers\",\"onSubscriptions\",\"onCommunicationsModules\"]');\r\n\t\t\t});\r\n\t\t\t/** \t\t\t\t\r\n\t\t\t\t@test {ExecutionsSearchBuilder#build}\r\n\t\t\t*/\r\n\t\t\tit('single source data', function () {\r\n\t\t\t\tassert.doesNotThrow(function () { ogapi.executionsSearchBuilder().onDevices().build(); });\r\n\t\t\t});\r\n\t\t\t/** \t\t\t\t\r\n\t\t\t\t@test {ExecutionsSearchBuilder#build}\r\n\t\t\t*/\r\n\t\t\tit('multiple source data', function () {\r\n\t\t\t\tassert.throws(function () { ogapi.executionsSearchBuilder().onDevices().onSubscriptions().build(); }, 'Must select only one of this:[\"onDevices\",\"onSubscribers\",\"onSubscriptions\",\"onCommunicationsModules\"]');\r\n\t\t\t});\r\n\r\n\t\t\tdescribe('all kind source data:', function () {\r\n\t\t\t\t/** @test {ExecutionsSearchBuilder#onDevices}*/\r\n\t\t\t\tit('from devices', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.executionsSearchBuilder().onDevices().build()._resource, 'search/entities/devices/operations');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {ExecutionsSearchBuilder#onSubscriptions}*/\r\n\t\t\t\tit('from subscriptions', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.executionsSearchBuilder().onSubscriptions().build()._resource, 'search/entities/subscriptions/operations');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {ExecutionsSearchBuilder#onSubscribers}*/\r\n\t\t\t\tit('from subscribers', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.executionsSearchBuilder().onSubscribers().build()._resource, 'search/entities/subscribers/operations');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {ExecutionsSearchBuilder#onCommunicationsModules}*/\r\n\t\t\t\tit('from communicationsModules', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.executionsSearchBuilder().onCommunicationsModules().build()._resource, 'search/entities/communicationsModules/operations');\r\n\t\t\t\t});\r\n\t\t\t\tdescribe('summary:', function () {\r\n\t\t\t\t\t/** @test {ExecutionsSearchBuilder#summary}*/\r\n\t\t\t\t\tit('from devices', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.executionsSearchBuilder().onDevices().summary().build()._resource, 'search/entities/devices/operations/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** @test {ExecutionsSearchBuilder#summary}*/\r\n\t\t\t\t\tit('from subscriptions', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.executionsSearchBuilder().onSubscriptions().summary().build()._resource, 'search/entities/subscriptions/operations/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** @test {ExecutionsSearchBuilder#summary}*/\r\n\t\t\t\t\tit('from subscribers', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.executionsSearchBuilder().onSubscribers().summary().build()._resource, 'search/entities/subscribers/operations/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** @test {ExecutionsSearchBuilder#summary}*/\r\n\t\t\t\t\tit('from communicationsModules', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.executionsSearchBuilder().onCommunicationsModules().summary().build()._resource, 'search/entities/communicationsModules/operations/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t});\r\n\t\tdescribe('Check on alarm searching:', function () {\r\n\t\t\t/** @test {AlarmsSearchBuilder#build}*/\r\n\t\t\tit('without source data', function () {\r\n\t\t\t\tassert.throws(function () { ogapi.alarmsSearchBuilder().build(); }, 'Must select one at least: [\"onDevices\",\"onSubscribers\",\"onSubscriptions\",\"onCommunicationsModules\"]');\r\n\t\t\t});\r\n\t\t\t/** @test {AlarmsSearchBuilder#build}*/\r\n\t\t\tit('single source data', function () {\r\n\t\t\t\tassert.doesNotThrow(function () { ogapi.alarmsSearchBuilder().onDevices().build(); });\r\n\t\t\t});\r\n\t\t\t/** @test {AlarmsSearchBuilder#build}*/\r\n\t\t\tit('multiple source data', function () {\r\n\t\t\t\tassert.throws(function () { ogapi.alarmsSearchBuilder().onDevices().onSubscriptions().build(); }, 'Must select only one of this:[\"onDevices\",\"onSubscribers\",\"onSubscriptions\",\"onCommunicationsModules\"]');\r\n\t\t\t});\r\n\r\n\t\t\tdescribe('all kind source data:', function () {\r\n\t\t\t\t/** @test {AlarmsSearchBuilder#onDevices}*/\r\n\t\t\t\tit('from devices', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.alarmsSearchBuilder().onDevices().build()._resource, 'search/entities/devices/alarms');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {AlarmsSearchBuilder#onSubscriptions}*/\r\n\t\t\t\tit('from subscriptions', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.alarmsSearchBuilder().onSubscriptions().build()._resource, 'search/entities/subscriptions/alarms');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {AlarmsSearchBuilder#onSubscribers}*/\r\n\t\t\t\tit('from subscribers', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.alarmsSearchBuilder().onSubscribers().build()._resource, 'search/entities/subscribers/alarms');\r\n\t\t\t\t});\r\n\t\t\t\t/** @test {AlarmsSearchBuilder#onCommunicationsModules}*/\r\n\t\t\t\tit('from communicationsModules', function () {\r\n\t\t\t\t\tassert.strictEqual(ogapi.alarmsSearchBuilder().onCommunicationsModules().build()._resource, 'search/entities/communicationsModules/alarms');\r\n\t\t\t\t});\r\n\t\t\t\tdescribe('summary:', function () {\r\n\t\t\t\t\t/** @test {AlarmsSearchBuilder#summary}*/\r\n\t\t\t\t\tit('from devices', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.alarmsSearchBuilder().onDevices().summary().build()._resource, 'search/entities/devices/alarms/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** @test {AlarmsSearchBuilder#summary}*/\r\n\t\t\t\t\tit('from subscriptions', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.alarmsSearchBuilder().onSubscriptions().summary().build()._resource, 'search/entities/subscriptions/alarms/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** @test {AlarmsSearchBuilder#summary}*/\r\n\t\t\t\t\tit('from subscribers', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.alarmsSearchBuilder().onSubscribers().summary().build()._resource, 'search/entities/subscribers/alarms/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/** @test {AlarmsSearchBuilder#summary}*/\r\n\t\t\t\t\tit('from communicationsModules', function () {\r\n\t\t\t\t\t\tassert.strictEqual(ogapi.alarmsSearchBuilder().onCommunicationsModules().summary().build()._resource, 'search/entities/communicationsModules/alarms/summary');\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t});\r\n\t\tdescribe('Check on bundles searching:', function () {\r\n\t\t\t/** @test {BundlesSearchBuilder#build}*/\r\n\t\t\tit('bundlesSearchBuilder', function () {\r\n\t\t\t\tassert.strictEqual(ogapi.bundlesSearchBuilder().build()._resource, 'search/bundles');\r\n\t\t\t});\r\n\t\t\tdescribe('On Limit:', function () {\r\n\t\t\t\t/** @test {bundlesSearchBuilder#build} \r\n\t\t\t\t*/\r\n\t\t\t\tit('limit', function () {\r\n\t\t\t\t\tassert.deepEqual(ogapi.bundlesSearchBuilder().limit(5, 1).build()._postObj.limit, { size: 5, start: 1 });\r\n\t\t\t\t});\r\n\t\t\t\tit('simple filter', function () {\r\n\t\t\t\t\tvar filterExpected = JSON.parse(\"{\\\"and\\\":[{\\\"like\\\":{\\\"bundle.Name\\\":\\\"bundle_carlos\\\"}}]}\");\r\n\t\t\t\t\tassert.deepEqual(ogapi.bundlesSearchBuilder().filter(ogapi.newFilterBuilder().\r\n\t\t\t\t\t\tand(ogapi.EX.like(\"bundle.Name\", \"bundle_carlos\")))\r\n\t\t\t\t\t\t.build()._postObj.filter, filterExpected);\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t});\r\n\t});\r\n});",
@@ -62200,7 +62228,7 @@
62200
62228
  "lineNumber": 1
62201
62229
  },
62202
62230
  {
62203
- "__docId__": 2422,
62231
+ "__docId__": 2423,
62204
62232
  "kind": "testDescribe",
62205
62233
  "name": "describe112",
62206
62234
  "testId": 112,
@@ -62257,7 +62285,7 @@
62257
62285
  ]
62258
62286
  },
62259
62287
  {
62260
- "__docId__": 2423,
62288
+ "__docId__": 2424,
62261
62289
  "kind": "testDescribe",
62262
62290
  "name": "describe113",
62263
62291
  "testId": 113,
@@ -62279,7 +62307,7 @@
62279
62307
  ]
62280
62308
  },
62281
62309
  {
62282
- "__docId__": 2424,
62310
+ "__docId__": 2425,
62283
62311
  "kind": "testIt",
62284
62312
  "name": "it114",
62285
62313
  "testId": 114,
@@ -62301,7 +62329,7 @@
62301
62329
  ]
62302
62330
  },
62303
62331
  {
62304
- "__docId__": 2425,
62332
+ "__docId__": 2426,
62305
62333
  "kind": "testIt",
62306
62334
  "name": "it115",
62307
62335
  "testId": 115,
@@ -62323,7 +62351,7 @@
62323
62351
  ]
62324
62352
  },
62325
62353
  {
62326
- "__docId__": 2426,
62354
+ "__docId__": 2427,
62327
62355
  "kind": "testIt",
62328
62356
  "name": "it116",
62329
62357
  "testId": 116,
@@ -62345,7 +62373,7 @@
62345
62373
  ]
62346
62374
  },
62347
62375
  {
62348
- "__docId__": 2427,
62376
+ "__docId__": 2428,
62349
62377
  "kind": "testIt",
62350
62378
  "name": "it117",
62351
62379
  "testId": 117,
@@ -62367,7 +62395,7 @@
62367
62395
  ]
62368
62396
  },
62369
62397
  {
62370
- "__docId__": 2428,
62398
+ "__docId__": 2429,
62371
62399
  "kind": "testDescribe",
62372
62400
  "name": "describe118",
62373
62401
  "testId": 118,
@@ -62389,7 +62417,7 @@
62389
62417
  ]
62390
62418
  },
62391
62419
  {
62392
- "__docId__": 2429,
62420
+ "__docId__": 2430,
62393
62421
  "kind": "testDescribe",
62394
62422
  "name": "describe119",
62395
62423
  "testId": 119,
@@ -62411,7 +62439,7 @@
62411
62439
  ]
62412
62440
  },
62413
62441
  {
62414
- "__docId__": 2430,
62442
+ "__docId__": 2431,
62415
62443
  "kind": "testIt",
62416
62444
  "name": "it120",
62417
62445
  "testId": 120,
@@ -62448,7 +62476,7 @@
62448
62476
  ]
62449
62477
  },
62450
62478
  {
62451
- "__docId__": 2431,
62479
+ "__docId__": 2432,
62452
62480
  "kind": "testIt",
62453
62481
  "name": "it121",
62454
62482
  "testId": 121,
@@ -62485,7 +62513,7 @@
62485
62513
  ]
62486
62514
  },
62487
62515
  {
62488
- "__docId__": 2432,
62516
+ "__docId__": 2433,
62489
62517
  "kind": "testIt",
62490
62518
  "name": "it122",
62491
62519
  "testId": 122,
@@ -62522,7 +62550,7 @@
62522
62550
  ]
62523
62551
  },
62524
62552
  {
62525
- "__docId__": 2433,
62553
+ "__docId__": 2434,
62526
62554
  "kind": "testIt",
62527
62555
  "name": "it123",
62528
62556
  "testId": 123,
@@ -62559,7 +62587,7 @@
62559
62587
  ]
62560
62588
  },
62561
62589
  {
62562
- "__docId__": 2434,
62590
+ "__docId__": 2435,
62563
62591
  "kind": "testDescribe",
62564
62592
  "name": "describe124",
62565
62593
  "testId": 124,
@@ -62572,7 +62600,7 @@
62572
62600
  "lineNumber": 80
62573
62601
  },
62574
62602
  {
62575
- "__docId__": 2435,
62603
+ "__docId__": 2436,
62576
62604
  "kind": "testIt",
62577
62605
  "name": "it125",
62578
62606
  "testId": 125,
@@ -62609,7 +62637,7 @@
62609
62637
  ]
62610
62638
  },
62611
62639
  {
62612
- "__docId__": 2436,
62640
+ "__docId__": 2437,
62613
62641
  "kind": "testIt",
62614
62642
  "name": "it126",
62615
62643
  "testId": 126,
@@ -62646,7 +62674,7 @@
62646
62674
  ]
62647
62675
  },
62648
62676
  {
62649
- "__docId__": 2437,
62677
+ "__docId__": 2438,
62650
62678
  "kind": "testIt",
62651
62679
  "name": "it127",
62652
62680
  "testId": 127,
@@ -62683,7 +62711,7 @@
62683
62711
  ]
62684
62712
  },
62685
62713
  {
62686
- "__docId__": 2438,
62714
+ "__docId__": 2439,
62687
62715
  "kind": "testDescribe",
62688
62716
  "name": "describe128",
62689
62717
  "testId": 128,
@@ -62696,7 +62724,7 @@
62696
62724
  "lineNumber": 106
62697
62725
  },
62698
62726
  {
62699
- "__docId__": 2439,
62727
+ "__docId__": 2440,
62700
62728
  "kind": "testIt",
62701
62729
  "name": "it129",
62702
62730
  "testId": 129,
@@ -62733,7 +62761,7 @@
62733
62761
  ]
62734
62762
  },
62735
62763
  {
62736
- "__docId__": 2440,
62764
+ "__docId__": 2441,
62737
62765
  "kind": "testIt",
62738
62766
  "name": "it130",
62739
62767
  "testId": 130,
@@ -62770,7 +62798,7 @@
62770
62798
  ]
62771
62799
  },
62772
62800
  {
62773
- "__docId__": 2441,
62801
+ "__docId__": 2442,
62774
62802
  "kind": "testIt",
62775
62803
  "name": "it131",
62776
62804
  "testId": 131,
@@ -62807,7 +62835,7 @@
62807
62835
  ]
62808
62836
  },
62809
62837
  {
62810
- "__docId__": 2442,
62838
+ "__docId__": 2443,
62811
62839
  "kind": "testIt",
62812
62840
  "name": "it132",
62813
62841
  "testId": 132,
@@ -62844,7 +62872,7 @@
62844
62872
  ]
62845
62873
  },
62846
62874
  {
62847
- "__docId__": 2443,
62875
+ "__docId__": 2444,
62848
62876
  "kind": "testDescribe",
62849
62877
  "name": "describe133",
62850
62878
  "testId": 133,
@@ -62881,7 +62909,7 @@
62881
62909
  ]
62882
62910
  },
62883
62911
  {
62884
- "__docId__": 2444,
62912
+ "__docId__": 2445,
62885
62913
  "kind": "testIt",
62886
62914
  "name": "it134",
62887
62915
  "testId": 134,
@@ -62894,7 +62922,7 @@
62894
62922
  "lineNumber": 146
62895
62923
  },
62896
62924
  {
62897
- "__docId__": 2445,
62925
+ "__docId__": 2446,
62898
62926
  "kind": "testDescribe",
62899
62927
  "name": "describe135",
62900
62928
  "testId": 135,
@@ -62916,7 +62944,7 @@
62916
62944
  ]
62917
62945
  },
62918
62946
  {
62919
- "__docId__": 2446,
62947
+ "__docId__": 2447,
62920
62948
  "kind": "testIt",
62921
62949
  "name": "it136",
62922
62950
  "testId": 136,
@@ -62929,7 +62957,7 @@
62929
62957
  "lineNumber": 158
62930
62958
  },
62931
62959
  {
62932
- "__docId__": 2447,
62960
+ "__docId__": 2448,
62933
62961
  "kind": "testIt",
62934
62962
  "name": "it137",
62935
62963
  "testId": 137,
@@ -62942,7 +62970,7 @@
62942
62970
  "lineNumber": 161
62943
62971
  },
62944
62972
  {
62945
- "__docId__": 2448,
62973
+ "__docId__": 2449,
62946
62974
  "kind": "testIt",
62947
62975
  "name": "it138",
62948
62976
  "testId": 138,
@@ -62955,7 +62983,7 @@
62955
62983
  "lineNumber": 164
62956
62984
  },
62957
62985
  {
62958
- "__docId__": 2449,
62986
+ "__docId__": 2450,
62959
62987
  "kind": "testIt",
62960
62988
  "name": "it139",
62961
62989
  "testId": 139,
@@ -62968,7 +62996,7 @@
62968
62996
  "lineNumber": 167
62969
62997
  },
62970
62998
  {
62971
- "__docId__": 2450,
62999
+ "__docId__": 2451,
62972
63000
  "kind": "testDescribe",
62973
63001
  "name": "describe140",
62974
63002
  "testId": 140,
@@ -62990,7 +63018,7 @@
62990
63018
  ]
62991
63019
  },
62992
63020
  {
62993
- "__docId__": 2451,
63021
+ "__docId__": 2452,
62994
63022
  "kind": "testIt",
62995
63023
  "name": "it141",
62996
63024
  "testId": 141,
@@ -63012,7 +63040,7 @@
63012
63040
  ]
63013
63041
  },
63014
63042
  {
63015
- "__docId__": 2452,
63043
+ "__docId__": 2453,
63016
63044
  "kind": "testIt",
63017
63045
  "name": "it142",
63018
63046
  "testId": 142,
@@ -63034,7 +63062,7 @@
63034
63062
  ]
63035
63063
  },
63036
63064
  {
63037
- "__docId__": 2453,
63065
+ "__docId__": 2454,
63038
63066
  "kind": "testIt",
63039
63067
  "name": "it143",
63040
63068
  "testId": 143,
@@ -63056,7 +63084,7 @@
63056
63084
  ]
63057
63085
  },
63058
63086
  {
63059
- "__docId__": 2454,
63087
+ "__docId__": 2455,
63060
63088
  "kind": "testIt",
63061
63089
  "name": "it144",
63062
63090
  "testId": 144,
@@ -63078,7 +63106,7 @@
63078
63106
  ]
63079
63107
  },
63080
63108
  {
63081
- "__docId__": 2455,
63109
+ "__docId__": 2456,
63082
63110
  "kind": "testDescribe",
63083
63111
  "name": "describe145",
63084
63112
  "testId": 145,
@@ -63100,7 +63128,7 @@
63100
63128
  ]
63101
63129
  },
63102
63130
  {
63103
- "__docId__": 2456,
63131
+ "__docId__": 2457,
63104
63132
  "kind": "testIt",
63105
63133
  "name": "it146",
63106
63134
  "testId": 146,
@@ -63122,7 +63150,7 @@
63122
63150
  ]
63123
63151
  },
63124
63152
  {
63125
- "__docId__": 2457,
63153
+ "__docId__": 2458,
63126
63154
  "kind": "testIt",
63127
63155
  "name": "it147",
63128
63156
  "testId": 147,
@@ -63144,7 +63172,7 @@
63144
63172
  ]
63145
63173
  },
63146
63174
  {
63147
- "__docId__": 2458,
63175
+ "__docId__": 2459,
63148
63176
  "kind": "testIt",
63149
63177
  "name": "it148",
63150
63178
  "testId": 148,
@@ -63166,7 +63194,7 @@
63166
63194
  ]
63167
63195
  },
63168
63196
  {
63169
- "__docId__": 2459,
63197
+ "__docId__": 2460,
63170
63198
  "kind": "testIt",
63171
63199
  "name": "it149",
63172
63200
  "testId": 149,
@@ -63188,7 +63216,7 @@
63188
63216
  ]
63189
63217
  },
63190
63218
  {
63191
- "__docId__": 2460,
63219
+ "__docId__": 2461,
63192
63220
  "kind": "testDescribe",
63193
63221
  "name": "describe150",
63194
63222
  "testId": 150,
@@ -63210,7 +63238,7 @@
63210
63238
  ]
63211
63239
  },
63212
63240
  {
63213
- "__docId__": 2461,
63241
+ "__docId__": 2462,
63214
63242
  "kind": "testIt",
63215
63243
  "name": "it151",
63216
63244
  "testId": 151,
@@ -63232,7 +63260,7 @@
63232
63260
  ]
63233
63261
  },
63234
63262
  {
63235
- "__docId__": 2462,
63263
+ "__docId__": 2463,
63236
63264
  "kind": "testIt",
63237
63265
  "name": "it152",
63238
63266
  "testId": 152,
@@ -63254,7 +63282,7 @@
63254
63282
  ]
63255
63283
  },
63256
63284
  {
63257
- "__docId__": 2463,
63285
+ "__docId__": 2464,
63258
63286
  "kind": "testIt",
63259
63287
  "name": "it153",
63260
63288
  "testId": 153,
@@ -63276,7 +63304,7 @@
63276
63304
  ]
63277
63305
  },
63278
63306
  {
63279
- "__docId__": 2464,
63307
+ "__docId__": 2465,
63280
63308
  "kind": "testIt",
63281
63309
  "name": "it154",
63282
63310
  "testId": 154,
@@ -63298,7 +63326,7 @@
63298
63326
  ]
63299
63327
  },
63300
63328
  {
63301
- "__docId__": 2465,
63329
+ "__docId__": 2466,
63302
63330
  "kind": "testDescribe",
63303
63331
  "name": "describe155",
63304
63332
  "testId": 155,
@@ -63320,7 +63348,7 @@
63320
63348
  ]
63321
63349
  },
63322
63350
  {
63323
- "__docId__": 2466,
63351
+ "__docId__": 2467,
63324
63352
  "kind": "testDescribe",
63325
63353
  "name": "describe156",
63326
63354
  "testId": 156,
@@ -63333,7 +63361,7 @@
63333
63361
  "lineNumber": 231
63334
63362
  },
63335
63363
  {
63336
- "__docId__": 2467,
63364
+ "__docId__": 2468,
63337
63365
  "kind": "testIt",
63338
63366
  "name": "it157",
63339
63367
  "testId": 157,
@@ -63360,7 +63388,7 @@
63360
63388
  ]
63361
63389
  },
63362
63390
  {
63363
- "__docId__": 2468,
63391
+ "__docId__": 2469,
63364
63392
  "kind": "testIt",
63365
63393
  "name": "it158",
63366
63394
  "testId": 158,
@@ -63387,7 +63415,7 @@
63387
63415
  ]
63388
63416
  },
63389
63417
  {
63390
- "__docId__": 2469,
63418
+ "__docId__": 2470,
63391
63419
  "kind": "testIt",
63392
63420
  "name": "it159",
63393
63421
  "testId": 159,
@@ -63414,7 +63442,7 @@
63414
63442
  ]
63415
63443
  },
63416
63444
  {
63417
- "__docId__": 2470,
63445
+ "__docId__": 2471,
63418
63446
  "kind": "testIt",
63419
63447
  "name": "it160",
63420
63448
  "testId": 160,
@@ -63441,7 +63469,7 @@
63441
63469
  ]
63442
63470
  },
63443
63471
  {
63444
- "__docId__": 2471,
63472
+ "__docId__": 2472,
63445
63473
  "kind": "testDescribe",
63446
63474
  "name": "describe161",
63447
63475
  "testId": 161,
@@ -63468,7 +63496,7 @@
63468
63496
  ]
63469
63497
  },
63470
63498
  {
63471
- "__docId__": 2472,
63499
+ "__docId__": 2473,
63472
63500
  "kind": "testIt",
63473
63501
  "name": "it162",
63474
63502
  "testId": 162,
@@ -63495,7 +63523,7 @@
63495
63523
  ]
63496
63524
  },
63497
63525
  {
63498
- "__docId__": 2473,
63526
+ "__docId__": 2474,
63499
63527
  "kind": "testIt",
63500
63528
  "name": "it163",
63501
63529
  "testId": 163,
@@ -63522,7 +63550,7 @@
63522
63550
  ]
63523
63551
  },
63524
63552
  {
63525
- "__docId__": 2474,
63553
+ "__docId__": 2475,
63526
63554
  "kind": "testIt",
63527
63555
  "name": "it164",
63528
63556
  "testId": 164,
@@ -63549,7 +63577,7 @@
63549
63577
  ]
63550
63578
  },
63551
63579
  {
63552
- "__docId__": 2475,
63580
+ "__docId__": 2476,
63553
63581
  "kind": "testIt",
63554
63582
  "name": "it165",
63555
63583
  "testId": 165,
@@ -63576,7 +63604,7 @@
63576
63604
  ]
63577
63605
  },
63578
63606
  {
63579
- "__docId__": 2476,
63607
+ "__docId__": 2477,
63580
63608
  "kind": "testDescribe",
63581
63609
  "name": "describe166",
63582
63610
  "testId": 166,
@@ -63589,7 +63617,7 @@
63589
63617
  "lineNumber": 295
63590
63618
  },
63591
63619
  {
63592
- "__docId__": 2477,
63620
+ "__docId__": 2478,
63593
63621
  "kind": "testIt",
63594
63622
  "name": "it167",
63595
63623
  "testId": 167,
@@ -63616,7 +63644,7 @@
63616
63644
  ]
63617
63645
  },
63618
63646
  {
63619
- "__docId__": 2478,
63647
+ "__docId__": 2479,
63620
63648
  "kind": "testIt",
63621
63649
  "name": "it168",
63622
63650
  "testId": 168,
@@ -63643,7 +63671,7 @@
63643
63671
  ]
63644
63672
  },
63645
63673
  {
63646
- "__docId__": 2479,
63674
+ "__docId__": 2480,
63647
63675
  "kind": "testIt",
63648
63676
  "name": "it169",
63649
63677
  "testId": 169,
@@ -63670,7 +63698,7 @@
63670
63698
  ]
63671
63699
  },
63672
63700
  {
63673
- "__docId__": 2480,
63701
+ "__docId__": 2481,
63674
63702
  "kind": "testIt",
63675
63703
  "name": "it170",
63676
63704
  "testId": 170,
@@ -63697,7 +63725,7 @@
63697
63725
  ]
63698
63726
  },
63699
63727
  {
63700
- "__docId__": 2481,
63728
+ "__docId__": 2482,
63701
63729
  "kind": "testDescribe",
63702
63730
  "name": "describe171",
63703
63731
  "testId": 171,
@@ -63710,7 +63738,7 @@
63710
63738
  "lineNumber": 325
63711
63739
  },
63712
63740
  {
63713
- "__docId__": 2482,
63741
+ "__docId__": 2483,
63714
63742
  "kind": "testIt",
63715
63743
  "name": "it172",
63716
63744
  "testId": 172,
@@ -63737,7 +63765,7 @@
63737
63765
  ]
63738
63766
  },
63739
63767
  {
63740
- "__docId__": 2483,
63768
+ "__docId__": 2484,
63741
63769
  "kind": "testIt",
63742
63770
  "name": "it173",
63743
63771
  "testId": 173,
@@ -63764,7 +63792,7 @@
63764
63792
  ]
63765
63793
  },
63766
63794
  {
63767
- "__docId__": 2484,
63795
+ "__docId__": 2485,
63768
63796
  "kind": "testIt",
63769
63797
  "name": "it174",
63770
63798
  "testId": 174,
@@ -63791,7 +63819,7 @@
63791
63819
  ]
63792
63820
  },
63793
63821
  {
63794
- "__docId__": 2485,
63822
+ "__docId__": 2486,
63795
63823
  "kind": "testIt",
63796
63824
  "name": "it175",
63797
63825
  "testId": 175,
@@ -63818,7 +63846,7 @@
63818
63846
  ]
63819
63847
  },
63820
63848
  {
63821
- "__docId__": 2486,
63849
+ "__docId__": 2487,
63822
63850
  "kind": "testDescribe",
63823
63851
  "name": "describe176",
63824
63852
  "testId": 176,
@@ -63831,7 +63859,7 @@
63831
63859
  "lineNumber": 357
63832
63860
  },
63833
63861
  {
63834
- "__docId__": 2487,
63862
+ "__docId__": 2488,
63835
63863
  "kind": "testIt",
63836
63864
  "name": "it177",
63837
63865
  "testId": 177,
@@ -63858,7 +63886,7 @@
63858
63886
  ]
63859
63887
  },
63860
63888
  {
63861
- "__docId__": 2488,
63889
+ "__docId__": 2489,
63862
63890
  "kind": "testIt",
63863
63891
  "name": "it178",
63864
63892
  "testId": 178,
@@ -63885,7 +63913,7 @@
63885
63913
  ]
63886
63914
  },
63887
63915
  {
63888
- "__docId__": 2489,
63916
+ "__docId__": 2490,
63889
63917
  "kind": "testIt",
63890
63918
  "name": "it179",
63891
63919
  "testId": 179,
@@ -63912,7 +63940,7 @@
63912
63940
  ]
63913
63941
  },
63914
63942
  {
63915
- "__docId__": 2490,
63943
+ "__docId__": 2491,
63916
63944
  "kind": "testIt",
63917
63945
  "name": "it180",
63918
63946
  "testId": 180,
@@ -63939,7 +63967,7 @@
63939
63967
  ]
63940
63968
  },
63941
63969
  {
63942
- "__docId__": 2491,
63970
+ "__docId__": 2492,
63943
63971
  "kind": "testDescribe",
63944
63972
  "name": "describe181",
63945
63973
  "testId": 181,
@@ -63952,7 +63980,7 @@
63952
63980
  "lineNumber": 389
63953
63981
  },
63954
63982
  {
63955
- "__docId__": 2492,
63983
+ "__docId__": 2493,
63956
63984
  "kind": "testIt",
63957
63985
  "name": "it182",
63958
63986
  "testId": 182,
@@ -63974,7 +64002,7 @@
63974
64002
  ]
63975
64003
  },
63976
64004
  {
63977
- "__docId__": 2493,
64005
+ "__docId__": 2494,
63978
64006
  "kind": "testIt",
63979
64007
  "name": "it183",
63980
64008
  "testId": 183,
@@ -63996,7 +64024,7 @@
63996
64024
  ]
63997
64025
  },
63998
64026
  {
63999
- "__docId__": 2494,
64027
+ "__docId__": 2495,
64000
64028
  "kind": "testIt",
64001
64029
  "name": "it184",
64002
64030
  "testId": 184,
@@ -64018,7 +64046,7 @@
64018
64046
  ]
64019
64047
  },
64020
64048
  {
64021
- "__docId__": 2495,
64049
+ "__docId__": 2496,
64022
64050
  "kind": "testDescribe",
64023
64051
  "name": "describe185",
64024
64052
  "testId": 185,
@@ -64031,7 +64059,7 @@
64031
64059
  "lineNumber": 409
64032
64060
  },
64033
64061
  {
64034
- "__docId__": 2496,
64062
+ "__docId__": 2497,
64035
64063
  "kind": "testIt",
64036
64064
  "name": "it186",
64037
64065
  "testId": 186,
@@ -64053,7 +64081,7 @@
64053
64081
  ]
64054
64082
  },
64055
64083
  {
64056
- "__docId__": 2497,
64084
+ "__docId__": 2498,
64057
64085
  "kind": "testIt",
64058
64086
  "name": "it187",
64059
64087
  "testId": 187,
@@ -64075,7 +64103,7 @@
64075
64103
  ]
64076
64104
  },
64077
64105
  {
64078
- "__docId__": 2498,
64106
+ "__docId__": 2499,
64079
64107
  "kind": "testIt",
64080
64108
  "name": "it188",
64081
64109
  "testId": 188,
@@ -64097,7 +64125,7 @@
64097
64125
  ]
64098
64126
  },
64099
64127
  {
64100
- "__docId__": 2499,
64128
+ "__docId__": 2500,
64101
64129
  "kind": "testIt",
64102
64130
  "name": "it189",
64103
64131
  "testId": 189,
@@ -64119,7 +64147,7 @@
64119
64147
  ]
64120
64148
  },
64121
64149
  {
64122
- "__docId__": 2500,
64150
+ "__docId__": 2501,
64123
64151
  "kind": "testDescribe",
64124
64152
  "name": "describe190",
64125
64153
  "testId": 190,
@@ -64132,7 +64160,7 @@
64132
64160
  "lineNumber": 426
64133
64161
  },
64134
64162
  {
64135
- "__docId__": 2501,
64163
+ "__docId__": 2502,
64136
64164
  "kind": "testIt",
64137
64165
  "name": "it191",
64138
64166
  "testId": 191,
@@ -64154,7 +64182,7 @@
64154
64182
  ]
64155
64183
  },
64156
64184
  {
64157
- "__docId__": 2502,
64185
+ "__docId__": 2503,
64158
64186
  "kind": "testIt",
64159
64187
  "name": "it192",
64160
64188
  "testId": 192,
@@ -64176,7 +64204,7 @@
64176
64204
  ]
64177
64205
  },
64178
64206
  {
64179
- "__docId__": 2503,
64207
+ "__docId__": 2504,
64180
64208
  "kind": "testIt",
64181
64209
  "name": "it193",
64182
64210
  "testId": 193,
@@ -64198,7 +64226,7 @@
64198
64226
  ]
64199
64227
  },
64200
64228
  {
64201
- "__docId__": 2504,
64229
+ "__docId__": 2505,
64202
64230
  "kind": "testIt",
64203
64231
  "name": "it194",
64204
64232
  "testId": 194,
@@ -64220,7 +64248,7 @@
64220
64248
  ]
64221
64249
  },
64222
64250
  {
64223
- "__docId__": 2505,
64251
+ "__docId__": 2506,
64224
64252
  "kind": "testDescribe",
64225
64253
  "name": "describe195",
64226
64254
  "testId": 195,
@@ -64233,7 +64261,7 @@
64233
64261
  "lineNumber": 446
64234
64262
  },
64235
64263
  {
64236
- "__docId__": 2506,
64264
+ "__docId__": 2507,
64237
64265
  "kind": "testIt",
64238
64266
  "name": "it196",
64239
64267
  "testId": 196,
@@ -64255,7 +64283,7 @@
64255
64283
  ]
64256
64284
  },
64257
64285
  {
64258
- "__docId__": 2507,
64286
+ "__docId__": 2508,
64259
64287
  "kind": "testIt",
64260
64288
  "name": "it197",
64261
64289
  "testId": 197,
@@ -64277,7 +64305,7 @@
64277
64305
  ]
64278
64306
  },
64279
64307
  {
64280
- "__docId__": 2508,
64308
+ "__docId__": 2509,
64281
64309
  "kind": "testIt",
64282
64310
  "name": "it198",
64283
64311
  "testId": 198,
@@ -64299,7 +64327,7 @@
64299
64327
  ]
64300
64328
  },
64301
64329
  {
64302
- "__docId__": 2509,
64330
+ "__docId__": 2510,
64303
64331
  "kind": "testDescribe",
64304
64332
  "name": "describe199",
64305
64333
  "testId": 199,
@@ -64312,7 +64340,7 @@
64312
64340
  "lineNumber": 460
64313
64341
  },
64314
64342
  {
64315
- "__docId__": 2510,
64343
+ "__docId__": 2511,
64316
64344
  "kind": "testIt",
64317
64345
  "name": "it200",
64318
64346
  "testId": 200,
@@ -64334,7 +64362,7 @@
64334
64362
  ]
64335
64363
  },
64336
64364
  {
64337
- "__docId__": 2511,
64365
+ "__docId__": 2512,
64338
64366
  "kind": "testIt",
64339
64367
  "name": "it201",
64340
64368
  "testId": 201,
@@ -64356,7 +64384,7 @@
64356
64384
  ]
64357
64385
  },
64358
64386
  {
64359
- "__docId__": 2512,
64387
+ "__docId__": 2513,
64360
64388
  "kind": "testIt",
64361
64389
  "name": "it202",
64362
64390
  "testId": 202,
@@ -64378,7 +64406,7 @@
64378
64406
  ]
64379
64407
  },
64380
64408
  {
64381
- "__docId__": 2513,
64409
+ "__docId__": 2514,
64382
64410
  "kind": "testIt",
64383
64411
  "name": "it203",
64384
64412
  "testId": 203,
@@ -64400,7 +64428,7 @@
64400
64428
  ]
64401
64429
  },
64402
64430
  {
64403
- "__docId__": 2514,
64431
+ "__docId__": 2515,
64404
64432
  "kind": "testDescribe",
64405
64433
  "name": "describe204",
64406
64434
  "testId": 204,
@@ -64413,7 +64441,7 @@
64413
64441
  "lineNumber": 477
64414
64442
  },
64415
64443
  {
64416
- "__docId__": 2515,
64444
+ "__docId__": 2516,
64417
64445
  "kind": "testIt",
64418
64446
  "name": "it205",
64419
64447
  "testId": 205,
@@ -64435,7 +64463,7 @@
64435
64463
  ]
64436
64464
  },
64437
64465
  {
64438
- "__docId__": 2516,
64466
+ "__docId__": 2517,
64439
64467
  "kind": "testIt",
64440
64468
  "name": "it206",
64441
64469
  "testId": 206,
@@ -64457,7 +64485,7 @@
64457
64485
  ]
64458
64486
  },
64459
64487
  {
64460
- "__docId__": 2517,
64488
+ "__docId__": 2518,
64461
64489
  "kind": "testIt",
64462
64490
  "name": "it207",
64463
64491
  "testId": 207,
@@ -64479,7 +64507,7 @@
64479
64507
  ]
64480
64508
  },
64481
64509
  {
64482
- "__docId__": 2518,
64510
+ "__docId__": 2519,
64483
64511
  "kind": "testIt",
64484
64512
  "name": "it208",
64485
64513
  "testId": 208,
@@ -64501,7 +64529,7 @@
64501
64529
  ]
64502
64530
  },
64503
64531
  {
64504
- "__docId__": 2519,
64532
+ "__docId__": 2520,
64505
64533
  "kind": "testDescribe",
64506
64534
  "name": "describe209",
64507
64535
  "testId": 209,
@@ -64514,7 +64542,7 @@
64514
64542
  "lineNumber": 497
64515
64543
  },
64516
64544
  {
64517
- "__docId__": 2520,
64545
+ "__docId__": 2521,
64518
64546
  "kind": "testIt",
64519
64547
  "name": "it210",
64520
64548
  "testId": 210,
@@ -64536,7 +64564,7 @@
64536
64564
  ]
64537
64565
  },
64538
64566
  {
64539
- "__docId__": 2521,
64567
+ "__docId__": 2522,
64540
64568
  "kind": "testDescribe",
64541
64569
  "name": "describe211",
64542
64570
  "testId": 211,
@@ -64549,7 +64577,7 @@
64549
64577
  "lineNumber": 502
64550
64578
  },
64551
64579
  {
64552
- "__docId__": 2522,
64580
+ "__docId__": 2523,
64553
64581
  "kind": "testIt",
64554
64582
  "name": "it212",
64555
64583
  "testId": 212,
@@ -64571,7 +64599,7 @@
64571
64599
  ]
64572
64600
  },
64573
64601
  {
64574
- "__docId__": 2523,
64602
+ "__docId__": 2524,
64575
64603
  "kind": "testIt",
64576
64604
  "name": "it213",
64577
64605
  "testId": 213,
@@ -64584,7 +64612,7 @@
64584
64612
  "lineNumber": 508
64585
64613
  },
64586
64614
  {
64587
- "__docId__": 2524,
64615
+ "__docId__": 2525,
64588
64616
  "kind": "testFile",
64589
64617
  "name": "client/security/certificates.spec.js",
64590
64618
  "content": "define(function() {\r\n mocha.setup('bdd');\r\n /** @test {InternalOpenGateAPI#certificatesBuilder()} */\r\n describe('Check funcionality certificates:', function() {\r\n var certificates;\r\n before(function() {\r\n certificates = ogapi.certificatesBuilder();\r\n });\r\n /** @test {InternalOpenGateAPI#bundlesBuilder} */\r\n describe('Check basic parameters:', function() {\r\n\r\n it('Name is not a String', function() {\r\n assert.throws(function() {\r\n certificates.withName(11);\r\n }, \"Parameter name must be a string, cannot be empty and has a maximum length of 50\");\r\n });\r\n it('Name max length', function() {\r\n assert.throws(function() {\r\n certificates.withName(11);\r\n }, \"Parameter name must be a string, cannot be empty and has a maximum length of 50\");\r\n });\r\n\r\n it('administrativeState is not a String', function() {\r\n assert.throws(function() {\r\n certificates.withAdministrativeState(1);\r\n }, \"Parameter administrativeState must be typeof string and cannot be empty\");\r\n\r\n });\r\n\r\n it('administrativeState is not a String', function() {\r\n assert.throws(function() {\r\n certificates.withAdministrativeState(\"NOT_ACTIVE\");\r\n }, \"Parameter administrativeState must be typeof string and cannot be empty\");\r\n\r\n });\r\n\r\n it('hardwares is not a String', function() {\r\n assert.throws(function() {\r\n certificates.withHardwares([{}]);\r\n }, \"Parameter administrativeState must be typeof string and cannot be empty\");\r\n\r\n });\r\n\r\n });\r\n\r\n describe('Create:', function() {\r\n\r\n var certificates;\r\n before(function() {\r\n certificates = ogapi.certificatesBuilder();\r\n });\r\n\r\n it('Create a certificate', function() {\r\n var file = \"-----BEGIN CERTIFICATE-----\\n\" +\r\n \"MIIFXDCCA0SgAwIBAgIEV+4AwzANBgkqhkiG9w0BAQsFADBwMQswCQYDVQQGEwJF\" +\r\n \"UzEPMA0GA1UECAwGTWFkcmlkMQ8wDQYDVQQHDAZNYWRyaWQxEjAQBgNVBAoMCUFt\" +\r\n \"cGxpYSkpKTESMBAGA1UECwwJQW1wbGlhKSkpMRcwFQYDVQQDDA5wcm92LnRlc3Qu\" +\r\n \"cm9vdDAeFw0xNjA5MzAwNjA2NDFaFw0xNzA5MzAwNjA2NDFaMHAxCzAJBgNVBAYT\" +\r\n \"AkVTMQ8wDQYDVQQIDAZNYWRyaWQxDzANBgNVBAcMBk1hZHJpZDESMBAGA1UECgwJ\" +\r\n \"QW1wbGlhKSkpMRIwEAYDVQQLDAlBbXBsaWEpKSkxFzAVBgNVBAMMDnByb3YudGVz\" +\r\n \"dC5yb290MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAqBhgGrHTLmk0\" +\r\n \"F1Rq6qFkBHGF5ZNQ9Ira4v1jTJfMr5ppB/HplXqrjiamstJ1K4pcLoeLQOcMMWmk\" +\r\n \"GKF8EV1UTD+pqSXo6j0f8I6UGqGwNiHAYlL3CwWsQ0rZSSNQfW03myfpVo3yDLlR\" +\r\n \"BiFH+fVwjHnaNrRHlQ8vzHfYUqXpU04DinONhM2avaDQjfbS/2Pu4Qb9sMPF1SYb\" +\r\n \"eTx8fAmBg8u7jlbcZsQaPdvUPURhXK5q/5kN/8wxM8suKSc6iOQzzbrbVI8lr+ZT\" +\r\n \"Bcw2D2uRbQ9nCQAiQTJ7OENq5JLYM58sop7ZSRfRLKkb6GnLHTG9cio1Yro2cAGI\" +\r\n \"G8p+6paNRajmV9KOkGG0xTEBkYs7lhnxQp692QnMq/bNOjX9QW/xb+T+IrG0t9bK\" +\r\n \"h08Ll9A+HvWvePcOdZfiJbEdr+mWNUEArxcxnKgS9QruWtLpGh5UjYQcnf/XjnSR\" +\r\n \"EucDIB0mDPyJerVat1p7Mvu2tdnvxLCQmBIeyO0FpSaeOLENIZ68jEzZNGEFdPim\" +\r\n \"Sqb4vjRoV+5QQmHNIIb8rZswsFbBCK/yVnnJ4j3Kd0mmsQGDYeHAYOvjw7mT9AU4\" +\r\n \"qgB49q34FsLo3vale9ayPnHHWZ7OUIjlHgVSmAzjohI+0b6IgWF3bLgTCeVu1LKe\" +\r\n \"g0aCTiQeWEhdk/kJ7EVV8pbNVHGnbgsCAwEAATANBgkqhkiG9w0BAQsFAAOCAgEA\" +\r\n \"OCg0ek9bSeWg9zCpxIDGD+TI2VtnfeHkVgUMg13a8old9gsAIpb4X75m8jfBcF1P\" +\r\n \"LOmjCXVzr8Eun4LNpJs+pwnVTQPYbx1RPzKLXJzBCBAtX4FgQmRdYBp2J/THR/6N\" +\r\n \"mWh6ZCxhL9MZpwG1RIsxot65RacImLkqsVre37Ry4AHrLkkXfd1csaNEvAK+Dd2u\" +\r\n \"o+3mMYR3U62bn2nAAPHFbQ9yOIIjiJMmqcBei1dxfBdUcus2l+HacWqjeRu3PZoz\" +\r\n \"gNXWE7k7x+nUn/OqmR717F8BQqgQrtzV6R6juQmYfmghUJA1RUFBvVpm9ytRZry4\" +\r\n \"S/3iHdgm+k3N7oAYtEJANaokZk+CrDUUB7mjleHsmApNw6ZC0Zh1T7MrK73g37Ke\" +\r\n \"t7FsD1w06w//D5p/gD5dFJP6Zhcqb9EJSGFn6wfwagbNor0eA0QCpx8ZgUDb3n06\" +\r\n \"0zGBlyTFxG9QVmhoVQt6GQrUSypaYfuC+nVjQV4eAVZQVN9HgyTj77uj/wRBzY5S\" +\r\n \"EqX0xyjAj/cRDwKGgblr1XIlZD24MkxPX6uuOJENwrFEBg1I9jLeZgEjJy0ITzqa\" +\r\n \"hWrN+Q95QjBR6FAUH7bl2x6UJef4uZQZaT0NNclV65mAdOptLoNyd9BN25pqz7Rb\" +\r\n \"NIDI0Q9rTAjHLOtxHnVb746T27kER0MiiUiMGf6C1Q8=\\n\" +\r\n \"-----END CERTIFICATE-----\";\r\n\r\n certificates.withName(\"Karma_Testing_Name\");\r\n certificates.withDescription(\"Karma_Testing_Name description\");\r\n certificates.withAdministrativeState(\"ACTIVE\");\r\n certificates.withUsages([\"CERT_SIGN\"]);\r\n certificates.withTags([\"tag1\", \"tag2\"]);\r\n certificates.withHardware([{\r\n \"hardwareId\": \"OpenGateSecure\"\r\n }]);\r\n assert.doesNotThrow(function() {\r\n certificates.create(file);\r\n });\r\n\r\n });\r\n });\r\n\r\n describe('Delete:', function() {\r\n\r\n var certificates;\r\n var id = \"n0t-3x15t5\";\r\n before(function() {\r\n certificates = ogapi.certificatesBuilder();\r\n });\r\n\r\n it('Delete a not exists certificate', function() {\r\n return certificates.withId(id).delete().then(function(){\r\n assert.isTrue(false, \"\");\r\n return;\r\n }).catch(function(err) {\r\n console.log(JSON.stringify(err));\r\n assert.isTrue(true, \"\");\r\n return;\r\n });\r\n });\r\n\r\n it('Create a certificate', function() {\r\n var file = \"-----BEGIN CERTIFICATE-----\\n\" +\r\n \"MIIFXDCCA0SgAwIBAgIEV+4AwzANBgkqhkiG9w0BAQsFADBwMQswCQYDVQQGEwJF\" +\r\n \"UzEPMA0GA1UECAwGTWFkcmlkMQ8wDQYDVQQHDAZNYWRyaWQxEjAQBgNVBAoMCUFt\" +\r\n \"cGxpYSkpKTESMBAGA1UECwwJQW1wbGlhKSkpMRcwFQYDVQQDDA5wcm92LnRlc3Qu\" +\r\n \"cm9vdDAeFw0xNjA5MzAwNjA2NDFaFw0xNzA5MzAwNjA2NDFaMHAxCzAJBgNVBAYT\" +\r\n \"AkVTMQ8wDQYDVQQIDAZNYWRyaWQxDzANBgNVBAcMBk1hZHJpZDESMBAGA1UECgwJ\" +\r\n \"QW1wbGlhKSkpMRIwEAYDVQQLDAlBbXBsaWEpKSkxFzAVBgNVBAMMDnByb3YudGVz\" +\r\n \"dC5yb290MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAqBhgGrHTLmk0\" +\r\n \"F1Rq6qFkBHGF5ZNQ9Ira4v1jTJfMr5ppB/HplXqrjiamstJ1K4pcLoeLQOcMMWmk\" +\r\n \"GKF8EV1UTD+pqSXo6j0f8I6UGqGwNiHAYlL3CwWsQ0rZSSNQfW03myfpVo3yDLlR\" +\r\n \"BiFH+fVwjHnaNrRHlQ8vzHfYUqXpU04DinONhM2avaDQjfbS/2Pu4Qb9sMPF1SYb\" +\r\n \"eTx8fAmBg8u7jlbcZsQaPdvUPURhXK5q/5kN/8wxM8suKSc6iOQzzbrbVI8lr+ZT\" +\r\n \"Bcw2D2uRbQ9nCQAiQTJ7OENq5JLYM58sop7ZSRfRLKkb6GnLHTG9cio1Yro2cAGI\" +\r\n \"G8p+6paNRajmV9KOkGG0xTEBkYs7lhnxQp692QnMq/bNOjX9QW/xb+T+IrG0t9bK\" +\r\n \"h08Ll9A+HvWvePcOdZfiJbEdr+mWNUEArxcxnKgS9QruWtLpGh5UjYQcnf/XjnSR\" +\r\n \"EucDIB0mDPyJerVat1p7Mvu2tdnvxLCQmBIeyO0FpSaeOLENIZ68jEzZNGEFdPim\" +\r\n \"Sqb4vjRoV+5QQmHNIIb8rZswsFbBCK/yVnnJ4j3Kd0mmsQGDYeHAYOvjw7mT9AU4\" +\r\n \"qgB49q34FsLo3vale9ayPnHHWZ7OUIjlHgVSmAzjohI+0b6IgWF3bLgTCeVu1LKe\" +\r\n \"g0aCTiQeWEhdk/kJ7EVV8pbNVHGnbgsCAwEAATANBgkqhkiG9w0BAQsFAAOCAgEA\" +\r\n \"OCg0ek9bSeWg9zCpxIDGD+TI2VtnfeHkVgUMg13a8old9gsAIpb4X75m8jfBcF1P\" +\r\n \"LOmjCXVzr8Eun4LNpJs+pwnVTQPYbx1RPzKLXJzBCBAtX4FgQmRdYBp2J/THR/6N\" +\r\n \"mWh6ZCxhL9MZpwG1RIsxot65RacImLkqsVre37Ry4AHrLkkXfd1csaNEvAK+Dd2u\" +\r\n \"o+3mMYR3U62bn2nAAPHFbQ9yOIIjiJMmqcBei1dxfBdUcus2l+HacWqjeRu3PZoz\" +\r\n \"gNXWE7k7x+nUn/OqmR717F8BQqgQrtzV6R6juQmYfmghUJA1RUFBvVpm9ytRZry4\" +\r\n \"S/3iHdgm+k3N7oAYtEJANaokZk+CrDUUB7mjleHsmApNw6ZC0Zh1T7MrK73g37Ke\" +\r\n \"t7FsD1w06w//D5p/gD5dFJP6Zhcqb9EJSGFn6wfwagbNor0eA0QCpx8ZgUDb3n06\" +\r\n \"0zGBlyTFxG9QVmhoVQt6GQrUSypaYfuC+nVjQV4eAVZQVN9HgyTj77uj/wRBzY5S\" +\r\n \"EqX0xyjAj/cRDwKGgblr1XIlZD24MkxPX6uuOJENwrFEBg1I9jLeZgEjJy0ITzqa\" +\r\n \"hWrN+Q95QjBR6FAUH7bl2x6UJef4uZQZaT0NNclV65mAdOptLoNyd9BN25pqz7Rb\" +\r\n \"NIDI0Q9rTAjHLOtxHnVb746T27kER0MiiUiMGf6C1Q8=\\n\" +\r\n \"-----END CERTIFICATE-----\";\r\n\r\n certificates.withName(\"Karma_Testing_Name\");\r\n certificates.withDescription(\"Karma_Testing_Name description\");\r\n certificates.withAdministrativeState(\"ACTIVE\");\r\n certificates.withUsages([\"CERT_SIGN\"]);\r\n return certificates.create(file).then(function(response){\r\n console.log(JSON.stringify(response));\r\n assert.equal(response.statusCode, 201);\r\n var data = response.location;\r\n id = data.substring(data.lastIndexOf(\"/\") + 1);\r\n return;\r\n });\r\n });\r\n\r\n it('Delete a certificate', function() {\r\n return certificates.withId(id).delete().then(function(response){\r\n console.log(JSON.stringify(response));\r\n assert.equal(response.statusCode, 200);\r\n return;\r\n }\r\n );\r\n });\r\n });\r\n\r\n describe('Update:', function() {\r\n\r\n var certificates;\r\n before(function() {\r\n certificates = ogapi.certificatesBuilder();\r\n });\r\n\r\n it('Update a certificate', function() {\r\n certificates.withId(\"f0564b4f-4044-4028-a062-0b502a410108\");\r\n certificates.withName(\"Root_Name\");\r\n certificates.withDescription(\"updating_root_from_Karma_prueba\");\r\n certificates.withAdministrativeState(\"ACTIVE\");\r\n certificates.withUsages([\"CERT_SIGN\"]);\r\n certificates.withTags([\"tag1\", \"tag2\"]);\r\n certificates.withHardware([{\r\n \"hardwareId\": \"OpenGateSecure\"\r\n }]);\r\n assert.doesNotThrow(function() {\r\n certificates.update();\r\n });\r\n });\r\n });\r\n\r\n describe('Finder:', function() {\r\n var certificates;\r\n var certificate;\r\n var id = \"n0t-3x15t5\";\r\n before(function() {\r\n certificate = ogapi.newCertificateFinder();\r\n certificates = ogapi.certificatesBuilder();\r\n });\r\n var file = \"-----BEGIN CERTIFICATE-----\\n\" +\r\n \"MIIFXDCCA0SgAwIBAgIEV+4AwzANBgkqhkiG9w0BAQsFADBwMQswCQYDVQQGEwJF\" +\r\n \"UzEPMA0GA1UECAwGTWFkcmlkMQ8wDQYDVQQHDAZNYWRyaWQxEjAQBgNVBAoMCUFt\" +\r\n \"cGxpYSkpKTESMBAGA1UECwwJQW1wbGlhKSkpMRcwFQYDVQQDDA5wcm92LnRlc3Qu\" +\r\n \"cm9vdDAeFw0xNjA5MzAwNjA2NDFaFw0xNzA5MzAwNjA2NDFaMHAxCzAJBgNVBAYT\" +\r\n \"AkVTMQ8wDQYDVQQIDAZNYWRyaWQxDzANBgNVBAcMBk1hZHJpZDESMBAGA1UECgwJ\" +\r\n \"QW1wbGlhKSkpMRIwEAYDVQQLDAlBbXBsaWEpKSkxFzAVBgNVBAMMDnByb3YudGVz\" +\r\n \"dC5yb290MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAqBhgGrHTLmk0\" +\r\n \"F1Rq6qFkBHGF5ZNQ9Ira4v1jTJfMr5ppB/HplXqrjiamstJ1K4pcLoeLQOcMMWmk\" +\r\n \"GKF8EV1UTD+pqSXo6j0f8I6UGqGwNiHAYlL3CwWsQ0rZSSNQfW03myfpVo3yDLlR\" +\r\n \"BiFH+fVwjHnaNrRHlQ8vzHfYUqXpU04DinONhM2avaDQjfbS/2Pu4Qb9sMPF1SYb\" +\r\n \"eTx8fAmBg8u7jlbcZsQaPdvUPURhXK5q/5kN/8wxM8suKSc6iOQzzbrbVI8lr+ZT\" +\r\n \"Bcw2D2uRbQ9nCQAiQTJ7OENq5JLYM58sop7ZSRfRLKkb6GnLHTG9cio1Yro2cAGI\" +\r\n \"G8p+6paNRajmV9KOkGG0xTEBkYs7lhnxQp692QnMq/bNOjX9QW/xb+T+IrG0t9bK\" +\r\n \"h08Ll9A+HvWvePcOdZfiJbEdr+mWNUEArxcxnKgS9QruWtLpGh5UjYQcnf/XjnSR\" +\r\n \"EucDIB0mDPyJerVat1p7Mvu2tdnvxLCQmBIeyO0FpSaeOLENIZ68jEzZNGEFdPim\" +\r\n \"Sqb4vjRoV+5QQmHNIIb8rZswsFbBCK/yVnnJ4j3Kd0mmsQGDYeHAYOvjw7mT9AU4\" +\r\n \"qgB49q34FsLo3vale9ayPnHHWZ7OUIjlHgVSmAzjohI+0b6IgWF3bLgTCeVu1LKe\" +\r\n \"g0aCTiQeWEhdk/kJ7EVV8pbNVHGnbgsCAwEAATANBgkqhkiG9w0BAQsFAAOCAgEA\" +\r\n \"OCg0ek9bSeWg9zCpxIDGD+TI2VtnfeHkVgUMg13a8old9gsAIpb4X75m8jfBcF1P\" +\r\n \"LOmjCXVzr8Eun4LNpJs+pwnVTQPYbx1RPzKLXJzBCBAtX4FgQmRdYBp2J/THR/6N\" +\r\n \"mWh6ZCxhL9MZpwG1RIsxot65RacImLkqsVre37Ry4AHrLkkXfd1csaNEvAK+Dd2u\" +\r\n \"o+3mMYR3U62bn2nAAPHFbQ9yOIIjiJMmqcBei1dxfBdUcus2l+HacWqjeRu3PZoz\" +\r\n \"gNXWE7k7x+nUn/OqmR717F8BQqgQrtzV6R6juQmYfmghUJA1RUFBvVpm9ytRZry4\" +\r\n \"S/3iHdgm+k3N7oAYtEJANaokZk+CrDUUB7mjleHsmApNw6ZC0Zh1T7MrK73g37Ke\" +\r\n \"t7FsD1w06w//D5p/gD5dFJP6Zhcqb9EJSGFn6wfwagbNor0eA0QCpx8ZgUDb3n06\" +\r\n \"0zGBlyTFxG9QVmhoVQt6GQrUSypaYfuC+nVjQV4eAVZQVN9HgyTj77uj/wRBzY5S\" +\r\n \"EqX0xyjAj/cRDwKGgblr1XIlZD24MkxPX6uuOJENwrFEBg1I9jLeZgEjJy0ITzqa\" +\r\n \"hWrN+Q95QjBR6FAUH7bl2x6UJef4uZQZaT0NNclV65mAdOptLoNyd9BN25pqz7Rb\" +\r\n \"NIDI0Q9rTAjHLOtxHnVb746T27kER0MiiUiMGf6C1Q8=\\n\" +\r\n \"-----END CERTIFICATE-----\";\r\n\r\n it('Create a certificate', function() {\r\n certificates.withName(\"Karma_Testing_Name\");\r\n certificates.withDescription(\"Karma_Testing_Name description\");\r\n certificates.withAdministrativeState(\"ACTIVE\");\r\n certificates.withUsages([\"CERT_SIGN\"]);\r\n return certificates.create(file).then(function(response){\r\n console.log(JSON.stringify(response));\r\n assert.equal(response.statusCode, 201);\r\n var data = response.location;\r\n id = data.substring(data.lastIndexOf(\"/\") + 1);\r\n return;\r\n });\r\n });\r\n\r\n it('Download a certificate', function() {\r\n return certificate.findByIdAndFormat(id, 'x-pem-file').then(function(response){\r\n console.log(response);\r\n var headers = response.data.headers;\r\n var blob = new Blob([response.data.text],{type:headers['content-type']});\r\n var link = document.createElement('a');\r\n link.href = window.URL.createObjectURL(blob);\r\n link.download = \"Filename\";\r\n link.click();\r\n\r\n return;\r\n });\r\n });\r\n });\r\n });\r\n});",
@@ -64595,7 +64623,7 @@
64595
64623
  "lineNumber": 1
64596
64624
  },
64597
64625
  {
64598
- "__docId__": 2525,
64626
+ "__docId__": 2526,
64599
64627
  "kind": "testDescribe",
64600
64628
  "name": "describe214",
64601
64629
  "testId": 214,
@@ -64617,7 +64645,7 @@
64617
64645
  ]
64618
64646
  },
64619
64647
  {
64620
- "__docId__": 2526,
64648
+ "__docId__": 2527,
64621
64649
  "kind": "testDescribe",
64622
64650
  "name": "describe215",
64623
64651
  "testId": 215,
@@ -64639,7 +64667,7 @@
64639
64667
  ]
64640
64668
  },
64641
64669
  {
64642
- "__docId__": 2527,
64670
+ "__docId__": 2528,
64643
64671
  "kind": "testIt",
64644
64672
  "name": "it216",
64645
64673
  "testId": 216,
@@ -64652,7 +64680,7 @@
64652
64680
  "lineNumber": 12
64653
64681
  },
64654
64682
  {
64655
- "__docId__": 2528,
64683
+ "__docId__": 2529,
64656
64684
  "kind": "testIt",
64657
64685
  "name": "it217",
64658
64686
  "testId": 217,
@@ -64665,7 +64693,7 @@
64665
64693
  "lineNumber": 17
64666
64694
  },
64667
64695
  {
64668
- "__docId__": 2529,
64696
+ "__docId__": 2530,
64669
64697
  "kind": "testIt",
64670
64698
  "name": "it218",
64671
64699
  "testId": 218,
@@ -64678,7 +64706,7 @@
64678
64706
  "lineNumber": 23
64679
64707
  },
64680
64708
  {
64681
- "__docId__": 2530,
64709
+ "__docId__": 2531,
64682
64710
  "kind": "testIt",
64683
64711
  "name": "it219",
64684
64712
  "testId": 219,
@@ -64691,7 +64719,7 @@
64691
64719
  "lineNumber": 30
64692
64720
  },
64693
64721
  {
64694
- "__docId__": 2531,
64722
+ "__docId__": 2532,
64695
64723
  "kind": "testIt",
64696
64724
  "name": "it220",
64697
64725
  "testId": 220,
@@ -64704,7 +64732,7 @@
64704
64732
  "lineNumber": 37
64705
64733
  },
64706
64734
  {
64707
- "__docId__": 2532,
64735
+ "__docId__": 2533,
64708
64736
  "kind": "testDescribe",
64709
64737
  "name": "describe221",
64710
64738
  "testId": 221,
@@ -64717,7 +64745,7 @@
64717
64745
  "lineNumber": 46
64718
64746
  },
64719
64747
  {
64720
- "__docId__": 2533,
64748
+ "__docId__": 2534,
64721
64749
  "kind": "testIt",
64722
64750
  "name": "it222",
64723
64751
  "testId": 222,
@@ -64730,7 +64758,7 @@
64730
64758
  "lineNumber": 53
64731
64759
  },
64732
64760
  {
64733
- "__docId__": 2534,
64761
+ "__docId__": 2535,
64734
64762
  "kind": "testDescribe",
64735
64763
  "name": "describe223",
64736
64764
  "testId": 223,
@@ -64743,7 +64771,7 @@
64743
64771
  "lineNumber": 101
64744
64772
  },
64745
64773
  {
64746
- "__docId__": 2535,
64774
+ "__docId__": 2536,
64747
64775
  "kind": "testIt",
64748
64776
  "name": "it224",
64749
64777
  "testId": 224,
@@ -64756,7 +64784,7 @@
64756
64784
  "lineNumber": 109
64757
64785
  },
64758
64786
  {
64759
- "__docId__": 2536,
64787
+ "__docId__": 2537,
64760
64788
  "kind": "testIt",
64761
64789
  "name": "it225",
64762
64790
  "testId": 225,
@@ -64769,7 +64797,7 @@
64769
64797
  "lineNumber": 120
64770
64798
  },
64771
64799
  {
64772
- "__docId__": 2537,
64800
+ "__docId__": 2538,
64773
64801
  "kind": "testIt",
64774
64802
  "name": "it226",
64775
64803
  "testId": 226,
@@ -64782,7 +64810,7 @@
64782
64810
  "lineNumber": 166
64783
64811
  },
64784
64812
  {
64785
- "__docId__": 2538,
64813
+ "__docId__": 2539,
64786
64814
  "kind": "testDescribe",
64787
64815
  "name": "describe227",
64788
64816
  "testId": 227,
@@ -64795,7 +64823,7 @@
64795
64823
  "lineNumber": 176
64796
64824
  },
64797
64825
  {
64798
- "__docId__": 2539,
64826
+ "__docId__": 2540,
64799
64827
  "kind": "testIt",
64800
64828
  "name": "it228",
64801
64829
  "testId": 228,
@@ -64808,7 +64836,7 @@
64808
64836
  "lineNumber": 183
64809
64837
  },
64810
64838
  {
64811
- "__docId__": 2540,
64839
+ "__docId__": 2541,
64812
64840
  "kind": "testDescribe",
64813
64841
  "name": "describe229",
64814
64842
  "testId": 229,
@@ -64821,7 +64849,7 @@
64821
64849
  "lineNumber": 199
64822
64850
  },
64823
64851
  {
64824
- "__docId__": 2541,
64852
+ "__docId__": 2542,
64825
64853
  "kind": "testIt",
64826
64854
  "name": "it230",
64827
64855
  "testId": 230,
@@ -64834,7 +64862,7 @@
64834
64862
  "lineNumber": 239
64835
64863
  },
64836
64864
  {
64837
- "__docId__": 2542,
64865
+ "__docId__": 2543,
64838
64866
  "kind": "testIt",
64839
64867
  "name": "it231",
64840
64868
  "testId": 231,
@@ -64847,7 +64875,7 @@
64847
64875
  "lineNumber": 253
64848
64876
  },
64849
64877
  {
64850
- "__docId__": 2543,
64878
+ "__docId__": 2544,
64851
64879
  "kind": "testFile",
64852
64880
  "name": "client/users/find.spec.js",
64853
64881
  "content": "/*define(function () {\r\n\tmocha.setup('bdd');\t\t\r\n describe('Testing user api 2', function() {\r\n \tit('search a user that exists', function() {\t \t\r\n\t\t return ogapi.users.addEmail('root@amplia.es').execute().then(function(user) {\r\n\t\t assert.strictEqual(user.email,'root@amplia.es');\r\n\t\t });\r\n\t\t}); \r\n });\r\n})\r\n*/",
@@ -64858,7 +64886,7 @@
64858
64886
  "lineNumber": 1
64859
64887
  },
64860
64888
  {
64861
- "__docId__": 2544,
64889
+ "__docId__": 2545,
64862
64890
  "kind": "testFile",
64863
64891
  "name": "client/users/user.spec.js",
64864
64892
  "content": "define(function () {\r\n mocha.setup('bdd');\r\n describe('Testing user api', function () {\r\n it('search a user that exists', function () {\r\n assert.strictEqual('root@amplia.es', 'root@amplia.es');\r\n });\r\n });\r\n\r\n describe('Create User:', function () {\r\n \r\n it('Create a user', function () {\r\n var user = ogapi.newUser();\r\n user.withName(\"Katherin\").withEmail(\"katherin.moscoso@amplia.es\")\r\n .withPassword(\"amplia123\").withWorkgroup(\"amplia_rd\").withDomain(\"amplia_rd\").withProfile(\"advanced\")\r\n .withCountryCode(\"ES\").withLangCode(\"en\").withDescription(\"user description\").withSurname(\"Moscoso\");\r\n assert.doesNotThrow(function () {\r\n user.create();\r\n });\r\n\r\n });\r\n\r\n });\r\n describe('Delete User:', function () {\r\n \r\n it('Delete a user', function () {\r\n var user = ogapi.newUser();\r\n user.withEmail(\"katherin.moscoso@amplia.es\");\r\n assert.doesNotThrow(function () {\r\n user.delete();\r\n });\r\n\r\n });\r\n\r\n });\r\n});",
@@ -64869,7 +64897,7 @@
64869
64897
  "lineNumber": 1
64870
64898
  },
64871
64899
  {
64872
- "__docId__": 2545,
64900
+ "__docId__": 2546,
64873
64901
  "kind": "testDescribe",
64874
64902
  "name": "describe232",
64875
64903
  "testId": 232,
@@ -64882,7 +64910,7 @@
64882
64910
  "lineNumber": 3
64883
64911
  },
64884
64912
  {
64885
- "__docId__": 2546,
64913
+ "__docId__": 2547,
64886
64914
  "kind": "testIt",
64887
64915
  "name": "it233",
64888
64916
  "testId": 233,
@@ -64895,7 +64923,7 @@
64895
64923
  "lineNumber": 4
64896
64924
  },
64897
64925
  {
64898
- "__docId__": 2547,
64926
+ "__docId__": 2548,
64899
64927
  "kind": "testDescribe",
64900
64928
  "name": "describe234",
64901
64929
  "testId": 234,
@@ -64908,7 +64936,7 @@
64908
64936
  "lineNumber": 9
64909
64937
  },
64910
64938
  {
64911
- "__docId__": 2548,
64939
+ "__docId__": 2549,
64912
64940
  "kind": "testIt",
64913
64941
  "name": "it235",
64914
64942
  "testId": 235,
@@ -64921,7 +64949,7 @@
64921
64949
  "lineNumber": 11
64922
64950
  },
64923
64951
  {
64924
- "__docId__": 2549,
64952
+ "__docId__": 2550,
64925
64953
  "kind": "testDescribe",
64926
64954
  "name": "describe236",
64927
64955
  "testId": 236,
@@ -64934,7 +64962,7 @@
64934
64962
  "lineNumber": 23
64935
64963
  },
64936
64964
  {
64937
- "__docId__": 2550,
64965
+ "__docId__": 2551,
64938
64966
  "kind": "testIt",
64939
64967
  "name": "it237",
64940
64968
  "testId": 237,