opengate-js 11.9.1 → 11.9.2
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/bower.json +1 -1
- package/dist/{opengate-api-bower-11.9.1.js → opengate-api-bower-11.9.2.js} +17 -14
- package/dist/opengate-api-bower-11.9.2.js.map +1 -0
- package/dist/{opengate-api-bower-11.9.1.min.js → opengate-api-bower-11.9.2.min.js} +12 -12
- package/dist/opengate-api-bower-11.9.2.min.js.map +1 -0
- package/dist/src/util/searchingFields/FieldFinder.js +13 -10
- package/dist/src/util/searchingFields/FieldFinder.js.map +1 -1
- package/docs/ast/source/util/searchingFields/FieldFinder.js.json +21532 -21355
- package/docs/class/src/util/searchingFields/FieldFinder.js~FieldFinder.html +6 -6
- package/docs/coverage.json +5 -5
- package/docs/dump.json +469 -391
- package/docs/file/src/util/searchingFields/FieldFinder.js.html +14 -10
- package/docs/package.json +1 -1
- package/docs/source.html +198 -198
- package/features/features/filter/filter_dataset_fields.feature +10 -1
- package/features/step_definitions/when_step_definitions.js +1 -1
- package/package.json +1 -1
- package/scripts/execute_tests.js +2 -2
- package/src/util/searchingFields/FieldFinder.js +14 -10
- package/dist/opengate-api-bower-11.9.1.js.map +0 -1
- package/dist/opengate-api-bower-11.9.1.min.js.map +0 -1
package/docs/dump.json
CHANGED
|
@@ -59168,7 +59168,7 @@
|
|
|
59168
59168
|
"__docId__": 2223,
|
|
59169
59169
|
"kind": "file",
|
|
59170
59170
|
"name": "src/util/searchingFields/FieldFinder.js",
|
|
59171
|
-
"content": "//https://github.com/kriskowal/q\nimport 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': 'BULK',\n '/devices': 'SearchOnDatamodel',\n '/subscriptions': 'SearchOnDatamodel',\n '/subscribers': 'SearchOnDatamodel',\n '/entities': 'SearchOnDatamodel',\n 'entity-asset': 'SearchOnDatamodel',\n '/tickets': 'SearchOnDatamodel',\n '/channels': 'SearchOnDatamodel',\n 'datasets': 'SearchOnDataset'\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';\nconst SEARCH_COLUMNS = 'dataset';\n\nconst TYPE_FIELD = {\n get: function(url) {\n if (complexPrimaryType.indexOf(match_url[url]) >= 0) {\n return COMPLEX_FIELDS;\n }\n switch (match_url[url]) {\n case 'SearchOnDatamodel': \n return SEARCH_FIELDS;\n case 'SearchOnDataset':\n return SEARCH_COLUMNS;\n default:\n return SIMPLE_FIELDS;\n }\n }\n};\nconst _getCustomSchema = function(_ds, schema) {\n let result\n const ds = _ds[0]\n if(!ds || !schema.properties || !schema.properties[ds]){\n result = schema\n } else{\n result = _getCustomSchema(_ds.slice(1), schema.properties[ds])\n }\n return result\n}\n\nconst _getDatamodelFields = function(parent, objSearcher){\n let defered = q.defer();\n const selectedField = objSearcher.selectedField\n const selectAll = objSearcher.selectAll\n const organization = objSearcher.extraData && objSearcher.extraData.organization\n let datamodelSearchBuilder = parent._ogapi.datamodelsSearchBuilder();\n\n let rtFilter = {\n 'and': []\n };\n\n if (parent._resourceTypes) {\n rtFilter.and.push({\n 'in': {\n 'datamodels.allowedResourceTypes': parent._resourceTypes\n }\n });\n }\n if(organization){\n rtFilter.and.push({\n 'eq': {\n 'datamodels.organizationName': organization\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 return defered.promise\n}\n\n\nconst FIELD_SEARCHER = {\n \n [SEARCH_FIELDS]: function(objSearcher, defered) {\n https://github.com/kriskowal/q#using-deferreds\n _getDatamodelFields(this, objSearcher).then(function(response){\n defered.resolve(response)\n }).catch(function(err){\n defered.reject(err)\n })\n },\n [SIMPLE_FIELDS]: function(objSearcher, defered) {\n const context = objSearcher.context\n const primaryType = objSearcher.primaryType\n const field = objSearcher.selectedField\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(objSearcher, defered) {\n const states = objSearcher.states\n const context = objSearcher.context\n const primaryType = objSearcher.primaryType\n\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 //TODO: refactorizar método\n [SEARCH_COLUMNS]: function(objSearcher, defered) {\n https://github.com/kriskowal/q#using-deferreds\n const selectedField = objSearcher.selectedField\n //GET dataset by organization and datasetId\n var columnDatastreams = []\n const _this = this\n var organization = objSearcher.extraData.organization\n var dataset = objSearcher.extraData.dataset\n _this._ogapi.newDatasetFinder().findByOrganizationAndDatasetId(organization, dataset)\n .then(function (response) {\n if (response.statusCode === 200) {\n var columns = response.data.columns\n //search de la definición de schemas de opengate\n _this._ogapi.basicTypesSearchBuilder().withPath('$').build().execute().then(function (basicTypes) {\n const definitions = basicTypes.data.definitions\n let query = {selectAll: true}\n if (selectedField) {\n columns = columns.filter(function (column) { return selectedField === column.name })\n const column = columns[0]\n const datastreamMatch = column.path.match(new RegExp(\"^(.+)._current\\.?(.+)?$\"));\n const datastream = datastreamMatch[1].replace(new RegExp(\"\\[[0-9]+\\]\"), \"[]\")\n query = {selectedField: datastream}\n }\n query.organization = organization\n //recuperamos la defnición de todas las columnas y todos los datastreams\n _getDatamodelFields(_this, query).then(function (datamodelFields) {\n columns.forEach(function (column) {\n //Expresión regular para recuperar el path del datastream (1) y, si se tratase de un datastream complejo, también el path hasta el dato simple (2).\n //Datastream simple: provision.device.identifier._current.value, device.communicationModules[0].subscriber.mobile.icc._current.at\n //Datastream complejo: device.model._current.value.manufacturer, device.location._current.value.position.type\n const datastreamMatch = column.path.match(new RegExp(\"^(.+)._current\\.?(.+)?$\"));\n const datastream = datastreamMatch[1].replace(new RegExp(\"\\[[0-9]+\\]\"), \"[]\")\n const subdatastream = datastreamMatch[2].replace(new RegExp('value\\.?'), '');\n //Buscamos la definición del datastream en el datamodel\n const datamodelField = Array.isArray(datamodelFields) ? datamodelFields.find(function (df) {\n return datastream === df.identifier\n }) : datamodelFields\n const schema = datamodelField.schema\n // si es un datastream simple, la asignación es directa\n if (!subdatastream) {\n column.schema = schema\n } else {\n //si es un datastream complejo hay que navegar por el schema hasta encontrar su tipo\n const sds = subdatastream.split('.')\n let _schema = (schema.$ref && definitions[schema.$ref.replace(new RegExp('.*#/definitions/'), '')]) || schema\n sds.forEach(function (sd) {\n // caso: device.model._current.at - no hay schema\n _schema = _schema && _schema.properties && _schema.properties[sd]\n })\n column.schema = _schema\n }\n //simular los campos de un datastream\n column.identifier = column.name\n column.indexed = column.filter === 'YES' || column.filter === 'ALLWAYS'\n column.notFilterable = column.filter === 'NO'\n columnDatastreams.push(column)\n })\n defered.resolve(columnDatastreams);\n }).catch(function (error) {\n console.log(error)\n defered.reject(error);\n });\n\n }).catch(function (error) {\n console.log(error)\n defered.reject(error);\n });\n }\n }).catch(function (error) {\n console.log(error)\n defered.reject(error);\n });\n }\n}\n\nexport default class FieldFinder {\n constructor(ogapi, url, extraData) {\n this._ogapi = ogapi;\n this._url = url;\n this._type = TYPE_FIELD.get(url);\n this._extraData = extraData\n\n if (this._type === SEARCH_FIELDS) {\n this._resourceTypes = match_url_resourceType.get(url);\n }\n }\n find(input = \"\") {\n let defered = q.defer();\n let objSearcher = {\n states : input.split('.'),\n context:FIELDS[match_url[this._url]],\n primaryType: match_url[this._url],\n extraData: this._extraData\n }\n FIELD_SEARCHER[this._type].call(this, objSearcher, defered);\n return defered.promise;\n }\n findAll(input = \"\") {\n let defered = q.defer();\n let objSearcher = {\n states : input.split('.'),\n context:FIELDS[match_url[this._url]],\n primaryType: match_url[this._url], \n selectAll: true,\n extraData: this._extraData\n }\n FIELD_SEARCHER[this._type].call(this, objSearcher, defered);\n return defered.promise;\n }\n\n findFieldPath(field = \"\") {\n let defered = q.defer();\n let objSearcher = {\n states : field,\n context:FIELDS[match_url[this._url]],\n primaryType: match_url[this._url],\n selectedField: field,\n extraData: this._extraData\n }\n FIELD_SEARCHER[this._type].call(this, objSearcher, defered);\n return defered.promise;\n }\n}",
|
|
59171
|
+
"content": "//https://github.com/kriskowal/q\nimport 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 REGEX_PATH_CURRENT = new RegExp(\"^(.+)._current\\\\.?(.+)?$\")\nconst REGEX_PATH_ARRAY = new RegExp(\"\\\\[[0-9]+\\\\]\")\nconst REGEX_DATASTREAM_VALUE = new RegExp('value\\\\.?')\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': 'BULK',\n '/devices': 'SearchOnDatamodel',\n '/subscriptions': 'SearchOnDatamodel',\n '/subscribers': 'SearchOnDatamodel',\n '/entities': 'SearchOnDatamodel',\n 'entity-asset': 'SearchOnDatamodel',\n '/tickets': 'SearchOnDatamodel',\n '/channels': 'SearchOnDatamodel',\n 'datasets': 'SearchOnDataset'\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';\nconst SEARCH_COLUMNS = 'dataset';\n\nconst TYPE_FIELD = {\n get: function(url) {\n if (complexPrimaryType.indexOf(match_url[url]) >= 0) {\n return COMPLEX_FIELDS;\n }\n switch (match_url[url]) {\n case 'SearchOnDatamodel': \n return SEARCH_FIELDS;\n case 'SearchOnDataset':\n return SEARCH_COLUMNS;\n default:\n return SIMPLE_FIELDS;\n }\n }\n};\nconst _getCustomSchema = function(_ds, schema) {\n let result\n const ds = _ds[0]\n if(!ds || !schema.properties || !schema.properties[ds]){\n result = schema\n } else{\n result = _getCustomSchema(_ds.slice(1), schema.properties[ds])\n }\n return result\n}\n\nconst _getDatamodelFields = function(parent, objSearcher){\n let defered = q.defer();\n const selectedField = objSearcher.selectedField\n const selectAll = objSearcher.selectAll\n const organization = objSearcher.extraData && objSearcher.extraData.organization\n let datamodelSearchBuilder = parent._ogapi.datamodelsSearchBuilder();\n\n let rtFilter = {\n 'and': []\n };\n\n if (parent._resourceTypes) {\n rtFilter.and.push({\n 'in': {\n 'datamodels.allowedResourceTypes': parent._resourceTypes\n }\n });\n }\n if(organization){\n rtFilter.and.push({\n 'eq': {\n 'datamodels.organizationName': organization\n }\n });\n }\n if (selectedField) {\n rtFilter.and.push({\n 'eq': {\n 'datamodels.categories.datastreams.identifier': selectedField\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 return defered.promise\n}\n\n\nconst FIELD_SEARCHER = {\n \n [SEARCH_FIELDS]: function(objSearcher, defered) {\n https://github.com/kriskowal/q#using-deferreds\n _getDatamodelFields(this, objSearcher).then(function(response){\n defered.resolve(response)\n }).catch(function(err){\n defered.reject(err)\n })\n },\n [SIMPLE_FIELDS]: function(objSearcher, defered) {\n const context = objSearcher.context\n const primaryType = objSearcher.primaryType\n const field = objSearcher.selectedField\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(objSearcher, defered) {\n const states = objSearcher.states\n const context = objSearcher.context\n const primaryType = objSearcher.primaryType\n\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 //TODO: refactorizar método\n [SEARCH_COLUMNS]: function(objSearcher, defered) {\n https://github.com/kriskowal/q#using-deferreds\n const selectedField = objSearcher.selectedField\n //GET dataset by organization and datasetId\n var columnDatastreams = []\n const _this = this\n var organization = objSearcher.extraData.organization\n var dataset = objSearcher.extraData.dataset\n _this._ogapi.newDatasetFinder().findByOrganizationAndDatasetId(organization, dataset)\n .then(function (response) {\n if (response.statusCode === 200) {\n var columns = response.data.columns\n //search de la definición de schemas de opengate\n _this._ogapi.basicTypesSearchBuilder().withPath('$').build().execute().then(function (basicTypes) {\n const definitions = basicTypes.data.definitions\n objSearcher.selectAll = true\n if (selectedField) {\n columns = columns.filter(function (column) { return selectedField === column.name })\n const column = columns[0]\n const datastreamMatch = column.path.match(REGEX_PATH_CURRENT);\n const datastream = datastreamMatch[1].replace(REGEX_PATH_ARRAY, \"[]\")\n objSearcher.selectedField = datastream\n }\n //recuperamos la defnición de todas las columnas y todos los datastreams\n _getDatamodelFields(_this, objSearcher).then(function (datamodelFields) {\n columns.forEach(function (column) {\n //Expresión regular para recuperar el path del datastream (1) y, si se tratase de un datastream complejo, también el path hasta el dato simple (2).\n //Datastream simple: provision.device.identifier._current.value, device.communicationModules[0].subscriber.mobile.icc._current.at\n //Datastream complejo: device.model._current.value.manufacturer, device.location._current.value.position.type\n const datastreamMatch = column.path.match(REGEX_PATH_CURRENT);\n //Eliminamos el indice para los modulos de comunicaciones y los arrays para el resto de datastreams\n const datastream = datastreamMatch[1].replace(REGEX_PATH_ARRAY, \"[]\")\n const subdatastream = datastreamMatch[2].replace(REGEX_DATASTREAM_VALUE, '').replace(REGEX_PATH_ARRAY, '');\n //Buscamos la definición del datastream en el datamodel\n const datamodelField = Array.isArray(datamodelFields) ? datamodelFields.find(function (df) {\n return datastream === df.identifier\n }) : datamodelFields\n const schema = datamodelField.schema\n // si es un datastream simple, la asignación es directa\n if (!subdatastream) {\n column.schema = schema\n } else {\n //si es un datastream complejo hay que navegar por el schema hasta encontrar su tipo\n const sds = subdatastream.split('.')\n let _schema = (schema.$ref && definitions[schema.$ref.replace(new RegExp('.*#/definitions/'), '')]) || schema\n sds.forEach(function (sd) {\n // caso: device.model._current.at - no hay schema\n _schema = _schema && _schema.properties && _schema.properties[sd]\n })\n column.schema = _schema\n }\n //simular los campos de un datastream\n column.identifier = column.name\n column.indexed = column.filter === 'YES' || column.filter === 'ALLWAYS'\n column.notFilterable = column.filter === 'NO'\n columnDatastreams.push(column)\n })\n defered.resolve(columnDatastreams);\n }).catch(function (error) {\n console.log(error)\n defered.reject(error);\n });\n\n }).catch(function (error) {\n console.log(error)\n defered.reject(error);\n });\n }\n }).catch(function (error) {\n console.log(error)\n defered.reject(error);\n });\n }\n}\n\nexport default class FieldFinder {\n constructor(ogapi, url, extraData) {\n this._ogapi = ogapi;\n this._url = url;\n this._type = TYPE_FIELD.get(url);\n this._extraData = extraData\n\n if (this._type === SEARCH_FIELDS) {\n this._resourceTypes = match_url_resourceType.get(url);\n }\n }\n find(input = \"\") {\n let defered = q.defer();\n let objSearcher = {\n states : input.split('.'),\n context:FIELDS[match_url[this._url]],\n primaryType: match_url[this._url],\n extraData: this._extraData\n }\n FIELD_SEARCHER[this._type].call(this, objSearcher, defered);\n return defered.promise;\n }\n findAll(input = \"\") {\n let defered = q.defer();\n let objSearcher = {\n states : input.split('.'),\n context:FIELDS[match_url[this._url]],\n primaryType: match_url[this._url], \n selectAll: true,\n extraData: this._extraData\n }\n FIELD_SEARCHER[this._type].call(this, objSearcher, defered);\n return defered.promise;\n }\n\n findFieldPath(field = \"\") {\n let defered = q.defer();\n let objSearcher = {\n states : field,\n context:FIELDS[match_url[this._url]],\n primaryType: match_url[this._url],\n selectedField: field,\n extraData: this._extraData\n }\n FIELD_SEARCHER[this._type].call(this, objSearcher, defered);\n return defered.promise;\n }\n}",
|
|
59172
59172
|
"static": true,
|
|
59173
59173
|
"longname": "src/util/searchingFields/FieldFinder.js",
|
|
59174
59174
|
"access": null,
|
|
@@ -59204,6 +59204,84 @@
|
|
|
59204
59204
|
{
|
|
59205
59205
|
"__docId__": 2225,
|
|
59206
59206
|
"kind": "variable",
|
|
59207
|
+
"name": "REGEX_PATH_CURRENT",
|
|
59208
|
+
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
59209
|
+
"static": true,
|
|
59210
|
+
"longname": "src/util/searchingFields/FieldFinder.js~REGEX_PATH_CURRENT",
|
|
59211
|
+
"access": null,
|
|
59212
|
+
"export": false,
|
|
59213
|
+
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59214
|
+
"importStyle": null,
|
|
59215
|
+
"description": null,
|
|
59216
|
+
"lineNumber": 21,
|
|
59217
|
+
"undocument": true,
|
|
59218
|
+
"unknown": [
|
|
59219
|
+
{
|
|
59220
|
+
"tagName": "@_undocument",
|
|
59221
|
+
"tagValue": ""
|
|
59222
|
+
}
|
|
59223
|
+
],
|
|
59224
|
+
"type": {
|
|
59225
|
+
"types": [
|
|
59226
|
+
"RegExp"
|
|
59227
|
+
]
|
|
59228
|
+
}
|
|
59229
|
+
},
|
|
59230
|
+
{
|
|
59231
|
+
"__docId__": 2226,
|
|
59232
|
+
"kind": "variable",
|
|
59233
|
+
"name": "REGEX_PATH_ARRAY",
|
|
59234
|
+
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
59235
|
+
"static": true,
|
|
59236
|
+
"longname": "src/util/searchingFields/FieldFinder.js~REGEX_PATH_ARRAY",
|
|
59237
|
+
"access": null,
|
|
59238
|
+
"export": false,
|
|
59239
|
+
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59240
|
+
"importStyle": null,
|
|
59241
|
+
"description": null,
|
|
59242
|
+
"lineNumber": 22,
|
|
59243
|
+
"undocument": true,
|
|
59244
|
+
"unknown": [
|
|
59245
|
+
{
|
|
59246
|
+
"tagName": "@_undocument",
|
|
59247
|
+
"tagValue": ""
|
|
59248
|
+
}
|
|
59249
|
+
],
|
|
59250
|
+
"type": {
|
|
59251
|
+
"types": [
|
|
59252
|
+
"RegExp"
|
|
59253
|
+
]
|
|
59254
|
+
}
|
|
59255
|
+
},
|
|
59256
|
+
{
|
|
59257
|
+
"__docId__": 2227,
|
|
59258
|
+
"kind": "variable",
|
|
59259
|
+
"name": "REGEX_DATASTREAM_VALUE",
|
|
59260
|
+
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
59261
|
+
"static": true,
|
|
59262
|
+
"longname": "src/util/searchingFields/FieldFinder.js~REGEX_DATASTREAM_VALUE",
|
|
59263
|
+
"access": null,
|
|
59264
|
+
"export": false,
|
|
59265
|
+
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59266
|
+
"importStyle": null,
|
|
59267
|
+
"description": null,
|
|
59268
|
+
"lineNumber": 23,
|
|
59269
|
+
"undocument": true,
|
|
59270
|
+
"unknown": [
|
|
59271
|
+
{
|
|
59272
|
+
"tagName": "@_undocument",
|
|
59273
|
+
"tagValue": ""
|
|
59274
|
+
}
|
|
59275
|
+
],
|
|
59276
|
+
"type": {
|
|
59277
|
+
"types": [
|
|
59278
|
+
"RegExp"
|
|
59279
|
+
]
|
|
59280
|
+
}
|
|
59281
|
+
},
|
|
59282
|
+
{
|
|
59283
|
+
"__docId__": 2228,
|
|
59284
|
+
"kind": "variable",
|
|
59207
59285
|
"name": "match_url",
|
|
59208
59286
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
59209
59287
|
"static": true,
|
|
@@ -59213,7 +59291,7 @@
|
|
|
59213
59291
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59214
59292
|
"importStyle": null,
|
|
59215
59293
|
"description": null,
|
|
59216
|
-
"lineNumber":
|
|
59294
|
+
"lineNumber": 26,
|
|
59217
59295
|
"undocument": true,
|
|
59218
59296
|
"unknown": [
|
|
59219
59297
|
{
|
|
@@ -59228,7 +59306,7 @@
|
|
|
59228
59306
|
}
|
|
59229
59307
|
},
|
|
59230
59308
|
{
|
|
59231
|
-
"__docId__":
|
|
59309
|
+
"__docId__": 2229,
|
|
59232
59310
|
"kind": "variable",
|
|
59233
59311
|
"name": "match_context",
|
|
59234
59312
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59239,7 +59317,7 @@
|
|
|
59239
59317
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59240
59318
|
"importStyle": null,
|
|
59241
59319
|
"description": null,
|
|
59242
|
-
"lineNumber":
|
|
59320
|
+
"lineNumber": 55,
|
|
59243
59321
|
"undocument": true,
|
|
59244
59322
|
"unknown": [
|
|
59245
59323
|
{
|
|
@@ -59254,7 +59332,7 @@
|
|
|
59254
59332
|
}
|
|
59255
59333
|
},
|
|
59256
59334
|
{
|
|
59257
|
-
"__docId__":
|
|
59335
|
+
"__docId__": 2230,
|
|
59258
59336
|
"kind": "variable",
|
|
59259
59337
|
"name": "match_url_resourceType",
|
|
59260
59338
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59265,7 +59343,7 @@
|
|
|
59265
59343
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59266
59344
|
"importStyle": null,
|
|
59267
59345
|
"description": null,
|
|
59268
|
-
"lineNumber":
|
|
59346
|
+
"lineNumber": 62,
|
|
59269
59347
|
"undocument": true,
|
|
59270
59348
|
"unknown": [
|
|
59271
59349
|
{
|
|
@@ -59280,7 +59358,7 @@
|
|
|
59280
59358
|
}
|
|
59281
59359
|
},
|
|
59282
59360
|
{
|
|
59283
|
-
"__docId__":
|
|
59361
|
+
"__docId__": 2231,
|
|
59284
59362
|
"kind": "variable",
|
|
59285
59363
|
"name": "match_type",
|
|
59286
59364
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59291,7 +59369,7 @@
|
|
|
59291
59369
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59292
59370
|
"importStyle": null,
|
|
59293
59371
|
"description": null,
|
|
59294
|
-
"lineNumber":
|
|
59372
|
+
"lineNumber": 77,
|
|
59295
59373
|
"undocument": true,
|
|
59296
59374
|
"unknown": [
|
|
59297
59375
|
{
|
|
@@ -59306,7 +59384,7 @@
|
|
|
59306
59384
|
}
|
|
59307
59385
|
},
|
|
59308
59386
|
{
|
|
59309
|
-
"__docId__":
|
|
59387
|
+
"__docId__": 2232,
|
|
59310
59388
|
"kind": "variable",
|
|
59311
59389
|
"name": "match_type_inverse",
|
|
59312
59390
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59317,7 +59395,7 @@
|
|
|
59317
59395
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59318
59396
|
"importStyle": null,
|
|
59319
59397
|
"description": null,
|
|
59320
|
-
"lineNumber":
|
|
59398
|
+
"lineNumber": 84,
|
|
59321
59399
|
"undocument": true,
|
|
59322
59400
|
"unknown": [
|
|
59323
59401
|
{
|
|
@@ -59332,7 +59410,7 @@
|
|
|
59332
59410
|
}
|
|
59333
59411
|
},
|
|
59334
59412
|
{
|
|
59335
|
-
"__docId__":
|
|
59413
|
+
"__docId__": 2233,
|
|
59336
59414
|
"kind": "variable",
|
|
59337
59415
|
"name": "fields_related",
|
|
59338
59416
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59343,7 +59421,7 @@
|
|
|
59343
59421
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59344
59422
|
"importStyle": null,
|
|
59345
59423
|
"description": null,
|
|
59346
|
-
"lineNumber":
|
|
59424
|
+
"lineNumber": 91,
|
|
59347
59425
|
"undocument": true,
|
|
59348
59426
|
"unknown": [
|
|
59349
59427
|
{
|
|
@@ -59358,7 +59436,7 @@
|
|
|
59358
59436
|
}
|
|
59359
59437
|
},
|
|
59360
59438
|
{
|
|
59361
|
-
"__docId__":
|
|
59439
|
+
"__docId__": 2234,
|
|
59362
59440
|
"kind": "variable",
|
|
59363
59441
|
"name": "complexPrimaryType",
|
|
59364
59442
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59369,7 +59447,7 @@
|
|
|
59369
59447
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59370
59448
|
"importStyle": null,
|
|
59371
59449
|
"description": null,
|
|
59372
|
-
"lineNumber":
|
|
59450
|
+
"lineNumber": 93,
|
|
59373
59451
|
"undocument": true,
|
|
59374
59452
|
"unknown": [
|
|
59375
59453
|
{
|
|
@@ -59384,7 +59462,7 @@
|
|
|
59384
59462
|
}
|
|
59385
59463
|
},
|
|
59386
59464
|
{
|
|
59387
|
-
"__docId__":
|
|
59465
|
+
"__docId__": 2235,
|
|
59388
59466
|
"kind": "variable",
|
|
59389
59467
|
"name": "complexFields",
|
|
59390
59468
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59395,7 +59473,7 @@
|
|
|
59395
59473
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59396
59474
|
"importStyle": null,
|
|
59397
59475
|
"description": null,
|
|
59398
|
-
"lineNumber":
|
|
59476
|
+
"lineNumber": 94,
|
|
59399
59477
|
"undocument": true,
|
|
59400
59478
|
"unknown": [
|
|
59401
59479
|
{
|
|
@@ -59410,7 +59488,7 @@
|
|
|
59410
59488
|
}
|
|
59411
59489
|
},
|
|
59412
59490
|
{
|
|
59413
|
-
"__docId__":
|
|
59491
|
+
"__docId__": 2236,
|
|
59414
59492
|
"kind": "variable",
|
|
59415
59493
|
"name": "SIMPLE_FIELDS",
|
|
59416
59494
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59421,7 +59499,7 @@
|
|
|
59421
59499
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59422
59500
|
"importStyle": null,
|
|
59423
59501
|
"description": null,
|
|
59424
|
-
"lineNumber":
|
|
59502
|
+
"lineNumber": 95,
|
|
59425
59503
|
"undocument": true,
|
|
59426
59504
|
"unknown": [
|
|
59427
59505
|
{
|
|
@@ -59436,7 +59514,7 @@
|
|
|
59436
59514
|
}
|
|
59437
59515
|
},
|
|
59438
59516
|
{
|
|
59439
|
-
"__docId__":
|
|
59517
|
+
"__docId__": 2237,
|
|
59440
59518
|
"kind": "variable",
|
|
59441
59519
|
"name": "COMPLEX_FIELDS",
|
|
59442
59520
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59447,7 +59525,7 @@
|
|
|
59447
59525
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59448
59526
|
"importStyle": null,
|
|
59449
59527
|
"description": null,
|
|
59450
|
-
"lineNumber":
|
|
59528
|
+
"lineNumber": 96,
|
|
59451
59529
|
"undocument": true,
|
|
59452
59530
|
"unknown": [
|
|
59453
59531
|
{
|
|
@@ -59462,7 +59540,7 @@
|
|
|
59462
59540
|
}
|
|
59463
59541
|
},
|
|
59464
59542
|
{
|
|
59465
|
-
"__docId__":
|
|
59543
|
+
"__docId__": 2238,
|
|
59466
59544
|
"kind": "variable",
|
|
59467
59545
|
"name": "SEARCH_FIELDS",
|
|
59468
59546
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59473,7 +59551,7 @@
|
|
|
59473
59551
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59474
59552
|
"importStyle": null,
|
|
59475
59553
|
"description": null,
|
|
59476
|
-
"lineNumber":
|
|
59554
|
+
"lineNumber": 97,
|
|
59477
59555
|
"undocument": true,
|
|
59478
59556
|
"unknown": [
|
|
59479
59557
|
{
|
|
@@ -59488,7 +59566,7 @@
|
|
|
59488
59566
|
}
|
|
59489
59567
|
},
|
|
59490
59568
|
{
|
|
59491
|
-
"__docId__":
|
|
59569
|
+
"__docId__": 2239,
|
|
59492
59570
|
"kind": "variable",
|
|
59493
59571
|
"name": "SEARCH_COLUMNS",
|
|
59494
59572
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59499,7 +59577,7 @@
|
|
|
59499
59577
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59500
59578
|
"importStyle": null,
|
|
59501
59579
|
"description": null,
|
|
59502
|
-
"lineNumber":
|
|
59580
|
+
"lineNumber": 98,
|
|
59503
59581
|
"undocument": true,
|
|
59504
59582
|
"unknown": [
|
|
59505
59583
|
{
|
|
@@ -59514,7 +59592,7 @@
|
|
|
59514
59592
|
}
|
|
59515
59593
|
},
|
|
59516
59594
|
{
|
|
59517
|
-
"__docId__":
|
|
59595
|
+
"__docId__": 2240,
|
|
59518
59596
|
"kind": "variable",
|
|
59519
59597
|
"name": "TYPE_FIELD",
|
|
59520
59598
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59525,7 +59603,7 @@
|
|
|
59525
59603
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59526
59604
|
"importStyle": null,
|
|
59527
59605
|
"description": null,
|
|
59528
|
-
"lineNumber":
|
|
59606
|
+
"lineNumber": 100,
|
|
59529
59607
|
"undocument": true,
|
|
59530
59608
|
"unknown": [
|
|
59531
59609
|
{
|
|
@@ -59540,7 +59618,7 @@
|
|
|
59540
59618
|
}
|
|
59541
59619
|
},
|
|
59542
59620
|
{
|
|
59543
|
-
"__docId__":
|
|
59621
|
+
"__docId__": 2241,
|
|
59544
59622
|
"kind": "function",
|
|
59545
59623
|
"name": "_getCustomSchema",
|
|
59546
59624
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59553,7 +59631,7 @@
|
|
|
59553
59631
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59554
59632
|
"importStyle": null,
|
|
59555
59633
|
"description": null,
|
|
59556
|
-
"lineNumber":
|
|
59634
|
+
"lineNumber": 115,
|
|
59557
59635
|
"undocument": true,
|
|
59558
59636
|
"unknown": [
|
|
59559
59637
|
{
|
|
@@ -59582,7 +59660,7 @@
|
|
|
59582
59660
|
}
|
|
59583
59661
|
},
|
|
59584
59662
|
{
|
|
59585
|
-
"__docId__":
|
|
59663
|
+
"__docId__": 2242,
|
|
59586
59664
|
"kind": "function",
|
|
59587
59665
|
"name": "_getDatamodelFields",
|
|
59588
59666
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59595,7 +59673,7 @@
|
|
|
59595
59673
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59596
59674
|
"importStyle": null,
|
|
59597
59675
|
"description": null,
|
|
59598
|
-
"lineNumber":
|
|
59676
|
+
"lineNumber": 126,
|
|
59599
59677
|
"undocument": true,
|
|
59600
59678
|
"unknown": [
|
|
59601
59679
|
{
|
|
@@ -59624,7 +59702,7 @@
|
|
|
59624
59702
|
}
|
|
59625
59703
|
},
|
|
59626
59704
|
{
|
|
59627
|
-
"__docId__":
|
|
59705
|
+
"__docId__": 2243,
|
|
59628
59706
|
"kind": "variable",
|
|
59629
59707
|
"name": "FIELD_SEARCHER",
|
|
59630
59708
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59635,7 +59713,7 @@
|
|
|
59635
59713
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59636
59714
|
"importStyle": null,
|
|
59637
59715
|
"description": null,
|
|
59638
|
-
"lineNumber":
|
|
59716
|
+
"lineNumber": 203,
|
|
59639
59717
|
"undocument": true,
|
|
59640
59718
|
"unknown": [
|
|
59641
59719
|
{
|
|
@@ -59650,7 +59728,7 @@
|
|
|
59650
59728
|
}
|
|
59651
59729
|
},
|
|
59652
59730
|
{
|
|
59653
|
-
"__docId__":
|
|
59731
|
+
"__docId__": 2244,
|
|
59654
59732
|
"kind": "class",
|
|
59655
59733
|
"name": "FieldFinder",
|
|
59656
59734
|
"memberof": "src/util/searchingFields/FieldFinder.js",
|
|
@@ -59661,7 +59739,7 @@
|
|
|
59661
59739
|
"importPath": "opengate-js/src/util/searchingFields/FieldFinder.js",
|
|
59662
59740
|
"importStyle": "FieldFinder",
|
|
59663
59741
|
"description": null,
|
|
59664
|
-
"lineNumber":
|
|
59742
|
+
"lineNumber": 422,
|
|
59665
59743
|
"undocument": true,
|
|
59666
59744
|
"unknown": [
|
|
59667
59745
|
{
|
|
@@ -59672,7 +59750,7 @@
|
|
|
59672
59750
|
"interface": false
|
|
59673
59751
|
},
|
|
59674
59752
|
{
|
|
59675
|
-
"__docId__":
|
|
59753
|
+
"__docId__": 2245,
|
|
59676
59754
|
"kind": "constructor",
|
|
59677
59755
|
"name": "constructor",
|
|
59678
59756
|
"memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
|
|
@@ -59682,7 +59760,7 @@
|
|
|
59682
59760
|
"longname": "src/util/searchingFields/FieldFinder.js~FieldFinder#constructor",
|
|
59683
59761
|
"access": null,
|
|
59684
59762
|
"description": null,
|
|
59685
|
-
"lineNumber":
|
|
59763
|
+
"lineNumber": 423,
|
|
59686
59764
|
"undocument": true,
|
|
59687
59765
|
"unknown": [
|
|
59688
59766
|
{
|
|
@@ -59712,7 +59790,7 @@
|
|
|
59712
59790
|
]
|
|
59713
59791
|
},
|
|
59714
59792
|
{
|
|
59715
|
-
"__docId__":
|
|
59793
|
+
"__docId__": 2246,
|
|
59716
59794
|
"kind": "member",
|
|
59717
59795
|
"name": "_ogapi",
|
|
59718
59796
|
"memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
|
|
@@ -59720,7 +59798,7 @@
|
|
|
59720
59798
|
"longname": "src/util/searchingFields/FieldFinder.js~FieldFinder#_ogapi",
|
|
59721
59799
|
"access": null,
|
|
59722
59800
|
"description": null,
|
|
59723
|
-
"lineNumber":
|
|
59801
|
+
"lineNumber": 424,
|
|
59724
59802
|
"undocument": true,
|
|
59725
59803
|
"unknown": [
|
|
59726
59804
|
{
|
|
@@ -59735,7 +59813,7 @@
|
|
|
59735
59813
|
}
|
|
59736
59814
|
},
|
|
59737
59815
|
{
|
|
59738
|
-
"__docId__":
|
|
59816
|
+
"__docId__": 2247,
|
|
59739
59817
|
"kind": "member",
|
|
59740
59818
|
"name": "_url",
|
|
59741
59819
|
"memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
|
|
@@ -59743,7 +59821,7 @@
|
|
|
59743
59821
|
"longname": "src/util/searchingFields/FieldFinder.js~FieldFinder#_url",
|
|
59744
59822
|
"access": null,
|
|
59745
59823
|
"description": null,
|
|
59746
|
-
"lineNumber":
|
|
59824
|
+
"lineNumber": 425,
|
|
59747
59825
|
"undocument": true,
|
|
59748
59826
|
"unknown": [
|
|
59749
59827
|
{
|
|
@@ -59758,7 +59836,7 @@
|
|
|
59758
59836
|
}
|
|
59759
59837
|
},
|
|
59760
59838
|
{
|
|
59761
|
-
"__docId__":
|
|
59839
|
+
"__docId__": 2248,
|
|
59762
59840
|
"kind": "member",
|
|
59763
59841
|
"name": "_type",
|
|
59764
59842
|
"memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
|
|
@@ -59766,7 +59844,7 @@
|
|
|
59766
59844
|
"longname": "src/util/searchingFields/FieldFinder.js~FieldFinder#_type",
|
|
59767
59845
|
"access": null,
|
|
59768
59846
|
"description": null,
|
|
59769
|
-
"lineNumber":
|
|
59847
|
+
"lineNumber": 426,
|
|
59770
59848
|
"undocument": true,
|
|
59771
59849
|
"unknown": [
|
|
59772
59850
|
{
|
|
@@ -59781,7 +59859,7 @@
|
|
|
59781
59859
|
}
|
|
59782
59860
|
},
|
|
59783
59861
|
{
|
|
59784
|
-
"__docId__":
|
|
59862
|
+
"__docId__": 2249,
|
|
59785
59863
|
"kind": "member",
|
|
59786
59864
|
"name": "_extraData",
|
|
59787
59865
|
"memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
|
|
@@ -59789,7 +59867,7 @@
|
|
|
59789
59867
|
"longname": "src/util/searchingFields/FieldFinder.js~FieldFinder#_extraData",
|
|
59790
59868
|
"access": null,
|
|
59791
59869
|
"description": null,
|
|
59792
|
-
"lineNumber":
|
|
59870
|
+
"lineNumber": 427,
|
|
59793
59871
|
"undocument": true,
|
|
59794
59872
|
"unknown": [
|
|
59795
59873
|
{
|
|
@@ -59804,7 +59882,7 @@
|
|
|
59804
59882
|
}
|
|
59805
59883
|
},
|
|
59806
59884
|
{
|
|
59807
|
-
"__docId__":
|
|
59885
|
+
"__docId__": 2250,
|
|
59808
59886
|
"kind": "member",
|
|
59809
59887
|
"name": "_resourceTypes",
|
|
59810
59888
|
"memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
|
|
@@ -59812,7 +59890,7 @@
|
|
|
59812
59890
|
"longname": "src/util/searchingFields/FieldFinder.js~FieldFinder#_resourceTypes",
|
|
59813
59891
|
"access": null,
|
|
59814
59892
|
"description": null,
|
|
59815
|
-
"lineNumber":
|
|
59893
|
+
"lineNumber": 430,
|
|
59816
59894
|
"undocument": true,
|
|
59817
59895
|
"unknown": [
|
|
59818
59896
|
{
|
|
@@ -59827,7 +59905,7 @@
|
|
|
59827
59905
|
}
|
|
59828
59906
|
},
|
|
59829
59907
|
{
|
|
59830
|
-
"__docId__":
|
|
59908
|
+
"__docId__": 2251,
|
|
59831
59909
|
"kind": "method",
|
|
59832
59910
|
"name": "find",
|
|
59833
59911
|
"memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
|
|
@@ -59837,7 +59915,7 @@
|
|
|
59837
59915
|
"longname": "src/util/searchingFields/FieldFinder.js~FieldFinder#find",
|
|
59838
59916
|
"access": null,
|
|
59839
59917
|
"description": null,
|
|
59840
|
-
"lineNumber":
|
|
59918
|
+
"lineNumber": 433,
|
|
59841
59919
|
"undocument": true,
|
|
59842
59920
|
"unknown": [
|
|
59843
59921
|
{
|
|
@@ -59863,7 +59941,7 @@
|
|
|
59863
59941
|
}
|
|
59864
59942
|
},
|
|
59865
59943
|
{
|
|
59866
|
-
"__docId__":
|
|
59944
|
+
"__docId__": 2252,
|
|
59867
59945
|
"kind": "method",
|
|
59868
59946
|
"name": "findAll",
|
|
59869
59947
|
"memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
|
|
@@ -59873,7 +59951,7 @@
|
|
|
59873
59951
|
"longname": "src/util/searchingFields/FieldFinder.js~FieldFinder#findAll",
|
|
59874
59952
|
"access": null,
|
|
59875
59953
|
"description": null,
|
|
59876
|
-
"lineNumber":
|
|
59954
|
+
"lineNumber": 444,
|
|
59877
59955
|
"undocument": true,
|
|
59878
59956
|
"unknown": [
|
|
59879
59957
|
{
|
|
@@ -59899,7 +59977,7 @@
|
|
|
59899
59977
|
}
|
|
59900
59978
|
},
|
|
59901
59979
|
{
|
|
59902
|
-
"__docId__":
|
|
59980
|
+
"__docId__": 2253,
|
|
59903
59981
|
"kind": "method",
|
|
59904
59982
|
"name": "findFieldPath",
|
|
59905
59983
|
"memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
|
|
@@ -59909,7 +59987,7 @@
|
|
|
59909
59987
|
"longname": "src/util/searchingFields/FieldFinder.js~FieldFinder#findFieldPath",
|
|
59910
59988
|
"access": null,
|
|
59911
59989
|
"description": null,
|
|
59912
|
-
"lineNumber":
|
|
59990
|
+
"lineNumber": 457,
|
|
59913
59991
|
"undocument": true,
|
|
59914
59992
|
"unknown": [
|
|
59915
59993
|
{
|
|
@@ -59935,7 +60013,7 @@
|
|
|
59935
60013
|
}
|
|
59936
60014
|
},
|
|
59937
60015
|
{
|
|
59938
|
-
"__docId__":
|
|
60016
|
+
"__docId__": 2254,
|
|
59939
60017
|
"kind": "file",
|
|
59940
60018
|
"name": "src/util/searchingFields/IotFields.js",
|
|
59941
60019
|
"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 \"BULK\": {\n \"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 \"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};",
|
|
@@ -59946,7 +60024,7 @@
|
|
|
59946
60024
|
"lineNumber": 1
|
|
59947
60025
|
},
|
|
59948
60026
|
{
|
|
59949
|
-
"__docId__":
|
|
60027
|
+
"__docId__": 2255,
|
|
59950
60028
|
"kind": "variable",
|
|
59951
60029
|
"name": "IOT_FIELDS",
|
|
59952
60030
|
"memberof": "src/util/searchingFields/IotFields.js",
|
|
@@ -59972,7 +60050,7 @@
|
|
|
59972
60050
|
}
|
|
59973
60051
|
},
|
|
59974
60052
|
{
|
|
59975
|
-
"__docId__":
|
|
60053
|
+
"__docId__": 2256,
|
|
59976
60054
|
"kind": "file",
|
|
59977
60055
|
"name": "src/util/searchingFields/source-precompiled/Fields.js",
|
|
59978
60056
|
"content": "// Fields generated at: Fri May 07 2021 12:57:57 GMT+0200 (Central European Summer Time)\n// DB: 172.19.18.242:1521/QA\nexport const GENERATED_FIELDS = {\n \"ENTITY_OPERATION\": {\n \"ENTITY_OPERATION\": [\n \"applicationEmail\",\n \"channelKey\",\n \"channelName\",\n \"domainKey\",\n \"entityId\",\n \"entityType\",\n \"entityUk\",\n \"jobActivatedDate\",\n \"jobEntityTotal\",\n \"jobErrorCode\",\n \"jobErrorDescription\",\n \"jobFinishedCancelledByEngine\",\n \"jobFinishedCancelledByExternal\",\n \"jobFinishedCancelledByExternalTimeout\",\n \"jobFinishedCancelledByTimeout\",\n \"jobFinishedCancelledByUser\",\n \"jobFinishedCancelledTotal\",\n \"jobFinishedDate\",\n \"jobFinishedError\",\n \"jobFinishedOotError\",\n \"jobFinishedOotSuccessful\",\n \"jobFinishedOotTotal\",\n \"jobFinishedSuccessful\",\n \"jobFinishedTotal\",\n \"jobId\",\n \"jobInProgressPendingExecution\",\n \"jobInProgressScheduled\",\n \"jobInProgressStarted\",\n \"jobInProgressTotal\",\n \"jobInProgressWaitingForConnection\",\n \"jobJson\",\n \"jobStartedDate\",\n \"jobState\",\n \"jobStatus\",\n \"jobTotal\",\n \"jobUser\",\n \"jobUserNotes\",\n \"notDeletable\",\n \"operationAttemptCurrent\",\n \"operationAttemptMax\",\n \"operationDate\",\n \"operationDetails\",\n \"operationEndDate\",\n \"operationId\",\n \"operationInitDate\",\n \"operationJson\",\n \"operationName\",\n \"operationNotify\",\n \"operationResult\",\n \"operationScheduleTimestamp\",\n \"operationStatus\",\n \"operationStatusKey\",\n \"operationStepDescription\",\n \"operationStepName\",\n \"operationStepResponse\",\n \"operationStepResult\",\n \"operationStepTimestamp\",\n \"operationTimeoutTimestamp\",\n \"operationUserNotes\",\n \"organizationKey\",\n \"organizationName\",\n \"profileKey\",\n \"provAdministrativeState\",\n \"provAdministrativeStateKey\",\n \"provDefaultFeed\",\n \"serviceGroupName\",\n \"tag\",\n \"taskEmpty_null\",\n \"taskId\",\n \"taskKey\",\n \"taskName\",\n \"taskState\",\n \"taskStatus\",\n \"workgroupKey\",\n \"workgroupName\"\n ]\n },\n \"MANUFACTURER\": {\n \"MANUFACTURER\": [\n \"manufacturerAddress\",\n \"manufacturerDescription\",\n \"manufacturerEmail\",\n \"manufacturerFax\",\n \"manufacturerIdentifier\",\n \"manufacturerMediaFileName\",\n \"manufacturerMediaHeight\",\n \"manufacturerMediaIdentifier\",\n \"manufacturerMediaName\",\n \"manufacturerMediaSize\",\n \"manufacturerMediaTypeName\",\n \"manufacturerMediaWidth\",\n \"manufacturerName\",\n \"manufacturerNotes\",\n \"manufacturerTelephone\",\n \"manufacturerUrl\",\n \"modelDescription\",\n \"modelIdentifier\",\n \"modelMediaFileName\",\n \"modelMediaHeight\",\n \"modelMediaIdentifier\",\n \"modelMediaName\",\n \"modelMediaSize\",\n \"modelMediaTypeName\",\n \"modelMediaWidth\",\n \"modelName\",\n \"modelNotes\",\n \"modelUrl\",\n \"modelVersion\"\n ]\n },\n \"MODEL\": {\n \"MODEL\": [\n \"modelDescription\",\n \"modelIdentifier\",\n \"modelName\",\n \"modelNotes\",\n \"modelUrl\",\n \"modelVersion\"\n ]\n },\n \"JOB\": {\n \"JOB\": [\n \"jobActivatedDate\",\n \"jobActivatedTime\",\n \"jobCallback\",\n \"jobEntityTotal\",\n \"jobErrorCode\",\n \"jobErrorDescription\",\n \"jobFinishedCancelledByEngine\",\n \"jobFinishedCancelledByExternal\",\n \"jobFinishedCancelledByExternalTimeout\",\n \"jobFinishedCancelledByTimeout\",\n \"jobFinishedCancelledByUser\",\n \"jobFinishedCancelledTotal\",\n \"jobFinishedDate\",\n \"jobFinishedError\",\n \"jobFinishedOotError\",\n \"jobFinishedOotSuccessful\",\n \"jobFinishedOotTotal\",\n \"jobFinishedSuccessful\",\n \"jobFinishedTime\",\n \"jobFinishedTotal\",\n \"jobId\",\n \"jobInProgressPendingExecution\",\n \"jobInProgressScheduled\",\n \"jobInProgressStarted\",\n \"jobInProgressTotal\",\n \"jobInProgressWaitingForConnection\",\n \"jobJson\",\n \"jobOperationName\",\n \"jobScheduledTime\",\n \"jobStartedDate\",\n \"jobState\",\n \"jobStatus\",\n \"jobTotal\",\n \"jobTrap\",\n \"jobUser\",\n \"jobUserNotes\",\n \"jobVisible\",\n \"operationId\",\n \"operationName\",\n \"operationResult\",\n \"operationStatusKey\",\n \"taskCoremessage\",\n \"taskId\",\n \"taskKey\",\n \"taskName\",\n \"taskNextExecution\",\n \"taskState\",\n \"taskStatus\"\n ]\n },\n \"SOFTWARE_VERSION\": {\n \"SOFTWARE_VERSION\": [\n \"manufacturerAddress\",\n \"manufacturerDescription\",\n \"manufacturerEmail\",\n \"manufacturerFax\",\n \"manufacturerIdentifier\",\n \"manufacturerName\",\n \"manufacturerNotes\",\n \"manufacturerTelephone\",\n \"manufacturerUrl\",\n \"modelDescription\",\n \"modelIdentifier\",\n \"modelName\",\n \"modelNotes\",\n \"modelUrl\",\n \"modelVersion\",\n \"softwareId\",\n \"softwareName\",\n \"softwareType\",\n \"softwareVersion\"\n ]\n },\n \"UPDATE_BUNDLE_VERSION\": {\n \"UPDATE_BUNDLE_VERSION\": [\n \"bundleActionDef\",\n \"bundleActionOrder\",\n \"bundleActionType\",\n \"bundleActive\",\n \"bundleConstrained\",\n \"bundleCreationDate\",\n \"bundleDeploymentElementDownloadUrl\",\n \"bundleDeploymentElementId\",\n \"bundleDeploymentElementName\",\n \"bundleDeploymentElementOperation\",\n \"bundleDeploymentElementOption\",\n \"bundleDeploymentElementOrder\",\n \"bundleDeploymentElementPath\",\n \"bundleDeploymentElementSize\",\n \"bundleDeploymentElementType\",\n \"bundleDeploymentElementValidators\",\n \"bundleDeploymentElementVersion\",\n \"bundleDescription\",\n \"bundleHardware\",\n \"bundleId\",\n \"bundleName\",\n \"bundleUserNotes\",\n \"bundleVersion\",\n \"bundleWorkgroup\",\n \"updateBundleDate\",\n \"updateBundleManufacturer\",\n \"updateBundleModel\",\n \"updateBundleName\",\n \"updateBundleVersion\",\n \"updateBundleVersionUuid\",\n \"updateDescription\"\n ]\n },\n \"CERTIFICATE\": {\n \"CERTIFICATE\": [\n \"certificateAdministrativeState\",\n \"certificateDescription\",\n \"certificateDomain\",\n \"certificateId\",\n \"certificateIssuer\",\n \"certificateManufacturer\",\n \"certificateModel\",\n \"certificateModelIdentifier\",\n \"certificateModelVersion\",\n \"certificateName\",\n \"certificatePublicKeyAlgorithm\",\n \"certificatePublicKeyFormat\",\n \"certificatePublicKeySize\",\n \"certificateSerialNumber\",\n \"certificateSubject\",\n \"certificateTag\",\n \"certificateTrustChain\",\n \"certificateUsage\",\n \"certificateValidFrom\",\n \"certificateValidUntil\",\n \"certificateVersion\"\n ]\n }\n}",
|
|
@@ -59983,7 +60061,7 @@
|
|
|
59983
60061
|
"lineNumber": 1
|
|
59984
60062
|
},
|
|
59985
60063
|
{
|
|
59986
|
-
"__docId__":
|
|
60064
|
+
"__docId__": 2257,
|
|
59987
60065
|
"kind": "variable",
|
|
59988
60066
|
"name": "GENERATED_FIELDS",
|
|
59989
60067
|
"memberof": "src/util/searchingFields/source-precompiled/Fields.js",
|
|
@@ -60009,7 +60087,7 @@
|
|
|
60009
60087
|
}
|
|
60010
60088
|
},
|
|
60011
60089
|
{
|
|
60012
|
-
"__docId__":
|
|
60090
|
+
"__docId__": 2258,
|
|
60013
60091
|
"kind": "file",
|
|
60014
60092
|
"name": "src/workgroups/WorkgroupFinder.js",
|
|
60015
60093
|
"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}",
|
|
@@ -60020,7 +60098,7 @@
|
|
|
60020
60098
|
"lineNumber": 1
|
|
60021
60099
|
},
|
|
60022
60100
|
{
|
|
60023
|
-
"__docId__":
|
|
60101
|
+
"__docId__": 2259,
|
|
60024
60102
|
"kind": "class",
|
|
60025
60103
|
"name": "WorkgroupFinder",
|
|
60026
60104
|
"memberof": "src/workgroups/WorkgroupFinder.js",
|
|
@@ -60038,7 +60116,7 @@
|
|
|
60038
60116
|
]
|
|
60039
60117
|
},
|
|
60040
60118
|
{
|
|
60041
|
-
"__docId__":
|
|
60119
|
+
"__docId__": 2260,
|
|
60042
60120
|
"kind": "constructor",
|
|
60043
60121
|
"name": "constructor",
|
|
60044
60122
|
"memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
|
|
@@ -60063,7 +60141,7 @@
|
|
|
60063
60141
|
]
|
|
60064
60142
|
},
|
|
60065
60143
|
{
|
|
60066
|
-
"__docId__":
|
|
60144
|
+
"__docId__": 2261,
|
|
60067
60145
|
"kind": "method",
|
|
60068
60146
|
"name": "_composeUrl",
|
|
60069
60147
|
"memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
|
|
@@ -60085,7 +60163,7 @@
|
|
|
60085
60163
|
}
|
|
60086
60164
|
},
|
|
60087
60165
|
{
|
|
60088
|
-
"__docId__":
|
|
60166
|
+
"__docId__": 2262,
|
|
60089
60167
|
"kind": "method",
|
|
60090
60168
|
"name": "findByDomainAndName",
|
|
60091
60169
|
"memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
|
|
@@ -60128,7 +60206,7 @@
|
|
|
60128
60206
|
}
|
|
60129
60207
|
},
|
|
60130
60208
|
{
|
|
60131
|
-
"__docId__":
|
|
60209
|
+
"__docId__": 2263,
|
|
60132
60210
|
"kind": "member",
|
|
60133
60211
|
"name": "_domain",
|
|
60134
60212
|
"memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
|
|
@@ -60151,7 +60229,7 @@
|
|
|
60151
60229
|
}
|
|
60152
60230
|
},
|
|
60153
60231
|
{
|
|
60154
|
-
"__docId__":
|
|
60232
|
+
"__docId__": 2264,
|
|
60155
60233
|
"kind": "member",
|
|
60156
60234
|
"name": "_name",
|
|
60157
60235
|
"memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
|
|
@@ -60174,7 +60252,7 @@
|
|
|
60174
60252
|
}
|
|
60175
60253
|
},
|
|
60176
60254
|
{
|
|
60177
|
-
"__docId__":
|
|
60255
|
+
"__docId__": 2265,
|
|
60178
60256
|
"kind": "file",
|
|
60179
60257
|
"name": "src/workgroups/WorkgroupRelations.js",
|
|
60180
60258
|
"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}",
|
|
@@ -60185,7 +60263,7 @@
|
|
|
60185
60263
|
"lineNumber": 1
|
|
60186
60264
|
},
|
|
60187
60265
|
{
|
|
60188
|
-
"__docId__":
|
|
60266
|
+
"__docId__": 2266,
|
|
60189
60267
|
"kind": "class",
|
|
60190
60268
|
"name": "WorkgroupRelations",
|
|
60191
60269
|
"memberof": "src/workgroups/WorkgroupRelations.js",
|
|
@@ -60203,7 +60281,7 @@
|
|
|
60203
60281
|
]
|
|
60204
60282
|
},
|
|
60205
60283
|
{
|
|
60206
|
-
"__docId__":
|
|
60284
|
+
"__docId__": 2267,
|
|
60207
60285
|
"kind": "constructor",
|
|
60208
60286
|
"name": "constructor",
|
|
60209
60287
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60228,7 +60306,7 @@
|
|
|
60228
60306
|
]
|
|
60229
60307
|
},
|
|
60230
60308
|
{
|
|
60231
|
-
"__docId__":
|
|
60309
|
+
"__docId__": 2268,
|
|
60232
60310
|
"kind": "member",
|
|
60233
60311
|
"name": "_ogapi",
|
|
60234
60312
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60251,7 +60329,7 @@
|
|
|
60251
60329
|
}
|
|
60252
60330
|
},
|
|
60253
60331
|
{
|
|
60254
|
-
"__docId__":
|
|
60332
|
+
"__docId__": 2269,
|
|
60255
60333
|
"kind": "member",
|
|
60256
60334
|
"name": "_action",
|
|
60257
60335
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60274,7 +60352,7 @@
|
|
|
60274
60352
|
}
|
|
60275
60353
|
},
|
|
60276
60354
|
{
|
|
60277
|
-
"__docId__":
|
|
60355
|
+
"__docId__": 2270,
|
|
60278
60356
|
"kind": "method",
|
|
60279
60357
|
"name": "withWorkgroup",
|
|
60280
60358
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60307,7 +60385,7 @@
|
|
|
60307
60385
|
}
|
|
60308
60386
|
},
|
|
60309
60387
|
{
|
|
60310
|
-
"__docId__":
|
|
60388
|
+
"__docId__": 2271,
|
|
60311
60389
|
"kind": "member",
|
|
60312
60390
|
"name": "_workgroup",
|
|
60313
60391
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60330,7 +60408,7 @@
|
|
|
60330
60408
|
}
|
|
60331
60409
|
},
|
|
60332
60410
|
{
|
|
60333
|
-
"__docId__":
|
|
60411
|
+
"__docId__": 2272,
|
|
60334
60412
|
"kind": "method",
|
|
60335
60413
|
"name": "withChannel",
|
|
60336
60414
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60363,7 +60441,7 @@
|
|
|
60363
60441
|
}
|
|
60364
60442
|
},
|
|
60365
60443
|
{
|
|
60366
|
-
"__docId__":
|
|
60444
|
+
"__docId__": 2273,
|
|
60367
60445
|
"kind": "member",
|
|
60368
60446
|
"name": "_channels",
|
|
60369
60447
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60386,7 +60464,7 @@
|
|
|
60386
60464
|
}
|
|
60387
60465
|
},
|
|
60388
60466
|
{
|
|
60389
|
-
"__docId__":
|
|
60467
|
+
"__docId__": 2274,
|
|
60390
60468
|
"kind": "method",
|
|
60391
60469
|
"name": "_composeElement",
|
|
60392
60470
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60412,7 +60490,7 @@
|
|
|
60412
60490
|
}
|
|
60413
60491
|
},
|
|
60414
60492
|
{
|
|
60415
|
-
"__docId__":
|
|
60493
|
+
"__docId__": 2275,
|
|
60416
60494
|
"kind": "member",
|
|
60417
60495
|
"name": "_resource",
|
|
60418
60496
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60435,7 +60513,7 @@
|
|
|
60435
60513
|
}
|
|
60436
60514
|
},
|
|
60437
60515
|
{
|
|
60438
|
-
"__docId__":
|
|
60516
|
+
"__docId__": 2276,
|
|
60439
60517
|
"kind": "method",
|
|
60440
60518
|
"name": "_buildURL",
|
|
60441
60519
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60461,7 +60539,7 @@
|
|
|
60461
60539
|
}
|
|
60462
60540
|
},
|
|
60463
60541
|
{
|
|
60464
|
-
"__docId__":
|
|
60542
|
+
"__docId__": 2277,
|
|
60465
60543
|
"kind": "method",
|
|
60466
60544
|
"name": "create",
|
|
60467
60545
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60487,7 +60565,7 @@
|
|
|
60487
60565
|
}
|
|
60488
60566
|
},
|
|
60489
60567
|
{
|
|
60490
|
-
"__docId__":
|
|
60568
|
+
"__docId__": 2278,
|
|
60491
60569
|
"kind": "method",
|
|
60492
60570
|
"name": "delete",
|
|
60493
60571
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60513,7 +60591,7 @@
|
|
|
60513
60591
|
}
|
|
60514
60592
|
},
|
|
60515
60593
|
{
|
|
60516
|
-
"__docId__":
|
|
60594
|
+
"__docId__": 2279,
|
|
60517
60595
|
"kind": "method",
|
|
60518
60596
|
"name": "update",
|
|
60519
60597
|
"memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
|
|
@@ -60535,7 +60613,7 @@
|
|
|
60535
60613
|
]
|
|
60536
60614
|
},
|
|
60537
60615
|
{
|
|
60538
|
-
"__docId__":
|
|
60616
|
+
"__docId__": 2280,
|
|
60539
60617
|
"kind": "file",
|
|
60540
60618
|
"name": "src/workgroups/WorkgroupRelationsFinder.js",
|
|
60541
60619
|
"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}",
|
|
@@ -60546,7 +60624,7 @@
|
|
|
60546
60624
|
"lineNumber": 1
|
|
60547
60625
|
},
|
|
60548
60626
|
{
|
|
60549
|
-
"__docId__":
|
|
60627
|
+
"__docId__": 2281,
|
|
60550
60628
|
"kind": "class",
|
|
60551
60629
|
"name": "WorkgroupRelationsFinder",
|
|
60552
60630
|
"memberof": "src/workgroups/WorkgroupRelationsFinder.js",
|
|
@@ -60564,7 +60642,7 @@
|
|
|
60564
60642
|
]
|
|
60565
60643
|
},
|
|
60566
60644
|
{
|
|
60567
|
-
"__docId__":
|
|
60645
|
+
"__docId__": 2282,
|
|
60568
60646
|
"kind": "constructor",
|
|
60569
60647
|
"name": "constructor",
|
|
60570
60648
|
"memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
|
|
@@ -60589,7 +60667,7 @@
|
|
|
60589
60667
|
]
|
|
60590
60668
|
},
|
|
60591
60669
|
{
|
|
60592
|
-
"__docId__":
|
|
60670
|
+
"__docId__": 2283,
|
|
60593
60671
|
"kind": "method",
|
|
60594
60672
|
"name": "_composeUrl",
|
|
60595
60673
|
"memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
|
|
@@ -60611,7 +60689,7 @@
|
|
|
60611
60689
|
}
|
|
60612
60690
|
},
|
|
60613
60691
|
{
|
|
60614
|
-
"__docId__":
|
|
60692
|
+
"__docId__": 2284,
|
|
60615
60693
|
"kind": "method",
|
|
60616
60694
|
"name": "findByDomainAndName",
|
|
60617
60695
|
"memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
|
|
@@ -60654,7 +60732,7 @@
|
|
|
60654
60732
|
}
|
|
60655
60733
|
},
|
|
60656
60734
|
{
|
|
60657
|
-
"__docId__":
|
|
60735
|
+
"__docId__": 2285,
|
|
60658
60736
|
"kind": "member",
|
|
60659
60737
|
"name": "_domain",
|
|
60660
60738
|
"memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
|
|
@@ -60677,7 +60755,7 @@
|
|
|
60677
60755
|
}
|
|
60678
60756
|
},
|
|
60679
60757
|
{
|
|
60680
|
-
"__docId__":
|
|
60758
|
+
"__docId__": 2286,
|
|
60681
60759
|
"kind": "member",
|
|
60682
60760
|
"name": "_name",
|
|
60683
60761
|
"memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
|
|
@@ -60700,7 +60778,7 @@
|
|
|
60700
60778
|
}
|
|
60701
60779
|
},
|
|
60702
60780
|
{
|
|
60703
|
-
"__docId__":
|
|
60781
|
+
"__docId__": 2287,
|
|
60704
60782
|
"kind": "file",
|
|
60705
60783
|
"name": "src/workgroups/Workgroups.js",
|
|
60706
60784
|
"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}",
|
|
@@ -60711,7 +60789,7 @@
|
|
|
60711
60789
|
"lineNumber": 1
|
|
60712
60790
|
},
|
|
60713
60791
|
{
|
|
60714
|
-
"__docId__":
|
|
60792
|
+
"__docId__": 2288,
|
|
60715
60793
|
"kind": "class",
|
|
60716
60794
|
"name": "Workgroups",
|
|
60717
60795
|
"memberof": "src/workgroups/Workgroups.js",
|
|
@@ -60729,7 +60807,7 @@
|
|
|
60729
60807
|
]
|
|
60730
60808
|
},
|
|
60731
60809
|
{
|
|
60732
|
-
"__docId__":
|
|
60810
|
+
"__docId__": 2289,
|
|
60733
60811
|
"kind": "constructor",
|
|
60734
60812
|
"name": "constructor",
|
|
60735
60813
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -60754,7 +60832,7 @@
|
|
|
60754
60832
|
]
|
|
60755
60833
|
},
|
|
60756
60834
|
{
|
|
60757
|
-
"__docId__":
|
|
60835
|
+
"__docId__": 2290,
|
|
60758
60836
|
"kind": "member",
|
|
60759
60837
|
"name": "_ogapi",
|
|
60760
60838
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -60777,7 +60855,7 @@
|
|
|
60777
60855
|
}
|
|
60778
60856
|
},
|
|
60779
60857
|
{
|
|
60780
|
-
"__docId__":
|
|
60858
|
+
"__docId__": 2291,
|
|
60781
60859
|
"kind": "method",
|
|
60782
60860
|
"name": "withName",
|
|
60783
60861
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -60810,7 +60888,7 @@
|
|
|
60810
60888
|
}
|
|
60811
60889
|
},
|
|
60812
60890
|
{
|
|
60813
|
-
"__docId__":
|
|
60891
|
+
"__docId__": 2292,
|
|
60814
60892
|
"kind": "member",
|
|
60815
60893
|
"name": "_name",
|
|
60816
60894
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -60833,7 +60911,7 @@
|
|
|
60833
60911
|
}
|
|
60834
60912
|
},
|
|
60835
60913
|
{
|
|
60836
|
-
"__docId__":
|
|
60914
|
+
"__docId__": 2293,
|
|
60837
60915
|
"kind": "method",
|
|
60838
60916
|
"name": "withDescription",
|
|
60839
60917
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -60866,7 +60944,7 @@
|
|
|
60866
60944
|
}
|
|
60867
60945
|
},
|
|
60868
60946
|
{
|
|
60869
|
-
"__docId__":
|
|
60947
|
+
"__docId__": 2294,
|
|
60870
60948
|
"kind": "member",
|
|
60871
60949
|
"name": "_description",
|
|
60872
60950
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -60889,7 +60967,7 @@
|
|
|
60889
60967
|
}
|
|
60890
60968
|
},
|
|
60891
60969
|
{
|
|
60892
|
-
"__docId__":
|
|
60970
|
+
"__docId__": 2295,
|
|
60893
60971
|
"kind": "method",
|
|
60894
60972
|
"name": "withAdministrative",
|
|
60895
60973
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -60922,7 +61000,7 @@
|
|
|
60922
61000
|
}
|
|
60923
61001
|
},
|
|
60924
61002
|
{
|
|
60925
|
-
"__docId__":
|
|
61003
|
+
"__docId__": 2296,
|
|
60926
61004
|
"kind": "member",
|
|
60927
61005
|
"name": "_administrative",
|
|
60928
61006
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -60945,7 +61023,7 @@
|
|
|
60945
61023
|
}
|
|
60946
61024
|
},
|
|
60947
61025
|
{
|
|
60948
|
-
"__docId__":
|
|
61026
|
+
"__docId__": 2297,
|
|
60949
61027
|
"kind": "method",
|
|
60950
61028
|
"name": "withDomainName",
|
|
60951
61029
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -60978,7 +61056,7 @@
|
|
|
60978
61056
|
}
|
|
60979
61057
|
},
|
|
60980
61058
|
{
|
|
60981
|
-
"__docId__":
|
|
61059
|
+
"__docId__": 2298,
|
|
60982
61060
|
"kind": "member",
|
|
60983
61061
|
"name": "_domainName",
|
|
60984
61062
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -61001,7 +61079,7 @@
|
|
|
61001
61079
|
}
|
|
61002
61080
|
},
|
|
61003
61081
|
{
|
|
61004
|
-
"__docId__":
|
|
61082
|
+
"__docId__": 2299,
|
|
61005
61083
|
"kind": "method",
|
|
61006
61084
|
"name": "_composeElement",
|
|
61007
61085
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -61027,7 +61105,7 @@
|
|
|
61027
61105
|
}
|
|
61028
61106
|
},
|
|
61029
61107
|
{
|
|
61030
|
-
"__docId__":
|
|
61108
|
+
"__docId__": 2300,
|
|
61031
61109
|
"kind": "member",
|
|
61032
61110
|
"name": "_resource",
|
|
61033
61111
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -61050,7 +61128,7 @@
|
|
|
61050
61128
|
}
|
|
61051
61129
|
},
|
|
61052
61130
|
{
|
|
61053
|
-
"__docId__":
|
|
61131
|
+
"__docId__": 2301,
|
|
61054
61132
|
"kind": "method",
|
|
61055
61133
|
"name": "_composeElementUpdate",
|
|
61056
61134
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -61076,7 +61154,7 @@
|
|
|
61076
61154
|
}
|
|
61077
61155
|
},
|
|
61078
61156
|
{
|
|
61079
|
-
"__docId__":
|
|
61157
|
+
"__docId__": 2302,
|
|
61080
61158
|
"kind": "member",
|
|
61081
61159
|
"name": "_resource",
|
|
61082
61160
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -61099,7 +61177,7 @@
|
|
|
61099
61177
|
}
|
|
61100
61178
|
},
|
|
61101
61179
|
{
|
|
61102
|
-
"__docId__":
|
|
61180
|
+
"__docId__": 2303,
|
|
61103
61181
|
"kind": "method",
|
|
61104
61182
|
"name": "_buildURL",
|
|
61105
61183
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -61125,7 +61203,7 @@
|
|
|
61125
61203
|
}
|
|
61126
61204
|
},
|
|
61127
61205
|
{
|
|
61128
|
-
"__docId__":
|
|
61206
|
+
"__docId__": 2304,
|
|
61129
61207
|
"kind": "method",
|
|
61130
61208
|
"name": "update",
|
|
61131
61209
|
"memberof": "src/workgroups/Workgroups.js~Workgroups",
|
|
@@ -61151,7 +61229,7 @@
|
|
|
61151
61229
|
}
|
|
61152
61230
|
},
|
|
61153
61231
|
{
|
|
61154
|
-
"__docId__":
|
|
61232
|
+
"__docId__": 2306,
|
|
61155
61233
|
"kind": "external",
|
|
61156
61234
|
"name": "Infinity",
|
|
61157
61235
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity",
|
|
@@ -61163,7 +61241,7 @@
|
|
|
61163
61241
|
"builtinExternal": true
|
|
61164
61242
|
},
|
|
61165
61243
|
{
|
|
61166
|
-
"__docId__":
|
|
61244
|
+
"__docId__": 2307,
|
|
61167
61245
|
"kind": "external",
|
|
61168
61246
|
"name": "NaN",
|
|
61169
61247
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN",
|
|
@@ -61175,7 +61253,7 @@
|
|
|
61175
61253
|
"builtinExternal": true
|
|
61176
61254
|
},
|
|
61177
61255
|
{
|
|
61178
|
-
"__docId__":
|
|
61256
|
+
"__docId__": 2308,
|
|
61179
61257
|
"kind": "external",
|
|
61180
61258
|
"name": "undefined",
|
|
61181
61259
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined",
|
|
@@ -61187,7 +61265,7 @@
|
|
|
61187
61265
|
"builtinExternal": true
|
|
61188
61266
|
},
|
|
61189
61267
|
{
|
|
61190
|
-
"__docId__":
|
|
61268
|
+
"__docId__": 2309,
|
|
61191
61269
|
"kind": "external",
|
|
61192
61270
|
"name": "null",
|
|
61193
61271
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null",
|
|
@@ -61199,7 +61277,7 @@
|
|
|
61199
61277
|
"builtinExternal": true
|
|
61200
61278
|
},
|
|
61201
61279
|
{
|
|
61202
|
-
"__docId__":
|
|
61280
|
+
"__docId__": 2310,
|
|
61203
61281
|
"kind": "external",
|
|
61204
61282
|
"name": "Object",
|
|
61205
61283
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
|
|
@@ -61211,7 +61289,7 @@
|
|
|
61211
61289
|
"builtinExternal": true
|
|
61212
61290
|
},
|
|
61213
61291
|
{
|
|
61214
|
-
"__docId__":
|
|
61292
|
+
"__docId__": 2311,
|
|
61215
61293
|
"kind": "external",
|
|
61216
61294
|
"name": "object",
|
|
61217
61295
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
|
|
@@ -61223,7 +61301,7 @@
|
|
|
61223
61301
|
"builtinExternal": true
|
|
61224
61302
|
},
|
|
61225
61303
|
{
|
|
61226
|
-
"__docId__":
|
|
61304
|
+
"__docId__": 2312,
|
|
61227
61305
|
"kind": "external",
|
|
61228
61306
|
"name": "Function",
|
|
61229
61307
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
|
|
@@ -61235,7 +61313,7 @@
|
|
|
61235
61313
|
"builtinExternal": true
|
|
61236
61314
|
},
|
|
61237
61315
|
{
|
|
61238
|
-
"__docId__":
|
|
61316
|
+
"__docId__": 2313,
|
|
61239
61317
|
"kind": "external",
|
|
61240
61318
|
"name": "function",
|
|
61241
61319
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
|
|
@@ -61247,7 +61325,7 @@
|
|
|
61247
61325
|
"builtinExternal": true
|
|
61248
61326
|
},
|
|
61249
61327
|
{
|
|
61250
|
-
"__docId__":
|
|
61328
|
+
"__docId__": 2314,
|
|
61251
61329
|
"kind": "external",
|
|
61252
61330
|
"name": "Boolean",
|
|
61253
61331
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
|
|
@@ -61259,7 +61337,7 @@
|
|
|
61259
61337
|
"builtinExternal": true
|
|
61260
61338
|
},
|
|
61261
61339
|
{
|
|
61262
|
-
"__docId__":
|
|
61340
|
+
"__docId__": 2315,
|
|
61263
61341
|
"kind": "external",
|
|
61264
61342
|
"name": "boolean",
|
|
61265
61343
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
|
|
@@ -61271,7 +61349,7 @@
|
|
|
61271
61349
|
"builtinExternal": true
|
|
61272
61350
|
},
|
|
61273
61351
|
{
|
|
61274
|
-
"__docId__":
|
|
61352
|
+
"__docId__": 2316,
|
|
61275
61353
|
"kind": "external",
|
|
61276
61354
|
"name": "Symbol",
|
|
61277
61355
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol",
|
|
@@ -61283,7 +61361,7 @@
|
|
|
61283
61361
|
"builtinExternal": true
|
|
61284
61362
|
},
|
|
61285
61363
|
{
|
|
61286
|
-
"__docId__":
|
|
61364
|
+
"__docId__": 2317,
|
|
61287
61365
|
"kind": "external",
|
|
61288
61366
|
"name": "Error",
|
|
61289
61367
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error",
|
|
@@ -61295,7 +61373,7 @@
|
|
|
61295
61373
|
"builtinExternal": true
|
|
61296
61374
|
},
|
|
61297
61375
|
{
|
|
61298
|
-
"__docId__":
|
|
61376
|
+
"__docId__": 2318,
|
|
61299
61377
|
"kind": "external",
|
|
61300
61378
|
"name": "EvalError",
|
|
61301
61379
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError",
|
|
@@ -61307,7 +61385,7 @@
|
|
|
61307
61385
|
"builtinExternal": true
|
|
61308
61386
|
},
|
|
61309
61387
|
{
|
|
61310
|
-
"__docId__":
|
|
61388
|
+
"__docId__": 2319,
|
|
61311
61389
|
"kind": "external",
|
|
61312
61390
|
"name": "InternalError",
|
|
61313
61391
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError",
|
|
@@ -61319,7 +61397,7 @@
|
|
|
61319
61397
|
"builtinExternal": true
|
|
61320
61398
|
},
|
|
61321
61399
|
{
|
|
61322
|
-
"__docId__":
|
|
61400
|
+
"__docId__": 2320,
|
|
61323
61401
|
"kind": "external",
|
|
61324
61402
|
"name": "RangeError",
|
|
61325
61403
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError",
|
|
@@ -61331,7 +61409,7 @@
|
|
|
61331
61409
|
"builtinExternal": true
|
|
61332
61410
|
},
|
|
61333
61411
|
{
|
|
61334
|
-
"__docId__":
|
|
61412
|
+
"__docId__": 2321,
|
|
61335
61413
|
"kind": "external",
|
|
61336
61414
|
"name": "ReferenceError",
|
|
61337
61415
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError",
|
|
@@ -61343,7 +61421,7 @@
|
|
|
61343
61421
|
"builtinExternal": true
|
|
61344
61422
|
},
|
|
61345
61423
|
{
|
|
61346
|
-
"__docId__":
|
|
61424
|
+
"__docId__": 2322,
|
|
61347
61425
|
"kind": "external",
|
|
61348
61426
|
"name": "SyntaxError",
|
|
61349
61427
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError",
|
|
@@ -61355,7 +61433,7 @@
|
|
|
61355
61433
|
"builtinExternal": true
|
|
61356
61434
|
},
|
|
61357
61435
|
{
|
|
61358
|
-
"__docId__":
|
|
61436
|
+
"__docId__": 2323,
|
|
61359
61437
|
"kind": "external",
|
|
61360
61438
|
"name": "TypeError",
|
|
61361
61439
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError",
|
|
@@ -61367,7 +61445,7 @@
|
|
|
61367
61445
|
"builtinExternal": true
|
|
61368
61446
|
},
|
|
61369
61447
|
{
|
|
61370
|
-
"__docId__":
|
|
61448
|
+
"__docId__": 2324,
|
|
61371
61449
|
"kind": "external",
|
|
61372
61450
|
"name": "URIError",
|
|
61373
61451
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError",
|
|
@@ -61379,7 +61457,7 @@
|
|
|
61379
61457
|
"builtinExternal": true
|
|
61380
61458
|
},
|
|
61381
61459
|
{
|
|
61382
|
-
"__docId__":
|
|
61460
|
+
"__docId__": 2325,
|
|
61383
61461
|
"kind": "external",
|
|
61384
61462
|
"name": "Number",
|
|
61385
61463
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
|
|
@@ -61391,7 +61469,7 @@
|
|
|
61391
61469
|
"builtinExternal": true
|
|
61392
61470
|
},
|
|
61393
61471
|
{
|
|
61394
|
-
"__docId__":
|
|
61472
|
+
"__docId__": 2326,
|
|
61395
61473
|
"kind": "external",
|
|
61396
61474
|
"name": "number",
|
|
61397
61475
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
|
|
@@ -61403,7 +61481,7 @@
|
|
|
61403
61481
|
"builtinExternal": true
|
|
61404
61482
|
},
|
|
61405
61483
|
{
|
|
61406
|
-
"__docId__":
|
|
61484
|
+
"__docId__": 2327,
|
|
61407
61485
|
"kind": "external",
|
|
61408
61486
|
"name": "Date",
|
|
61409
61487
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date",
|
|
@@ -61415,7 +61493,7 @@
|
|
|
61415
61493
|
"builtinExternal": true
|
|
61416
61494
|
},
|
|
61417
61495
|
{
|
|
61418
|
-
"__docId__":
|
|
61496
|
+
"__docId__": 2328,
|
|
61419
61497
|
"kind": "external",
|
|
61420
61498
|
"name": "String",
|
|
61421
61499
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
|
|
@@ -61427,7 +61505,7 @@
|
|
|
61427
61505
|
"builtinExternal": true
|
|
61428
61506
|
},
|
|
61429
61507
|
{
|
|
61430
|
-
"__docId__":
|
|
61508
|
+
"__docId__": 2329,
|
|
61431
61509
|
"kind": "external",
|
|
61432
61510
|
"name": "string",
|
|
61433
61511
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
|
|
@@ -61439,7 +61517,7 @@
|
|
|
61439
61517
|
"builtinExternal": true
|
|
61440
61518
|
},
|
|
61441
61519
|
{
|
|
61442
|
-
"__docId__":
|
|
61520
|
+
"__docId__": 2330,
|
|
61443
61521
|
"kind": "external",
|
|
61444
61522
|
"name": "RegExp",
|
|
61445
61523
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp",
|
|
@@ -61451,7 +61529,7 @@
|
|
|
61451
61529
|
"builtinExternal": true
|
|
61452
61530
|
},
|
|
61453
61531
|
{
|
|
61454
|
-
"__docId__":
|
|
61532
|
+
"__docId__": 2331,
|
|
61455
61533
|
"kind": "external",
|
|
61456
61534
|
"name": "Array",
|
|
61457
61535
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
|
|
@@ -61463,7 +61541,7 @@
|
|
|
61463
61541
|
"builtinExternal": true
|
|
61464
61542
|
},
|
|
61465
61543
|
{
|
|
61466
|
-
"__docId__":
|
|
61544
|
+
"__docId__": 2332,
|
|
61467
61545
|
"kind": "external",
|
|
61468
61546
|
"name": "Int8Array",
|
|
61469
61547
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array",
|
|
@@ -61475,7 +61553,7 @@
|
|
|
61475
61553
|
"builtinExternal": true
|
|
61476
61554
|
},
|
|
61477
61555
|
{
|
|
61478
|
-
"__docId__":
|
|
61556
|
+
"__docId__": 2333,
|
|
61479
61557
|
"kind": "external",
|
|
61480
61558
|
"name": "Uint8Array",
|
|
61481
61559
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array",
|
|
@@ -61487,7 +61565,7 @@
|
|
|
61487
61565
|
"builtinExternal": true
|
|
61488
61566
|
},
|
|
61489
61567
|
{
|
|
61490
|
-
"__docId__":
|
|
61568
|
+
"__docId__": 2334,
|
|
61491
61569
|
"kind": "external",
|
|
61492
61570
|
"name": "Uint8ClampedArray",
|
|
61493
61571
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray",
|
|
@@ -61499,7 +61577,7 @@
|
|
|
61499
61577
|
"builtinExternal": true
|
|
61500
61578
|
},
|
|
61501
61579
|
{
|
|
61502
|
-
"__docId__":
|
|
61580
|
+
"__docId__": 2335,
|
|
61503
61581
|
"kind": "external",
|
|
61504
61582
|
"name": "Int16Array",
|
|
61505
61583
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array",
|
|
@@ -61511,7 +61589,7 @@
|
|
|
61511
61589
|
"builtinExternal": true
|
|
61512
61590
|
},
|
|
61513
61591
|
{
|
|
61514
|
-
"__docId__":
|
|
61592
|
+
"__docId__": 2336,
|
|
61515
61593
|
"kind": "external",
|
|
61516
61594
|
"name": "Uint16Array",
|
|
61517
61595
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array",
|
|
@@ -61523,7 +61601,7 @@
|
|
|
61523
61601
|
"builtinExternal": true
|
|
61524
61602
|
},
|
|
61525
61603
|
{
|
|
61526
|
-
"__docId__":
|
|
61604
|
+
"__docId__": 2337,
|
|
61527
61605
|
"kind": "external",
|
|
61528
61606
|
"name": "Int32Array",
|
|
61529
61607
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array",
|
|
@@ -61535,7 +61613,7 @@
|
|
|
61535
61613
|
"builtinExternal": true
|
|
61536
61614
|
},
|
|
61537
61615
|
{
|
|
61538
|
-
"__docId__":
|
|
61616
|
+
"__docId__": 2338,
|
|
61539
61617
|
"kind": "external",
|
|
61540
61618
|
"name": "Uint32Array",
|
|
61541
61619
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array",
|
|
@@ -61547,7 +61625,7 @@
|
|
|
61547
61625
|
"builtinExternal": true
|
|
61548
61626
|
},
|
|
61549
61627
|
{
|
|
61550
|
-
"__docId__":
|
|
61628
|
+
"__docId__": 2339,
|
|
61551
61629
|
"kind": "external",
|
|
61552
61630
|
"name": "Float32Array",
|
|
61553
61631
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array",
|
|
@@ -61559,7 +61637,7 @@
|
|
|
61559
61637
|
"builtinExternal": true
|
|
61560
61638
|
},
|
|
61561
61639
|
{
|
|
61562
|
-
"__docId__":
|
|
61640
|
+
"__docId__": 2340,
|
|
61563
61641
|
"kind": "external",
|
|
61564
61642
|
"name": "Float64Array",
|
|
61565
61643
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array",
|
|
@@ -61571,7 +61649,7 @@
|
|
|
61571
61649
|
"builtinExternal": true
|
|
61572
61650
|
},
|
|
61573
61651
|
{
|
|
61574
|
-
"__docId__":
|
|
61652
|
+
"__docId__": 2341,
|
|
61575
61653
|
"kind": "external",
|
|
61576
61654
|
"name": "Map",
|
|
61577
61655
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map",
|
|
@@ -61583,7 +61661,7 @@
|
|
|
61583
61661
|
"builtinExternal": true
|
|
61584
61662
|
},
|
|
61585
61663
|
{
|
|
61586
|
-
"__docId__":
|
|
61664
|
+
"__docId__": 2342,
|
|
61587
61665
|
"kind": "external",
|
|
61588
61666
|
"name": "Set",
|
|
61589
61667
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set",
|
|
@@ -61595,7 +61673,7 @@
|
|
|
61595
61673
|
"builtinExternal": true
|
|
61596
61674
|
},
|
|
61597
61675
|
{
|
|
61598
|
-
"__docId__":
|
|
61676
|
+
"__docId__": 2343,
|
|
61599
61677
|
"kind": "external",
|
|
61600
61678
|
"name": "WeakMap",
|
|
61601
61679
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap",
|
|
@@ -61607,7 +61685,7 @@
|
|
|
61607
61685
|
"builtinExternal": true
|
|
61608
61686
|
},
|
|
61609
61687
|
{
|
|
61610
|
-
"__docId__":
|
|
61688
|
+
"__docId__": 2344,
|
|
61611
61689
|
"kind": "external",
|
|
61612
61690
|
"name": "WeakSet",
|
|
61613
61691
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet",
|
|
@@ -61619,7 +61697,7 @@
|
|
|
61619
61697
|
"builtinExternal": true
|
|
61620
61698
|
},
|
|
61621
61699
|
{
|
|
61622
|
-
"__docId__":
|
|
61700
|
+
"__docId__": 2345,
|
|
61623
61701
|
"kind": "external",
|
|
61624
61702
|
"name": "ArrayBuffer",
|
|
61625
61703
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer",
|
|
@@ -61631,7 +61709,7 @@
|
|
|
61631
61709
|
"builtinExternal": true
|
|
61632
61710
|
},
|
|
61633
61711
|
{
|
|
61634
|
-
"__docId__":
|
|
61712
|
+
"__docId__": 2346,
|
|
61635
61713
|
"kind": "external",
|
|
61636
61714
|
"name": "DataView",
|
|
61637
61715
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView",
|
|
@@ -61643,7 +61721,7 @@
|
|
|
61643
61721
|
"builtinExternal": true
|
|
61644
61722
|
},
|
|
61645
61723
|
{
|
|
61646
|
-
"__docId__":
|
|
61724
|
+
"__docId__": 2347,
|
|
61647
61725
|
"kind": "external",
|
|
61648
61726
|
"name": "JSON",
|
|
61649
61727
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON",
|
|
@@ -61655,7 +61733,7 @@
|
|
|
61655
61733
|
"builtinExternal": true
|
|
61656
61734
|
},
|
|
61657
61735
|
{
|
|
61658
|
-
"__docId__":
|
|
61736
|
+
"__docId__": 2348,
|
|
61659
61737
|
"kind": "external",
|
|
61660
61738
|
"name": "Promise",
|
|
61661
61739
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise",
|
|
@@ -61667,7 +61745,7 @@
|
|
|
61667
61745
|
"builtinExternal": true
|
|
61668
61746
|
},
|
|
61669
61747
|
{
|
|
61670
|
-
"__docId__":
|
|
61748
|
+
"__docId__": 2349,
|
|
61671
61749
|
"kind": "external",
|
|
61672
61750
|
"name": "Generator",
|
|
61673
61751
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator",
|
|
@@ -61679,7 +61757,7 @@
|
|
|
61679
61757
|
"builtinExternal": true
|
|
61680
61758
|
},
|
|
61681
61759
|
{
|
|
61682
|
-
"__docId__":
|
|
61760
|
+
"__docId__": 2350,
|
|
61683
61761
|
"kind": "external",
|
|
61684
61762
|
"name": "GeneratorFunction",
|
|
61685
61763
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction",
|
|
@@ -61691,7 +61769,7 @@
|
|
|
61691
61769
|
"builtinExternal": true
|
|
61692
61770
|
},
|
|
61693
61771
|
{
|
|
61694
|
-
"__docId__":
|
|
61772
|
+
"__docId__": 2351,
|
|
61695
61773
|
"kind": "external",
|
|
61696
61774
|
"name": "Reflect",
|
|
61697
61775
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect",
|
|
@@ -61703,7 +61781,7 @@
|
|
|
61703
61781
|
"builtinExternal": true
|
|
61704
61782
|
},
|
|
61705
61783
|
{
|
|
61706
|
-
"__docId__":
|
|
61784
|
+
"__docId__": 2352,
|
|
61707
61785
|
"kind": "external",
|
|
61708
61786
|
"name": "Proxy",
|
|
61709
61787
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy",
|
|
@@ -61716,7 +61794,7 @@
|
|
|
61716
61794
|
"builtinExternal": true
|
|
61717
61795
|
},
|
|
61718
61796
|
{
|
|
61719
|
-
"__docId__":
|
|
61797
|
+
"__docId__": 2354,
|
|
61720
61798
|
"kind": "external",
|
|
61721
61799
|
"name": "CanvasRenderingContext2D",
|
|
61722
61800
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D",
|
|
@@ -61728,7 +61806,7 @@
|
|
|
61728
61806
|
"builtinExternal": true
|
|
61729
61807
|
},
|
|
61730
61808
|
{
|
|
61731
|
-
"__docId__":
|
|
61809
|
+
"__docId__": 2355,
|
|
61732
61810
|
"kind": "external",
|
|
61733
61811
|
"name": "DocumentFragment",
|
|
61734
61812
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment",
|
|
@@ -61740,7 +61818,7 @@
|
|
|
61740
61818
|
"builtinExternal": true
|
|
61741
61819
|
},
|
|
61742
61820
|
{
|
|
61743
|
-
"__docId__":
|
|
61821
|
+
"__docId__": 2356,
|
|
61744
61822
|
"kind": "external",
|
|
61745
61823
|
"name": "Element",
|
|
61746
61824
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element",
|
|
@@ -61752,7 +61830,7 @@
|
|
|
61752
61830
|
"builtinExternal": true
|
|
61753
61831
|
},
|
|
61754
61832
|
{
|
|
61755
|
-
"__docId__":
|
|
61833
|
+
"__docId__": 2357,
|
|
61756
61834
|
"kind": "external",
|
|
61757
61835
|
"name": "Event",
|
|
61758
61836
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event",
|
|
@@ -61764,7 +61842,7 @@
|
|
|
61764
61842
|
"builtinExternal": true
|
|
61765
61843
|
},
|
|
61766
61844
|
{
|
|
61767
|
-
"__docId__":
|
|
61845
|
+
"__docId__": 2358,
|
|
61768
61846
|
"kind": "external",
|
|
61769
61847
|
"name": "Node",
|
|
61770
61848
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node",
|
|
@@ -61776,7 +61854,7 @@
|
|
|
61776
61854
|
"builtinExternal": true
|
|
61777
61855
|
},
|
|
61778
61856
|
{
|
|
61779
|
-
"__docId__":
|
|
61857
|
+
"__docId__": 2359,
|
|
61780
61858
|
"kind": "external",
|
|
61781
61859
|
"name": "NodeList",
|
|
61782
61860
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList",
|
|
@@ -61788,7 +61866,7 @@
|
|
|
61788
61866
|
"builtinExternal": true
|
|
61789
61867
|
},
|
|
61790
61868
|
{
|
|
61791
|
-
"__docId__":
|
|
61869
|
+
"__docId__": 2360,
|
|
61792
61870
|
"kind": "external",
|
|
61793
61871
|
"name": "XMLHttpRequest",
|
|
61794
61872
|
"externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest",
|
|
@@ -61800,7 +61878,7 @@
|
|
|
61800
61878
|
"builtinExternal": true
|
|
61801
61879
|
},
|
|
61802
61880
|
{
|
|
61803
|
-
"__docId__":
|
|
61881
|
+
"__docId__": 2361,
|
|
61804
61882
|
"kind": "external",
|
|
61805
61883
|
"name": "AudioContext",
|
|
61806
61884
|
"externalLink": "https://developer.mozilla.org/en/docs/Web/API/AudioContext",
|
|
@@ -61813,7 +61891,7 @@
|
|
|
61813
61891
|
"builtinExternal": true
|
|
61814
61892
|
},
|
|
61815
61893
|
{
|
|
61816
|
-
"__docId__":
|
|
61894
|
+
"__docId__": 2362,
|
|
61817
61895
|
"kind": "testFile",
|
|
61818
61896
|
"name": "client/autogeneratedFields/fields.spec.js",
|
|
61819
61897
|
"content": "define(function () {\r\n mocha.setup('bdd');\r\n\r\n describe('Testing fields finder api', function () {\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});",
|
|
@@ -61824,7 +61902,7 @@
|
|
|
61824
61902
|
"lineNumber": 1
|
|
61825
61903
|
},
|
|
61826
61904
|
{
|
|
61827
|
-
"__docId__":
|
|
61905
|
+
"__docId__": 2363,
|
|
61828
61906
|
"kind": "testDescribe",
|
|
61829
61907
|
"name": "describe0",
|
|
61830
61908
|
"testId": 0,
|
|
@@ -61837,7 +61915,7 @@
|
|
|
61837
61915
|
"lineNumber": 4
|
|
61838
61916
|
},
|
|
61839
61917
|
{
|
|
61840
|
-
"__docId__":
|
|
61918
|
+
"__docId__": 2364,
|
|
61841
61919
|
"kind": "testIt",
|
|
61842
61920
|
"name": "it1",
|
|
61843
61921
|
"testId": 1,
|
|
@@ -61850,7 +61928,7 @@
|
|
|
61850
61928
|
"lineNumber": 6
|
|
61851
61929
|
},
|
|
61852
61930
|
{
|
|
61853
|
-
"__docId__":
|
|
61931
|
+
"__docId__": 2365,
|
|
61854
61932
|
"kind": "testIt",
|
|
61855
61933
|
"name": "it2",
|
|
61856
61934
|
"testId": 2,
|
|
@@ -61863,7 +61941,7 @@
|
|
|
61863
61941
|
"lineNumber": 14
|
|
61864
61942
|
},
|
|
61865
61943
|
{
|
|
61866
|
-
"__docId__":
|
|
61944
|
+
"__docId__": 2366,
|
|
61867
61945
|
"kind": "testIt",
|
|
61868
61946
|
"name": "it3",
|
|
61869
61947
|
"testId": 3,
|
|
@@ -61876,7 +61954,7 @@
|
|
|
61876
61954
|
"lineNumber": 23
|
|
61877
61955
|
},
|
|
61878
61956
|
{
|
|
61879
|
-
"__docId__":
|
|
61957
|
+
"__docId__": 2367,
|
|
61880
61958
|
"kind": "testIt",
|
|
61881
61959
|
"name": "it4",
|
|
61882
61960
|
"testId": 4,
|
|
@@ -61889,7 +61967,7 @@
|
|
|
61889
61967
|
"lineNumber": 39
|
|
61890
61968
|
},
|
|
61891
61969
|
{
|
|
61892
|
-
"__docId__":
|
|
61970
|
+
"__docId__": 2368,
|
|
61893
61971
|
"kind": "testIt",
|
|
61894
61972
|
"name": "it5",
|
|
61895
61973
|
"testId": 5,
|
|
@@ -61902,7 +61980,7 @@
|
|
|
61902
61980
|
"lineNumber": 49
|
|
61903
61981
|
},
|
|
61904
61982
|
{
|
|
61905
|
-
"__docId__":
|
|
61983
|
+
"__docId__": 2369,
|
|
61906
61984
|
"kind": "testIt",
|
|
61907
61985
|
"name": "it6",
|
|
61908
61986
|
"testId": 6,
|
|
@@ -61915,7 +61993,7 @@
|
|
|
61915
61993
|
"lineNumber": 57
|
|
61916
61994
|
},
|
|
61917
61995
|
{
|
|
61918
|
-
"__docId__":
|
|
61996
|
+
"__docId__": 2370,
|
|
61919
61997
|
"kind": "testIt",
|
|
61920
61998
|
"name": "it7",
|
|
61921
61999
|
"testId": 7,
|
|
@@ -61928,7 +62006,7 @@
|
|
|
61928
62006
|
"lineNumber": 65
|
|
61929
62007
|
},
|
|
61930
62008
|
{
|
|
61931
|
-
"__docId__":
|
|
62009
|
+
"__docId__": 2371,
|
|
61932
62010
|
"kind": "testIt",
|
|
61933
62011
|
"name": "it8",
|
|
61934
62012
|
"testId": 8,
|
|
@@ -61941,7 +62019,7 @@
|
|
|
61941
62019
|
"lineNumber": 72
|
|
61942
62020
|
},
|
|
61943
62021
|
{
|
|
61944
|
-
"__docId__":
|
|
62022
|
+
"__docId__": 2372,
|
|
61945
62023
|
"kind": "testIt",
|
|
61946
62024
|
"name": "it9",
|
|
61947
62025
|
"testId": 9,
|
|
@@ -61954,7 +62032,7 @@
|
|
|
61954
62032
|
"lineNumber": 79
|
|
61955
62033
|
},
|
|
61956
62034
|
{
|
|
61957
|
-
"__docId__":
|
|
62035
|
+
"__docId__": 2373,
|
|
61958
62036
|
"kind": "testIt",
|
|
61959
62037
|
"name": "it10",
|
|
61960
62038
|
"testId": 10,
|
|
@@ -61967,7 +62045,7 @@
|
|
|
61967
62045
|
"lineNumber": 87
|
|
61968
62046
|
},
|
|
61969
62047
|
{
|
|
61970
|
-
"__docId__":
|
|
62048
|
+
"__docId__": 2374,
|
|
61971
62049
|
"kind": "testFile",
|
|
61972
62050
|
"name": "client/bundles/bundles.spec.js",
|
|
61973
62051
|
"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});",
|
|
@@ -61978,7 +62056,7 @@
|
|
|
61978
62056
|
"lineNumber": 1
|
|
61979
62057
|
},
|
|
61980
62058
|
{
|
|
61981
|
-
"__docId__":
|
|
62059
|
+
"__docId__": 2375,
|
|
61982
62060
|
"kind": "testDescribe",
|
|
61983
62061
|
"name": "describe11",
|
|
61984
62062
|
"testId": 11,
|
|
@@ -62000,7 +62078,7 @@
|
|
|
62000
62078
|
]
|
|
62001
62079
|
},
|
|
62002
62080
|
{
|
|
62003
|
-
"__docId__":
|
|
62081
|
+
"__docId__": 2376,
|
|
62004
62082
|
"kind": "testFile",
|
|
62005
62083
|
"name": "client/collection/iot.spec.js",
|
|
62006
62084
|
"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",
|
|
@@ -62011,7 +62089,7 @@
|
|
|
62011
62089
|
"lineNumber": 1
|
|
62012
62090
|
},
|
|
62013
62091
|
{
|
|
62014
|
-
"__docId__":
|
|
62092
|
+
"__docId__": 2377,
|
|
62015
62093
|
"kind": "testDescribe",
|
|
62016
62094
|
"name": "describe12",
|
|
62017
62095
|
"testId": 12,
|
|
@@ -62033,7 +62111,7 @@
|
|
|
62033
62111
|
]
|
|
62034
62112
|
},
|
|
62035
62113
|
{
|
|
62036
|
-
"__docId__":
|
|
62114
|
+
"__docId__": 2378,
|
|
62037
62115
|
"kind": "testDescribe",
|
|
62038
62116
|
"name": "describe13",
|
|
62039
62117
|
"testId": 13,
|
|
@@ -62055,7 +62133,7 @@
|
|
|
62055
62133
|
]
|
|
62056
62134
|
},
|
|
62057
62135
|
{
|
|
62058
|
-
"__docId__":
|
|
62136
|
+
"__docId__": 2379,
|
|
62059
62137
|
"kind": "testIt",
|
|
62060
62138
|
"name": "it14",
|
|
62061
62139
|
"testId": 14,
|
|
@@ -62068,7 +62146,7 @@
|
|
|
62068
62146
|
"lineNumber": 12
|
|
62069
62147
|
},
|
|
62070
62148
|
{
|
|
62071
|
-
"__docId__":
|
|
62149
|
+
"__docId__": 2380,
|
|
62072
62150
|
"kind": "testFile",
|
|
62073
62151
|
"name": "client/device/device.spec.js",
|
|
62074
62152
|
"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",
|
|
@@ -62079,7 +62157,7 @@
|
|
|
62079
62157
|
"lineNumber": 1
|
|
62080
62158
|
},
|
|
62081
62159
|
{
|
|
62082
|
-
"__docId__":
|
|
62160
|
+
"__docId__": 2381,
|
|
62083
62161
|
"kind": "testDescribe",
|
|
62084
62162
|
"name": "describe15",
|
|
62085
62163
|
"testId": 15,
|
|
@@ -62101,7 +62179,7 @@
|
|
|
62101
62179
|
]
|
|
62102
62180
|
},
|
|
62103
62181
|
{
|
|
62104
|
-
"__docId__":
|
|
62182
|
+
"__docId__": 2382,
|
|
62105
62183
|
"kind": "testDescribe",
|
|
62106
62184
|
"name": "describe16",
|
|
62107
62185
|
"testId": 16,
|
|
@@ -62123,7 +62201,7 @@
|
|
|
62123
62201
|
]
|
|
62124
62202
|
},
|
|
62125
62203
|
{
|
|
62126
|
-
"__docId__":
|
|
62204
|
+
"__docId__": 2383,
|
|
62127
62205
|
"kind": "testIt",
|
|
62128
62206
|
"name": "it17",
|
|
62129
62207
|
"testId": 17,
|
|
@@ -62136,7 +62214,7 @@
|
|
|
62136
62214
|
"lineNumber": 12
|
|
62137
62215
|
},
|
|
62138
62216
|
{
|
|
62139
|
-
"__docId__":
|
|
62217
|
+
"__docId__": 2384,
|
|
62140
62218
|
"kind": "testIt",
|
|
62141
62219
|
"name": "it18",
|
|
62142
62220
|
"testId": 18,
|
|
@@ -62149,7 +62227,7 @@
|
|
|
62149
62227
|
"lineNumber": 19
|
|
62150
62228
|
},
|
|
62151
62229
|
{
|
|
62152
|
-
"__docId__":
|
|
62230
|
+
"__docId__": 2385,
|
|
62153
62231
|
"kind": "testIt",
|
|
62154
62232
|
"name": "it19",
|
|
62155
62233
|
"testId": 19,
|
|
@@ -62162,7 +62240,7 @@
|
|
|
62162
62240
|
"lineNumber": 26
|
|
62163
62241
|
},
|
|
62164
62242
|
{
|
|
62165
|
-
"__docId__":
|
|
62243
|
+
"__docId__": 2386,
|
|
62166
62244
|
"kind": "testIt",
|
|
62167
62245
|
"name": "it20",
|
|
62168
62246
|
"testId": 20,
|
|
@@ -62175,7 +62253,7 @@
|
|
|
62175
62253
|
"lineNumber": 33
|
|
62176
62254
|
},
|
|
62177
62255
|
{
|
|
62178
|
-
"__docId__":
|
|
62256
|
+
"__docId__": 2387,
|
|
62179
62257
|
"kind": "testIt",
|
|
62180
62258
|
"name": "it21",
|
|
62181
62259
|
"testId": 21,
|
|
@@ -62188,7 +62266,7 @@
|
|
|
62188
62266
|
"lineNumber": 40
|
|
62189
62267
|
},
|
|
62190
62268
|
{
|
|
62191
|
-
"__docId__":
|
|
62269
|
+
"__docId__": 2388,
|
|
62192
62270
|
"kind": "testIt",
|
|
62193
62271
|
"name": "it22",
|
|
62194
62272
|
"testId": 22,
|
|
@@ -62201,7 +62279,7 @@
|
|
|
62201
62279
|
"lineNumber": 47
|
|
62202
62280
|
},
|
|
62203
62281
|
{
|
|
62204
|
-
"__docId__":
|
|
62282
|
+
"__docId__": 2389,
|
|
62205
62283
|
"kind": "testIt",
|
|
62206
62284
|
"name": "it23",
|
|
62207
62285
|
"testId": 23,
|
|
@@ -62214,7 +62292,7 @@
|
|
|
62214
62292
|
"lineNumber": 54
|
|
62215
62293
|
},
|
|
62216
62294
|
{
|
|
62217
|
-
"__docId__":
|
|
62295
|
+
"__docId__": 2390,
|
|
62218
62296
|
"kind": "testIt",
|
|
62219
62297
|
"name": "it24",
|
|
62220
62298
|
"testId": 24,
|
|
@@ -62227,7 +62305,7 @@
|
|
|
62227
62305
|
"lineNumber": 61
|
|
62228
62306
|
},
|
|
62229
62307
|
{
|
|
62230
|
-
"__docId__":
|
|
62308
|
+
"__docId__": 2391,
|
|
62231
62309
|
"kind": "testIt",
|
|
62232
62310
|
"name": "it25",
|
|
62233
62311
|
"testId": 25,
|
|
@@ -62240,7 +62318,7 @@
|
|
|
62240
62318
|
"lineNumber": 68
|
|
62241
62319
|
},
|
|
62242
62320
|
{
|
|
62243
|
-
"__docId__":
|
|
62321
|
+
"__docId__": 2392,
|
|
62244
62322
|
"kind": "testIt",
|
|
62245
62323
|
"name": "it26",
|
|
62246
62324
|
"testId": 26,
|
|
@@ -62253,7 +62331,7 @@
|
|
|
62253
62331
|
"lineNumber": 75
|
|
62254
62332
|
},
|
|
62255
62333
|
{
|
|
62256
|
-
"__docId__":
|
|
62334
|
+
"__docId__": 2393,
|
|
62257
62335
|
"kind": "testIt",
|
|
62258
62336
|
"name": "it27",
|
|
62259
62337
|
"testId": 27,
|
|
@@ -62266,7 +62344,7 @@
|
|
|
62266
62344
|
"lineNumber": 82
|
|
62267
62345
|
},
|
|
62268
62346
|
{
|
|
62269
|
-
"__docId__":
|
|
62347
|
+
"__docId__": 2394,
|
|
62270
62348
|
"kind": "testIt",
|
|
62271
62349
|
"name": "it28",
|
|
62272
62350
|
"testId": 28,
|
|
@@ -62279,7 +62357,7 @@
|
|
|
62279
62357
|
"lineNumber": 88
|
|
62280
62358
|
},
|
|
62281
62359
|
{
|
|
62282
|
-
"__docId__":
|
|
62360
|
+
"__docId__": 2395,
|
|
62283
62361
|
"kind": "testDescribe",
|
|
62284
62362
|
"name": "describe29",
|
|
62285
62363
|
"testId": 29,
|
|
@@ -62292,7 +62370,7 @@
|
|
|
62292
62370
|
"lineNumber": 94
|
|
62293
62371
|
},
|
|
62294
62372
|
{
|
|
62295
|
-
"__docId__":
|
|
62373
|
+
"__docId__": 2396,
|
|
62296
62374
|
"kind": "testIt",
|
|
62297
62375
|
"name": "it30",
|
|
62298
62376
|
"testId": 30,
|
|
@@ -62305,7 +62383,7 @@
|
|
|
62305
62383
|
"lineNumber": 100
|
|
62306
62384
|
},
|
|
62307
62385
|
{
|
|
62308
|
-
"__docId__":
|
|
62386
|
+
"__docId__": 2397,
|
|
62309
62387
|
"kind": "testIt",
|
|
62310
62388
|
"name": "it31",
|
|
62311
62389
|
"testId": 31,
|
|
@@ -62318,7 +62396,7 @@
|
|
|
62318
62396
|
"lineNumber": 106
|
|
62319
62397
|
},
|
|
62320
62398
|
{
|
|
62321
|
-
"__docId__":
|
|
62399
|
+
"__docId__": 2398,
|
|
62322
62400
|
"kind": "testIt",
|
|
62323
62401
|
"name": "it32",
|
|
62324
62402
|
"testId": 32,
|
|
@@ -62331,7 +62409,7 @@
|
|
|
62331
62409
|
"lineNumber": 112
|
|
62332
62410
|
},
|
|
62333
62411
|
{
|
|
62334
|
-
"__docId__":
|
|
62412
|
+
"__docId__": 2399,
|
|
62335
62413
|
"kind": "testIt",
|
|
62336
62414
|
"name": "it33",
|
|
62337
62415
|
"testId": 33,
|
|
@@ -62344,7 +62422,7 @@
|
|
|
62344
62422
|
"lineNumber": 117
|
|
62345
62423
|
},
|
|
62346
62424
|
{
|
|
62347
|
-
"__docId__":
|
|
62425
|
+
"__docId__": 2400,
|
|
62348
62426
|
"kind": "testDescribe",
|
|
62349
62427
|
"name": "describe34",
|
|
62350
62428
|
"testId": 34,
|
|
@@ -62357,7 +62435,7 @@
|
|
|
62357
62435
|
"lineNumber": 131
|
|
62358
62436
|
},
|
|
62359
62437
|
{
|
|
62360
|
-
"__docId__":
|
|
62438
|
+
"__docId__": 2401,
|
|
62361
62439
|
"kind": "testIt",
|
|
62362
62440
|
"name": "it35",
|
|
62363
62441
|
"testId": 35,
|
|
@@ -62370,7 +62448,7 @@
|
|
|
62370
62448
|
"lineNumber": 133
|
|
62371
62449
|
},
|
|
62372
62450
|
{
|
|
62373
|
-
"__docId__":
|
|
62451
|
+
"__docId__": 2402,
|
|
62374
62452
|
"kind": "testIt",
|
|
62375
62453
|
"name": "it36",
|
|
62376
62454
|
"testId": 36,
|
|
@@ -62383,7 +62461,7 @@
|
|
|
62383
62461
|
"lineNumber": 139
|
|
62384
62462
|
},
|
|
62385
62463
|
{
|
|
62386
|
-
"__docId__":
|
|
62464
|
+
"__docId__": 2403,
|
|
62387
62465
|
"kind": "testDescribe",
|
|
62388
62466
|
"name": "describe37",
|
|
62389
62467
|
"testId": 37,
|
|
@@ -62396,7 +62474,7 @@
|
|
|
62396
62474
|
"lineNumber": 144
|
|
62397
62475
|
},
|
|
62398
62476
|
{
|
|
62399
|
-
"__docId__":
|
|
62477
|
+
"__docId__": 2404,
|
|
62400
62478
|
"kind": "testIt",
|
|
62401
62479
|
"name": "it38",
|
|
62402
62480
|
"testId": 38,
|
|
@@ -62409,7 +62487,7 @@
|
|
|
62409
62487
|
"lineNumber": 150
|
|
62410
62488
|
},
|
|
62411
62489
|
{
|
|
62412
|
-
"__docId__":
|
|
62490
|
+
"__docId__": 2405,
|
|
62413
62491
|
"kind": "testIt",
|
|
62414
62492
|
"name": "it39",
|
|
62415
62493
|
"testId": 39,
|
|
@@ -62422,7 +62500,7 @@
|
|
|
62422
62500
|
"lineNumber": 155
|
|
62423
62501
|
},
|
|
62424
62502
|
{
|
|
62425
|
-
"__docId__":
|
|
62503
|
+
"__docId__": 2406,
|
|
62426
62504
|
"kind": "testIt",
|
|
62427
62505
|
"name": "it40",
|
|
62428
62506
|
"testId": 40,
|
|
@@ -62435,7 +62513,7 @@
|
|
|
62435
62513
|
"lineNumber": 160
|
|
62436
62514
|
},
|
|
62437
62515
|
{
|
|
62438
|
-
"__docId__":
|
|
62516
|
+
"__docId__": 2407,
|
|
62439
62517
|
"kind": "testIt",
|
|
62440
62518
|
"name": "it41",
|
|
62441
62519
|
"testId": 41,
|
|
@@ -62448,7 +62526,7 @@
|
|
|
62448
62526
|
"lineNumber": 165
|
|
62449
62527
|
},
|
|
62450
62528
|
{
|
|
62451
|
-
"__docId__":
|
|
62529
|
+
"__docId__": 2408,
|
|
62452
62530
|
"kind": "testIt",
|
|
62453
62531
|
"name": "it42",
|
|
62454
62532
|
"testId": 42,
|
|
@@ -62461,7 +62539,7 @@
|
|
|
62461
62539
|
"lineNumber": 170
|
|
62462
62540
|
},
|
|
62463
62541
|
{
|
|
62464
|
-
"__docId__":
|
|
62542
|
+
"__docId__": 2409,
|
|
62465
62543
|
"kind": "testIt",
|
|
62466
62544
|
"name": "it43",
|
|
62467
62545
|
"testId": 43,
|
|
@@ -62474,7 +62552,7 @@
|
|
|
62474
62552
|
"lineNumber": 175
|
|
62475
62553
|
},
|
|
62476
62554
|
{
|
|
62477
|
-
"__docId__":
|
|
62555
|
+
"__docId__": 2410,
|
|
62478
62556
|
"kind": "testIt",
|
|
62479
62557
|
"name": "it44",
|
|
62480
62558
|
"testId": 44,
|
|
@@ -62487,7 +62565,7 @@
|
|
|
62487
62565
|
"lineNumber": 180
|
|
62488
62566
|
},
|
|
62489
62567
|
{
|
|
62490
|
-
"__docId__":
|
|
62568
|
+
"__docId__": 2411,
|
|
62491
62569
|
"kind": "testIt",
|
|
62492
62570
|
"name": "it45",
|
|
62493
62571
|
"testId": 45,
|
|
@@ -62500,7 +62578,7 @@
|
|
|
62500
62578
|
"lineNumber": 185
|
|
62501
62579
|
},
|
|
62502
62580
|
{
|
|
62503
|
-
"__docId__":
|
|
62581
|
+
"__docId__": 2412,
|
|
62504
62582
|
"kind": "testIt",
|
|
62505
62583
|
"name": "it46",
|
|
62506
62584
|
"testId": 46,
|
|
@@ -62513,7 +62591,7 @@
|
|
|
62513
62591
|
"lineNumber": 190
|
|
62514
62592
|
},
|
|
62515
62593
|
{
|
|
62516
|
-
"__docId__":
|
|
62594
|
+
"__docId__": 2413,
|
|
62517
62595
|
"kind": "testIt",
|
|
62518
62596
|
"name": "it47",
|
|
62519
62597
|
"testId": 47,
|
|
@@ -62526,7 +62604,7 @@
|
|
|
62526
62604
|
"lineNumber": 195
|
|
62527
62605
|
},
|
|
62528
62606
|
{
|
|
62529
|
-
"__docId__":
|
|
62607
|
+
"__docId__": 2414,
|
|
62530
62608
|
"kind": "testIt",
|
|
62531
62609
|
"name": "it48",
|
|
62532
62610
|
"testId": 48,
|
|
@@ -62539,7 +62617,7 @@
|
|
|
62539
62617
|
"lineNumber": 200
|
|
62540
62618
|
},
|
|
62541
62619
|
{
|
|
62542
|
-
"__docId__":
|
|
62620
|
+
"__docId__": 2415,
|
|
62543
62621
|
"kind": "testIt",
|
|
62544
62622
|
"name": "it49",
|
|
62545
62623
|
"testId": 49,
|
|
@@ -62552,7 +62630,7 @@
|
|
|
62552
62630
|
"lineNumber": 205
|
|
62553
62631
|
},
|
|
62554
62632
|
{
|
|
62555
|
-
"__docId__":
|
|
62633
|
+
"__docId__": 2416,
|
|
62556
62634
|
"kind": "testIt",
|
|
62557
62635
|
"name": "it50",
|
|
62558
62636
|
"testId": 50,
|
|
@@ -62565,7 +62643,7 @@
|
|
|
62565
62643
|
"lineNumber": 211
|
|
62566
62644
|
},
|
|
62567
62645
|
{
|
|
62568
|
-
"__docId__":
|
|
62646
|
+
"__docId__": 2417,
|
|
62569
62647
|
"kind": "testIt",
|
|
62570
62648
|
"name": "it51",
|
|
62571
62649
|
"testId": 51,
|
|
@@ -62578,7 +62656,7 @@
|
|
|
62578
62656
|
"lineNumber": 222
|
|
62579
62657
|
},
|
|
62580
62658
|
{
|
|
62581
|
-
"__docId__":
|
|
62659
|
+
"__docId__": 2418,
|
|
62582
62660
|
"kind": "testIt",
|
|
62583
62661
|
"name": "it52",
|
|
62584
62662
|
"testId": 52,
|
|
@@ -62591,7 +62669,7 @@
|
|
|
62591
62669
|
"lineNumber": 232
|
|
62592
62670
|
},
|
|
62593
62671
|
{
|
|
62594
|
-
"__docId__":
|
|
62672
|
+
"__docId__": 2419,
|
|
62595
62673
|
"kind": "testIt",
|
|
62596
62674
|
"name": "it53",
|
|
62597
62675
|
"testId": 53,
|
|
@@ -62604,7 +62682,7 @@
|
|
|
62604
62682
|
"lineNumber": 243
|
|
62605
62683
|
},
|
|
62606
62684
|
{
|
|
62607
|
-
"__docId__":
|
|
62685
|
+
"__docId__": 2420,
|
|
62608
62686
|
"kind": "testIt",
|
|
62609
62687
|
"name": "it54",
|
|
62610
62688
|
"testId": 54,
|
|
@@ -62617,7 +62695,7 @@
|
|
|
62617
62695
|
"lineNumber": 256
|
|
62618
62696
|
},
|
|
62619
62697
|
{
|
|
62620
|
-
"__docId__":
|
|
62698
|
+
"__docId__": 2421,
|
|
62621
62699
|
"kind": "testIt",
|
|
62622
62700
|
"name": "it55",
|
|
62623
62701
|
"testId": 55,
|
|
@@ -62630,7 +62708,7 @@
|
|
|
62630
62708
|
"lineNumber": 273
|
|
62631
62709
|
},
|
|
62632
62710
|
{
|
|
62633
|
-
"__docId__":
|
|
62711
|
+
"__docId__": 2422,
|
|
62634
62712
|
"kind": "testIt",
|
|
62635
62713
|
"name": "it56",
|
|
62636
62714
|
"testId": 56,
|
|
@@ -62643,7 +62721,7 @@
|
|
|
62643
62721
|
"lineNumber": 278
|
|
62644
62722
|
},
|
|
62645
62723
|
{
|
|
62646
|
-
"__docId__":
|
|
62724
|
+
"__docId__": 2423,
|
|
62647
62725
|
"kind": "testDescribe",
|
|
62648
62726
|
"name": "describe57",
|
|
62649
62727
|
"testId": 57,
|
|
@@ -62656,7 +62734,7 @@
|
|
|
62656
62734
|
"lineNumber": 284
|
|
62657
62735
|
},
|
|
62658
62736
|
{
|
|
62659
|
-
"__docId__":
|
|
62737
|
+
"__docId__": 2424,
|
|
62660
62738
|
"kind": "testIt",
|
|
62661
62739
|
"name": "it58",
|
|
62662
62740
|
"testId": 58,
|
|
@@ -62669,7 +62747,7 @@
|
|
|
62669
62747
|
"lineNumber": 298
|
|
62670
62748
|
},
|
|
62671
62749
|
{
|
|
62672
|
-
"__docId__":
|
|
62750
|
+
"__docId__": 2425,
|
|
62673
62751
|
"kind": "testIt",
|
|
62674
62752
|
"name": "it59",
|
|
62675
62753
|
"testId": 59,
|
|
@@ -62682,7 +62760,7 @@
|
|
|
62682
62760
|
"lineNumber": 303
|
|
62683
62761
|
},
|
|
62684
62762
|
{
|
|
62685
|
-
"__docId__":
|
|
62763
|
+
"__docId__": 2426,
|
|
62686
62764
|
"kind": "testIt",
|
|
62687
62765
|
"name": "it60",
|
|
62688
62766
|
"testId": 60,
|
|
@@ -62695,7 +62773,7 @@
|
|
|
62695
62773
|
"lineNumber": 308
|
|
62696
62774
|
},
|
|
62697
62775
|
{
|
|
62698
|
-
"__docId__":
|
|
62776
|
+
"__docId__": 2427,
|
|
62699
62777
|
"kind": "testIt",
|
|
62700
62778
|
"name": "it61",
|
|
62701
62779
|
"testId": 61,
|
|
@@ -62708,7 +62786,7 @@
|
|
|
62708
62786
|
"lineNumber": 312
|
|
62709
62787
|
},
|
|
62710
62788
|
{
|
|
62711
|
-
"__docId__":
|
|
62789
|
+
"__docId__": 2428,
|
|
62712
62790
|
"kind": "testFile",
|
|
62713
62791
|
"name": "client/provision/devices.provision.spec.js",
|
|
62714
62792
|
"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});",
|
|
@@ -62719,7 +62797,7 @@
|
|
|
62719
62797
|
"lineNumber": 1
|
|
62720
62798
|
},
|
|
62721
62799
|
{
|
|
62722
|
-
"__docId__":
|
|
62800
|
+
"__docId__": 2429,
|
|
62723
62801
|
"kind": "testDescribe",
|
|
62724
62802
|
"name": "describe62",
|
|
62725
62803
|
"testId": 62,
|
|
@@ -62741,7 +62819,7 @@
|
|
|
62741
62819
|
]
|
|
62742
62820
|
},
|
|
62743
62821
|
{
|
|
62744
|
-
"__docId__":
|
|
62822
|
+
"__docId__": 2430,
|
|
62745
62823
|
"kind": "testIt",
|
|
62746
62824
|
"name": "it63",
|
|
62747
62825
|
"testId": 63,
|
|
@@ -62754,7 +62832,7 @@
|
|
|
62754
62832
|
"lineNumber": 5
|
|
62755
62833
|
},
|
|
62756
62834
|
{
|
|
62757
|
-
"__docId__":
|
|
62835
|
+
"__docId__": 2431,
|
|
62758
62836
|
"kind": "testFile",
|
|
62759
62837
|
"name": "client/searching/FilterBuilder.spec.js",
|
|
62760
62838
|
"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});",
|
|
@@ -62765,7 +62843,7 @@
|
|
|
62765
62843
|
"lineNumber": 1
|
|
62766
62844
|
},
|
|
62767
62845
|
{
|
|
62768
|
-
"__docId__":
|
|
62846
|
+
"__docId__": 2432,
|
|
62769
62847
|
"kind": "testDescribe",
|
|
62770
62848
|
"name": "describe64",
|
|
62771
62849
|
"testId": 64,
|
|
@@ -62787,7 +62865,7 @@
|
|
|
62787
62865
|
]
|
|
62788
62866
|
},
|
|
62789
62867
|
{
|
|
62790
|
-
"__docId__":
|
|
62868
|
+
"__docId__": 2433,
|
|
62791
62869
|
"kind": "testIt",
|
|
62792
62870
|
"name": "it65",
|
|
62793
62871
|
"testId": 65,
|
|
@@ -62800,7 +62878,7 @@
|
|
|
62800
62878
|
"lineNumber": 6
|
|
62801
62879
|
},
|
|
62802
62880
|
{
|
|
62803
|
-
"__docId__":
|
|
62881
|
+
"__docId__": 2434,
|
|
62804
62882
|
"kind": "testIt",
|
|
62805
62883
|
"name": "it66",
|
|
62806
62884
|
"testId": 66,
|
|
@@ -62822,7 +62900,7 @@
|
|
|
62822
62900
|
]
|
|
62823
62901
|
},
|
|
62824
62902
|
{
|
|
62825
|
-
"__docId__":
|
|
62903
|
+
"__docId__": 2435,
|
|
62826
62904
|
"kind": "testIt",
|
|
62827
62905
|
"name": "it67",
|
|
62828
62906
|
"testId": 67,
|
|
@@ -62844,7 +62922,7 @@
|
|
|
62844
62922
|
]
|
|
62845
62923
|
},
|
|
62846
62924
|
{
|
|
62847
|
-
"__docId__":
|
|
62925
|
+
"__docId__": 2436,
|
|
62848
62926
|
"kind": "testIt",
|
|
62849
62927
|
"name": "it68",
|
|
62850
62928
|
"testId": 68,
|
|
@@ -62866,7 +62944,7 @@
|
|
|
62866
62944
|
]
|
|
62867
62945
|
},
|
|
62868
62946
|
{
|
|
62869
|
-
"__docId__":
|
|
62947
|
+
"__docId__": 2437,
|
|
62870
62948
|
"kind": "testIt",
|
|
62871
62949
|
"name": "it69",
|
|
62872
62950
|
"testId": 69,
|
|
@@ -62888,7 +62966,7 @@
|
|
|
62888
62966
|
]
|
|
62889
62967
|
},
|
|
62890
62968
|
{
|
|
62891
|
-
"__docId__":
|
|
62969
|
+
"__docId__": 2438,
|
|
62892
62970
|
"kind": "testFile",
|
|
62893
62971
|
"name": "client/searching/datapoints.search.spec.js",
|
|
62894
62972
|
"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});",
|
|
@@ -62899,7 +62977,7 @@
|
|
|
62899
62977
|
"lineNumber": 1
|
|
62900
62978
|
},
|
|
62901
62979
|
{
|
|
62902
|
-
"__docId__":
|
|
62980
|
+
"__docId__": 2439,
|
|
62903
62981
|
"kind": "testDescribe",
|
|
62904
62982
|
"name": "describe70",
|
|
62905
62983
|
"testId": 70,
|
|
@@ -62921,7 +62999,7 @@
|
|
|
62921
62999
|
]
|
|
62922
63000
|
},
|
|
62923
63001
|
{
|
|
62924
|
-
"__docId__":
|
|
63002
|
+
"__docId__": 2440,
|
|
62925
63003
|
"kind": "testIt",
|
|
62926
63004
|
"name": "it71",
|
|
62927
63005
|
"testId": 71,
|
|
@@ -62934,7 +63012,7 @@
|
|
|
62934
63012
|
"lineNumber": 5
|
|
62935
63013
|
},
|
|
62936
63014
|
{
|
|
62937
|
-
"__docId__":
|
|
63015
|
+
"__docId__": 2441,
|
|
62938
63016
|
"kind": "testDescribe",
|
|
62939
63017
|
"name": "describe72",
|
|
62940
63018
|
"testId": 72,
|
|
@@ -62947,7 +63025,7 @@
|
|
|
62947
63025
|
"lineNumber": 10
|
|
62948
63026
|
},
|
|
62949
63027
|
{
|
|
62950
|
-
"__docId__":
|
|
63028
|
+
"__docId__": 2442,
|
|
62951
63029
|
"kind": "testIt",
|
|
62952
63030
|
"name": "it73",
|
|
62953
63031
|
"testId": 73,
|
|
@@ -62960,7 +63038,7 @@
|
|
|
62960
63038
|
"lineNumber": 11
|
|
62961
63039
|
},
|
|
62962
63040
|
{
|
|
62963
|
-
"__docId__":
|
|
63041
|
+
"__docId__": 2443,
|
|
62964
63042
|
"kind": "testIt",
|
|
62965
63043
|
"name": "it74",
|
|
62966
63044
|
"testId": 74,
|
|
@@ -62973,7 +63051,7 @@
|
|
|
62973
63051
|
"lineNumber": 16
|
|
62974
63052
|
},
|
|
62975
63053
|
{
|
|
62976
|
-
"__docId__":
|
|
63054
|
+
"__docId__": 2444,
|
|
62977
63055
|
"kind": "testIt",
|
|
62978
63056
|
"name": "it75",
|
|
62979
63057
|
"testId": 75,
|
|
@@ -62986,7 +63064,7 @@
|
|
|
62986
63064
|
"lineNumber": 21
|
|
62987
63065
|
},
|
|
62988
63066
|
{
|
|
62989
|
-
"__docId__":
|
|
63067
|
+
"__docId__": 2445,
|
|
62990
63068
|
"kind": "testIt",
|
|
62991
63069
|
"name": "it76",
|
|
62992
63070
|
"testId": 76,
|
|
@@ -62999,7 +63077,7 @@
|
|
|
62999
63077
|
"lineNumber": 26
|
|
63000
63078
|
},
|
|
63001
63079
|
{
|
|
63002
|
-
"__docId__":
|
|
63080
|
+
"__docId__": 2446,
|
|
63003
63081
|
"kind": "testIt",
|
|
63004
63082
|
"name": "it77",
|
|
63005
63083
|
"testId": 77,
|
|
@@ -63012,7 +63090,7 @@
|
|
|
63012
63090
|
"lineNumber": 31
|
|
63013
63091
|
},
|
|
63014
63092
|
{
|
|
63015
|
-
"__docId__":
|
|
63093
|
+
"__docId__": 2447,
|
|
63016
63094
|
"kind": "testIt",
|
|
63017
63095
|
"name": "it78",
|
|
63018
63096
|
"testId": 78,
|
|
@@ -63025,7 +63103,7 @@
|
|
|
63025
63103
|
"lineNumber": 36
|
|
63026
63104
|
},
|
|
63027
63105
|
{
|
|
63028
|
-
"__docId__":
|
|
63106
|
+
"__docId__": 2448,
|
|
63029
63107
|
"kind": "testIt",
|
|
63030
63108
|
"name": "it79",
|
|
63031
63109
|
"testId": 79,
|
|
@@ -63038,7 +63116,7 @@
|
|
|
63038
63116
|
"lineNumber": 42
|
|
63039
63117
|
},
|
|
63040
63118
|
{
|
|
63041
|
-
"__docId__":
|
|
63119
|
+
"__docId__": 2449,
|
|
63042
63120
|
"kind": "testDescribe",
|
|
63043
63121
|
"name": "describe80",
|
|
63044
63122
|
"testId": 80,
|
|
@@ -63051,7 +63129,7 @@
|
|
|
63051
63129
|
"lineNumber": 52
|
|
63052
63130
|
},
|
|
63053
63131
|
{
|
|
63054
|
-
"__docId__":
|
|
63132
|
+
"__docId__": 2450,
|
|
63055
63133
|
"kind": "testIt",
|
|
63056
63134
|
"name": "it81",
|
|
63057
63135
|
"testId": 81,
|
|
@@ -63064,7 +63142,7 @@
|
|
|
63064
63142
|
"lineNumber": 53
|
|
63065
63143
|
},
|
|
63066
63144
|
{
|
|
63067
|
-
"__docId__":
|
|
63145
|
+
"__docId__": 2451,
|
|
63068
63146
|
"kind": "testIt",
|
|
63069
63147
|
"name": "it82",
|
|
63070
63148
|
"testId": 82,
|
|
@@ -63077,7 +63155,7 @@
|
|
|
63077
63155
|
"lineNumber": 60
|
|
63078
63156
|
},
|
|
63079
63157
|
{
|
|
63080
|
-
"__docId__":
|
|
63158
|
+
"__docId__": 2452,
|
|
63081
63159
|
"kind": "testIt",
|
|
63082
63160
|
"name": "it83",
|
|
63083
63161
|
"testId": 83,
|
|
@@ -63090,7 +63168,7 @@
|
|
|
63090
63168
|
"lineNumber": 68
|
|
63091
63169
|
},
|
|
63092
63170
|
{
|
|
63093
|
-
"__docId__":
|
|
63171
|
+
"__docId__": 2453,
|
|
63094
63172
|
"kind": "testIt",
|
|
63095
63173
|
"name": "it84",
|
|
63096
63174
|
"testId": 84,
|
|
@@ -63103,7 +63181,7 @@
|
|
|
63103
63181
|
"lineNumber": 75
|
|
63104
63182
|
},
|
|
63105
63183
|
{
|
|
63106
|
-
"__docId__":
|
|
63184
|
+
"__docId__": 2454,
|
|
63107
63185
|
"kind": "testIt",
|
|
63108
63186
|
"name": "it85",
|
|
63109
63187
|
"testId": 85,
|
|
@@ -63116,7 +63194,7 @@
|
|
|
63116
63194
|
"lineNumber": 82
|
|
63117
63195
|
},
|
|
63118
63196
|
{
|
|
63119
|
-
"__docId__":
|
|
63197
|
+
"__docId__": 2455,
|
|
63120
63198
|
"kind": "testIt",
|
|
63121
63199
|
"name": "it86",
|
|
63122
63200
|
"testId": 86,
|
|
@@ -63129,7 +63207,7 @@
|
|
|
63129
63207
|
"lineNumber": 91
|
|
63130
63208
|
},
|
|
63131
63209
|
{
|
|
63132
|
-
"__docId__":
|
|
63210
|
+
"__docId__": 2456,
|
|
63133
63211
|
"kind": "testFile",
|
|
63134
63212
|
"name": "client/searching/module.searching.spec.js",
|
|
63135
63213
|
"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#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#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",
|
|
@@ -63140,7 +63218,7 @@
|
|
|
63140
63218
|
"lineNumber": 1
|
|
63141
63219
|
},
|
|
63142
63220
|
{
|
|
63143
|
-
"__docId__":
|
|
63221
|
+
"__docId__": 2457,
|
|
63144
63222
|
"kind": "testDescribe",
|
|
63145
63223
|
"name": "describe87",
|
|
63146
63224
|
"testId": 87,
|
|
@@ -63162,7 +63240,7 @@
|
|
|
63162
63240
|
]
|
|
63163
63241
|
},
|
|
63164
63242
|
{
|
|
63165
|
-
"__docId__":
|
|
63243
|
+
"__docId__": 2458,
|
|
63166
63244
|
"kind": "testIt",
|
|
63167
63245
|
"name": "it88",
|
|
63168
63246
|
"testId": 88,
|
|
@@ -63184,7 +63262,7 @@
|
|
|
63184
63262
|
]
|
|
63185
63263
|
},
|
|
63186
63264
|
{
|
|
63187
|
-
"__docId__":
|
|
63265
|
+
"__docId__": 2459,
|
|
63188
63266
|
"kind": "testIt",
|
|
63189
63267
|
"name": "it89",
|
|
63190
63268
|
"testId": 89,
|
|
@@ -63206,7 +63284,7 @@
|
|
|
63206
63284
|
]
|
|
63207
63285
|
},
|
|
63208
63286
|
{
|
|
63209
|
-
"__docId__":
|
|
63287
|
+
"__docId__": 2460,
|
|
63210
63288
|
"kind": "testIt",
|
|
63211
63289
|
"name": "it90",
|
|
63212
63290
|
"testId": 90,
|
|
@@ -63228,7 +63306,7 @@
|
|
|
63228
63306
|
]
|
|
63229
63307
|
},
|
|
63230
63308
|
{
|
|
63231
|
-
"__docId__":
|
|
63309
|
+
"__docId__": 2461,
|
|
63232
63310
|
"kind": "testIt",
|
|
63233
63311
|
"name": "it91",
|
|
63234
63312
|
"testId": 91,
|
|
@@ -63250,7 +63328,7 @@
|
|
|
63250
63328
|
]
|
|
63251
63329
|
},
|
|
63252
63330
|
{
|
|
63253
|
-
"__docId__":
|
|
63331
|
+
"__docId__": 2462,
|
|
63254
63332
|
"kind": "testIt",
|
|
63255
63333
|
"name": "it92",
|
|
63256
63334
|
"testId": 92,
|
|
@@ -63272,7 +63350,7 @@
|
|
|
63272
63350
|
]
|
|
63273
63351
|
},
|
|
63274
63352
|
{
|
|
63275
|
-
"__docId__":
|
|
63353
|
+
"__docId__": 2463,
|
|
63276
63354
|
"kind": "testIt",
|
|
63277
63355
|
"name": "it93",
|
|
63278
63356
|
"testId": 93,
|
|
@@ -63294,7 +63372,7 @@
|
|
|
63294
63372
|
]
|
|
63295
63373
|
},
|
|
63296
63374
|
{
|
|
63297
|
-
"__docId__":
|
|
63375
|
+
"__docId__": 2464,
|
|
63298
63376
|
"kind": "testIt",
|
|
63299
63377
|
"name": "it94",
|
|
63300
63378
|
"testId": 94,
|
|
@@ -63316,7 +63394,7 @@
|
|
|
63316
63394
|
]
|
|
63317
63395
|
},
|
|
63318
63396
|
{
|
|
63319
|
-
"__docId__":
|
|
63397
|
+
"__docId__": 2465,
|
|
63320
63398
|
"kind": "testIt",
|
|
63321
63399
|
"name": "it95",
|
|
63322
63400
|
"testId": 95,
|
|
@@ -63338,7 +63416,7 @@
|
|
|
63338
63416
|
]
|
|
63339
63417
|
},
|
|
63340
63418
|
{
|
|
63341
|
-
"__docId__":
|
|
63419
|
+
"__docId__": 2466,
|
|
63342
63420
|
"kind": "testFile",
|
|
63343
63421
|
"name": "client/searching/rawsearch.spec.js",
|
|
63344
63422
|
"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});",
|
|
@@ -63349,7 +63427,7 @@
|
|
|
63349
63427
|
"lineNumber": 1
|
|
63350
63428
|
},
|
|
63351
63429
|
{
|
|
63352
|
-
"__docId__":
|
|
63430
|
+
"__docId__": 2467,
|
|
63353
63431
|
"kind": "testDescribe",
|
|
63354
63432
|
"name": "describe96",
|
|
63355
63433
|
"testId": 96,
|
|
@@ -63371,7 +63449,7 @@
|
|
|
63371
63449
|
]
|
|
63372
63450
|
},
|
|
63373
63451
|
{
|
|
63374
|
-
"__docId__":
|
|
63452
|
+
"__docId__": 2468,
|
|
63375
63453
|
"kind": "testIt",
|
|
63376
63454
|
"name": "it97",
|
|
63377
63455
|
"testId": 97,
|
|
@@ -63384,7 +63462,7 @@
|
|
|
63384
63462
|
"lineNumber": 5
|
|
63385
63463
|
},
|
|
63386
63464
|
{
|
|
63387
|
-
"__docId__":
|
|
63465
|
+
"__docId__": 2469,
|
|
63388
63466
|
"kind": "testIt",
|
|
63389
63467
|
"name": "it98",
|
|
63390
63468
|
"testId": 98,
|
|
@@ -63406,7 +63484,7 @@
|
|
|
63406
63484
|
]
|
|
63407
63485
|
},
|
|
63408
63486
|
{
|
|
63409
|
-
"__docId__":
|
|
63487
|
+
"__docId__": 2470,
|
|
63410
63488
|
"kind": "testIt",
|
|
63411
63489
|
"name": "it99",
|
|
63412
63490
|
"testId": 99,
|
|
@@ -63428,7 +63506,7 @@
|
|
|
63428
63506
|
]
|
|
63429
63507
|
},
|
|
63430
63508
|
{
|
|
63431
|
-
"__docId__":
|
|
63509
|
+
"__docId__": 2471,
|
|
63432
63510
|
"kind": "testIt",
|
|
63433
63511
|
"name": "it100",
|
|
63434
63512
|
"testId": 100,
|
|
@@ -63450,7 +63528,7 @@
|
|
|
63450
63528
|
]
|
|
63451
63529
|
},
|
|
63452
63530
|
{
|
|
63453
|
-
"__docId__":
|
|
63531
|
+
"__docId__": 2472,
|
|
63454
63532
|
"kind": "testIt",
|
|
63455
63533
|
"name": "it101",
|
|
63456
63534
|
"testId": 101,
|
|
@@ -63472,7 +63550,7 @@
|
|
|
63472
63550
|
]
|
|
63473
63551
|
},
|
|
63474
63552
|
{
|
|
63475
|
-
"__docId__":
|
|
63553
|
+
"__docId__": 2473,
|
|
63476
63554
|
"kind": "testIt",
|
|
63477
63555
|
"name": "it102",
|
|
63478
63556
|
"testId": 102,
|
|
@@ -63494,7 +63572,7 @@
|
|
|
63494
63572
|
]
|
|
63495
63573
|
},
|
|
63496
63574
|
{
|
|
63497
|
-
"__docId__":
|
|
63575
|
+
"__docId__": 2474,
|
|
63498
63576
|
"kind": "testIt",
|
|
63499
63577
|
"name": "it103",
|
|
63500
63578
|
"testId": 103,
|
|
@@ -63516,7 +63594,7 @@
|
|
|
63516
63594
|
]
|
|
63517
63595
|
},
|
|
63518
63596
|
{
|
|
63519
|
-
"__docId__":
|
|
63597
|
+
"__docId__": 2475,
|
|
63520
63598
|
"kind": "testFile",
|
|
63521
63599
|
"name": "client/searching/search.spec.js",
|
|
63522
63600
|
"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#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});\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});\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});\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});\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});\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});\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});\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});\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});\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});\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});",
|
|
@@ -63527,7 +63605,7 @@
|
|
|
63527
63605
|
"lineNumber": 1
|
|
63528
63606
|
},
|
|
63529
63607
|
{
|
|
63530
|
-
"__docId__":
|
|
63608
|
+
"__docId__": 2476,
|
|
63531
63609
|
"kind": "testDescribe",
|
|
63532
63610
|
"name": "describe104",
|
|
63533
63611
|
"testId": 104,
|
|
@@ -63579,7 +63657,7 @@
|
|
|
63579
63657
|
]
|
|
63580
63658
|
},
|
|
63581
63659
|
{
|
|
63582
|
-
"__docId__":
|
|
63660
|
+
"__docId__": 2477,
|
|
63583
63661
|
"kind": "testDescribe",
|
|
63584
63662
|
"name": "describe105",
|
|
63585
63663
|
"testId": 105,
|
|
@@ -63601,7 +63679,7 @@
|
|
|
63601
63679
|
]
|
|
63602
63680
|
},
|
|
63603
63681
|
{
|
|
63604
|
-
"__docId__":
|
|
63682
|
+
"__docId__": 2478,
|
|
63605
63683
|
"kind": "testIt",
|
|
63606
63684
|
"name": "it106",
|
|
63607
63685
|
"testId": 106,
|
|
@@ -63623,7 +63701,7 @@
|
|
|
63623
63701
|
]
|
|
63624
63702
|
},
|
|
63625
63703
|
{
|
|
63626
|
-
"__docId__":
|
|
63704
|
+
"__docId__": 2479,
|
|
63627
63705
|
"kind": "testIt",
|
|
63628
63706
|
"name": "it107",
|
|
63629
63707
|
"testId": 107,
|
|
@@ -63645,7 +63723,7 @@
|
|
|
63645
63723
|
]
|
|
63646
63724
|
},
|
|
63647
63725
|
{
|
|
63648
|
-
"__docId__":
|
|
63726
|
+
"__docId__": 2480,
|
|
63649
63727
|
"kind": "testIt",
|
|
63650
63728
|
"name": "it108",
|
|
63651
63729
|
"testId": 108,
|
|
@@ -63667,7 +63745,7 @@
|
|
|
63667
63745
|
]
|
|
63668
63746
|
},
|
|
63669
63747
|
{
|
|
63670
|
-
"__docId__":
|
|
63748
|
+
"__docId__": 2481,
|
|
63671
63749
|
"kind": "testIt",
|
|
63672
63750
|
"name": "it109",
|
|
63673
63751
|
"testId": 109,
|
|
@@ -63689,7 +63767,7 @@
|
|
|
63689
63767
|
]
|
|
63690
63768
|
},
|
|
63691
63769
|
{
|
|
63692
|
-
"__docId__":
|
|
63770
|
+
"__docId__": 2482,
|
|
63693
63771
|
"kind": "testDescribe",
|
|
63694
63772
|
"name": "describe110",
|
|
63695
63773
|
"testId": 110,
|
|
@@ -63711,7 +63789,7 @@
|
|
|
63711
63789
|
]
|
|
63712
63790
|
},
|
|
63713
63791
|
{
|
|
63714
|
-
"__docId__":
|
|
63792
|
+
"__docId__": 2483,
|
|
63715
63793
|
"kind": "testDescribe",
|
|
63716
63794
|
"name": "describe111",
|
|
63717
63795
|
"testId": 111,
|
|
@@ -63733,7 +63811,7 @@
|
|
|
63733
63811
|
]
|
|
63734
63812
|
},
|
|
63735
63813
|
{
|
|
63736
|
-
"__docId__":
|
|
63814
|
+
"__docId__": 2484,
|
|
63737
63815
|
"kind": "testIt",
|
|
63738
63816
|
"name": "it112",
|
|
63739
63817
|
"testId": 112,
|
|
@@ -63770,7 +63848,7 @@
|
|
|
63770
63848
|
]
|
|
63771
63849
|
},
|
|
63772
63850
|
{
|
|
63773
|
-
"__docId__":
|
|
63851
|
+
"__docId__": 2485,
|
|
63774
63852
|
"kind": "testIt",
|
|
63775
63853
|
"name": "it113",
|
|
63776
63854
|
"testId": 113,
|
|
@@ -63807,7 +63885,7 @@
|
|
|
63807
63885
|
]
|
|
63808
63886
|
},
|
|
63809
63887
|
{
|
|
63810
|
-
"__docId__":
|
|
63888
|
+
"__docId__": 2486,
|
|
63811
63889
|
"kind": "testIt",
|
|
63812
63890
|
"name": "it114",
|
|
63813
63891
|
"testId": 114,
|
|
@@ -63844,7 +63922,7 @@
|
|
|
63844
63922
|
]
|
|
63845
63923
|
},
|
|
63846
63924
|
{
|
|
63847
|
-
"__docId__":
|
|
63925
|
+
"__docId__": 2487,
|
|
63848
63926
|
"kind": "testDescribe",
|
|
63849
63927
|
"name": "describe115",
|
|
63850
63928
|
"testId": 115,
|
|
@@ -63857,7 +63935,7 @@
|
|
|
63857
63935
|
"lineNumber": 71
|
|
63858
63936
|
},
|
|
63859
63937
|
{
|
|
63860
|
-
"__docId__":
|
|
63938
|
+
"__docId__": 2488,
|
|
63861
63939
|
"kind": "testIt",
|
|
63862
63940
|
"name": "it116",
|
|
63863
63941
|
"testId": 116,
|
|
@@ -63894,7 +63972,7 @@
|
|
|
63894
63972
|
]
|
|
63895
63973
|
},
|
|
63896
63974
|
{
|
|
63897
|
-
"__docId__":
|
|
63975
|
+
"__docId__": 2489,
|
|
63898
63976
|
"kind": "testIt",
|
|
63899
63977
|
"name": "it117",
|
|
63900
63978
|
"testId": 117,
|
|
@@ -63931,7 +64009,7 @@
|
|
|
63931
64009
|
]
|
|
63932
64010
|
},
|
|
63933
64011
|
{
|
|
63934
|
-
"__docId__":
|
|
64012
|
+
"__docId__": 2490,
|
|
63935
64013
|
"kind": "testIt",
|
|
63936
64014
|
"name": "it118",
|
|
63937
64015
|
"testId": 118,
|
|
@@ -63968,7 +64046,7 @@
|
|
|
63968
64046
|
]
|
|
63969
64047
|
},
|
|
63970
64048
|
{
|
|
63971
|
-
"__docId__":
|
|
64049
|
+
"__docId__": 2491,
|
|
63972
64050
|
"kind": "testDescribe",
|
|
63973
64051
|
"name": "describe119",
|
|
63974
64052
|
"testId": 119,
|
|
@@ -63981,7 +64059,7 @@
|
|
|
63981
64059
|
"lineNumber": 97
|
|
63982
64060
|
},
|
|
63983
64061
|
{
|
|
63984
|
-
"__docId__":
|
|
64062
|
+
"__docId__": 2492,
|
|
63985
64063
|
"kind": "testIt",
|
|
63986
64064
|
"name": "it120",
|
|
63987
64065
|
"testId": 120,
|
|
@@ -64018,7 +64096,7 @@
|
|
|
64018
64096
|
]
|
|
64019
64097
|
},
|
|
64020
64098
|
{
|
|
64021
|
-
"__docId__":
|
|
64099
|
+
"__docId__": 2493,
|
|
64022
64100
|
"kind": "testIt",
|
|
64023
64101
|
"name": "it121",
|
|
64024
64102
|
"testId": 121,
|
|
@@ -64055,7 +64133,7 @@
|
|
|
64055
64133
|
]
|
|
64056
64134
|
},
|
|
64057
64135
|
{
|
|
64058
|
-
"__docId__":
|
|
64136
|
+
"__docId__": 2494,
|
|
64059
64137
|
"kind": "testIt",
|
|
64060
64138
|
"name": "it122",
|
|
64061
64139
|
"testId": 122,
|
|
@@ -64092,7 +64170,7 @@
|
|
|
64092
64170
|
]
|
|
64093
64171
|
},
|
|
64094
64172
|
{
|
|
64095
|
-
"__docId__":
|
|
64173
|
+
"__docId__": 2495,
|
|
64096
64174
|
"kind": "testDescribe",
|
|
64097
64175
|
"name": "describe123",
|
|
64098
64176
|
"testId": 123,
|
|
@@ -64129,7 +64207,7 @@
|
|
|
64129
64207
|
]
|
|
64130
64208
|
},
|
|
64131
64209
|
{
|
|
64132
|
-
"__docId__":
|
|
64210
|
+
"__docId__": 2496,
|
|
64133
64211
|
"kind": "testIt",
|
|
64134
64212
|
"name": "it124",
|
|
64135
64213
|
"testId": 124,
|
|
@@ -64142,7 +64220,7 @@
|
|
|
64142
64220
|
"lineNumber": 129
|
|
64143
64221
|
},
|
|
64144
64222
|
{
|
|
64145
|
-
"__docId__":
|
|
64223
|
+
"__docId__": 2497,
|
|
64146
64224
|
"kind": "testDescribe",
|
|
64147
64225
|
"name": "describe125",
|
|
64148
64226
|
"testId": 125,
|
|
@@ -64164,7 +64242,7 @@
|
|
|
64164
64242
|
]
|
|
64165
64243
|
},
|
|
64166
64244
|
{
|
|
64167
|
-
"__docId__":
|
|
64245
|
+
"__docId__": 2498,
|
|
64168
64246
|
"kind": "testIt",
|
|
64169
64247
|
"name": "it126",
|
|
64170
64248
|
"testId": 126,
|
|
@@ -64177,7 +64255,7 @@
|
|
|
64177
64255
|
"lineNumber": 141
|
|
64178
64256
|
},
|
|
64179
64257
|
{
|
|
64180
|
-
"__docId__":
|
|
64258
|
+
"__docId__": 2499,
|
|
64181
64259
|
"kind": "testIt",
|
|
64182
64260
|
"name": "it127",
|
|
64183
64261
|
"testId": 127,
|
|
@@ -64190,7 +64268,7 @@
|
|
|
64190
64268
|
"lineNumber": 144
|
|
64191
64269
|
},
|
|
64192
64270
|
{
|
|
64193
|
-
"__docId__":
|
|
64271
|
+
"__docId__": 2500,
|
|
64194
64272
|
"kind": "testIt",
|
|
64195
64273
|
"name": "it128",
|
|
64196
64274
|
"testId": 128,
|
|
@@ -64203,7 +64281,7 @@
|
|
|
64203
64281
|
"lineNumber": 147
|
|
64204
64282
|
},
|
|
64205
64283
|
{
|
|
64206
|
-
"__docId__":
|
|
64284
|
+
"__docId__": 2501,
|
|
64207
64285
|
"kind": "testIt",
|
|
64208
64286
|
"name": "it129",
|
|
64209
64287
|
"testId": 129,
|
|
@@ -64216,7 +64294,7 @@
|
|
|
64216
64294
|
"lineNumber": 150
|
|
64217
64295
|
},
|
|
64218
64296
|
{
|
|
64219
|
-
"__docId__":
|
|
64297
|
+
"__docId__": 2502,
|
|
64220
64298
|
"kind": "testDescribe",
|
|
64221
64299
|
"name": "describe130",
|
|
64222
64300
|
"testId": 130,
|
|
@@ -64238,7 +64316,7 @@
|
|
|
64238
64316
|
]
|
|
64239
64317
|
},
|
|
64240
64318
|
{
|
|
64241
|
-
"__docId__":
|
|
64319
|
+
"__docId__": 2503,
|
|
64242
64320
|
"kind": "testIt",
|
|
64243
64321
|
"name": "it131",
|
|
64244
64322
|
"testId": 131,
|
|
@@ -64260,7 +64338,7 @@
|
|
|
64260
64338
|
]
|
|
64261
64339
|
},
|
|
64262
64340
|
{
|
|
64263
|
-
"__docId__":
|
|
64341
|
+
"__docId__": 2504,
|
|
64264
64342
|
"kind": "testIt",
|
|
64265
64343
|
"name": "it132",
|
|
64266
64344
|
"testId": 132,
|
|
@@ -64282,7 +64360,7 @@
|
|
|
64282
64360
|
]
|
|
64283
64361
|
},
|
|
64284
64362
|
{
|
|
64285
|
-
"__docId__":
|
|
64363
|
+
"__docId__": 2505,
|
|
64286
64364
|
"kind": "testIt",
|
|
64287
64365
|
"name": "it133",
|
|
64288
64366
|
"testId": 133,
|
|
@@ -64304,7 +64382,7 @@
|
|
|
64304
64382
|
]
|
|
64305
64383
|
},
|
|
64306
64384
|
{
|
|
64307
|
-
"__docId__":
|
|
64385
|
+
"__docId__": 2506,
|
|
64308
64386
|
"kind": "testDescribe",
|
|
64309
64387
|
"name": "describe134",
|
|
64310
64388
|
"testId": 134,
|
|
@@ -64326,7 +64404,7 @@
|
|
|
64326
64404
|
]
|
|
64327
64405
|
},
|
|
64328
64406
|
{
|
|
64329
|
-
"__docId__":
|
|
64407
|
+
"__docId__": 2507,
|
|
64330
64408
|
"kind": "testIt",
|
|
64331
64409
|
"name": "it135",
|
|
64332
64410
|
"testId": 135,
|
|
@@ -64348,7 +64426,7 @@
|
|
|
64348
64426
|
]
|
|
64349
64427
|
},
|
|
64350
64428
|
{
|
|
64351
|
-
"__docId__":
|
|
64429
|
+
"__docId__": 2508,
|
|
64352
64430
|
"kind": "testIt",
|
|
64353
64431
|
"name": "it136",
|
|
64354
64432
|
"testId": 136,
|
|
@@ -64370,7 +64448,7 @@
|
|
|
64370
64448
|
]
|
|
64371
64449
|
},
|
|
64372
64450
|
{
|
|
64373
|
-
"__docId__":
|
|
64451
|
+
"__docId__": 2509,
|
|
64374
64452
|
"kind": "testIt",
|
|
64375
64453
|
"name": "it137",
|
|
64376
64454
|
"testId": 137,
|
|
@@ -64392,7 +64470,7 @@
|
|
|
64392
64470
|
]
|
|
64393
64471
|
},
|
|
64394
64472
|
{
|
|
64395
|
-
"__docId__":
|
|
64473
|
+
"__docId__": 2510,
|
|
64396
64474
|
"kind": "testDescribe",
|
|
64397
64475
|
"name": "describe138",
|
|
64398
64476
|
"testId": 138,
|
|
@@ -64414,7 +64492,7 @@
|
|
|
64414
64492
|
]
|
|
64415
64493
|
},
|
|
64416
64494
|
{
|
|
64417
|
-
"__docId__":
|
|
64495
|
+
"__docId__": 2511,
|
|
64418
64496
|
"kind": "testIt",
|
|
64419
64497
|
"name": "it139",
|
|
64420
64498
|
"testId": 139,
|
|
@@ -64436,7 +64514,7 @@
|
|
|
64436
64514
|
]
|
|
64437
64515
|
},
|
|
64438
64516
|
{
|
|
64439
|
-
"__docId__":
|
|
64517
|
+
"__docId__": 2512,
|
|
64440
64518
|
"kind": "testIt",
|
|
64441
64519
|
"name": "it140",
|
|
64442
64520
|
"testId": 140,
|
|
@@ -64458,7 +64536,7 @@
|
|
|
64458
64536
|
]
|
|
64459
64537
|
},
|
|
64460
64538
|
{
|
|
64461
|
-
"__docId__":
|
|
64539
|
+
"__docId__": 2513,
|
|
64462
64540
|
"kind": "testIt",
|
|
64463
64541
|
"name": "it141",
|
|
64464
64542
|
"testId": 141,
|
|
@@ -64480,7 +64558,7 @@
|
|
|
64480
64558
|
]
|
|
64481
64559
|
},
|
|
64482
64560
|
{
|
|
64483
|
-
"__docId__":
|
|
64561
|
+
"__docId__": 2514,
|
|
64484
64562
|
"kind": "testDescribe",
|
|
64485
64563
|
"name": "describe142",
|
|
64486
64564
|
"testId": 142,
|
|
@@ -64502,7 +64580,7 @@
|
|
|
64502
64580
|
]
|
|
64503
64581
|
},
|
|
64504
64582
|
{
|
|
64505
|
-
"__docId__":
|
|
64583
|
+
"__docId__": 2515,
|
|
64506
64584
|
"kind": "testDescribe",
|
|
64507
64585
|
"name": "describe143",
|
|
64508
64586
|
"testId": 143,
|
|
@@ -64515,7 +64593,7 @@
|
|
|
64515
64593
|
"lineNumber": 202
|
|
64516
64594
|
},
|
|
64517
64595
|
{
|
|
64518
|
-
"__docId__":
|
|
64596
|
+
"__docId__": 2516,
|
|
64519
64597
|
"kind": "testIt",
|
|
64520
64598
|
"name": "it144",
|
|
64521
64599
|
"testId": 144,
|
|
@@ -64542,7 +64620,7 @@
|
|
|
64542
64620
|
]
|
|
64543
64621
|
},
|
|
64544
64622
|
{
|
|
64545
|
-
"__docId__":
|
|
64623
|
+
"__docId__": 2517,
|
|
64546
64624
|
"kind": "testIt",
|
|
64547
64625
|
"name": "it145",
|
|
64548
64626
|
"testId": 145,
|
|
@@ -64569,7 +64647,7 @@
|
|
|
64569
64647
|
]
|
|
64570
64648
|
},
|
|
64571
64649
|
{
|
|
64572
|
-
"__docId__":
|
|
64650
|
+
"__docId__": 2518,
|
|
64573
64651
|
"kind": "testIt",
|
|
64574
64652
|
"name": "it146",
|
|
64575
64653
|
"testId": 146,
|
|
@@ -64596,7 +64674,7 @@
|
|
|
64596
64674
|
]
|
|
64597
64675
|
},
|
|
64598
64676
|
{
|
|
64599
|
-
"__docId__":
|
|
64677
|
+
"__docId__": 2519,
|
|
64600
64678
|
"kind": "testDescribe",
|
|
64601
64679
|
"name": "describe147",
|
|
64602
64680
|
"testId": 147,
|
|
@@ -64623,7 +64701,7 @@
|
|
|
64623
64701
|
]
|
|
64624
64702
|
},
|
|
64625
64703
|
{
|
|
64626
|
-
"__docId__":
|
|
64704
|
+
"__docId__": 2520,
|
|
64627
64705
|
"kind": "testIt",
|
|
64628
64706
|
"name": "it148",
|
|
64629
64707
|
"testId": 148,
|
|
@@ -64650,7 +64728,7 @@
|
|
|
64650
64728
|
]
|
|
64651
64729
|
},
|
|
64652
64730
|
{
|
|
64653
|
-
"__docId__":
|
|
64731
|
+
"__docId__": 2521,
|
|
64654
64732
|
"kind": "testIt",
|
|
64655
64733
|
"name": "it149",
|
|
64656
64734
|
"testId": 149,
|
|
@@ -64677,7 +64755,7 @@
|
|
|
64677
64755
|
]
|
|
64678
64756
|
},
|
|
64679
64757
|
{
|
|
64680
|
-
"__docId__":
|
|
64758
|
+
"__docId__": 2522,
|
|
64681
64759
|
"kind": "testIt",
|
|
64682
64760
|
"name": "it150",
|
|
64683
64761
|
"testId": 150,
|
|
@@ -64704,7 +64782,7 @@
|
|
|
64704
64782
|
]
|
|
64705
64783
|
},
|
|
64706
64784
|
{
|
|
64707
|
-
"__docId__":
|
|
64785
|
+
"__docId__": 2523,
|
|
64708
64786
|
"kind": "testDescribe",
|
|
64709
64787
|
"name": "describe151",
|
|
64710
64788
|
"testId": 151,
|
|
@@ -64717,7 +64795,7 @@
|
|
|
64717
64795
|
"lineNumber": 252
|
|
64718
64796
|
},
|
|
64719
64797
|
{
|
|
64720
|
-
"__docId__":
|
|
64798
|
+
"__docId__": 2524,
|
|
64721
64799
|
"kind": "testIt",
|
|
64722
64800
|
"name": "it152",
|
|
64723
64801
|
"testId": 152,
|
|
@@ -64744,7 +64822,7 @@
|
|
|
64744
64822
|
]
|
|
64745
64823
|
},
|
|
64746
64824
|
{
|
|
64747
|
-
"__docId__":
|
|
64825
|
+
"__docId__": 2525,
|
|
64748
64826
|
"kind": "testIt",
|
|
64749
64827
|
"name": "it153",
|
|
64750
64828
|
"testId": 153,
|
|
@@ -64771,7 +64849,7 @@
|
|
|
64771
64849
|
]
|
|
64772
64850
|
},
|
|
64773
64851
|
{
|
|
64774
|
-
"__docId__":
|
|
64852
|
+
"__docId__": 2526,
|
|
64775
64853
|
"kind": "testIt",
|
|
64776
64854
|
"name": "it154",
|
|
64777
64855
|
"testId": 154,
|
|
@@ -64798,7 +64876,7 @@
|
|
|
64798
64876
|
]
|
|
64799
64877
|
},
|
|
64800
64878
|
{
|
|
64801
|
-
"__docId__":
|
|
64879
|
+
"__docId__": 2527,
|
|
64802
64880
|
"kind": "testDescribe",
|
|
64803
64881
|
"name": "describe155",
|
|
64804
64882
|
"testId": 155,
|
|
@@ -64811,7 +64889,7 @@
|
|
|
64811
64889
|
"lineNumber": 275
|
|
64812
64890
|
},
|
|
64813
64891
|
{
|
|
64814
|
-
"__docId__":
|
|
64892
|
+
"__docId__": 2528,
|
|
64815
64893
|
"kind": "testIt",
|
|
64816
64894
|
"name": "it156",
|
|
64817
64895
|
"testId": 156,
|
|
@@ -64838,7 +64916,7 @@
|
|
|
64838
64916
|
]
|
|
64839
64917
|
},
|
|
64840
64918
|
{
|
|
64841
|
-
"__docId__":
|
|
64919
|
+
"__docId__": 2529,
|
|
64842
64920
|
"kind": "testIt",
|
|
64843
64921
|
"name": "it157",
|
|
64844
64922
|
"testId": 157,
|
|
@@ -64865,7 +64943,7 @@
|
|
|
64865
64943
|
]
|
|
64866
64944
|
},
|
|
64867
64945
|
{
|
|
64868
|
-
"__docId__":
|
|
64946
|
+
"__docId__": 2530,
|
|
64869
64947
|
"kind": "testIt",
|
|
64870
64948
|
"name": "it158",
|
|
64871
64949
|
"testId": 158,
|
|
@@ -64892,7 +64970,7 @@
|
|
|
64892
64970
|
]
|
|
64893
64971
|
},
|
|
64894
64972
|
{
|
|
64895
|
-
"__docId__":
|
|
64973
|
+
"__docId__": 2531,
|
|
64896
64974
|
"kind": "testDescribe",
|
|
64897
64975
|
"name": "describe159",
|
|
64898
64976
|
"testId": 159,
|
|
@@ -64905,7 +64983,7 @@
|
|
|
64905
64983
|
"lineNumber": 300
|
|
64906
64984
|
},
|
|
64907
64985
|
{
|
|
64908
|
-
"__docId__":
|
|
64986
|
+
"__docId__": 2532,
|
|
64909
64987
|
"kind": "testIt",
|
|
64910
64988
|
"name": "it160",
|
|
64911
64989
|
"testId": 160,
|
|
@@ -64932,7 +65010,7 @@
|
|
|
64932
65010
|
]
|
|
64933
65011
|
},
|
|
64934
65012
|
{
|
|
64935
|
-
"__docId__":
|
|
65013
|
+
"__docId__": 2533,
|
|
64936
65014
|
"kind": "testIt",
|
|
64937
65015
|
"name": "it161",
|
|
64938
65016
|
"testId": 161,
|
|
@@ -64959,7 +65037,7 @@
|
|
|
64959
65037
|
]
|
|
64960
65038
|
},
|
|
64961
65039
|
{
|
|
64962
|
-
"__docId__":
|
|
65040
|
+
"__docId__": 2534,
|
|
64963
65041
|
"kind": "testIt",
|
|
64964
65042
|
"name": "it162",
|
|
64965
65043
|
"testId": 162,
|
|
@@ -64986,7 +65064,7 @@
|
|
|
64986
65064
|
]
|
|
64987
65065
|
},
|
|
64988
65066
|
{
|
|
64989
|
-
"__docId__":
|
|
65067
|
+
"__docId__": 2535,
|
|
64990
65068
|
"kind": "testDescribe",
|
|
64991
65069
|
"name": "describe163",
|
|
64992
65070
|
"testId": 163,
|
|
@@ -64999,7 +65077,7 @@
|
|
|
64999
65077
|
"lineNumber": 325
|
|
65000
65078
|
},
|
|
65001
65079
|
{
|
|
65002
|
-
"__docId__":
|
|
65080
|
+
"__docId__": 2536,
|
|
65003
65081
|
"kind": "testIt",
|
|
65004
65082
|
"name": "it164",
|
|
65005
65083
|
"testId": 164,
|
|
@@ -65021,7 +65099,7 @@
|
|
|
65021
65099
|
]
|
|
65022
65100
|
},
|
|
65023
65101
|
{
|
|
65024
|
-
"__docId__":
|
|
65102
|
+
"__docId__": 2537,
|
|
65025
65103
|
"kind": "testIt",
|
|
65026
65104
|
"name": "it165",
|
|
65027
65105
|
"testId": 165,
|
|
@@ -65043,7 +65121,7 @@
|
|
|
65043
65121
|
]
|
|
65044
65122
|
},
|
|
65045
65123
|
{
|
|
65046
|
-
"__docId__":
|
|
65124
|
+
"__docId__": 2538,
|
|
65047
65125
|
"kind": "testIt",
|
|
65048
65126
|
"name": "it166",
|
|
65049
65127
|
"testId": 166,
|
|
@@ -65065,7 +65143,7 @@
|
|
|
65065
65143
|
]
|
|
65066
65144
|
},
|
|
65067
65145
|
{
|
|
65068
|
-
"__docId__":
|
|
65146
|
+
"__docId__": 2539,
|
|
65069
65147
|
"kind": "testDescribe",
|
|
65070
65148
|
"name": "describe167",
|
|
65071
65149
|
"testId": 167,
|
|
@@ -65078,7 +65156,7 @@
|
|
|
65078
65156
|
"lineNumber": 345
|
|
65079
65157
|
},
|
|
65080
65158
|
{
|
|
65081
|
-
"__docId__":
|
|
65159
|
+
"__docId__": 2540,
|
|
65082
65160
|
"kind": "testIt",
|
|
65083
65161
|
"name": "it168",
|
|
65084
65162
|
"testId": 168,
|
|
@@ -65100,7 +65178,7 @@
|
|
|
65100
65178
|
]
|
|
65101
65179
|
},
|
|
65102
65180
|
{
|
|
65103
|
-
"__docId__":
|
|
65181
|
+
"__docId__": 2541,
|
|
65104
65182
|
"kind": "testIt",
|
|
65105
65183
|
"name": "it169",
|
|
65106
65184
|
"testId": 169,
|
|
@@ -65122,7 +65200,7 @@
|
|
|
65122
65200
|
]
|
|
65123
65201
|
},
|
|
65124
65202
|
{
|
|
65125
|
-
"__docId__":
|
|
65203
|
+
"__docId__": 2542,
|
|
65126
65204
|
"kind": "testIt",
|
|
65127
65205
|
"name": "it170",
|
|
65128
65206
|
"testId": 170,
|
|
@@ -65144,7 +65222,7 @@
|
|
|
65144
65222
|
]
|
|
65145
65223
|
},
|
|
65146
65224
|
{
|
|
65147
|
-
"__docId__":
|
|
65225
|
+
"__docId__": 2543,
|
|
65148
65226
|
"kind": "testIt",
|
|
65149
65227
|
"name": "it171",
|
|
65150
65228
|
"testId": 171,
|
|
@@ -65166,7 +65244,7 @@
|
|
|
65166
65244
|
]
|
|
65167
65245
|
},
|
|
65168
65246
|
{
|
|
65169
|
-
"__docId__":
|
|
65247
|
+
"__docId__": 2544,
|
|
65170
65248
|
"kind": "testDescribe",
|
|
65171
65249
|
"name": "describe172",
|
|
65172
65250
|
"testId": 172,
|
|
@@ -65179,7 +65257,7 @@
|
|
|
65179
65257
|
"lineNumber": 362
|
|
65180
65258
|
},
|
|
65181
65259
|
{
|
|
65182
|
-
"__docId__":
|
|
65260
|
+
"__docId__": 2545,
|
|
65183
65261
|
"kind": "testIt",
|
|
65184
65262
|
"name": "it173",
|
|
65185
65263
|
"testId": 173,
|
|
@@ -65201,7 +65279,7 @@
|
|
|
65201
65279
|
]
|
|
65202
65280
|
},
|
|
65203
65281
|
{
|
|
65204
|
-
"__docId__":
|
|
65282
|
+
"__docId__": 2546,
|
|
65205
65283
|
"kind": "testIt",
|
|
65206
65284
|
"name": "it174",
|
|
65207
65285
|
"testId": 174,
|
|
@@ -65223,7 +65301,7 @@
|
|
|
65223
65301
|
]
|
|
65224
65302
|
},
|
|
65225
65303
|
{
|
|
65226
|
-
"__docId__":
|
|
65304
|
+
"__docId__": 2547,
|
|
65227
65305
|
"kind": "testIt",
|
|
65228
65306
|
"name": "it175",
|
|
65229
65307
|
"testId": 175,
|
|
@@ -65245,7 +65323,7 @@
|
|
|
65245
65323
|
]
|
|
65246
65324
|
},
|
|
65247
65325
|
{
|
|
65248
|
-
"__docId__":
|
|
65326
|
+
"__docId__": 2548,
|
|
65249
65327
|
"kind": "testIt",
|
|
65250
65328
|
"name": "it176",
|
|
65251
65329
|
"testId": 176,
|
|
@@ -65267,7 +65345,7 @@
|
|
|
65267
65345
|
]
|
|
65268
65346
|
},
|
|
65269
65347
|
{
|
|
65270
|
-
"__docId__":
|
|
65348
|
+
"__docId__": 2549,
|
|
65271
65349
|
"kind": "testDescribe",
|
|
65272
65350
|
"name": "describe177",
|
|
65273
65351
|
"testId": 177,
|
|
@@ -65280,7 +65358,7 @@
|
|
|
65280
65358
|
"lineNumber": 382
|
|
65281
65359
|
},
|
|
65282
65360
|
{
|
|
65283
|
-
"__docId__":
|
|
65361
|
+
"__docId__": 2550,
|
|
65284
65362
|
"kind": "testIt",
|
|
65285
65363
|
"name": "it178",
|
|
65286
65364
|
"testId": 178,
|
|
@@ -65302,7 +65380,7 @@
|
|
|
65302
65380
|
]
|
|
65303
65381
|
},
|
|
65304
65382
|
{
|
|
65305
|
-
"__docId__":
|
|
65383
|
+
"__docId__": 2551,
|
|
65306
65384
|
"kind": "testIt",
|
|
65307
65385
|
"name": "it179",
|
|
65308
65386
|
"testId": 179,
|
|
@@ -65324,7 +65402,7 @@
|
|
|
65324
65402
|
]
|
|
65325
65403
|
},
|
|
65326
65404
|
{
|
|
65327
|
-
"__docId__":
|
|
65405
|
+
"__docId__": 2552,
|
|
65328
65406
|
"kind": "testIt",
|
|
65329
65407
|
"name": "it180",
|
|
65330
65408
|
"testId": 180,
|
|
@@ -65346,7 +65424,7 @@
|
|
|
65346
65424
|
]
|
|
65347
65425
|
},
|
|
65348
65426
|
{
|
|
65349
|
-
"__docId__":
|
|
65427
|
+
"__docId__": 2553,
|
|
65350
65428
|
"kind": "testDescribe",
|
|
65351
65429
|
"name": "describe181",
|
|
65352
65430
|
"testId": 181,
|
|
@@ -65359,7 +65437,7 @@
|
|
|
65359
65437
|
"lineNumber": 396
|
|
65360
65438
|
},
|
|
65361
65439
|
{
|
|
65362
|
-
"__docId__":
|
|
65440
|
+
"__docId__": 2554,
|
|
65363
65441
|
"kind": "testIt",
|
|
65364
65442
|
"name": "it182",
|
|
65365
65443
|
"testId": 182,
|
|
@@ -65381,7 +65459,7 @@
|
|
|
65381
65459
|
]
|
|
65382
65460
|
},
|
|
65383
65461
|
{
|
|
65384
|
-
"__docId__":
|
|
65462
|
+
"__docId__": 2555,
|
|
65385
65463
|
"kind": "testIt",
|
|
65386
65464
|
"name": "it183",
|
|
65387
65465
|
"testId": 183,
|
|
@@ -65403,7 +65481,7 @@
|
|
|
65403
65481
|
]
|
|
65404
65482
|
},
|
|
65405
65483
|
{
|
|
65406
|
-
"__docId__":
|
|
65484
|
+
"__docId__": 2556,
|
|
65407
65485
|
"kind": "testIt",
|
|
65408
65486
|
"name": "it184",
|
|
65409
65487
|
"testId": 184,
|
|
@@ -65425,7 +65503,7 @@
|
|
|
65425
65503
|
]
|
|
65426
65504
|
},
|
|
65427
65505
|
{
|
|
65428
|
-
"__docId__":
|
|
65506
|
+
"__docId__": 2557,
|
|
65429
65507
|
"kind": "testIt",
|
|
65430
65508
|
"name": "it185",
|
|
65431
65509
|
"testId": 185,
|
|
@@ -65447,7 +65525,7 @@
|
|
|
65447
65525
|
]
|
|
65448
65526
|
},
|
|
65449
65527
|
{
|
|
65450
|
-
"__docId__":
|
|
65528
|
+
"__docId__": 2558,
|
|
65451
65529
|
"kind": "testDescribe",
|
|
65452
65530
|
"name": "describe186",
|
|
65453
65531
|
"testId": 186,
|
|
@@ -65460,7 +65538,7 @@
|
|
|
65460
65538
|
"lineNumber": 413
|
|
65461
65539
|
},
|
|
65462
65540
|
{
|
|
65463
|
-
"__docId__":
|
|
65541
|
+
"__docId__": 2559,
|
|
65464
65542
|
"kind": "testIt",
|
|
65465
65543
|
"name": "it187",
|
|
65466
65544
|
"testId": 187,
|
|
@@ -65482,7 +65560,7 @@
|
|
|
65482
65560
|
]
|
|
65483
65561
|
},
|
|
65484
65562
|
{
|
|
65485
|
-
"__docId__":
|
|
65563
|
+
"__docId__": 2560,
|
|
65486
65564
|
"kind": "testIt",
|
|
65487
65565
|
"name": "it188",
|
|
65488
65566
|
"testId": 188,
|
|
@@ -65504,7 +65582,7 @@
|
|
|
65504
65582
|
]
|
|
65505
65583
|
},
|
|
65506
65584
|
{
|
|
65507
|
-
"__docId__":
|
|
65585
|
+
"__docId__": 2561,
|
|
65508
65586
|
"kind": "testIt",
|
|
65509
65587
|
"name": "it189",
|
|
65510
65588
|
"testId": 189,
|
|
@@ -65526,7 +65604,7 @@
|
|
|
65526
65604
|
]
|
|
65527
65605
|
},
|
|
65528
65606
|
{
|
|
65529
|
-
"__docId__":
|
|
65607
|
+
"__docId__": 2562,
|
|
65530
65608
|
"kind": "testIt",
|
|
65531
65609
|
"name": "it190",
|
|
65532
65610
|
"testId": 190,
|
|
@@ -65548,7 +65626,7 @@
|
|
|
65548
65626
|
]
|
|
65549
65627
|
},
|
|
65550
65628
|
{
|
|
65551
|
-
"__docId__":
|
|
65629
|
+
"__docId__": 2563,
|
|
65552
65630
|
"kind": "testDescribe",
|
|
65553
65631
|
"name": "describe191",
|
|
65554
65632
|
"testId": 191,
|
|
@@ -65561,7 +65639,7 @@
|
|
|
65561
65639
|
"lineNumber": 433
|
|
65562
65640
|
},
|
|
65563
65641
|
{
|
|
65564
|
-
"__docId__":
|
|
65642
|
+
"__docId__": 2564,
|
|
65565
65643
|
"kind": "testIt",
|
|
65566
65644
|
"name": "it192",
|
|
65567
65645
|
"testId": 192,
|
|
@@ -65583,7 +65661,7 @@
|
|
|
65583
65661
|
]
|
|
65584
65662
|
},
|
|
65585
65663
|
{
|
|
65586
|
-
"__docId__":
|
|
65664
|
+
"__docId__": 2565,
|
|
65587
65665
|
"kind": "testDescribe",
|
|
65588
65666
|
"name": "describe193",
|
|
65589
65667
|
"testId": 193,
|
|
@@ -65596,7 +65674,7 @@
|
|
|
65596
65674
|
"lineNumber": 438
|
|
65597
65675
|
},
|
|
65598
65676
|
{
|
|
65599
|
-
"__docId__":
|
|
65677
|
+
"__docId__": 2566,
|
|
65600
65678
|
"kind": "testIt",
|
|
65601
65679
|
"name": "it194",
|
|
65602
65680
|
"testId": 194,
|
|
@@ -65618,7 +65696,7 @@
|
|
|
65618
65696
|
]
|
|
65619
65697
|
},
|
|
65620
65698
|
{
|
|
65621
|
-
"__docId__":
|
|
65699
|
+
"__docId__": 2567,
|
|
65622
65700
|
"kind": "testIt",
|
|
65623
65701
|
"name": "it195",
|
|
65624
65702
|
"testId": 195,
|
|
@@ -65631,7 +65709,7 @@
|
|
|
65631
65709
|
"lineNumber": 444
|
|
65632
65710
|
},
|
|
65633
65711
|
{
|
|
65634
|
-
"__docId__":
|
|
65712
|
+
"__docId__": 2568,
|
|
65635
65713
|
"kind": "testFile",
|
|
65636
65714
|
"name": "client/security/certificates.spec.js",
|
|
65637
65715
|
"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});",
|
|
@@ -65642,7 +65720,7 @@
|
|
|
65642
65720
|
"lineNumber": 1
|
|
65643
65721
|
},
|
|
65644
65722
|
{
|
|
65645
|
-
"__docId__":
|
|
65723
|
+
"__docId__": 2569,
|
|
65646
65724
|
"kind": "testDescribe",
|
|
65647
65725
|
"name": "describe196",
|
|
65648
65726
|
"testId": 196,
|
|
@@ -65664,7 +65742,7 @@
|
|
|
65664
65742
|
]
|
|
65665
65743
|
},
|
|
65666
65744
|
{
|
|
65667
|
-
"__docId__":
|
|
65745
|
+
"__docId__": 2570,
|
|
65668
65746
|
"kind": "testDescribe",
|
|
65669
65747
|
"name": "describe197",
|
|
65670
65748
|
"testId": 197,
|
|
@@ -65686,7 +65764,7 @@
|
|
|
65686
65764
|
]
|
|
65687
65765
|
},
|
|
65688
65766
|
{
|
|
65689
|
-
"__docId__":
|
|
65767
|
+
"__docId__": 2571,
|
|
65690
65768
|
"kind": "testIt",
|
|
65691
65769
|
"name": "it198",
|
|
65692
65770
|
"testId": 198,
|
|
@@ -65699,7 +65777,7 @@
|
|
|
65699
65777
|
"lineNumber": 12
|
|
65700
65778
|
},
|
|
65701
65779
|
{
|
|
65702
|
-
"__docId__":
|
|
65780
|
+
"__docId__": 2572,
|
|
65703
65781
|
"kind": "testIt",
|
|
65704
65782
|
"name": "it199",
|
|
65705
65783
|
"testId": 199,
|
|
@@ -65712,7 +65790,7 @@
|
|
|
65712
65790
|
"lineNumber": 17
|
|
65713
65791
|
},
|
|
65714
65792
|
{
|
|
65715
|
-
"__docId__":
|
|
65793
|
+
"__docId__": 2573,
|
|
65716
65794
|
"kind": "testIt",
|
|
65717
65795
|
"name": "it200",
|
|
65718
65796
|
"testId": 200,
|
|
@@ -65725,7 +65803,7 @@
|
|
|
65725
65803
|
"lineNumber": 23
|
|
65726
65804
|
},
|
|
65727
65805
|
{
|
|
65728
|
-
"__docId__":
|
|
65806
|
+
"__docId__": 2574,
|
|
65729
65807
|
"kind": "testIt",
|
|
65730
65808
|
"name": "it201",
|
|
65731
65809
|
"testId": 201,
|
|
@@ -65738,7 +65816,7 @@
|
|
|
65738
65816
|
"lineNumber": 30
|
|
65739
65817
|
},
|
|
65740
65818
|
{
|
|
65741
|
-
"__docId__":
|
|
65819
|
+
"__docId__": 2575,
|
|
65742
65820
|
"kind": "testIt",
|
|
65743
65821
|
"name": "it202",
|
|
65744
65822
|
"testId": 202,
|
|
@@ -65751,7 +65829,7 @@
|
|
|
65751
65829
|
"lineNumber": 37
|
|
65752
65830
|
},
|
|
65753
65831
|
{
|
|
65754
|
-
"__docId__":
|
|
65832
|
+
"__docId__": 2576,
|
|
65755
65833
|
"kind": "testDescribe",
|
|
65756
65834
|
"name": "describe203",
|
|
65757
65835
|
"testId": 203,
|
|
@@ -65764,7 +65842,7 @@
|
|
|
65764
65842
|
"lineNumber": 46
|
|
65765
65843
|
},
|
|
65766
65844
|
{
|
|
65767
|
-
"__docId__":
|
|
65845
|
+
"__docId__": 2577,
|
|
65768
65846
|
"kind": "testIt",
|
|
65769
65847
|
"name": "it204",
|
|
65770
65848
|
"testId": 204,
|
|
@@ -65777,7 +65855,7 @@
|
|
|
65777
65855
|
"lineNumber": 53
|
|
65778
65856
|
},
|
|
65779
65857
|
{
|
|
65780
|
-
"__docId__":
|
|
65858
|
+
"__docId__": 2578,
|
|
65781
65859
|
"kind": "testDescribe",
|
|
65782
65860
|
"name": "describe205",
|
|
65783
65861
|
"testId": 205,
|
|
@@ -65790,7 +65868,7 @@
|
|
|
65790
65868
|
"lineNumber": 101
|
|
65791
65869
|
},
|
|
65792
65870
|
{
|
|
65793
|
-
"__docId__":
|
|
65871
|
+
"__docId__": 2579,
|
|
65794
65872
|
"kind": "testIt",
|
|
65795
65873
|
"name": "it206",
|
|
65796
65874
|
"testId": 206,
|
|
@@ -65803,7 +65881,7 @@
|
|
|
65803
65881
|
"lineNumber": 109
|
|
65804
65882
|
},
|
|
65805
65883
|
{
|
|
65806
|
-
"__docId__":
|
|
65884
|
+
"__docId__": 2580,
|
|
65807
65885
|
"kind": "testIt",
|
|
65808
65886
|
"name": "it207",
|
|
65809
65887
|
"testId": 207,
|
|
@@ -65816,7 +65894,7 @@
|
|
|
65816
65894
|
"lineNumber": 120
|
|
65817
65895
|
},
|
|
65818
65896
|
{
|
|
65819
|
-
"__docId__":
|
|
65897
|
+
"__docId__": 2581,
|
|
65820
65898
|
"kind": "testIt",
|
|
65821
65899
|
"name": "it208",
|
|
65822
65900
|
"testId": 208,
|
|
@@ -65829,7 +65907,7 @@
|
|
|
65829
65907
|
"lineNumber": 166
|
|
65830
65908
|
},
|
|
65831
65909
|
{
|
|
65832
|
-
"__docId__":
|
|
65910
|
+
"__docId__": 2582,
|
|
65833
65911
|
"kind": "testDescribe",
|
|
65834
65912
|
"name": "describe209",
|
|
65835
65913
|
"testId": 209,
|
|
@@ -65842,7 +65920,7 @@
|
|
|
65842
65920
|
"lineNumber": 176
|
|
65843
65921
|
},
|
|
65844
65922
|
{
|
|
65845
|
-
"__docId__":
|
|
65923
|
+
"__docId__": 2583,
|
|
65846
65924
|
"kind": "testIt",
|
|
65847
65925
|
"name": "it210",
|
|
65848
65926
|
"testId": 210,
|
|
@@ -65855,7 +65933,7 @@
|
|
|
65855
65933
|
"lineNumber": 183
|
|
65856
65934
|
},
|
|
65857
65935
|
{
|
|
65858
|
-
"__docId__":
|
|
65936
|
+
"__docId__": 2584,
|
|
65859
65937
|
"kind": "testDescribe",
|
|
65860
65938
|
"name": "describe211",
|
|
65861
65939
|
"testId": 211,
|
|
@@ -65868,7 +65946,7 @@
|
|
|
65868
65946
|
"lineNumber": 199
|
|
65869
65947
|
},
|
|
65870
65948
|
{
|
|
65871
|
-
"__docId__":
|
|
65949
|
+
"__docId__": 2585,
|
|
65872
65950
|
"kind": "testIt",
|
|
65873
65951
|
"name": "it212",
|
|
65874
65952
|
"testId": 212,
|
|
@@ -65881,7 +65959,7 @@
|
|
|
65881
65959
|
"lineNumber": 239
|
|
65882
65960
|
},
|
|
65883
65961
|
{
|
|
65884
|
-
"__docId__":
|
|
65962
|
+
"__docId__": 2586,
|
|
65885
65963
|
"kind": "testIt",
|
|
65886
65964
|
"name": "it213",
|
|
65887
65965
|
"testId": 213,
|
|
@@ -65894,7 +65972,7 @@
|
|
|
65894
65972
|
"lineNumber": 253
|
|
65895
65973
|
},
|
|
65896
65974
|
{
|
|
65897
|
-
"__docId__":
|
|
65975
|
+
"__docId__": 2587,
|
|
65898
65976
|
"kind": "testFile",
|
|
65899
65977
|
"name": "client/users/find.spec.js",
|
|
65900
65978
|
"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*/",
|
|
@@ -65905,7 +65983,7 @@
|
|
|
65905
65983
|
"lineNumber": 1
|
|
65906
65984
|
},
|
|
65907
65985
|
{
|
|
65908
|
-
"__docId__":
|
|
65986
|
+
"__docId__": 2588,
|
|
65909
65987
|
"kind": "testFile",
|
|
65910
65988
|
"name": "client/users/user.spec.js",
|
|
65911
65989
|
"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});",
|
|
@@ -65916,7 +65994,7 @@
|
|
|
65916
65994
|
"lineNumber": 1
|
|
65917
65995
|
},
|
|
65918
65996
|
{
|
|
65919
|
-
"__docId__":
|
|
65997
|
+
"__docId__": 2589,
|
|
65920
65998
|
"kind": "testDescribe",
|
|
65921
65999
|
"name": "describe214",
|
|
65922
66000
|
"testId": 214,
|
|
@@ -65929,7 +66007,7 @@
|
|
|
65929
66007
|
"lineNumber": 3
|
|
65930
66008
|
},
|
|
65931
66009
|
{
|
|
65932
|
-
"__docId__":
|
|
66010
|
+
"__docId__": 2590,
|
|
65933
66011
|
"kind": "testIt",
|
|
65934
66012
|
"name": "it215",
|
|
65935
66013
|
"testId": 215,
|
|
@@ -65942,7 +66020,7 @@
|
|
|
65942
66020
|
"lineNumber": 4
|
|
65943
66021
|
},
|
|
65944
66022
|
{
|
|
65945
|
-
"__docId__":
|
|
66023
|
+
"__docId__": 2591,
|
|
65946
66024
|
"kind": "testDescribe",
|
|
65947
66025
|
"name": "describe216",
|
|
65948
66026
|
"testId": 216,
|
|
@@ -65955,7 +66033,7 @@
|
|
|
65955
66033
|
"lineNumber": 9
|
|
65956
66034
|
},
|
|
65957
66035
|
{
|
|
65958
|
-
"__docId__":
|
|
66036
|
+
"__docId__": 2592,
|
|
65959
66037
|
"kind": "testIt",
|
|
65960
66038
|
"name": "it217",
|
|
65961
66039
|
"testId": 217,
|
|
@@ -65968,7 +66046,7 @@
|
|
|
65968
66046
|
"lineNumber": 11
|
|
65969
66047
|
},
|
|
65970
66048
|
{
|
|
65971
|
-
"__docId__":
|
|
66049
|
+
"__docId__": 2593,
|
|
65972
66050
|
"kind": "testDescribe",
|
|
65973
66051
|
"name": "describe218",
|
|
65974
66052
|
"testId": 218,
|
|
@@ -65981,7 +66059,7 @@
|
|
|
65981
66059
|
"lineNumber": 23
|
|
65982
66060
|
},
|
|
65983
66061
|
{
|
|
65984
|
-
"__docId__":
|
|
66062
|
+
"__docId__": 2594,
|
|
65985
66063
|
"kind": "testIt",
|
|
65986
66064
|
"name": "it219",
|
|
65987
66065
|
"testId": 219,
|