opengate-js 13.1.0 → 13.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/dump.json CHANGED
@@ -70341,7 +70341,7 @@
70341
70341
  "__docId__": 2662,
70342
70342
  "kind": "file",
70343
70343
  "name": "src/users/Users.js",
70344
- "content": "'use strict';\r\n\r\nimport BaseProvision from '../provision/BaseProvision';\r\nimport q from 'q';\r\nimport _ from 'lodash';\r\n\r\nconst _length_name = 100;\r\nconst _length_surname = 100;\r\nconst _length_email = 100;\r\nconst _length_twoFaType = 100;\r\nconst _length_password = 50;\r\n/**\r\n * This class allow make get request to user resource into Opengate North API.\r\n */\r\nexport default class User extends BaseProvision {\r\n\r\n\r\n /** \r\n * @param {InternalOpenGateAPI} Reference to the API object.\r\n */\r\n constructor(ogapi) {\r\n super(ogapi, \"/users\", undefined, [\"email\", \"workgroup\", \"domain\", \"profile\", \"countryCode\", \"langCode\"]);\r\n }\r\n\r\n\r\n\r\n /**\r\n * Set the name attribute\r\n * @param {string} name - required field\r\n * @return {User}\r\n */\r\n withName(name) {\r\n if (typeof name !== 'string' || name.length > _length_name)\r\n throw new Error('Parameter name must be a string and has a maximum length of ' + _length_name);\r\n this._name = name;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the surname attribute\r\n * @param {string} surname - required field\r\n * @return {User}\r\n */\r\n withSurname(surname) {\r\n if (typeof surname !== 'string' || surname.length > _length_surname)\r\n throw new Error('Parameter surname must be a string and has a maximum length of ' + _length_surname);\r\n this._surname = surname;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the email attribute\r\n * @param {string} email - required field\r\n * @return {User}\r\n */\r\n withEmail(email) {\r\n if (typeof email !== 'string' || email.length > _length_email)\r\n throw new Error('Parameter email must be a string and has a maximum length of ' + _length_email);\r\n this._email = email;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the password attribute\r\n * @param {string} password - required field\r\n * @return {User}\r\n */\r\n withPassword(password) {\r\n if (typeof password !== 'string' || password.length > _length_password)\r\n throw new Error('Parameter password must be a string and has a maximum length of ' + _length_password);\r\n this._password = password;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the workgroup attribute\r\n * @param {string} workgroup - required field\r\n * @return {User}\r\n */\r\n withWorkgroup(workgroup) {\r\n if (typeof workgroup !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_WORKGROUP');\r\n this._workgroup = workgroup;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the domain attribute\r\n * @param {string} domain - required field\r\n * @return {User}\r\n */\r\n withDomain(domain) {\r\n if (typeof domain !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_DOMAIN');\r\n this._domain = domain;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the profile attribute\r\n * @param {string} profile - required field\r\n * @return {User}\r\n */\r\n withProfile(profile) {\r\n if (typeof profile !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_PROFILE');\r\n this._profile = profile;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the countryCode attribute\r\n * @param {string} countryCode - required field\r\n * @return {User}\r\n */\r\n withCountryCode(countryCode) {\r\n if (typeof countryCode !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_COUNTRY_CODE');\r\n this._countryCode = countryCode;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the langCode attribute\r\n * @param {string} langCode - required field\r\n * @return {User}\r\n */\r\n withLangCode(langCode) {\r\n if (typeof langCode !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_LANGUAGE');\r\n this._langCode = langCode;\r\n return this;\r\n }\r\n\r\n\r\n /**\r\n * Set the description attribute\r\n * @param {string} description - required field\r\n * @return {User}\r\n */\r\n withDescription(description) {\r\n if (typeof description !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_DESCRIPTION');\r\n this._description = description;\r\n return this;\r\n\r\n }\r\n\r\n /**\r\n * Set the timezone attribute\r\n * @param {string} timezone - required field\r\n * @return {User}\r\n */\r\n withTimezone(timezone) {\r\n if (typeof timezone !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_TIMEZONE');\r\n this._timezone = timezone;\r\n return this;\r\n\r\n }\r\n\r\n /**\r\n * Set the 2FaType attribute\r\n * @param {string} twoFaType - required field\r\n * @return {User}\r\n */\r\n with2FaType(twoFaType) {\r\n if (typeof twoFaType !== 'string' || twoFaType.length > _length_twoFaType)\r\n throw new Error('Parameter twoFaType must be a string and has a maximum length of ' + _length_twoFaType);\r\n this._twoFaType = twoFaType;\r\n return this;\r\n }\r\n\r\n /**\r\n * Compose url to delete an user\r\n * @return {String} This returns a string with the URL of the request.\r\n * @private\r\n */\r\n _buildURL() {\r\n if (this._email === undefined)\r\n throw new Error('OGAPI_EMAIL_MUST_BE_DEFINED');\r\n var url = this._resource + \"/\" + this._email;\r\n\r\n return url;\r\n\r\n }\r\n\r\n /**\r\n * Compose json message to create a user\r\n * @return {String} This returns a message with user's parameters\r\n * @private\r\n */\r\n _composeElement() {\r\n\r\n var data = {\r\n user: {\r\n name: this._name || undefined,\r\n surname: this._surname || undefined,\r\n password: this._password || undefined,\r\n description: this._description || undefined,\r\n email: this._email || undefined,\r\n workgroup: this._workgroup || undefined,\r\n domain: this._domain || undefined,\r\n profile: this._profile || undefined,\r\n countryCode: this._countryCode || undefined,\r\n langCode: this._langCode || undefined,\r\n timezone: this._timezone || undefined,\r\n \"2FaType\": this._twoFaType || undefined\r\n }\r\n };\r\n\r\n return data;\r\n\r\n }\r\n\r\n /**\r\n * Compose json message to update a user\r\n * @return {String} This returns a message with user's parameters\r\n * @private\r\n */\r\n _composeUpdateElement() {\r\n if (this._password) {\r\n throw new Error('OGAPI_PASSWORD_NOT_ALLOWED');\r\n }\r\n if (this._email === undefined)\r\n throw new Error('OGAPI_USER_UPDATE_PARAMETER_MUST_BE_DEFINED');\r\n\r\n var data = {\r\n user: {\r\n name: this._name || undefined,\r\n surname: this._surname || undefined,\r\n description: this._description || undefined,\r\n email: this._email || undefined,\r\n workgroup: this._workgroup || undefined,\r\n domain: this._domain || undefined,\r\n profile: this._profile || undefined,\r\n countryCode: this._countryCode || undefined,\r\n langCode: this._langCode || undefined,\r\n timezone: this._timezone || undefined,\r\n \"2FaType\": this._twoFaType || undefined\r\n }\r\n };\r\n return data;\r\n }\r\n\r\n \r\n /**\r\n * This invoke a request to OpenGate North API and the callback is managed by promises\r\n * This function updates a password of a user\r\n * @return {Promise}\r\n * @param {String} newPassword - required field\r\n * @property {function (result:object, statusCode:number)} then - When request it is OK\r\n * @property {function (error:string)} catch - When request it is NOK\r\n * @example\r\n * ogapi.usersBuilder().withEmail(example@example.es).withPassword(oldPassword).changePassword(newPassword);\r\n */\r\n changePassword(newPassword) {\r\n this._newPassword = newPassword;\r\n if (_.isEmpty(this._email) || _.isEmpty(this._password) || _.isEmpty(this._newPassword)) {\r\n throw new Error('OGAPI_USER_UPDATE_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n\r\n var data = {\r\n user: {\r\n password: this._newPassword\r\n }\r\n };\r\n\r\n this._setExtraHeaders({\r\n 'X-ApiPass': this._password\r\n });\r\n\r\n return this._doNorthPut(this._buildURL(), data);\r\n }\r\n\r\n /**\r\n * This invoke a request to OpenGate North API and the callback is managed by promises\r\n * This function request for new password when the user forgets it. \r\n * Sends a password recovery email\r\n * @return {Promise}\r\n * @property {function (result:object, statusCode:number)} then - When request it is OK\r\n * @property {function (error:string)} catch - When request it is NOK\r\n * @example\r\n * ogapi.usersBuilder().withEmail(example@example.es).requestResetPassword()\r\n */\r\n requestResetPassword() {\r\n if (_.isEmpty(this._email)) {\r\n throw new Error('OGAPI_USER_MAIL_RESET_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n var url = this._buildURL() + '/reset'\r\n return this._doNorthPost(url);\r\n }\r\n\r\n /**\r\n * This invoke a request to OpenGate North API and the callback is managed by promises\r\n * This function updates a password of a user with a tokenId\r\n * @param {String} newPassword - required field\r\n * @param {String} tokenId - required field\r\n * @return {Promise}\r\n * @property {function (result:object, statusCode:number)} then - When request it is OK\r\n * @property {function (error:string)} catch - When request it is NOK\r\n * @example\r\n * ogapi.usersBuilder().withEmail(example@example.es).updatePassword(newPassword, tokenid);\r\n */\r\n updatePassword(newPassword, tokenId) {\r\n this._newPassword = newPassword;\r\n this._tokenId = tokenId;\r\n if (_.isEmpty(this._email)){\r\n throw new Error('OGAPI_USER_MAIL_RESET_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n if(_.isEmpty(this._newPassword)){\r\n throw new Error('OGAPI_USER_PASSWORD_RESET_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n\r\n if(_.isEmpty(tokenId)){\r\n throw new Error('OGAPI_USER_TOKENID_RESET_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n\r\n var data = {\r\n password: this._newPassword\r\n };\r\n\r\n\r\n var url = this._buildURL() + '/reset/' + tokenId\r\n \r\n return this._doNorthPost(url, data);\r\n }\r\n /**\r\n * This invoke a request to OpenGate North API and the callback is managed by promises\r\n * This function get a JWT for user with Two Factor Authorithation (optional)\r\n * @param {String} email - required field\r\n * @param {String} password - required field\r\n * @param {String} twoFaCode - optional field\r\n * @return {Promise}\r\n * @property {function (result:object, statusCode:number)} then - When request it is OK\r\n * @property {function (error:string)} catch - When request it is NOK\r\n * @example\r\n * ogapi.usersBuilder().login(email, password);\r\n * ogapi.usersBuilder().login(email, password, twoFaCode);\r\n */\r\n login(email, password, twoFaCode) {\r\n this._email = email;\r\n this._password = password;\r\n this._twoFaCode = twoFaCode;\r\n if (_.isEmpty(this._email) || _.isEmpty(this._password)) {\r\n throw new Error('OGAPI_USER_LOGIN_EMAIL_AND_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n const data = {\r\n email: this._email,\r\n password: this._password,\r\n \"2FaCode\": this._twoFaCode || undefined\r\n }\r\n \r\n const url = this._resource + '/login';\r\n\r\n return this._doNorthPost(url, data, true)\r\n }\r\n}",
70344
+ "content": "'use strict';\r\n\r\nimport BaseProvision from '../provision/BaseProvision';\r\nimport _ from 'lodash';\r\nimport { version as uuidVersion } from 'uuid';\r\nimport { validate as uuidValidate } from 'uuid';\r\nimport { v4 as uuidv4 } from 'uuid';\r\n\r\nconst _length_name = 100;\r\nconst _length_surname = 100;\r\nconst _length_email = 100;\r\nconst _length_twoFaType = 100;\r\nconst _length_password = 50;\r\n/**\r\n * This class allow make get request to user resource into Opengate North API.\r\n */\r\nexport default class User extends BaseProvision {\r\n\r\n\r\n /** \r\n * @param {InternalOpenGateAPI} Reference to the API object.\r\n */\r\n constructor(ogapi) {\r\n super(ogapi, \"/users\", undefined, [\"email\", \"workgroup\", \"domain\", \"profile\", \"countryCode\", \"langCode\"]);\r\n }\r\n\r\n\r\n\r\n /**\r\n * Set the name attribute\r\n * @param {string} name - required field\r\n * @return {User}\r\n */\r\n withName(name) {\r\n if (typeof name !== 'string' || name.length > _length_name)\r\n throw new Error('Parameter name must be a string and has a maximum length of ' + _length_name);\r\n this._name = name;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the surname attribute\r\n * @param {string} surname - required field\r\n * @return {User}\r\n */\r\n withSurname(surname) {\r\n if (typeof surname !== 'string' || surname.length > _length_surname)\r\n throw new Error('Parameter surname must be a string and has a maximum length of ' + _length_surname);\r\n this._surname = surname;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the email attribute\r\n * @param {string} email - required field\r\n * @return {User}\r\n */\r\n withEmail(email) {\r\n if (typeof email !== 'string' || email.length > _length_email)\r\n throw new Error('Parameter email must be a string and has a maximum length of ' + _length_email);\r\n this._email = email;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the password attribute\r\n * @param {string} password - required field\r\n * @return {User}\r\n */\r\n withPassword(password) {\r\n if (typeof password !== 'string' || password.length > _length_password)\r\n throw new Error('Parameter password must be a string and has a maximum length of ' + _length_password);\r\n this._password = password;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the apiKey attribute. Only on update user\r\n * @param {string} apiKey - required field\r\n * @return {User}\r\n */\r\n withApiKey(apiKey) {\r\n if(!this._validateUUID(apiKey)){\r\n throw new Error({ message: \"OGAPI_USER_UPDATE_APIKEY_PARAMETER_INVALID\", parameter: 'apiKey' });\r\n }\r\n this._apiKey = apiKey;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the workgroup attribute\r\n * @param {string} workgroup - required field\r\n * @return {User}\r\n */\r\n withWorkgroup(workgroup) {\r\n if (typeof workgroup !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_WORKGROUP');\r\n this._workgroup = workgroup;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the domain attribute\r\n * @param {string} domain - required field\r\n * @return {User}\r\n */\r\n withDomain(domain) {\r\n if (typeof domain !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_DOMAIN');\r\n this._domain = domain;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the profile attribute\r\n * @param {string} profile - required field\r\n * @return {User}\r\n */\r\n withProfile(profile) {\r\n if (typeof profile !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_PROFILE');\r\n this._profile = profile;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the countryCode attribute\r\n * @param {string} countryCode - required field\r\n * @return {User}\r\n */\r\n withCountryCode(countryCode) {\r\n if (typeof countryCode !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_COUNTRY_CODE');\r\n this._countryCode = countryCode;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the langCode attribute\r\n * @param {string} langCode - required field\r\n * @return {User}\r\n */\r\n withLangCode(langCode) {\r\n if (typeof langCode !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_LANGUAGE');\r\n this._langCode = langCode;\r\n return this;\r\n }\r\n\r\n\r\n /**\r\n * Set the description attribute\r\n * @param {string} description - required field\r\n * @return {User}\r\n */\r\n withDescription(description) {\r\n if (typeof description !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_DESCRIPTION');\r\n this._description = description;\r\n return this;\r\n\r\n }\r\n\r\n /**\r\n * Set the timezone attribute\r\n * @param {string} timezone - required field\r\n * @return {User}\r\n */\r\n withTimezone(timezone) {\r\n if (typeof timezone !== 'string')\r\n throw new Error('OGAPI_STRING_PARAMETER_TIMEZONE');\r\n this._timezone = timezone;\r\n return this;\r\n\r\n }\r\n\r\n /**\r\n * Set the 2FaType attribute\r\n * @param {string} twoFaType - required field\r\n * @return {User}\r\n */\r\n with2FaType(twoFaType) {\r\n if (typeof twoFaType !== 'string' || twoFaType.length > _length_twoFaType)\r\n throw new Error('Parameter twoFaType must be a string and has a maximum length of ' + _length_twoFaType);\r\n this._twoFaType = twoFaType;\r\n return this;\r\n }\r\n\r\n /**\r\n * Compose url to delete an user\r\n * @return {String} This returns a string with the URL of the request.\r\n * @private\r\n */\r\n _buildURL() {\r\n if (this._email === undefined)\r\n throw new Error('OGAPI_EMAIL_MUST_BE_DEFINED');\r\n var url = this._resource + \"/\" + this._email;\r\n\r\n return url;\r\n\r\n }\r\n\r\n /**\r\n * Compose json message to create a user\r\n * @return {String} This returns a message with user's parameters\r\n * @private\r\n */\r\n _composeElement() {\r\n\r\n var data = {\r\n user: {\r\n name: this._name || undefined,\r\n surname: this._surname || undefined,\r\n password: this._password || undefined,\r\n description: this._description || undefined,\r\n email: this._email || undefined,\r\n workgroup: this._workgroup || undefined,\r\n domain: this._domain || undefined,\r\n profile: this._profile || undefined,\r\n countryCode: this._countryCode || undefined,\r\n langCode: this._langCode || undefined,\r\n timezone: this._timezone || undefined,\r\n \"2FaType\": this._twoFaType || undefined\r\n }\r\n };\r\n\r\n return data;\r\n\r\n }\r\n\r\n /**\r\n * Compose json message to update a user\r\n * @return {String} This returns a message with user's parameters\r\n * @private\r\n */\r\n _composeUpdateElement() {\r\n if (this._email === undefined)\r\n throw new Error('OGAPI_USER_UPDATE_PARAMETER_MUST_BE_DEFINED');\r\n\r\n var data = {\r\n user: {\r\n name: this._name || undefined,\r\n surname: this._surname || undefined,\r\n description: this._description || undefined,\r\n email: this._email || undefined,\r\n workgroup: this._workgroup || undefined,\r\n domain: this._domain || undefined,\r\n profile: this._profile || undefined,\r\n countryCode: this._countryCode || undefined,\r\n langCode: this._langCode || undefined,\r\n timezone: this._timezone || undefined,\r\n apiKey: this._apiKey || undefined,\r\n password: this._password || undefined,\r\n \"2FaType\": this._twoFaType || undefined\r\n }\r\n };\r\n return data;\r\n }\r\n\r\n \r\n /**\r\n * This invoke a request to OpenGate North API and the callback is managed by promises\r\n * This function updates a password of a user\r\n * @return {Promise}\r\n * @param {String} newPassword - required field\r\n * @property {function (result:object, statusCode:number)} then - When request it is OK\r\n * @property {function (error:string)} catch - When request it is NOK\r\n * @example\r\n * ogapi.usersBuilder().withEmail(example@example.es).withPassword(oldPassword).changePassword(newPassword);\r\n */\r\n changePassword(newPassword) {\r\n this._newPassword = newPassword;\r\n if (_.isEmpty(this._email) || _.isEmpty(this._password) || _.isEmpty(this._newPassword)) {\r\n throw new Error('OGAPI_USER_UPDATE_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n\r\n var data = {\r\n user: {\r\n password: this._newPassword\r\n }\r\n };\r\n\r\n this._setExtraHeaders({\r\n 'X-ApiPass': this._password\r\n });\r\n\r\n return this._doNorthPut(this._buildURL(), data);\r\n }\r\n\r\n _validateUUID(UUID){\r\n return uuidValidate(UUID) && uuidVersion(UUID) === 4\r\n }\r\n /**\r\n * This invoke a request to OpenGate North API and the callback is managed by promises\r\n * This function updates a apiKey of a user\r\n * @return {Promise}\r\n * @param {String} apiKey - required field\r\n * @property {function (result:object, statusCode:number)} then - When request it is OK\r\n * @property {function (error:string)} catch - When request it is NOK\r\n * @example\r\n * ogapi.usersBuilder().withEmail(example@example.es).withPassword(oldPassword).changeApiKey(newPassword);\r\n */\r\n changeApiKey(apiKey) {\r\n this._apiKey = apiKey;\r\n if (_.isEmpty(this._email) || _.isEmpty(this._password) || _.isEmpty(this._apiKey)) {\r\n throw new Error('OGAPI_USER_UPDATE_APIKEY_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n\r\n if(!this._validateUUID(apiKey)){\r\n throw new Error({ message: \"OGAPI_USER_UPDATE_APIKEY_PARAMETER_INVALID\", parameter: 'apiKey' });\r\n }\r\n\r\n var data = {\r\n user: {\r\n apiKey: this._apiKey\r\n }\r\n };\r\n\r\n this._setExtraHeaders({\r\n 'X-ApiPass': this._password\r\n });\r\n\r\n return this._doNorthPut(this._buildURL(), data);\r\n }\r\n\r\n /**\r\n * This invoke a request to OpenGate North API and the callback is managed by promises\r\n * This function request for new password when the user forgets it. \r\n * Sends a password recovery email\r\n * @return {Promise}\r\n * @property {function (result:object, statusCode:number)} then - When request it is OK\r\n * @property {function (error:string)} catch - When request it is NOK\r\n * @example\r\n * ogapi.usersBuilder().withEmail(example@example.es).requestResetPassword()\r\n */\r\n requestResetPassword() {\r\n if (_.isEmpty(this._email)) {\r\n throw new Error('OGAPI_USER_MAIL_RESET_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n var url = this._buildURL() + '/reset'\r\n return this._doNorthPost(url);\r\n }\r\n\r\n /**\r\n * This invoke a request to OpenGate North API and the callback is managed by promises\r\n * This function updates a password of a user with a tokenId\r\n * @param {String} newPassword - required field\r\n * @param {String} tokenId - required field\r\n * @return {Promise}\r\n * @property {function (result:object, statusCode:number)} then - When request it is OK\r\n * @property {function (error:string)} catch - When request it is NOK\r\n * @example\r\n * ogapi.usersBuilder().withEmail(example@example.es).updatePassword(newPassword, tokenid);\r\n */\r\n updatePassword(newPassword, tokenId) {\r\n this._newPassword = newPassword;\r\n this._tokenId = tokenId;\r\n if (_.isEmpty(this._email)){\r\n throw new Error('OGAPI_USER_MAIL_RESET_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n if(_.isEmpty(this._newPassword)){\r\n throw new Error('OGAPI_USER_PASSWORD_RESET_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n\r\n if(_.isEmpty(tokenId)){\r\n throw new Error('OGAPI_USER_TOKENID_RESET_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n\r\n var data = {\r\n password: this._newPassword\r\n };\r\n\r\n\r\n var url = this._buildURL() + '/reset/' + tokenId\r\n \r\n return this._doNorthPost(url, data);\r\n }\r\n /**\r\n * This invoke a request to OpenGate North API and the callback is managed by promises\r\n * This function get a JWT for user with Two Factor Authorithation (optional)\r\n * @param {String} email - required field\r\n * @param {String} password - required field\r\n * @param {String} twoFaCode - optional field\r\n * @return {Promise}\r\n * @property {function (result:object, statusCode:number)} then - When request it is OK\r\n * @property {function (error:string)} catch - When request it is NOK\r\n * @example\r\n * ogapi.usersBuilder().login(email, password);\r\n * ogapi.usersBuilder().login(email, password, twoFaCode);\r\n */\r\n login(email, password, twoFaCode) {\r\n this._email = email;\r\n this._password = password;\r\n this._twoFaCode = twoFaCode;\r\n if (_.isEmpty(this._email) || _.isEmpty(this._password)) {\r\n throw new Error('OGAPI_USER_LOGIN_EMAIL_AND_PASSWORD_PARAMETER_MUST_BE_DEFINED');\r\n }\r\n const data = {\r\n email: this._email,\r\n password: this._password,\r\n \"2FaCode\": this._twoFaCode || undefined\r\n }\r\n \r\n const url = this._resource + '/login';\r\n\r\n return this._doNorthPost(url, data, true)\r\n }\r\n\r\n generateApiKey(){\r\n return uuidv4()\r\n }\r\n}",
70345
70345
  "static": true,
70346
70346
  "longname": "src/users/Users.js",
70347
70347
  "access": null,
@@ -70360,7 +70360,7 @@
70360
70360
  "importPath": "opengate-js/src/users/Users.js",
70361
70361
  "importStyle": null,
70362
70362
  "description": null,
70363
- "lineNumber": 7,
70363
+ "lineNumber": 9,
70364
70364
  "undocument": true,
70365
70365
  "unknown": [
70366
70366
  {
@@ -70386,7 +70386,7 @@
70386
70386
  "importPath": "opengate-js/src/users/Users.js",
70387
70387
  "importStyle": null,
70388
70388
  "description": null,
70389
- "lineNumber": 8,
70389
+ "lineNumber": 10,
70390
70390
  "undocument": true,
70391
70391
  "unknown": [
70392
70392
  {
@@ -70412,7 +70412,7 @@
70412
70412
  "importPath": "opengate-js/src/users/Users.js",
70413
70413
  "importStyle": null,
70414
70414
  "description": null,
70415
- "lineNumber": 9,
70415
+ "lineNumber": 11,
70416
70416
  "undocument": true,
70417
70417
  "unknown": [
70418
70418
  {
@@ -70438,7 +70438,7 @@
70438
70438
  "importPath": "opengate-js/src/users/Users.js",
70439
70439
  "importStyle": null,
70440
70440
  "description": null,
70441
- "lineNumber": 10,
70441
+ "lineNumber": 12,
70442
70442
  "undocument": true,
70443
70443
  "unknown": [
70444
70444
  {
@@ -70464,7 +70464,7 @@
70464
70464
  "importPath": "opengate-js/src/users/Users.js",
70465
70465
  "importStyle": null,
70466
70466
  "description": null,
70467
- "lineNumber": 11,
70467
+ "lineNumber": 13,
70468
70468
  "undocument": true,
70469
70469
  "unknown": [
70470
70470
  {
@@ -70490,7 +70490,7 @@
70490
70490
  "importPath": "opengate-js/src/users/Users.js",
70491
70491
  "importStyle": "User",
70492
70492
  "description": " This class allow make get request to user resource into Opengate North API.",
70493
- "lineNumber": 15,
70493
+ "lineNumber": 17,
70494
70494
  "interface": false,
70495
70495
  "extends": [
70496
70496
  "src/provision/BaseProvision.js~BaseProvision"
@@ -70507,7 +70507,7 @@
70507
70507
  "longname": "src/users/Users.js~User#constructor",
70508
70508
  "access": null,
70509
70509
  "description": " ",
70510
- "lineNumber": 21,
70510
+ "lineNumber": 23,
70511
70511
  "params": [
70512
70512
  {
70513
70513
  "nullable": null,
@@ -70532,7 +70532,7 @@
70532
70532
  "longname": "src/users/Users.js~User#withName",
70533
70533
  "access": null,
70534
70534
  "description": "Set the name attribute",
70535
- "lineNumber": 32,
70535
+ "lineNumber": 34,
70536
70536
  "params": [
70537
70537
  {
70538
70538
  "nullable": null,
@@ -70563,7 +70563,7 @@
70563
70563
  "longname": "src/users/Users.js~User#_name",
70564
70564
  "access": null,
70565
70565
  "description": null,
70566
- "lineNumber": 35,
70566
+ "lineNumber": 37,
70567
70567
  "undocument": true,
70568
70568
  "unknown": [
70569
70569
  {
@@ -70588,7 +70588,7 @@
70588
70588
  "longname": "src/users/Users.js~User#withSurname",
70589
70589
  "access": null,
70590
70590
  "description": "Set the surname attribute",
70591
- "lineNumber": 44,
70591
+ "lineNumber": 46,
70592
70592
  "params": [
70593
70593
  {
70594
70594
  "nullable": null,
@@ -70619,7 +70619,7 @@
70619
70619
  "longname": "src/users/Users.js~User#_surname",
70620
70620
  "access": null,
70621
70621
  "description": null,
70622
- "lineNumber": 47,
70622
+ "lineNumber": 49,
70623
70623
  "undocument": true,
70624
70624
  "unknown": [
70625
70625
  {
@@ -70644,7 +70644,7 @@
70644
70644
  "longname": "src/users/Users.js~User#withEmail",
70645
70645
  "access": null,
70646
70646
  "description": "Set the email attribute",
70647
- "lineNumber": 56,
70647
+ "lineNumber": 58,
70648
70648
  "params": [
70649
70649
  {
70650
70650
  "nullable": null,
@@ -70675,7 +70675,7 @@
70675
70675
  "longname": "src/users/Users.js~User#_email",
70676
70676
  "access": null,
70677
70677
  "description": null,
70678
- "lineNumber": 59,
70678
+ "lineNumber": 61,
70679
70679
  "undocument": true,
70680
70680
  "unknown": [
70681
70681
  {
@@ -70700,7 +70700,7 @@
70700
70700
  "longname": "src/users/Users.js~User#withPassword",
70701
70701
  "access": null,
70702
70702
  "description": "Set the password attribute",
70703
- "lineNumber": 68,
70703
+ "lineNumber": 70,
70704
70704
  "params": [
70705
70705
  {
70706
70706
  "nullable": null,
@@ -70731,7 +70731,7 @@
70731
70731
  "longname": "src/users/Users.js~User#_password",
70732
70732
  "access": null,
70733
70733
  "description": null,
70734
- "lineNumber": 71,
70734
+ "lineNumber": 73,
70735
70735
  "undocument": true,
70736
70736
  "unknown": [
70737
70737
  {
@@ -70748,6 +70748,62 @@
70748
70748
  {
70749
70749
  "__docId__": 2678,
70750
70750
  "kind": "method",
70751
+ "name": "withApiKey",
70752
+ "memberof": "src/users/Users.js~User",
70753
+ "generator": false,
70754
+ "async": false,
70755
+ "static": false,
70756
+ "longname": "src/users/Users.js~User#withApiKey",
70757
+ "access": null,
70758
+ "description": "Set the apiKey attribute. Only on update user",
70759
+ "lineNumber": 82,
70760
+ "params": [
70761
+ {
70762
+ "nullable": null,
70763
+ "types": [
70764
+ "string"
70765
+ ],
70766
+ "spread": false,
70767
+ "optional": false,
70768
+ "name": "apiKey",
70769
+ "description": "required field"
70770
+ }
70771
+ ],
70772
+ "return": {
70773
+ "nullable": null,
70774
+ "types": [
70775
+ "User"
70776
+ ],
70777
+ "spread": false,
70778
+ "description": ""
70779
+ }
70780
+ },
70781
+ {
70782
+ "__docId__": 2679,
70783
+ "kind": "member",
70784
+ "name": "_apiKey",
70785
+ "memberof": "src/users/Users.js~User",
70786
+ "static": false,
70787
+ "longname": "src/users/Users.js~User#_apiKey",
70788
+ "access": null,
70789
+ "description": null,
70790
+ "lineNumber": 86,
70791
+ "undocument": true,
70792
+ "unknown": [
70793
+ {
70794
+ "tagName": "@_undocument",
70795
+ "tagValue": ""
70796
+ }
70797
+ ],
70798
+ "type": {
70799
+ "types": [
70800
+ "*"
70801
+ ]
70802
+ }
70803
+ },
70804
+ {
70805
+ "__docId__": 2680,
70806
+ "kind": "method",
70751
70807
  "name": "withWorkgroup",
70752
70808
  "memberof": "src/users/Users.js~User",
70753
70809
  "generator": false,
@@ -70756,7 +70812,7 @@
70756
70812
  "longname": "src/users/Users.js~User#withWorkgroup",
70757
70813
  "access": null,
70758
70814
  "description": "Set the workgroup attribute",
70759
- "lineNumber": 80,
70815
+ "lineNumber": 95,
70760
70816
  "params": [
70761
70817
  {
70762
70818
  "nullable": null,
@@ -70779,7 +70835,7 @@
70779
70835
  }
70780
70836
  },
70781
70837
  {
70782
- "__docId__": 2679,
70838
+ "__docId__": 2681,
70783
70839
  "kind": "member",
70784
70840
  "name": "_workgroup",
70785
70841
  "memberof": "src/users/Users.js~User",
@@ -70787,7 +70843,7 @@
70787
70843
  "longname": "src/users/Users.js~User#_workgroup",
70788
70844
  "access": null,
70789
70845
  "description": null,
70790
- "lineNumber": 83,
70846
+ "lineNumber": 98,
70791
70847
  "undocument": true,
70792
70848
  "unknown": [
70793
70849
  {
@@ -70802,7 +70858,7 @@
70802
70858
  }
70803
70859
  },
70804
70860
  {
70805
- "__docId__": 2680,
70861
+ "__docId__": 2682,
70806
70862
  "kind": "method",
70807
70863
  "name": "withDomain",
70808
70864
  "memberof": "src/users/Users.js~User",
@@ -70812,7 +70868,7 @@
70812
70868
  "longname": "src/users/Users.js~User#withDomain",
70813
70869
  "access": null,
70814
70870
  "description": "Set the domain attribute",
70815
- "lineNumber": 92,
70871
+ "lineNumber": 107,
70816
70872
  "params": [
70817
70873
  {
70818
70874
  "nullable": null,
@@ -70835,7 +70891,7 @@
70835
70891
  }
70836
70892
  },
70837
70893
  {
70838
- "__docId__": 2681,
70894
+ "__docId__": 2683,
70839
70895
  "kind": "member",
70840
70896
  "name": "_domain",
70841
70897
  "memberof": "src/users/Users.js~User",
@@ -70843,7 +70899,7 @@
70843
70899
  "longname": "src/users/Users.js~User#_domain",
70844
70900
  "access": null,
70845
70901
  "description": null,
70846
- "lineNumber": 95,
70902
+ "lineNumber": 110,
70847
70903
  "undocument": true,
70848
70904
  "unknown": [
70849
70905
  {
@@ -70858,7 +70914,7 @@
70858
70914
  }
70859
70915
  },
70860
70916
  {
70861
- "__docId__": 2682,
70917
+ "__docId__": 2684,
70862
70918
  "kind": "method",
70863
70919
  "name": "withProfile",
70864
70920
  "memberof": "src/users/Users.js~User",
@@ -70868,7 +70924,7 @@
70868
70924
  "longname": "src/users/Users.js~User#withProfile",
70869
70925
  "access": null,
70870
70926
  "description": "Set the profile attribute",
70871
- "lineNumber": 104,
70927
+ "lineNumber": 119,
70872
70928
  "params": [
70873
70929
  {
70874
70930
  "nullable": null,
@@ -70891,7 +70947,7 @@
70891
70947
  }
70892
70948
  },
70893
70949
  {
70894
- "__docId__": 2683,
70950
+ "__docId__": 2685,
70895
70951
  "kind": "member",
70896
70952
  "name": "_profile",
70897
70953
  "memberof": "src/users/Users.js~User",
@@ -70899,7 +70955,7 @@
70899
70955
  "longname": "src/users/Users.js~User#_profile",
70900
70956
  "access": null,
70901
70957
  "description": null,
70902
- "lineNumber": 107,
70958
+ "lineNumber": 122,
70903
70959
  "undocument": true,
70904
70960
  "unknown": [
70905
70961
  {
@@ -70914,7 +70970,7 @@
70914
70970
  }
70915
70971
  },
70916
70972
  {
70917
- "__docId__": 2684,
70973
+ "__docId__": 2686,
70918
70974
  "kind": "method",
70919
70975
  "name": "withCountryCode",
70920
70976
  "memberof": "src/users/Users.js~User",
@@ -70924,7 +70980,7 @@
70924
70980
  "longname": "src/users/Users.js~User#withCountryCode",
70925
70981
  "access": null,
70926
70982
  "description": "Set the countryCode attribute",
70927
- "lineNumber": 116,
70983
+ "lineNumber": 131,
70928
70984
  "params": [
70929
70985
  {
70930
70986
  "nullable": null,
@@ -70947,7 +71003,7 @@
70947
71003
  }
70948
71004
  },
70949
71005
  {
70950
- "__docId__": 2685,
71006
+ "__docId__": 2687,
70951
71007
  "kind": "member",
70952
71008
  "name": "_countryCode",
70953
71009
  "memberof": "src/users/Users.js~User",
@@ -70955,7 +71011,7 @@
70955
71011
  "longname": "src/users/Users.js~User#_countryCode",
70956
71012
  "access": null,
70957
71013
  "description": null,
70958
- "lineNumber": 119,
71014
+ "lineNumber": 134,
70959
71015
  "undocument": true,
70960
71016
  "unknown": [
70961
71017
  {
@@ -70970,7 +71026,7 @@
70970
71026
  }
70971
71027
  },
70972
71028
  {
70973
- "__docId__": 2686,
71029
+ "__docId__": 2688,
70974
71030
  "kind": "method",
70975
71031
  "name": "withLangCode",
70976
71032
  "memberof": "src/users/Users.js~User",
@@ -70980,7 +71036,7 @@
70980
71036
  "longname": "src/users/Users.js~User#withLangCode",
70981
71037
  "access": null,
70982
71038
  "description": "Set the langCode attribute",
70983
- "lineNumber": 128,
71039
+ "lineNumber": 143,
70984
71040
  "params": [
70985
71041
  {
70986
71042
  "nullable": null,
@@ -71003,7 +71059,7 @@
71003
71059
  }
71004
71060
  },
71005
71061
  {
71006
- "__docId__": 2687,
71062
+ "__docId__": 2689,
71007
71063
  "kind": "member",
71008
71064
  "name": "_langCode",
71009
71065
  "memberof": "src/users/Users.js~User",
@@ -71011,7 +71067,7 @@
71011
71067
  "longname": "src/users/Users.js~User#_langCode",
71012
71068
  "access": null,
71013
71069
  "description": null,
71014
- "lineNumber": 131,
71070
+ "lineNumber": 146,
71015
71071
  "undocument": true,
71016
71072
  "unknown": [
71017
71073
  {
@@ -71026,7 +71082,7 @@
71026
71082
  }
71027
71083
  },
71028
71084
  {
71029
- "__docId__": 2688,
71085
+ "__docId__": 2690,
71030
71086
  "kind": "method",
71031
71087
  "name": "withDescription",
71032
71088
  "memberof": "src/users/Users.js~User",
@@ -71036,7 +71092,7 @@
71036
71092
  "longname": "src/users/Users.js~User#withDescription",
71037
71093
  "access": null,
71038
71094
  "description": "Set the description attribute",
71039
- "lineNumber": 141,
71095
+ "lineNumber": 156,
71040
71096
  "params": [
71041
71097
  {
71042
71098
  "nullable": null,
@@ -71059,7 +71115,7 @@
71059
71115
  }
71060
71116
  },
71061
71117
  {
71062
- "__docId__": 2689,
71118
+ "__docId__": 2691,
71063
71119
  "kind": "member",
71064
71120
  "name": "_description",
71065
71121
  "memberof": "src/users/Users.js~User",
@@ -71067,7 +71123,7 @@
71067
71123
  "longname": "src/users/Users.js~User#_description",
71068
71124
  "access": null,
71069
71125
  "description": null,
71070
- "lineNumber": 144,
71126
+ "lineNumber": 159,
71071
71127
  "undocument": true,
71072
71128
  "unknown": [
71073
71129
  {
@@ -71082,7 +71138,7 @@
71082
71138
  }
71083
71139
  },
71084
71140
  {
71085
- "__docId__": 2690,
71141
+ "__docId__": 2692,
71086
71142
  "kind": "method",
71087
71143
  "name": "withTimezone",
71088
71144
  "memberof": "src/users/Users.js~User",
@@ -71092,7 +71148,7 @@
71092
71148
  "longname": "src/users/Users.js~User#withTimezone",
71093
71149
  "access": null,
71094
71150
  "description": "Set the timezone attribute",
71095
- "lineNumber": 154,
71151
+ "lineNumber": 169,
71096
71152
  "params": [
71097
71153
  {
71098
71154
  "nullable": null,
@@ -71115,7 +71171,7 @@
71115
71171
  }
71116
71172
  },
71117
71173
  {
71118
- "__docId__": 2691,
71174
+ "__docId__": 2693,
71119
71175
  "kind": "member",
71120
71176
  "name": "_timezone",
71121
71177
  "memberof": "src/users/Users.js~User",
@@ -71123,7 +71179,7 @@
71123
71179
  "longname": "src/users/Users.js~User#_timezone",
71124
71180
  "access": null,
71125
71181
  "description": null,
71126
- "lineNumber": 157,
71182
+ "lineNumber": 172,
71127
71183
  "undocument": true,
71128
71184
  "unknown": [
71129
71185
  {
@@ -71138,7 +71194,7 @@
71138
71194
  }
71139
71195
  },
71140
71196
  {
71141
- "__docId__": 2692,
71197
+ "__docId__": 2694,
71142
71198
  "kind": "method",
71143
71199
  "name": "with2FaType",
71144
71200
  "memberof": "src/users/Users.js~User",
@@ -71148,7 +71204,7 @@
71148
71204
  "longname": "src/users/Users.js~User#with2FaType",
71149
71205
  "access": null,
71150
71206
  "description": "Set the 2FaType attribute",
71151
- "lineNumber": 167,
71207
+ "lineNumber": 182,
71152
71208
  "params": [
71153
71209
  {
71154
71210
  "nullable": null,
@@ -71171,7 +71227,7 @@
71171
71227
  }
71172
71228
  },
71173
71229
  {
71174
- "__docId__": 2693,
71230
+ "__docId__": 2695,
71175
71231
  "kind": "member",
71176
71232
  "name": "_twoFaType",
71177
71233
  "memberof": "src/users/Users.js~User",
@@ -71179,7 +71235,7 @@
71179
71235
  "longname": "src/users/Users.js~User#_twoFaType",
71180
71236
  "access": null,
71181
71237
  "description": null,
71182
- "lineNumber": 170,
71238
+ "lineNumber": 185,
71183
71239
  "undocument": true,
71184
71240
  "unknown": [
71185
71241
  {
@@ -71194,7 +71250,7 @@
71194
71250
  }
71195
71251
  },
71196
71252
  {
71197
- "__docId__": 2694,
71253
+ "__docId__": 2696,
71198
71254
  "kind": "method",
71199
71255
  "name": "_buildURL",
71200
71256
  "memberof": "src/users/Users.js~User",
@@ -71204,7 +71260,7 @@
71204
71260
  "longname": "src/users/Users.js~User#_buildURL",
71205
71261
  "access": "private",
71206
71262
  "description": "Compose url to delete an user",
71207
- "lineNumber": 179,
71263
+ "lineNumber": 194,
71208
71264
  "params": [],
71209
71265
  "return": {
71210
71266
  "nullable": null,
@@ -71216,7 +71272,7 @@
71216
71272
  }
71217
71273
  },
71218
71274
  {
71219
- "__docId__": 2695,
71275
+ "__docId__": 2697,
71220
71276
  "kind": "method",
71221
71277
  "name": "_composeElement",
71222
71278
  "memberof": "src/users/Users.js~User",
@@ -71226,7 +71282,7 @@
71226
71282
  "longname": "src/users/Users.js~User#_composeElement",
71227
71283
  "access": "private",
71228
71284
  "description": "Compose json message to create a user",
71229
- "lineNumber": 193,
71285
+ "lineNumber": 208,
71230
71286
  "params": [],
71231
71287
  "return": {
71232
71288
  "nullable": null,
@@ -71238,7 +71294,7 @@
71238
71294
  }
71239
71295
  },
71240
71296
  {
71241
- "__docId__": 2696,
71297
+ "__docId__": 2698,
71242
71298
  "kind": "method",
71243
71299
  "name": "_composeUpdateElement",
71244
71300
  "memberof": "src/users/Users.js~User",
@@ -71248,7 +71304,7 @@
71248
71304
  "longname": "src/users/Users.js~User#_composeUpdateElement",
71249
71305
  "access": "private",
71250
71306
  "description": "Compose json message to update a user",
71251
- "lineNumber": 221,
71307
+ "lineNumber": 236,
71252
71308
  "params": [],
71253
71309
  "return": {
71254
71310
  "nullable": null,
@@ -71260,7 +71316,7 @@
71260
71316
  }
71261
71317
  },
71262
71318
  {
71263
- "__docId__": 2697,
71319
+ "__docId__": 2699,
71264
71320
  "kind": "method",
71265
71321
  "name": "changePassword",
71266
71322
  "memberof": "src/users/Users.js~User",
@@ -71273,7 +71329,7 @@
71273
71329
  "examples": [
71274
71330
  " ogapi.usersBuilder().withEmail(example@example.es).withPassword(oldPassword).changePassword(newPassword);"
71275
71331
  ],
71276
- "lineNumber": 257,
71332
+ "lineNumber": 271,
71277
71333
  "params": [
71278
71334
  {
71279
71335
  "nullable": null,
@@ -71318,7 +71374,7 @@
71318
71374
  }
71319
71375
  },
71320
71376
  {
71321
- "__docId__": 2698,
71377
+ "__docId__": 2700,
71322
71378
  "kind": "member",
71323
71379
  "name": "_newPassword",
71324
71380
  "memberof": "src/users/Users.js~User",
@@ -71326,7 +71382,7 @@
71326
71382
  "longname": "src/users/Users.js~User#_newPassword",
71327
71383
  "access": null,
71328
71384
  "description": null,
71329
- "lineNumber": 258,
71385
+ "lineNumber": 272,
71330
71386
  "undocument": true,
71331
71387
  "unknown": [
71332
71388
  {
@@ -71341,7 +71397,121 @@
71341
71397
  }
71342
71398
  },
71343
71399
  {
71344
- "__docId__": 2699,
71400
+ "__docId__": 2701,
71401
+ "kind": "method",
71402
+ "name": "_validateUUID",
71403
+ "memberof": "src/users/Users.js~User",
71404
+ "generator": false,
71405
+ "async": false,
71406
+ "static": false,
71407
+ "longname": "src/users/Users.js~User#_validateUUID",
71408
+ "access": null,
71409
+ "description": null,
71410
+ "lineNumber": 290,
71411
+ "undocument": true,
71412
+ "unknown": [
71413
+ {
71414
+ "tagName": "@_undocument",
71415
+ "tagValue": ""
71416
+ }
71417
+ ],
71418
+ "params": [
71419
+ {
71420
+ "name": "UUID",
71421
+ "types": [
71422
+ "*"
71423
+ ]
71424
+ }
71425
+ ],
71426
+ "return": {
71427
+ "types": [
71428
+ "*"
71429
+ ]
71430
+ }
71431
+ },
71432
+ {
71433
+ "__docId__": 2702,
71434
+ "kind": "method",
71435
+ "name": "changeApiKey",
71436
+ "memberof": "src/users/Users.js~User",
71437
+ "generator": false,
71438
+ "async": false,
71439
+ "static": false,
71440
+ "longname": "src/users/Users.js~User#changeApiKey",
71441
+ "access": null,
71442
+ "description": "This invoke a request to OpenGate North API and the callback is managed by promises\nThis function updates a apiKey of a user",
71443
+ "examples": [
71444
+ " ogapi.usersBuilder().withEmail(example@example.es).withPassword(oldPassword).changeApiKey(newPassword);"
71445
+ ],
71446
+ "lineNumber": 303,
71447
+ "params": [
71448
+ {
71449
+ "nullable": null,
71450
+ "types": [
71451
+ "String"
71452
+ ],
71453
+ "spread": false,
71454
+ "optional": false,
71455
+ "name": "apiKey",
71456
+ "description": "required field"
71457
+ }
71458
+ ],
71459
+ "properties": [
71460
+ {
71461
+ "nullable": null,
71462
+ "types": [
71463
+ "function (result:object, statusCode:number)"
71464
+ ],
71465
+ "spread": false,
71466
+ "optional": false,
71467
+ "name": "then",
71468
+ "description": "When request it is OK"
71469
+ },
71470
+ {
71471
+ "nullable": null,
71472
+ "types": [
71473
+ "function (error:string)"
71474
+ ],
71475
+ "spread": false,
71476
+ "optional": false,
71477
+ "name": "catch",
71478
+ "description": "When request it is NOK"
71479
+ }
71480
+ ],
71481
+ "return": {
71482
+ "nullable": null,
71483
+ "types": [
71484
+ "Promise"
71485
+ ],
71486
+ "spread": false,
71487
+ "description": ""
71488
+ }
71489
+ },
71490
+ {
71491
+ "__docId__": 2703,
71492
+ "kind": "member",
71493
+ "name": "_apiKey",
71494
+ "memberof": "src/users/Users.js~User",
71495
+ "static": false,
71496
+ "longname": "src/users/Users.js~User#_apiKey",
71497
+ "access": null,
71498
+ "description": null,
71499
+ "lineNumber": 304,
71500
+ "undocument": true,
71501
+ "unknown": [
71502
+ {
71503
+ "tagName": "@_undocument",
71504
+ "tagValue": ""
71505
+ }
71506
+ ],
71507
+ "type": {
71508
+ "types": [
71509
+ "*"
71510
+ ]
71511
+ }
71512
+ },
71513
+ {
71514
+ "__docId__": 2704,
71345
71515
  "kind": "method",
71346
71516
  "name": "requestResetPassword",
71347
71517
  "memberof": "src/users/Users.js~User",
@@ -71354,7 +71524,7 @@
71354
71524
  "examples": [
71355
71525
  " ogapi.usersBuilder().withEmail(example@example.es).requestResetPassword()"
71356
71526
  ],
71357
- "lineNumber": 286,
71527
+ "lineNumber": 336,
71358
71528
  "params": [],
71359
71529
  "properties": [
71360
71530
  {
@@ -71388,7 +71558,7 @@
71388
71558
  }
71389
71559
  },
71390
71560
  {
71391
- "__docId__": 2700,
71561
+ "__docId__": 2705,
71392
71562
  "kind": "method",
71393
71563
  "name": "updatePassword",
71394
71564
  "memberof": "src/users/Users.js~User",
@@ -71401,7 +71571,7 @@
71401
71571
  "examples": [
71402
71572
  " ogapi.usersBuilder().withEmail(example@example.es).updatePassword(newPassword, tokenid);"
71403
71573
  ],
71404
- "lineNumber": 305,
71574
+ "lineNumber": 355,
71405
71575
  "params": [
71406
71576
  {
71407
71577
  "nullable": null,
@@ -71456,7 +71626,7 @@
71456
71626
  }
71457
71627
  },
71458
71628
  {
71459
- "__docId__": 2701,
71629
+ "__docId__": 2706,
71460
71630
  "kind": "member",
71461
71631
  "name": "_newPassword",
71462
71632
  "memberof": "src/users/Users.js~User",
@@ -71464,7 +71634,7 @@
71464
71634
  "longname": "src/users/Users.js~User#_newPassword",
71465
71635
  "access": null,
71466
71636
  "description": null,
71467
- "lineNumber": 306,
71637
+ "lineNumber": 356,
71468
71638
  "undocument": true,
71469
71639
  "unknown": [
71470
71640
  {
@@ -71479,7 +71649,7 @@
71479
71649
  }
71480
71650
  },
71481
71651
  {
71482
- "__docId__": 2702,
71652
+ "__docId__": 2707,
71483
71653
  "kind": "member",
71484
71654
  "name": "_tokenId",
71485
71655
  "memberof": "src/users/Users.js~User",
@@ -71487,7 +71657,7 @@
71487
71657
  "longname": "src/users/Users.js~User#_tokenId",
71488
71658
  "access": null,
71489
71659
  "description": null,
71490
- "lineNumber": 307,
71660
+ "lineNumber": 357,
71491
71661
  "undocument": true,
71492
71662
  "unknown": [
71493
71663
  {
@@ -71502,7 +71672,7 @@
71502
71672
  }
71503
71673
  },
71504
71674
  {
71505
- "__docId__": 2703,
71675
+ "__docId__": 2708,
71506
71676
  "kind": "method",
71507
71677
  "name": "login",
71508
71678
  "memberof": "src/users/Users.js~User",
@@ -71515,7 +71685,7 @@
71515
71685
  "examples": [
71516
71686
  " ogapi.usersBuilder().login(email, password);\n ogapi.usersBuilder().login(email, password, twoFaCode);"
71517
71687
  ],
71518
- "lineNumber": 341,
71688
+ "lineNumber": 391,
71519
71689
  "params": [
71520
71690
  {
71521
71691
  "nullable": null,
@@ -71580,7 +71750,7 @@
71580
71750
  }
71581
71751
  },
71582
71752
  {
71583
- "__docId__": 2704,
71753
+ "__docId__": 2709,
71584
71754
  "kind": "member",
71585
71755
  "name": "_email",
71586
71756
  "memberof": "src/users/Users.js~User",
@@ -71588,7 +71758,7 @@
71588
71758
  "longname": "src/users/Users.js~User#_email",
71589
71759
  "access": null,
71590
71760
  "description": null,
71591
- "lineNumber": 342,
71761
+ "lineNumber": 392,
71592
71762
  "undocument": true,
71593
71763
  "unknown": [
71594
71764
  {
@@ -71603,7 +71773,7 @@
71603
71773
  }
71604
71774
  },
71605
71775
  {
71606
- "__docId__": 2705,
71776
+ "__docId__": 2710,
71607
71777
  "kind": "member",
71608
71778
  "name": "_password",
71609
71779
  "memberof": "src/users/Users.js~User",
@@ -71611,7 +71781,7 @@
71611
71781
  "longname": "src/users/Users.js~User#_password",
71612
71782
  "access": null,
71613
71783
  "description": null,
71614
- "lineNumber": 343,
71784
+ "lineNumber": 393,
71615
71785
  "undocument": true,
71616
71786
  "unknown": [
71617
71787
  {
@@ -71626,7 +71796,7 @@
71626
71796
  }
71627
71797
  },
71628
71798
  {
71629
- "__docId__": 2706,
71799
+ "__docId__": 2711,
71630
71800
  "kind": "member",
71631
71801
  "name": "_twoFaCode",
71632
71802
  "memberof": "src/users/Users.js~User",
@@ -71634,7 +71804,7 @@
71634
71804
  "longname": "src/users/Users.js~User#_twoFaCode",
71635
71805
  "access": null,
71636
71806
  "description": null,
71637
- "lineNumber": 344,
71807
+ "lineNumber": 394,
71638
71808
  "undocument": true,
71639
71809
  "unknown": [
71640
71810
  {
@@ -71649,7 +71819,33 @@
71649
71819
  }
71650
71820
  },
71651
71821
  {
71652
- "__docId__": 2707,
71822
+ "__docId__": 2712,
71823
+ "kind": "method",
71824
+ "name": "generateApiKey",
71825
+ "memberof": "src/users/Users.js~User",
71826
+ "generator": false,
71827
+ "async": false,
71828
+ "static": false,
71829
+ "longname": "src/users/Users.js~User#generateApiKey",
71830
+ "access": null,
71831
+ "description": null,
71832
+ "lineNumber": 409,
71833
+ "undocument": true,
71834
+ "unknown": [
71835
+ {
71836
+ "tagName": "@_undocument",
71837
+ "tagValue": ""
71838
+ }
71839
+ ],
71840
+ "params": [],
71841
+ "return": {
71842
+ "types": [
71843
+ "*"
71844
+ ]
71845
+ }
71846
+ },
71847
+ {
71848
+ "__docId__": 2713,
71653
71849
  "kind": "file",
71654
71850
  "name": "src/util/DATE_FORMAT.js",
71655
71851
  "content": "'use strict';\r\n\r\n/**\r\n * Global date format.\r\n */\r\nexport const DATE_FORMAT = \"\";\r\n/**\r\n * Global time format.\r\n */\r\nexport const TIME_FORMAT = \"HH:mm:ssZ\";",
@@ -71660,7 +71856,7 @@
71660
71856
  "lineNumber": 1
71661
71857
  },
71662
71858
  {
71663
- "__docId__": 2708,
71859
+ "__docId__": 2714,
71664
71860
  "kind": "variable",
71665
71861
  "name": "DATE_FORMAT",
71666
71862
  "memberof": "src/util/DATE_FORMAT.js",
@@ -71679,7 +71875,7 @@
71679
71875
  }
71680
71876
  },
71681
71877
  {
71682
- "__docId__": 2709,
71878
+ "__docId__": 2715,
71683
71879
  "kind": "variable",
71684
71880
  "name": "TIME_FORMAT",
71685
71881
  "memberof": "src/util/DATE_FORMAT.js",
@@ -71698,7 +71894,7 @@
71698
71894
  }
71699
71895
  },
71700
71896
  {
71701
- "__docId__": 2710,
71897
+ "__docId__": 2716,
71702
71898
  "kind": "file",
71703
71899
  "name": "src/util/Expression.js",
71704
71900
  "content": "'use strict';\r\n\r\nexport default class Expression{\r\n\r\n/**\r\n * @example\r\n * Ex.eq(\"entityId\", \"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\")\r\n *\r\n *\r\n *returns:\r\n *\r\n *\t{\r\n *\t eq : {\r\n *\t \"entityId\": \"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\"\r\n *\t }\r\n *\t}\r\n * @return {object} This returns a json with the query of the operator \"eq\" built.\r\n * @param {String} key - This is the name of the field\r\n * @param {String} value - This is the value of the field\r\n */\r\n\tstatic eq(key, value){\r\n\t\treturn { eq: { [key]: value } };\r\n\t}\r\n\r\n/**\r\n * @example\r\n * Ex.neq(\"entityId\", \"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\")\r\n *\r\n *\r\n *returns:\r\n *\r\n *\t{\r\n *\t neq : {\r\n *\t \"entityId\": \"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\"\r\n *\t }\r\n *\t}\r\n * @return {object} This returns a json with the query of the operator \"neq\" built.\r\n * @param {String} key - This is the name of the field\r\n * @param {String} value - This is the value of the field\r\n*/\r\n\tstatic neq(key, value){\r\n\t\treturn { neq: { [key]: value } };\r\n\t}\r\n\r\n/**\r\n * @example\r\n * Ex.like(\"collected.serialNumber\", \"SN\")\r\n *\r\n *\r\n *returns:\r\n *\r\n *\t{\r\n *\t like : {\r\n *\t \"collected.serialNumber\": \"SN\"\r\n *\t }\r\n *\t}\r\n * @return {object} This returns a json with the query of the operator \"like\" built.\r\n * @param {String} key - This is the name of the field\r\n * @param {String} value - This is the value of the field\r\n */\r\n\tstatic like(key, value){\r\n\t\treturn { like: { [key]: value } };\r\n\t}\r\n\t\r\n/**\r\n * @example\r\n * Ex.gt(\"collected.imei\", \"123456786543210\")\r\n *\r\n *\r\n *returns:\r\n *\r\n *\t{\r\n *\t gt : {\r\n *\t \"collected.imei\": \"123456786543210\"\r\n *\t }\r\n *\t}\r\n * @return {object} This returns a json with the query of the operator \"gt\" built.\r\n * @param {String} key - This is the name of the field\r\n * @param {String} value - This is the value of the field\r\n */\r\n\tstatic gt(key, value){\r\n\t\treturn { gt: { [key]: value } };\r\n\t}\r\n\r\n/**\r\n * @example\r\n * Ex.lt(\"collected.imei\", \"123456786543210\")\r\n *\r\n *\r\n *returns:\r\n *\r\n *\t{\r\n *\t lt : {\r\n *\t \"collected.imei\": \"123456786543210\"\r\n *\t }\r\n *\t}\r\n * @return {object} This returns a json with the query of the operator \"lt\" built.\r\n * @param {String} key - This is the name of the field\r\n * @param {String} value - This is the value of the field\r\n */\t\r\n\tstatic lt(key, value){\r\n\t\treturn { lt: { [key]: value } };\r\n\t}\r\n\r\n/**\r\n * @example\r\n * Ex.gte(\"collected.imei\", \"123456786543210\")\r\n *\r\n *\r\n *\t{\r\n *\t gte : {\r\n *\t \"collected.imei\": \"123456786543210\"\r\n *\t }\r\n *\t}\r\n * @return {object} This returns a json with the query of the operator \"gte\" built.\r\n * @param {String} key - This is the name of the field\r\n * @param {String} value - This is the value of the field\r\n */\t\r\n\tstatic gte(key, value){\r\n\t\treturn { gte: { [key]: value } };\r\n\t}\r\n\r\n/**\r\n * @example\r\n * Ex.lte(\"collected.imei\", \"123456786543210\")\r\n *\r\n *\r\n *\t{\r\n *\t lte : {\r\n *\t \"collected.imei\": \"123456786543210\"\r\n *\t }\r\n *\t}\r\n * @return {object} This returns a json with the query of the operator \"lte\" built.\r\n * @param {String} key - This is the name of the field\r\n * @param {String} value - This is the value of the field\r\n */\t\r\n\tstatic lte(key, value){\r\n\t\treturn { lte: { [key]: value } };\r\n\t}\r\n\r\n/**\r\n * @example\r\n * Ex.in(\"entityId\", [\"e64ccd08-e302-4b65-b19d-e38eeb7b2d24\",\"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\"])\r\n *\r\n *\r\n *\t{\r\n *\t in : {\r\n *\t \"entityId\": [\"e64ccd08-e302-4b65-b19d-e38eeb7b2d24\",\"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\"]\r\n *\t }\r\n *\t}\r\n * @return {object} This returns a json with the query of the operator \"in\" built.\r\n * @param {String} key - This is the name of the field\r\n * @param {String} value - This is the value of the field\r\n */\t\r\n\tstatic in(key, value){\r\n\t\treturn { in: { [key]: value } };\r\n\t}\r\n\r\n/**\r\n * @example\r\n * Ex.or(Ex.like(\"collected.serialNumber\", \"SN\"), Ex.eq(\"entityId\", \"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\"))\r\n *\r\n * \r\n *returns:\r\n *\r\n *\t{\r\n *\t or : [\r\n *\t {\r\n *\t like: {\r\n *\t \"collected.serialNumber\": \"SN\"\r\n *\t }\r\n *\t }, \r\n *\t {\r\n *\t eq: {\r\n *\t \"entityId\": \"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\"\r\n *\t }\r\n *\t }\r\n *\t ]\r\n *\t}\r\n * @return {object} This returns a json with the query of the logical operator \"or\" built.\r\n */\r\n\tstatic or(...args){\r\n\t\tvar filter = { or: [] };\r\n\t\tfor (var i = 0; i < args.length; i++)\r\n\t\t\tfilter.or.push(args[i]);\r\n\t\treturn filter;\r\n\t}\r\n\r\n/**\r\n * @example\r\n * Ex.and(Ex.like(\"collected.serialNumber\", \"SN\"), Ex.eq(\"entityId\", \"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\"))\r\n *\r\n *\r\n *returns:\r\n *\r\n *\t{\r\n *\t and : [\r\n *\t {\r\n *\t like: {\r\n *\t \"collected.serialNumber\": \"SN\"\r\n *\t }\r\n *\t }, \r\n *\t {\r\n *\t eq: {\r\n *\t \"entityId\": \"e64ccd08-e302-4b65-b19d-e38eeb7b2d25\"\r\n *\t }\r\n *\t }\r\n *\t ]\r\n *\t}\r\n * @return {object} This returns a json with the query of the logical operator \"and\" built.\r\n */\r\n\tstatic and(...args){\r\n\t\tvar filter = { and: [] };\r\n\t\tfor (var i = 0; i < args.length; i++)\r\n\t\t\tfilter.and.push(args[i]);\r\n\t\treturn filter;\r\n\t}\r\n\r\n}",
@@ -71709,7 +71905,7 @@
71709
71905
  "lineNumber": 1
71710
71906
  },
71711
71907
  {
71712
- "__docId__": 2711,
71908
+ "__docId__": 2717,
71713
71909
  "kind": "class",
71714
71910
  "name": "Expression",
71715
71911
  "memberof": "src/util/Expression.js",
@@ -71731,7 +71927,7 @@
71731
71927
  "interface": false
71732
71928
  },
71733
71929
  {
71734
- "__docId__": 2712,
71930
+ "__docId__": 2718,
71735
71931
  "kind": "method",
71736
71932
  "name": "eq",
71737
71933
  "memberof": "src/util/Expression.js~Expression",
@@ -71777,7 +71973,7 @@
71777
71973
  }
71778
71974
  },
71779
71975
  {
71780
- "__docId__": 2713,
71976
+ "__docId__": 2719,
71781
71977
  "kind": "method",
71782
71978
  "name": "neq",
71783
71979
  "memberof": "src/util/Expression.js~Expression",
@@ -71823,7 +72019,7 @@
71823
72019
  }
71824
72020
  },
71825
72021
  {
71826
- "__docId__": 2714,
72022
+ "__docId__": 2720,
71827
72023
  "kind": "method",
71828
72024
  "name": "like",
71829
72025
  "memberof": "src/util/Expression.js~Expression",
@@ -71869,7 +72065,7 @@
71869
72065
  }
71870
72066
  },
71871
72067
  {
71872
- "__docId__": 2715,
72068
+ "__docId__": 2721,
71873
72069
  "kind": "method",
71874
72070
  "name": "gt",
71875
72071
  "memberof": "src/util/Expression.js~Expression",
@@ -71915,7 +72111,7 @@
71915
72111
  }
71916
72112
  },
71917
72113
  {
71918
- "__docId__": 2716,
72114
+ "__docId__": 2722,
71919
72115
  "kind": "method",
71920
72116
  "name": "lt",
71921
72117
  "memberof": "src/util/Expression.js~Expression",
@@ -71961,7 +72157,7 @@
71961
72157
  }
71962
72158
  },
71963
72159
  {
71964
- "__docId__": 2717,
72160
+ "__docId__": 2723,
71965
72161
  "kind": "method",
71966
72162
  "name": "gte",
71967
72163
  "memberof": "src/util/Expression.js~Expression",
@@ -72007,7 +72203,7 @@
72007
72203
  }
72008
72204
  },
72009
72205
  {
72010
- "__docId__": 2718,
72206
+ "__docId__": 2724,
72011
72207
  "kind": "method",
72012
72208
  "name": "lte",
72013
72209
  "memberof": "src/util/Expression.js~Expression",
@@ -72053,7 +72249,7 @@
72053
72249
  }
72054
72250
  },
72055
72251
  {
72056
- "__docId__": 2719,
72252
+ "__docId__": 2725,
72057
72253
  "kind": "method",
72058
72254
  "name": "in",
72059
72255
  "memberof": "src/util/Expression.js~Expression",
@@ -72099,7 +72295,7 @@
72099
72295
  }
72100
72296
  },
72101
72297
  {
72102
- "__docId__": 2720,
72298
+ "__docId__": 2726,
72103
72299
  "kind": "method",
72104
72300
  "name": "or",
72105
72301
  "memberof": "src/util/Expression.js~Expression",
@@ -72132,7 +72328,7 @@
72132
72328
  }
72133
72329
  },
72134
72330
  {
72135
- "__docId__": 2721,
72331
+ "__docId__": 2727,
72136
72332
  "kind": "method",
72137
72333
  "name": "and",
72138
72334
  "memberof": "src/util/Expression.js~Expression",
@@ -72165,7 +72361,7 @@
72165
72361
  }
72166
72362
  },
72167
72363
  {
72168
- "__docId__": 2722,
72364
+ "__docId__": 2728,
72169
72365
  "kind": "file",
72170
72366
  "name": "src/util/NorthAmpliaREST.js",
72171
72367
  "content": "'use strict';\r\n\r\nimport merge from 'merge';\r\nimport urlencode from 'urlencode';\r\nimport request, { mkcol } from 'superagent';\r\nimport q from 'q';\r\nimport _ from 'lodash'\r\nimport mime from 'mime-types'\r\n\r\n// MOCK user searching\r\nimport _mock from 'superagent-mocker';\r\nconst mock = _mock(request);\r\n//\r\n\r\n/**\r\n * This is a wrapper of a Rest api javascript\r\n */\r\nexport default class NorthAmpliaREST {\r\n /**\r\n * @param {{ url: string,port: string,version: string,apiKey: string,JTW: string}} _options - this is configuration about Opengate North API.\r\n * @param {function} backend - this is a backend selected to manage a request to Opengate North API.\r\n */\r\n constructor(_options, headers) {\r\n this._options = merge.recursive(true, this.default(), _options);\r\n this._headers = headers;\r\n if (!_.isEmpty(_options.mocks)) {\r\n this._applyMocks(_options.mocks)\r\n }\r\n // ---------------------------------- EXAMPLE\r\n /*\r\n mock.post(_options.url + '/search/channels', function(req) {\r\n return {\r\n body: {\r\n \"channels\": [{\r\n \"name\": \"default_channel\",\r\n \"description\": \"Automatic channel\",\r\n \"organization\": \"organization_GetSetParam\",\r\n \"certificates\": []\r\n }]\r\n },\r\n statusCode: 200\r\n };\r\n }); \r\n */\r\n }\r\n\r\n _applyMocks (mocks) {\r\n const methods = Object.keys(mocks).filter((method) => !_.isEmpty(mocks[method]))\r\n methods.forEach(method => {\r\n console.log(`Mocking ${method.toLocaleUpperCase()} requests`);\r\n Object.keys(mocks[method]).forEach(url => {\r\n console.log('Mocking url:', url);\r\n const methodByUrl = mocks[method][url]\r\n mock[method](this._options.url + url, (req) => {\r\n if(typeof methodByUrl === 'function'){\r\n console.log('Function returned')\r\n return methodByUrl(req)\r\n } else{\r\n const data = mocks[method][url]\r\n console.log('Data returned:', data)\r\n if (!data.headers) data.headers = {}\r\n return data\r\n }\r\n });\r\n })\r\n })\r\n }\r\n\r\n /**\r\n * This return a default configuration object\r\n * @return {object}\r\n */\r\n default () {\r\n return {\r\n timeout: 5000\r\n };\r\n }\r\n\r\n _url(options) {\r\n return options.url;\r\n }\r\n\r\n /**\r\n * Invoke GET action to url specified\r\n * @param {!string} url - url to execute GET\r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @param {boolean} asBlob - response body as Blob\r\n * @param {string} serviceBaseURL - base of the uri petition\r\n * @return {Promise} \r\n */\r\n get(url, timeout, headers, parameters, asBlob, serviceBaseURL) {\r\n const _url = this._createUrl(url, parameters, serviceBaseURL)\r\n console.info('GET', _url)\r\n var req = request.get(_url);\r\n return this._createPromiseRequest(req, null, timeout, headers, asBlob);\r\n }\r\n\r\n /**\r\n * Invoke PATCH action to url and data specified\r\n * @param {!string} url - url to execute PATCH\r\n * @param {object} data - attach data to request PATCH\r\n * @param {number} timeout - timeout in milliseconds\r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @param {string} serviceBaseURL - base of the uri petition\r\n * @return {Promise} \r\n */\r\n patch(url, data, timeout, headers, parameters, serviceBaseURL) {\r\n const _url = this._createUrl(url, parameters, serviceBaseURL)\r\n console.info('PATCH', _url)\r\n var req = request.patch(_url)\r\n .send(data);\r\n\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n /**\r\n * Invoke POST action to url and data specified\r\n * @param {!string} url - url to execute POST\r\n * @param {object} data - attach data to request POST\r\n * @param {number} timeout - timeout in milliseconds\r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @param {string} serviceBaseURL - base of the uri petition\r\n * @return {Promise} \r\n */\r\n post(url, data, timeout, headers, parameters, serviceBaseURL) {\r\n const _url = this._createUrl(url, parameters, serviceBaseURL)\r\n console.info('POST', _url)\r\n var req = request.post(_url)\r\n .send(data);\r\n\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n\r\n /**\r\n * Invoke POST multipart action to url and data specified\r\n * @param {!string} url - url to execute POST\r\n * @param {FormData} formData - attach data to request POST\r\n * @param {object} events - events allowed, xhr.process \r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @param {string} serviceBaseURL - base of the uri petition\r\n * @return {Promise} \r\n */\r\n post_multipart(url, formData, events, timeout, headers, parameters, serviceBaseURL) {\r\n const _url = this._createUrl(url, parameters, serviceBaseURL)\r\n console.info('POST_MULTIPART', _url)\r\n let req = request.post(_url);\r\n\r\n this._prepareMultipartForm(formData, req);\r\n\r\n return this._createPromiseRequest(req, events, timeout, headers); \r\n }\r\n\r\n /**\r\n * Invoke PUT action to url and data specified\r\n * @param {!string} url - url to execute PUT\r\n * @param {object} data - attach data to request PUT\r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @param {string} serviceBaseURL - base of the uri petition\r\n * @return {Promise} \r\n */\r\n put(url, data, timeout, headers, parameters, serviceBaseURL) {\r\n const _url = this._createUrl(url, parameters, serviceBaseURL)\r\n console.info('PUT', _url)\r\n var req = request.put(_url).send(data);\r\n\r\n if (headers) {\r\n headers['Content-Type'] = 'application/json';\r\n } else {\r\n headers = {\r\n 'Content-Type': 'application/json'\r\n };\r\n }\r\n\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n /**\r\n * Invoke put multipart action to url and data specified\r\n * @param {!string} url - url to execute POST\r\n * @param {FormData} formData - attach data to request POST\r\n * @param {object} events - events allowed, xhr.process \r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @param {string} serviceBaseURL - base of the uri petition\r\n * @return {Promise} \r\n */\r\n put_multipart(url, formData, events, timeout, headers, parameters, serviceBaseURL) {\r\n const _url = this._createUrl(url, parameters, serviceBaseURL)\r\n console.info('PUT_MULTIPART', _url)\r\n let req = request.put(_url);\r\n\r\n this._prepareMultipartForm(formData, req);\r\n\r\n return this._createPromiseRequest(req, events, timeout, headers);\r\n }\r\n\r\n _prepareMultipartForm(formData, req) {\r\n let sendFormData = true\r\n \r\n const formDataKeys = Object.keys(formData)\r\n formDataKeys.forEach(key => {\r\n switch (key) {\r\n case 'meta':\r\n case 'json':\r\n case 'file':\r\n req.field(key, formData[key]); \r\n delete formData[key]\r\n break\r\n case 'metadata': \r\n req.attach(key, formData[key]);\r\n sendFormData = false\r\n break\r\n case 'hardwareMedia': \r\n case 'certificate': \r\n case 'processorBulkFile':\r\n req.attach('file', formData[key]);\r\n sendFormData = false\r\n break\r\n case 'files':\r\n formData[key].forEach((item, index) => {\r\n // Esto controla si viene de node (con path) o de web (sin path)\r\n if (item.path) {\r\n var fileName = item.path.replace(/^.*[\\\\\\/]/, '')\r\n\r\n var contentType = mime.lookup(fileName);\r\n if (contentType) {\r\n req.attach(key, item, {filename: fileName, contentType: contentType}); \r\n } else if (fileName.endsWith('.py')) {\r\n req.attach(key, item, {filename: fileName, contentType: 'text/x-python'}); \r\n } else {\r\n req.attach(key, item, {filename: fileName}); \r\n } \r\n } else {\r\n req.attach(key, item);\r\n }\r\n })\r\n \r\n delete formData[key]\r\n sendFormData = false\r\n break\r\n case 'script':\r\n case 'modelFile':\r\n req.field(key, formData[key]);\r\n delete formData[key]\r\n sendFormData = false\r\n break\r\n case 'bulkFile':\r\n req.set('Content-Type', formData.ext);\r\n formData = formData.bulkFile;\r\n break\r\n default:\r\n break;\r\n }\r\n })\r\n\r\n if(sendFormData)\r\n req.send(formData);\r\n }\r\n\r\n /**\r\n * Invoke DELETE action to url specified\r\n * @param {!string} url - url to execute DELETE\r\n * @param {number} timeout - timeout in milliseconds \r\n * @param {object} headers - headers of request\r\n * @param {object} parameters - parameters of request\r\n * @param {object} body - body of request\r\n * @param {string} serviceBaseURL - base of the uri petition\r\n * @return {Promise} \r\n */\r\n delete(url, timeout, headers, parameters, body, serviceBaseURL) {\r\n const _url = this._createUrl(url, parameters, serviceBaseURL)\r\n console.info('DELETE', _url)\r\n var req\r\n if(body){\r\n req = request.del(_url).send(body);\r\n //req = request('DELETE', url)\r\n }else{\r\n req = request.del(_url);\r\n }\r\n return this._createPromiseRequest(req, null, timeout, headers);\r\n }\r\n\r\n _createUrl(relativeUrl, parameters, serviceBaseURL) {\r\n var encode = [];\r\n if (parameters) {\r\n var keys = Object.keys(parameters);\r\n for (var i = 0; i < keys.length; i++) {\r\n var key = keys[i];\r\n var queryParameter = key + '=' + parameters[key];\r\n if (i === 0) {\r\n relativeUrl = relativeUrl + '?' + queryParameter;\r\n } else {\r\n relativeUrl = relativeUrl + '&' + queryParameter;\r\n }\r\n\r\n }\r\n // console.log(JSON.stringify(parameters));\r\n }\r\n\r\n // console.log(relativeUrl);\r\n\r\n var relativeUrlSplit = relativeUrl.split(\"/\");\r\n var length = relativeUrlSplit.length;\r\n\r\n relativeUrlSplit.forEach(function(item, index) {\r\n if (index === (length - 1) && item.indexOf(\"?\") > 0) {\r\n var parameters = item.substring(item.indexOf(\"?\"), item.length);\r\n var _item = item.substring(0, item.indexOf(\"?\"));\r\n encode.push(urlencode(_item) + parameters);\r\n } else {\r\n encode.push(urlencode(item));\r\n }\r\n });\r\n\r\n return this._url(this._options) + \"/\" + this._getDefaultBaseURL(serviceBaseURL) + '/' + encode.join(\"/\");\r\n }\r\n\r\n _getDefaultBaseURL(serviceBaseURL) {\r\n if (!serviceBaseURL) {\r\n if (this._isSouth) {\r\n return 'v80'\r\n } else {\r\n return 'north/v80'\r\n }\r\n } \r\n\r\n return serviceBaseURL\r\n }\r\n\r\n _createPromiseRequest(req, events, timeout, headers, asBlob) {\r\n let _timeout = timeout;\r\n if (typeof _timeout === \"undefined\" || _timeout === null) {\r\n _timeout = this._options.timeout;\r\n }\r\n let defered = q.defer();\r\n let promise = defered.promise;\r\n let apiKey = this._options.apiKey;\r\n let JWT = this._options.jwt;\r\n let _req = _timeout === -1 ? req : req.timeout(_timeout);\r\n \r\n if(JWT && !this._isSouth) {\r\n _req = _req.set('Authorization', 'Bearer ' + JWT);\r\n }\r\n else if(apiKey) {\r\n _req = _req.set('X-ApiKey', this._options.apiKey);\r\n }\r\n\r\n if (headers) {\r\n var keys = Object.keys(headers);\r\n for (var i = 0; i < keys.length; i++) {\r\n var key = keys[i];\r\n if (headers[key] !== undefined)\r\n _req = _req.set(key, headers[key]);\r\n }\r\n }\r\n\r\n if (events) {\r\n for (let event in events) {\r\n _req = _req.on(event, events[event]);\r\n }\r\n }\r\n if(asBlob){\r\n req.responseType('blob')\r\n }\r\n _req = _req.end(function(err, res) {\r\n if (err !== null) {\r\n console.error(\"OGAPI ERROR: \")\r\n try{\r\n console.log(JSON.stringify(err))\r\n }catch(err){\r\n console.log(err)\r\n }\r\n let data;\r\n let headers;\r\n let status = err.status ? err.status : undefined;\r\n let errorMessage = {\r\n errors: [{\r\n code: status,\r\n message: 'OGAPI: Something is broken. Please contact with your administrator.'\r\n }]\r\n };\r\n \r\n if (typeof err.response !== \"undefined\") {\r\n data = err.response.body ? err.response.body : errorMessage;\r\n headers = err.response.headers\r\n status = err.status;\r\n } else {\r\n if (!status) {\r\n data = errorMessage;\r\n status = 500;\r\n } else {\r\n data = err.message;\r\n status = 408;\r\n }\r\n }\r\n defered.reject({\r\n statusCode: status,\r\n 'data': data,\r\n headers: headers\r\n });\r\n } else {\r\n \r\n defered.resolve(res);\r\n }\r\n });\r\n\r\n return promise;\r\n }\r\n}",
@@ -72176,7 +72372,7 @@
72176
72372
  "lineNumber": 1
72177
72373
  },
72178
72374
  {
72179
- "__docId__": 2723,
72375
+ "__docId__": 2729,
72180
72376
  "kind": "variable",
72181
72377
  "name": "mock",
72182
72378
  "memberof": "src/util/NorthAmpliaREST.js",
@@ -72202,7 +72398,7 @@
72202
72398
  }
72203
72399
  },
72204
72400
  {
72205
- "__docId__": 2724,
72401
+ "__docId__": 2730,
72206
72402
  "kind": "class",
72207
72403
  "name": "NorthAmpliaREST",
72208
72404
  "memberof": "src/util/NorthAmpliaREST.js",
@@ -72217,7 +72413,7 @@
72217
72413
  "interface": false
72218
72414
  },
72219
72415
  {
72220
- "__docId__": 2725,
72416
+ "__docId__": 2731,
72221
72417
  "kind": "constructor",
72222
72418
  "name": "constructor",
72223
72419
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72252,7 +72448,7 @@
72252
72448
  ]
72253
72449
  },
72254
72450
  {
72255
- "__docId__": 2726,
72451
+ "__docId__": 2732,
72256
72452
  "kind": "member",
72257
72453
  "name": "_options",
72258
72454
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72275,7 +72471,7 @@
72275
72471
  }
72276
72472
  },
72277
72473
  {
72278
- "__docId__": 2727,
72474
+ "__docId__": 2733,
72279
72475
  "kind": "member",
72280
72476
  "name": "_headers",
72281
72477
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72298,7 +72494,7 @@
72298
72494
  }
72299
72495
  },
72300
72496
  {
72301
- "__docId__": 2728,
72497
+ "__docId__": 2734,
72302
72498
  "kind": "method",
72303
72499
  "name": "_applyMocks",
72304
72500
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72326,7 +72522,7 @@
72326
72522
  ]
72327
72523
  },
72328
72524
  {
72329
- "__docId__": 2729,
72525
+ "__docId__": 2735,
72330
72526
  "kind": "method",
72331
72527
  "name": "default",
72332
72528
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72348,7 +72544,7 @@
72348
72544
  }
72349
72545
  },
72350
72546
  {
72351
- "__docId__": 2730,
72547
+ "__docId__": 2736,
72352
72548
  "kind": "method",
72353
72549
  "name": "_url",
72354
72550
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72381,7 +72577,7 @@
72381
72577
  }
72382
72578
  },
72383
72579
  {
72384
- "__docId__": 2731,
72580
+ "__docId__": 2737,
72385
72581
  "kind": "method",
72386
72582
  "name": "get",
72387
72583
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72464,7 +72660,7 @@
72464
72660
  }
72465
72661
  },
72466
72662
  {
72467
- "__docId__": 2732,
72663
+ "__docId__": 2738,
72468
72664
  "kind": "method",
72469
72665
  "name": "patch",
72470
72666
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72547,7 +72743,7 @@
72547
72743
  }
72548
72744
  },
72549
72745
  {
72550
- "__docId__": 2733,
72746
+ "__docId__": 2739,
72551
72747
  "kind": "method",
72552
72748
  "name": "post",
72553
72749
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72630,7 +72826,7 @@
72630
72826
  }
72631
72827
  },
72632
72828
  {
72633
- "__docId__": 2734,
72829
+ "__docId__": 2740,
72634
72830
  "kind": "method",
72635
72831
  "name": "post_multipart",
72636
72832
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72723,7 +72919,7 @@
72723
72919
  }
72724
72920
  },
72725
72921
  {
72726
- "__docId__": 2735,
72922
+ "__docId__": 2741,
72727
72923
  "kind": "method",
72728
72924
  "name": "put",
72729
72925
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72806,7 +73002,7 @@
72806
73002
  }
72807
73003
  },
72808
73004
  {
72809
- "__docId__": 2736,
73005
+ "__docId__": 2742,
72810
73006
  "kind": "method",
72811
73007
  "name": "put_multipart",
72812
73008
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72899,7 +73095,7 @@
72899
73095
  }
72900
73096
  },
72901
73097
  {
72902
- "__docId__": 2737,
73098
+ "__docId__": 2743,
72903
73099
  "kind": "method",
72904
73100
  "name": "_prepareMultipartForm",
72905
73101
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -72933,7 +73129,7 @@
72933
73129
  ]
72934
73130
  },
72935
73131
  {
72936
- "__docId__": 2738,
73132
+ "__docId__": 2744,
72937
73133
  "kind": "method",
72938
73134
  "name": "delete",
72939
73135
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -73016,7 +73212,7 @@
73016
73212
  }
73017
73213
  },
73018
73214
  {
73019
- "__docId__": 2739,
73215
+ "__docId__": 2745,
73020
73216
  "kind": "method",
73021
73217
  "name": "_createUrl",
73022
73218
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -73061,7 +73257,7 @@
73061
73257
  }
73062
73258
  },
73063
73259
  {
73064
- "__docId__": 2740,
73260
+ "__docId__": 2746,
73065
73261
  "kind": "method",
73066
73262
  "name": "_getDefaultBaseURL",
73067
73263
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -73094,7 +73290,7 @@
73094
73290
  }
73095
73291
  },
73096
73292
  {
73097
- "__docId__": 2741,
73293
+ "__docId__": 2747,
73098
73294
  "kind": "method",
73099
73295
  "name": "_createPromiseRequest",
73100
73296
  "memberof": "src/util/NorthAmpliaREST.js~NorthAmpliaREST",
@@ -73151,7 +73347,7 @@
73151
73347
  }
73152
73348
  },
73153
73349
  {
73154
- "__docId__": 2742,
73350
+ "__docId__": 2748,
73155
73351
  "kind": "file",
73156
73352
  "name": "src/util/SelectElement.js",
73157
73353
  "content": "'use strict';\r\n\r\nexport default class SelectElement {\r\n\r\n /**\r\n * @example\r\n * SE.element('provision.device.identifier', ['value'], 'identifier')\r\n * returns:\r\n * {\r\n * name : 'provision.device.identifier',\r\n * fields: ['value'],\r\n * alias: 'identifier\r\n * }\r\n *\r\n * SE.element('provision.device.identifier', ['value'])\r\n * returns:\r\n * {\r\n * name : 'provision.device.identifier',\r\n * fields: ['value']\r\n * }\r\n * @return {Object} This returns a json with the object element built.\r\n * @param {String} name - Indicates the datastream to show\r\n * @param {[{field: field, alias:alias}]} fields - The fields that you want to show from that datastream\r\n */\r\n static element(name, fields) {\r\n return { name: name, fields: fields };\r\n }\r\n\r\n}",
@@ -73162,7 +73358,7 @@
73162
73358
  "lineNumber": 1
73163
73359
  },
73164
73360
  {
73165
- "__docId__": 2743,
73361
+ "__docId__": 2749,
73166
73362
  "kind": "class",
73167
73363
  "name": "SelectElement",
73168
73364
  "memberof": "src/util/SelectElement.js",
@@ -73184,7 +73380,7 @@
73184
73380
  "interface": false
73185
73381
  },
73186
73382
  {
73187
- "__docId__": 2744,
73383
+ "__docId__": 2750,
73188
73384
  "kind": "method",
73189
73385
  "name": "element",
73190
73386
  "memberof": "src/util/SelectElement.js~SelectElement",
@@ -73230,7 +73426,7 @@
73230
73426
  }
73231
73427
  },
73232
73428
  {
73233
- "__docId__": 2745,
73429
+ "__docId__": 2751,
73234
73430
  "kind": "file",
73235
73431
  "name": "src/util/SouthAmpliaREST.js",
73236
73432
  "content": "import NorthAmpliaREST from './NorthAmpliaREST';\r\n\r\nexport default class SouthAmpliaREST extends NorthAmpliaREST {\r\n\r\n constructor(_options, headers) {\r\n super(_options, headers);\r\n this._isSouth = true\r\n }\r\n\r\n _url(options) {\r\n return options.south.url;\r\n }\r\n}",
@@ -73241,7 +73437,7 @@
73241
73437
  "lineNumber": 1
73242
73438
  },
73243
73439
  {
73244
- "__docId__": 2746,
73440
+ "__docId__": 2752,
73245
73441
  "kind": "class",
73246
73442
  "name": "SouthAmpliaREST",
73247
73443
  "memberof": "src/util/SouthAmpliaREST.js",
@@ -73266,7 +73462,7 @@
73266
73462
  ]
73267
73463
  },
73268
73464
  {
73269
- "__docId__": 2747,
73465
+ "__docId__": 2753,
73270
73466
  "kind": "constructor",
73271
73467
  "name": "constructor",
73272
73468
  "memberof": "src/util/SouthAmpliaREST.js~SouthAmpliaREST",
@@ -73300,7 +73496,7 @@
73300
73496
  ]
73301
73497
  },
73302
73498
  {
73303
- "__docId__": 2748,
73499
+ "__docId__": 2754,
73304
73500
  "kind": "member",
73305
73501
  "name": "_isSouth",
73306
73502
  "memberof": "src/util/SouthAmpliaREST.js~SouthAmpliaREST",
@@ -73323,7 +73519,7 @@
73323
73519
  }
73324
73520
  },
73325
73521
  {
73326
- "__docId__": 2749,
73522
+ "__docId__": 2755,
73327
73523
  "kind": "method",
73328
73524
  "name": "_url",
73329
73525
  "memberof": "src/util/SouthAmpliaREST.js~SouthAmpliaREST",
@@ -73356,7 +73552,7 @@
73356
73552
  }
73357
73553
  },
73358
73554
  {
73359
- "__docId__": 2750,
73555
+ "__docId__": 2756,
73360
73556
  "kind": "file",
73361
73557
  "name": "src/util/formats/check_types.js",
73362
73558
  "content": "module.exports = {\r\n /* fields validations */\r\n _checkType: function(type, TYPE_ENUM) {\r\n let not_found = [];\r\n let found = TYPE_ENUM.find(function(type) {\r\n return type == this;\r\n }, type);\r\n\r\n if (typeof found === 'undefined') {\r\n not_found.push(type);\r\n }\r\n if (not_found.length !== 0) {\r\n throw new Error({ message: 'OGAPI_NOT_ALLOWED_PARAMETER', parameter: JSON.stringify(not_found), allowed: JSON.stringify(TYPE_ENUM) });\r\n }\r\n return type;\r\n },\r\n _checkISODateTime: function(parameter, name){\r\n if (typeof parameter !== 'string' || new RegExp(\"(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z))|(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z))|(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z))\").test(parameter) ) {\r\n throw new Error([{ message: 'OGAPI_ISO_DATE_TIME_PARAMETER', parameter: name }, { message: 'OGAPI_STRING_PATTERN', parameter: name }]);\r\n }\r\n try {\r\n new Date(parameter)\r\n } catch(err){\r\n throw new Error([{ message: 'OGAPI_ISO_DATE_TIME_PARAMETER', parameter: name }, { message: 'OGAPI_STRING_PATTERN', parameter: name }]);\r\n }\r\n },\r\n _checkStringAndPattern: function(parameter, pattern, name) {\r\n if (typeof parameter !== 'string' || !new RegExp(pattern).test(parameter) ) {\r\n throw new Error([{ message: 'OGAPI_STRING_PARAMETER', parameter: name }, { message: 'OGAPI_STRING_PATTERN', parameter: name, pattern: pattern }]);\r\n }\r\n },\r\n _checkStringAndLength: function(parameter, length, name) {\r\n if (typeof parameter !== 'string' || parameter.length > length) {\r\n throw new Error([{ message: 'OGAPI_STRING_PARAMETER', parameter: name }, { message: 'OGAPI_MAX_LENGTH', parameter: length }]);\r\n }\r\n },\r\n _checkString: function(parameter, name) {\r\n if (typeof parameter !== 'string') {\r\n throw new Error([{ message: 'OGAPI_STRING_PARAMETER', parameter: name }]);\r\n }\r\n },\r\n _checkNumber: function(parameter, name) {\r\n if (typeof parameter !== 'number') {\r\n throw new Error([{ message: 'OGAPI_NUMBER_PARAMETER', parameter: name }]);\r\n }\r\n },\r\n _checkArray: function(parameter, name) {\r\n if (!Array.isArray(parameter) || parameter.length === 0) {\r\n throw new Error({ message: 'OGAPI_ARRAY_PARAMETER', parameter: name });\r\n }\r\n },\r\n _checkObject: function(parameter, name) {\r\n if (typeof parameter !== 'object') {\r\n throw new Error({ message: 'OGAPI_OBJECT_PARAMETER', parameter: name });\r\n }\r\n }\r\n\r\n}",
@@ -73367,7 +73563,7 @@
73367
73563
  "lineNumber": 1
73368
73564
  },
73369
73565
  {
73370
- "__docId__": 2751,
73566
+ "__docId__": 2757,
73371
73567
  "kind": "file",
73372
73568
  "name": "src/util/searchingFields/FieldFinder.js",
73373
73569
  "content": "//https://github.com/kriskowal/q\nimport q from 'q';\nimport _ from 'lodash'\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 '/operations/history': 'ENTITY_OPERATION_HISTORY',\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': 'MANUFACTURER',\n '/catalog/operators': 'OPERATORS',\n '/domains': 'DOMAIN',\n '/users': 'USER',\n '/areas': 'AREAS',\n '/bulk/async': 'LEGACY_BULK',\n 'provisionProcessors/bulk/search': 'BULK',\n '/devices': 'SearchOnDatamodel',\n '/subscriptions': 'SearchOnDatamodel',\n '/subscribers': 'SearchOnDatamodel',\n '/entities': 'SearchOnDatamodel',\n 'entity-asset': 'SearchOnDatamodel',\n '/tickets': 'SearchOnDatamodel',\n '/channels': 'SearchOnDatamodel',\n 'datasets': 'SearchOnDataset',\n 'timeseries': 'SearchOnTimeseries',\n '/catalog/plans/organization' : 'PLANS',\n '/catalog/plans/device' : 'PLANS'\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';\nconst SEARCH_COLUMNS_CONTEXT = 'timeserie';\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 case 'SearchOnTimeseries':\n return SEARCH_COLUMNS_CONTEXT;\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\nconst _searchColumns = function(_this, finder, 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 var organization = objSearcher.extraData.organization\n var id = objSearcher.extraData[finder.entity]\n _this._ogapi[finder.api]()[finder.method](organization, id)\n .then(function (response) {\n if (response.statusCode === 200) { \n if (response.data.identifierColumn) {\n columnDatastreams.push({\n identifier: response.data.identifierColumn,\n name: response.data.identifierColumn,\n path: 'provision.administration.identifier._current.value',\n indexed: true,\n sort: true,\n notFilterable: false,\n filter: 'YES',\n type: \"string\",\n schema: {type: 'string'}\n })\n }\n\n if (response.data.bucketColumn) {\n columnDatastreams.push({\n identifier: response.data.bucketColumn,\n name: response.data.bucketColumn,\n path: 'provision.administration.identifier._current.at',\n indexed: true,\n sort: true,\n notFilterable: false,\n filter: 'YES',\n type: \"date-time\",\n schema: {\n type: 'string',\n format: 'datetime'\n }\n })\n }\n\n if (response.data.bucketInitColumn) {\n columnDatastreams.push({\n identifier: response.data.bucketInitColumn,\n name: response.data.bucketInitColumn,\n path: 'provision.administration.identifier._current.at',\n indexed: true,\n sort: true,\n notFilterable: false,\n filter: 'YES',\n type: \"date-time\",\n schema: {\n type: 'string',\n format: 'datetime'\n }\n })\n }\n\n var columns = _.concat(response.data.columns || [], response.data.context || [])\n\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 || column.alias) })\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 // console.log('--------------------------------' + column)\n\n // Se calcula el schema dependiendo del tipo de dato\n if (column.type !== 'date-time') {\n column.schema = {\n type: column.type\n }\n } else {\n column.schema = {\n type: 'string',\n format: 'datetime'\n }\n }\n\n if (column.path.endsWith('._current.value')) {\n //console.log('---------------------------------------------')\n const datastreamMatch = column.path.substring(0, column.path.indexOf('._current.value'));\n\n //Buscamos la definición del datastream en el datamodel\n const datamodelField = Array.isArray(datamodelFields) ? datamodelFields.find(function (df) {\n return datastreamMatch === df.identifier\n }) : datamodelFields\n }\n\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 || column.alias)\n column.indexed = column.filter !== 'NO' // column.filter === 'YES' || column.filter === 'ALWAYS'\n column.notFilterable = column.filter === 'NO'\n\n // console.log('=============================' + column)\n columnDatastreams.push(column)\n })\n defered.resolve(columnDatastreams);\n }).catch(function (error) {\n console.error(error)\n defered.reject(error);\n });\n\n }).catch(function (error) {\n console.error(error)\n defered.reject(error);\n });\n }\n }).catch(function (error) {\n console.error(error)\n defered.reject(error);\n });\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 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 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 [SEARCH_COLUMNS]: function(objSearcher, defered) {\n _searchColumns(this, {api: 'newDatasetFinder', method: 'findByOrganizationAndDatasetId', entity: 'dataset'}, objSearcher, defered)\n },\n [SEARCH_COLUMNS_CONTEXT]: function(objSearcher, defered){\n _searchColumns(this, {api: 'newTimeserieFinder', method: 'findByOrganizationAndTimeserieId', entity: 'timeserie'}, objSearcher, defered)\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}",
@@ -73378,7 +73574,7 @@
73378
73574
  "lineNumber": 1
73379
73575
  },
73380
73576
  {
73381
- "__docId__": 2752,
73577
+ "__docId__": 2758,
73382
73578
  "kind": "variable",
73383
73579
  "name": "FIELDS",
73384
73580
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73404,7 +73600,7 @@
73404
73600
  }
73405
73601
  },
73406
73602
  {
73407
- "__docId__": 2753,
73603
+ "__docId__": 2759,
73408
73604
  "kind": "variable",
73409
73605
  "name": "REGEX_PATH_CURRENT",
73410
73606
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73430,7 +73626,7 @@
73430
73626
  }
73431
73627
  },
73432
73628
  {
73433
- "__docId__": 2754,
73629
+ "__docId__": 2760,
73434
73630
  "kind": "variable",
73435
73631
  "name": "REGEX_PATH_ARRAY",
73436
73632
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73456,7 +73652,7 @@
73456
73652
  }
73457
73653
  },
73458
73654
  {
73459
- "__docId__": 2755,
73655
+ "__docId__": 2761,
73460
73656
  "kind": "variable",
73461
73657
  "name": "REGEX_DATASTREAM_VALUE",
73462
73658
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73482,7 +73678,7 @@
73482
73678
  }
73483
73679
  },
73484
73680
  {
73485
- "__docId__": 2756,
73681
+ "__docId__": 2762,
73486
73682
  "kind": "variable",
73487
73683
  "name": "match_url",
73488
73684
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73508,7 +73704,7 @@
73508
73704
  }
73509
73705
  },
73510
73706
  {
73511
- "__docId__": 2757,
73707
+ "__docId__": 2763,
73512
73708
  "kind": "variable",
73513
73709
  "name": "match_context",
73514
73710
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73534,7 +73730,7 @@
73534
73730
  }
73535
73731
  },
73536
73732
  {
73537
- "__docId__": 2758,
73733
+ "__docId__": 2764,
73538
73734
  "kind": "variable",
73539
73735
  "name": "match_url_resourceType",
73540
73736
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73560,7 +73756,7 @@
73560
73756
  }
73561
73757
  },
73562
73758
  {
73563
- "__docId__": 2759,
73759
+ "__docId__": 2765,
73564
73760
  "kind": "variable",
73565
73761
  "name": "match_type",
73566
73762
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73586,7 +73782,7 @@
73586
73782
  }
73587
73783
  },
73588
73784
  {
73589
- "__docId__": 2760,
73785
+ "__docId__": 2766,
73590
73786
  "kind": "variable",
73591
73787
  "name": "match_type_inverse",
73592
73788
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73612,7 +73808,7 @@
73612
73808
  }
73613
73809
  },
73614
73810
  {
73615
- "__docId__": 2761,
73811
+ "__docId__": 2767,
73616
73812
  "kind": "variable",
73617
73813
  "name": "fields_related",
73618
73814
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73638,7 +73834,7 @@
73638
73834
  }
73639
73835
  },
73640
73836
  {
73641
- "__docId__": 2762,
73837
+ "__docId__": 2768,
73642
73838
  "kind": "variable",
73643
73839
  "name": "complexPrimaryType",
73644
73840
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73664,7 +73860,7 @@
73664
73860
  }
73665
73861
  },
73666
73862
  {
73667
- "__docId__": 2763,
73863
+ "__docId__": 2769,
73668
73864
  "kind": "variable",
73669
73865
  "name": "complexFields",
73670
73866
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73690,7 +73886,7 @@
73690
73886
  }
73691
73887
  },
73692
73888
  {
73693
- "__docId__": 2764,
73889
+ "__docId__": 2770,
73694
73890
  "kind": "variable",
73695
73891
  "name": "SIMPLE_FIELDS",
73696
73892
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73716,7 +73912,7 @@
73716
73912
  }
73717
73913
  },
73718
73914
  {
73719
- "__docId__": 2765,
73915
+ "__docId__": 2771,
73720
73916
  "kind": "variable",
73721
73917
  "name": "COMPLEX_FIELDS",
73722
73918
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73742,7 +73938,7 @@
73742
73938
  }
73743
73939
  },
73744
73940
  {
73745
- "__docId__": 2766,
73941
+ "__docId__": 2772,
73746
73942
  "kind": "variable",
73747
73943
  "name": "SEARCH_FIELDS",
73748
73944
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73768,7 +73964,7 @@
73768
73964
  }
73769
73965
  },
73770
73966
  {
73771
- "__docId__": 2767,
73967
+ "__docId__": 2773,
73772
73968
  "kind": "variable",
73773
73969
  "name": "SEARCH_COLUMNS",
73774
73970
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73794,7 +73990,7 @@
73794
73990
  }
73795
73991
  },
73796
73992
  {
73797
- "__docId__": 2768,
73993
+ "__docId__": 2774,
73798
73994
  "kind": "variable",
73799
73995
  "name": "SEARCH_COLUMNS_CONTEXT",
73800
73996
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73820,7 +74016,7 @@
73820
74016
  }
73821
74017
  },
73822
74018
  {
73823
- "__docId__": 2769,
74019
+ "__docId__": 2775,
73824
74020
  "kind": "variable",
73825
74021
  "name": "TYPE_FIELD",
73826
74022
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73846,7 +74042,7 @@
73846
74042
  }
73847
74043
  },
73848
74044
  {
73849
- "__docId__": 2770,
74045
+ "__docId__": 2776,
73850
74046
  "kind": "function",
73851
74047
  "name": "_getCustomSchema",
73852
74048
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73888,7 +74084,7 @@
73888
74084
  }
73889
74085
  },
73890
74086
  {
73891
- "__docId__": 2771,
74087
+ "__docId__": 2777,
73892
74088
  "kind": "function",
73893
74089
  "name": "_getDatamodelFields",
73894
74090
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73930,7 +74126,7 @@
73930
74126
  }
73931
74127
  },
73932
74128
  {
73933
- "__docId__": 2772,
74129
+ "__docId__": 2778,
73934
74130
  "kind": "function",
73935
74131
  "name": "_searchColumns",
73936
74132
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -73979,7 +74175,7 @@
73979
74175
  ]
73980
74176
  },
73981
74177
  {
73982
- "__docId__": 2773,
74178
+ "__docId__": 2779,
73983
74179
  "kind": "variable",
73984
74180
  "name": "FIELD_SEARCHER",
73985
74181
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -74005,7 +74201,7 @@
74005
74201
  }
74006
74202
  },
74007
74203
  {
74008
- "__docId__": 2774,
74204
+ "__docId__": 2780,
74009
74205
  "kind": "class",
74010
74206
  "name": "FieldFinder",
74011
74207
  "memberof": "src/util/searchingFields/FieldFinder.js",
@@ -74027,7 +74223,7 @@
74027
74223
  "interface": false
74028
74224
  },
74029
74225
  {
74030
- "__docId__": 2775,
74226
+ "__docId__": 2781,
74031
74227
  "kind": "constructor",
74032
74228
  "name": "constructor",
74033
74229
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -74067,7 +74263,7 @@
74067
74263
  ]
74068
74264
  },
74069
74265
  {
74070
- "__docId__": 2776,
74266
+ "__docId__": 2782,
74071
74267
  "kind": "member",
74072
74268
  "name": "_ogapi",
74073
74269
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -74090,7 +74286,7 @@
74090
74286
  }
74091
74287
  },
74092
74288
  {
74093
- "__docId__": 2777,
74289
+ "__docId__": 2783,
74094
74290
  "kind": "member",
74095
74291
  "name": "_url",
74096
74292
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -74113,7 +74309,7 @@
74113
74309
  }
74114
74310
  },
74115
74311
  {
74116
- "__docId__": 2778,
74312
+ "__docId__": 2784,
74117
74313
  "kind": "member",
74118
74314
  "name": "_type",
74119
74315
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -74136,7 +74332,7 @@
74136
74332
  }
74137
74333
  },
74138
74334
  {
74139
- "__docId__": 2779,
74335
+ "__docId__": 2785,
74140
74336
  "kind": "member",
74141
74337
  "name": "_extraData",
74142
74338
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -74159,7 +74355,7 @@
74159
74355
  }
74160
74356
  },
74161
74357
  {
74162
- "__docId__": 2780,
74358
+ "__docId__": 2786,
74163
74359
  "kind": "member",
74164
74360
  "name": "_resourceTypes",
74165
74361
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -74182,7 +74378,7 @@
74182
74378
  }
74183
74379
  },
74184
74380
  {
74185
- "__docId__": 2781,
74381
+ "__docId__": 2787,
74186
74382
  "kind": "method",
74187
74383
  "name": "find",
74188
74384
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -74218,7 +74414,7 @@
74218
74414
  }
74219
74415
  },
74220
74416
  {
74221
- "__docId__": 2782,
74417
+ "__docId__": 2788,
74222
74418
  "kind": "method",
74223
74419
  "name": "findAll",
74224
74420
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -74254,7 +74450,7 @@
74254
74450
  }
74255
74451
  },
74256
74452
  {
74257
- "__docId__": 2783,
74453
+ "__docId__": 2789,
74258
74454
  "kind": "method",
74259
74455
  "name": "findFieldPath",
74260
74456
  "memberof": "src/util/searchingFields/FieldFinder.js~FieldFinder",
@@ -74290,7 +74486,7 @@
74290
74486
  }
74291
74487
  },
74292
74488
  {
74293
- "__docId__": 2784,
74489
+ "__docId__": 2790,
74294
74490
  "kind": "file",
74295
74491
  "name": "src/util/searchingFields/IotFields.js",
74296
74492
  "content": "// Fields generated at: Thu Feb 09 2017 11:06:37 GMT+0100 (CET)\n// DB: 172.19.18.242:1521/QA\nexport const IOT_FIELDS = {\n \"DATAPOINTS\": {\n \"DATAPOINTS\": [\n \"datapoints.organization\",\n \"datapoints.channel\",\n \"datapoints.datastreamId\",\n \"datapoints.entityIdentifier\",\n \"datapoints.subEntityIdentifier\",\n \"datapoints.entityRelated\",\n \"datapoints._current.feedId\",\n \"datapoints._current.date\",\n \"datapoints._current.at\",\n \"datapoints._current.value\",\n \"datapoints._current.tags\",\n \"datapoints._current.scoring.performance\",\n \"datapoints._current.scoring.qrating.min_required.value\",\n \"datapoints._current.scoring.qrating.min_required.label\",\n \"datapoints._current.scoring.qrating.min_desired.value\",\n \"datapoints._current.scoring.qrating.min_desired.label\",\n \"datapoints._current.scoring.qrating.ideal.value\",\n \"datapoints._current.scoring.qrating.ideal.label\",\n \"datapoints._current.scoring.qrating.max_desired.value\",\n \"datapoints._current.scoring.qrating.max_desired.label\",\n \"datapoints._current.scoring.qrating.max_allowed.value\",\n \"datapoints._current.scoring.qrating.max_allowed.label\",\n \"datapoints._current.scoring.qrating.max_score\",\n \"datapoints._current.scoring.qrating.cumulative_period_divisor\",\n \"datapoints._current.scoring.qrating.conversion_matrix\",\n \"datapoints._current.scoring.qrating.version\"\n ]\n },\n \"DATAMODELS\": {\n \"DATAMODELS\": [\n \"datamodels.organizationName\",\n \"datamodels.identifier\",\n \"datamodels.name\",\n \"datamodels.description\",\n \"datamodels.version\",\n \"datamodels.categories.name\",\n \"datamodels.categories.identifier\",\n \"datamodels.categories.datastreams.identifier\",\n \"datamodels.categories.datastreams.name\",\n \"datamodels.categories.datastreams.description\",\n \"datamodels.categories.datastreams.hardwareIds\",\n \"datamodels.categories.datastreams.unit\",\n \"datamodels.categories.datastreams.unit.type\",\n \"datamodels.categories.datastreams.unit.label\",\n \"datamodels.categories.datastreams.unit.symbol\",\n \"datamodels.categories.datastreams.period\",\n \"datamodels.categories.datastreams.access\",\n \"datamodels.categories.datastreams.schema\",\n \"datamodels.categories.datastreams.storage\",\n \"datamodels.categories.datastreams.storage.period\",\n \"datamodels.categories.datastreams.storage.total\",\n \"datamodels.categories.datastreams.tags\",\n \"datamodels.categories.datastreams.views\",\n \"datamodels.categories.datastreams.icon\",\n \"datamodels.categories.datastreams.modifiable\",\n \"datamodels.categories.datastreams.required\",\n \"datamodels.categories.datastreams.qrating.min_required.value\",\n \"datamodels.categories.datastreams.qrating.min_required.label\",\n \"datamodels.categories.datastreams.qrating.min_desired.value\",\n \"datamodels.categories.datastreams.qrating.min_desired.label\",\n \"datamodels.categories.datastreams.qrating.ideal.value\",\n \"datamodels.categories.datastreams.qrating.ideal.label\",\n \"datamodels.categories.datastreams.qrating.max_desired.value\",\n \"datamodels.categories.datastreams.qrating.max_desired.label\",\n \"datamodels.categories.datastreams.qrating.max_allowed.value\",\n \"datamodels.categories.datastreams.qrating.max_allowed.label\",\n \"datamodels.categories.datastreams.qrating.max_score\",\n \"datamodels.categories.datastreams.qrating.cumulative_period_divisor\",\n \"datamodels.categories.datastreams.qrating.conversion_matrix\",\n \"datamodels.categories.datastreams.qrating.version\"\n ]\n },\n \"DATASTREAMS\": {\n \"DATASTREAMS\": [\n \"datastreams.datastreamId\",\n \"datastreams.name\",\n \"datastreams.description\",\n \"datastreams.unit.type\",\n \"datastreams.unit.label\",\n \"datastreams.unit.symbol\",\n \"datastreams.period\",\n \"datastreams._current.tags\",\n \"datastreams._current.date\",\n \"datastreams._current.value\",\n \"datastreams.categoryId\",\n \"datastreams.datamodelId\",\n \"datastreams.access\",\n \"datastreams.channel\",\n \"datastreams.organization\",\n \"datastreams.entityIdentifier\",\n \"feeds.entityIdentifier\",\n \"datastreams._id.subEntityIdentifier\",\n \"datastreams._current.scoring.qrating.min_required.value\",\n \"datastreams._current.scoring.qrating.min_required.label\",\n \"datastreams._current.scoring.qrating.min_desired.value\",\n \"datastreams._current.scoring.qrating.min_desired.label\",\n \"datastreams._current.scoring.qrating.ideal.value\",\n \"datastreams._current.scoring.qrating.ideal.label\",\n \"datastreams._current.scoring.qrating.max_desired.value\",\n \"datastreams._current.scoring.qrating.max_desired.label\",\n \"datastreams._current.scoring.qrating.max_allowed.value\",\n \"datastreams._current.scoring.qrating.max_allowed.label\",\n \"datastreams._current.scoring.qrating.max_score\",\n \"datastreams._current.scoring.qrating.cumulative_period_divisor\",\n \"datastreams._current.scoring.qrating.max_score\",\n \"datastreams._current.scoring.qrating.conversion_matrix\",\n \"datastreams.version\",\n \"feeds.identifier\",\n \"datastreams._current.scoring.qrating.version\",\n \"datastreams._current.scoring.scoringPerformance\"\n\n ]\n },\n \"DEVICE_PART_DEVICE\": {\n \"IOT\": [\n \"datastream.id\",\n \"datastream.name\",\n \"datastream.feed\",\n \"datastream.device\",\n \"datastream.description\",\n \"datastream.unit.type\",\n \"datastream.unit.label\",\n \"datastream.unit.symbol\",\n \"datastream.period\",\n \"datastream.tags\",\n \"datastream.updated\",\n \"datastream.minValue\",\n \"datastream.maxValue\",\n \"datastream.currentValue\",\n \"datastream.categoryName\",\n \"datastream.profileId\",\n \"datastream.profileName\",\n \"datastream.profileDescription\",\n \"datastream.profileVersion\",\n \"datastream.qratingScoringQValue\",\n \"datastream.qratingScoringQScore\",\n \"datastream.qratingScoringQuality\",\n \"datastream.qratingScoringPerformance\",\n \"datastream.qratingMinRequiredValue\",\n \"datastream.qratingMinRequiredLabel\",\n \"datastream.qratingMinDesiredValue\",\n \"datastream.qratingMinDesiredLabel\",\n \"datastream.qratingIdealValue\",\n \"datastream.qratingIdealLabel\",\n \"datastream.qratingMaxDesiredValue\",\n \"datastream.qratingMaxDesiredLabel\",\n \"datastream.qratingMaxAllowedValue\",\n \"datastream.qratingMaxAllowedLabel\",\n \"datastream.qratingMaxScore\",\n \"deviceId\",\n \"feedId\",\n \"deviceOrganization\",\n \"profile.Name\",\n \"profile.Description\",\n \"profile.Version\",\n \"profile.Score\",\n \"profile.MaxScore\",\n \"profile.Performance\",\n \"profile.AvgPerformance\",\n \"profile.Quality\",\n \"category.Name\",\n \"category.Score\",\n \"category.MaxScore\",\n \"category.Performance\",\n \"category.AvgPerformance\",\n \"category.Quality\",\n \"device.Score\",\n \"device.MaxScore\",\n \"device.Performance\",\n \"device.AvgPerformance\",\n \"device.Quality\",\n \"device.Channel\",\n \"device.EntityType\"\n ]\n },\n \"USER\": {\n \"USER\": {\n \"email\": \"user.email\",\n \"description\": \"user.description\",\n \"workgroup\": \"workgroup.name\",\n \"domain\": \"domain.name\",\n \"profile\": \"profile.name\",\n \"name\": \"user.name\",\n \"surname\": \"user.surname\",\n \"countryCode\": \"country.code\",\n \"langCode\": \"language.code\",\n \"timezone\": \"user.timezone\"\n }\n },\n \"DOMAIN\": {\n \"DOMAIN\": [\n \"domain.name\",\n \"domain.description\"\n ]\n },\n \"AREAS\": {\n \"AREAS\": {\n \"identifier\": \"areas.identifier\",\n \"name\": \"areas.name\",\n \"description\": \"areas.description\",\n \"entities\": \"areas.entities\",\n \"geometry\": \"areas.geometry\",\n \"color\": \"areas.color\",\n \"organization\": \"areas.organization\"\n }\n },\n \"TASKS\": {\n \"TASKS\": [\n \"tasks.id\",\n \"tasks.name\",\n \"tasks.description\",\n \"tasks.state\",\n \"tasks.domain\",\n \"tasks.workgroup\",\n \"tasks.job.request.user\"\n ]\n },\n \"LEGACY_BULK\": {\n \"LEGACY_BULK\": {\n \"identifier\": \"bulks.identifier\",\n \"organization\": \"bulks.organization\",\n \"fileName\": \"bulks.request.fileName\",\n \"userEmail\": \"bulks.request.userEmail\",\n \"headerAccept\": \"bulks.request.header.accept\",\n \"contentType\": \"bulks.request.header.contentType\",\n \"headerCsvFormat\": \"bulks.request.header.csvFormat\",\n \"paramsFlattened\": \"bulks.request.params.flattened\",\n \"paramsAction\": \"bulks.request.params.action\",\n \"paramsFull\": \"bulks.request.params.full\",\n \"paramsType\": \"bulks.request.params.type\",\n \"status\": \"bulks.status\",\n \"startedDate\": \"bulks.startedDate\",\n \"finishedDate\": \"bulks.finishedDate\",\n \"processed\": \"bulks.summary.processed\",\n \"successful\": \"bulks.summary.successful\",\n \"error\": \"bulks.summary.error\"\n }\n },\n \"BULK\": {\n \"BULK\": {\n \"identifier\": \"bulks.identifier\",\n \"provisionProcessorId\": \"bulks.provisionProcessorId\",\n \"organization\": \"bulks.organization\",\n \"userEmail\": \"bulks.request.userEmail\",\n \"fileName\": \"bulks.request.fileName\",\n \"headerAccept\": \"bulks.request.header.accept\",\n \"contentType\": \"bulks.request.header.contentType\",\n \"status\": \"bulks.status\",\n \"startedDate\": \"bulks.startedDate\",\n \"finishedDate\": \"bulks.finishedDate\",\n \"processed\": \"bulks.summary.processed\",\n \"successful\": \"bulks.summary.successful\",\n \"error\": \"bulks.summary.error\"\n }\n },\n \"RULE\": {\n \"RULE\": {\n \"organizationId\": \"rule.organizationId\",\n \"channelId\": \"rule.channelId\",\n \"name\": \"rule.name\",\n \"active\": \"rule.active\"\n }\n },\n \"ENTITY_ALARM\": {\n \"ENTITY_ALARM\": {\n \"alarmId\": \"alarm.identifier\",\n \"alarmSubEntityIdentifier\": \"alarm.subEntityIdentifier\",\n \"entityId\": \"alarm.entityIdentifier\",\n \"entityType\": \"alarm.resourceType\",\n \"organizationName\": \"alarm.organization\",\n \"channelName\": \"alarm.channel\",\n \"alarmRuleName\": \"alarm.rule\",\n \"alarmName\": \"alarm.name\",\n \"alarmSeverity\": \"alarm.severity\",\n \"alarmPriority\": \"alarm.priority\",\n \"alarmDescription\": \"alarm.description\",\n \"alarmStatus\": \"alarm.status\",\n \"alarmOpenDate\": \"alarm.openingDate\",\n \"alarmAttentionDate\": \"alarm.attentionDate\",\n \"alarmAttentionUser\": \"alarm.attentionUser\",\n \"alarmAttentionNote\": \"alarm.attentionNote\",\n \"alarmClosureDate\": \"alarm.closureDate\",\n \"alarmClosureUser\": \"alarm.closureUser\",\n \"alarmClosureNote\": \"alarm.closureNote\",\n \"alarmExtraInfo\": \"alarm.extra_info\"\n }\n },\n \"GENERAL\": {\n \"GENERAL\": []\n },\n \"EMPTY\": {\n \"EMPTY\": []\n },\n \"OPERATORS\": {\n \"OPERATORS\": [\n \"operator.name\"\n ]\n },\n \"PLANS\": {\n \"PLANS\": [\n \"plan.identifier\",\n \"plan.name\",\n \"plan.flowRate.value\",\n \"plan.flowRate.unit\",\n \"plan.maxDeviceAmount\",\n \"plan.maxStorageLifeTime.period\",\n \"plan.maxStorageLifeTime.total\",\n \"plan.defaultAssigned\",\n \"plan.defaultProvision\"\n ]\n }\n};",
@@ -74301,7 +74497,7 @@
74301
74497
  "lineNumber": 1
74302
74498
  },
74303
74499
  {
74304
- "__docId__": 2785,
74500
+ "__docId__": 2791,
74305
74501
  "kind": "variable",
74306
74502
  "name": "IOT_FIELDS",
74307
74503
  "memberof": "src/util/searchingFields/IotFields.js",
@@ -74327,7 +74523,7 @@
74327
74523
  }
74328
74524
  },
74329
74525
  {
74330
- "__docId__": 2786,
74526
+ "__docId__": 2792,
74331
74527
  "kind": "file",
74332
74528
  "name": "src/util/searchingFields/source-precompiled/Fields.js",
74333
74529
  "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_HISTORY\": {\n \"ENTITY_OPERATION_HISTORY\":[\n \"applicationEmail\",\n \"entityId\",\n \"resourceType\",\n \"jobActivatedDate\",\n \"jobId\",\n \"jobUserNotes\",\n \"operationAttemptCurrent\",\n \"operationAttemptMax\",\n \"operationDate\",\n \"operationDetails\",\n \"operationEndDate\",\n \"operationId\",\n \"operationInitDate\",\n \"operationName\",\n \"operationNotify\",\n \"operationParameters\",\n \"operationResult\",\n \"operationStatus\",\n \"operationSteps\"\n ]\n },\n \"ENTITY_OPERATION\": {\n \"ENTITY_OPERATION\": [\n \"applicationEmail\",\n \"channelKey\",\n \"channelName\",\n \"domainKey\",\n \"entityId\",\n \"resourceType\",\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}",
@@ -74338,7 +74534,7 @@
74338
74534
  "lineNumber": 1
74339
74535
  },
74340
74536
  {
74341
- "__docId__": 2787,
74537
+ "__docId__": 2793,
74342
74538
  "kind": "variable",
74343
74539
  "name": "GENERATED_FIELDS",
74344
74540
  "memberof": "src/util/searchingFields/source-precompiled/Fields.js",
@@ -74364,7 +74560,7 @@
74364
74560
  }
74365
74561
  },
74366
74562
  {
74367
- "__docId__": 2788,
74563
+ "__docId__": 2794,
74368
74564
  "kind": "file",
74369
74565
  "name": "src/workgroups/WorkgroupFinder.js",
74370
74566
  "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}",
@@ -74375,7 +74571,7 @@
74375
74571
  "lineNumber": 1
74376
74572
  },
74377
74573
  {
74378
- "__docId__": 2789,
74574
+ "__docId__": 2795,
74379
74575
  "kind": "class",
74380
74576
  "name": "WorkgroupFinder",
74381
74577
  "memberof": "src/workgroups/WorkgroupFinder.js",
@@ -74393,7 +74589,7 @@
74393
74589
  ]
74394
74590
  },
74395
74591
  {
74396
- "__docId__": 2790,
74592
+ "__docId__": 2796,
74397
74593
  "kind": "constructor",
74398
74594
  "name": "constructor",
74399
74595
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -74418,7 +74614,7 @@
74418
74614
  ]
74419
74615
  },
74420
74616
  {
74421
- "__docId__": 2791,
74617
+ "__docId__": 2797,
74422
74618
  "kind": "method",
74423
74619
  "name": "_composeUrl",
74424
74620
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -74440,7 +74636,7 @@
74440
74636
  }
74441
74637
  },
74442
74638
  {
74443
- "__docId__": 2792,
74639
+ "__docId__": 2798,
74444
74640
  "kind": "method",
74445
74641
  "name": "findByDomainAndName",
74446
74642
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -74483,7 +74679,7 @@
74483
74679
  }
74484
74680
  },
74485
74681
  {
74486
- "__docId__": 2793,
74682
+ "__docId__": 2799,
74487
74683
  "kind": "member",
74488
74684
  "name": "_domain",
74489
74685
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -74506,7 +74702,7 @@
74506
74702
  }
74507
74703
  },
74508
74704
  {
74509
- "__docId__": 2794,
74705
+ "__docId__": 2800,
74510
74706
  "kind": "member",
74511
74707
  "name": "_name",
74512
74708
  "memberof": "src/workgroups/WorkgroupFinder.js~WorkgroupFinder",
@@ -74529,7 +74725,7 @@
74529
74725
  }
74530
74726
  },
74531
74727
  {
74532
- "__docId__": 2795,
74728
+ "__docId__": 2801,
74533
74729
  "kind": "file",
74534
74730
  "name": "src/workgroups/WorkgroupRelations.js",
74535
74731
  "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}",
@@ -74540,7 +74736,7 @@
74540
74736
  "lineNumber": 1
74541
74737
  },
74542
74738
  {
74543
- "__docId__": 2796,
74739
+ "__docId__": 2802,
74544
74740
  "kind": "class",
74545
74741
  "name": "WorkgroupRelations",
74546
74742
  "memberof": "src/workgroups/WorkgroupRelations.js",
@@ -74558,7 +74754,7 @@
74558
74754
  ]
74559
74755
  },
74560
74756
  {
74561
- "__docId__": 2797,
74757
+ "__docId__": 2803,
74562
74758
  "kind": "constructor",
74563
74759
  "name": "constructor",
74564
74760
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74583,7 +74779,7 @@
74583
74779
  ]
74584
74780
  },
74585
74781
  {
74586
- "__docId__": 2798,
74782
+ "__docId__": 2804,
74587
74783
  "kind": "member",
74588
74784
  "name": "_ogapi",
74589
74785
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74606,7 +74802,7 @@
74606
74802
  }
74607
74803
  },
74608
74804
  {
74609
- "__docId__": 2799,
74805
+ "__docId__": 2805,
74610
74806
  "kind": "member",
74611
74807
  "name": "_action",
74612
74808
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74629,7 +74825,7 @@
74629
74825
  }
74630
74826
  },
74631
74827
  {
74632
- "__docId__": 2800,
74828
+ "__docId__": 2806,
74633
74829
  "kind": "method",
74634
74830
  "name": "withWorkgroup",
74635
74831
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74662,7 +74858,7 @@
74662
74858
  }
74663
74859
  },
74664
74860
  {
74665
- "__docId__": 2801,
74861
+ "__docId__": 2807,
74666
74862
  "kind": "member",
74667
74863
  "name": "_workgroup",
74668
74864
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74685,7 +74881,7 @@
74685
74881
  }
74686
74882
  },
74687
74883
  {
74688
- "__docId__": 2802,
74884
+ "__docId__": 2808,
74689
74885
  "kind": "method",
74690
74886
  "name": "withChannel",
74691
74887
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74718,7 +74914,7 @@
74718
74914
  }
74719
74915
  },
74720
74916
  {
74721
- "__docId__": 2803,
74917
+ "__docId__": 2809,
74722
74918
  "kind": "member",
74723
74919
  "name": "_channels",
74724
74920
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74741,7 +74937,7 @@
74741
74937
  }
74742
74938
  },
74743
74939
  {
74744
- "__docId__": 2804,
74940
+ "__docId__": 2810,
74745
74941
  "kind": "method",
74746
74942
  "name": "_composeElement",
74747
74943
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74767,7 +74963,7 @@
74767
74963
  }
74768
74964
  },
74769
74965
  {
74770
- "__docId__": 2805,
74966
+ "__docId__": 2811,
74771
74967
  "kind": "member",
74772
74968
  "name": "_resource",
74773
74969
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74790,7 +74986,7 @@
74790
74986
  }
74791
74987
  },
74792
74988
  {
74793
- "__docId__": 2806,
74989
+ "__docId__": 2812,
74794
74990
  "kind": "method",
74795
74991
  "name": "_buildURL",
74796
74992
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74816,7 +75012,7 @@
74816
75012
  }
74817
75013
  },
74818
75014
  {
74819
- "__docId__": 2807,
75015
+ "__docId__": 2813,
74820
75016
  "kind": "method",
74821
75017
  "name": "create",
74822
75018
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74842,7 +75038,7 @@
74842
75038
  }
74843
75039
  },
74844
75040
  {
74845
- "__docId__": 2808,
75041
+ "__docId__": 2814,
74846
75042
  "kind": "method",
74847
75043
  "name": "delete",
74848
75044
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74868,7 +75064,7 @@
74868
75064
  }
74869
75065
  },
74870
75066
  {
74871
- "__docId__": 2809,
75067
+ "__docId__": 2815,
74872
75068
  "kind": "method",
74873
75069
  "name": "update",
74874
75070
  "memberof": "src/workgroups/WorkgroupRelations.js~WorkgroupRelations",
@@ -74890,7 +75086,7 @@
74890
75086
  ]
74891
75087
  },
74892
75088
  {
74893
- "__docId__": 2810,
75089
+ "__docId__": 2816,
74894
75090
  "kind": "file",
74895
75091
  "name": "src/workgroups/WorkgroupRelationsFinder.js",
74896
75092
  "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}",
@@ -74901,7 +75097,7 @@
74901
75097
  "lineNumber": 1
74902
75098
  },
74903
75099
  {
74904
- "__docId__": 2811,
75100
+ "__docId__": 2817,
74905
75101
  "kind": "class",
74906
75102
  "name": "WorkgroupRelationsFinder",
74907
75103
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js",
@@ -74919,7 +75115,7 @@
74919
75115
  ]
74920
75116
  },
74921
75117
  {
74922
- "__docId__": 2812,
75118
+ "__docId__": 2818,
74923
75119
  "kind": "constructor",
74924
75120
  "name": "constructor",
74925
75121
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -74944,7 +75140,7 @@
74944
75140
  ]
74945
75141
  },
74946
75142
  {
74947
- "__docId__": 2813,
75143
+ "__docId__": 2819,
74948
75144
  "kind": "method",
74949
75145
  "name": "_composeUrl",
74950
75146
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -74966,7 +75162,7 @@
74966
75162
  }
74967
75163
  },
74968
75164
  {
74969
- "__docId__": 2814,
75165
+ "__docId__": 2820,
74970
75166
  "kind": "method",
74971
75167
  "name": "findByDomainAndName",
74972
75168
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -75009,7 +75205,7 @@
75009
75205
  }
75010
75206
  },
75011
75207
  {
75012
- "__docId__": 2815,
75208
+ "__docId__": 2821,
75013
75209
  "kind": "member",
75014
75210
  "name": "_domain",
75015
75211
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -75032,7 +75228,7 @@
75032
75228
  }
75033
75229
  },
75034
75230
  {
75035
- "__docId__": 2816,
75231
+ "__docId__": 2822,
75036
75232
  "kind": "member",
75037
75233
  "name": "_name",
75038
75234
  "memberof": "src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder",
@@ -75055,7 +75251,7 @@
75055
75251
  }
75056
75252
  },
75057
75253
  {
75058
- "__docId__": 2817,
75254
+ "__docId__": 2823,
75059
75255
  "kind": "file",
75060
75256
  "name": "src/workgroups/Workgroups.js",
75061
75257
  "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}",
@@ -75066,7 +75262,7 @@
75066
75262
  "lineNumber": 1
75067
75263
  },
75068
75264
  {
75069
- "__docId__": 2818,
75265
+ "__docId__": 2824,
75070
75266
  "kind": "class",
75071
75267
  "name": "Workgroups",
75072
75268
  "memberof": "src/workgroups/Workgroups.js",
@@ -75084,7 +75280,7 @@
75084
75280
  ]
75085
75281
  },
75086
75282
  {
75087
- "__docId__": 2819,
75283
+ "__docId__": 2825,
75088
75284
  "kind": "constructor",
75089
75285
  "name": "constructor",
75090
75286
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75109,7 +75305,7 @@
75109
75305
  ]
75110
75306
  },
75111
75307
  {
75112
- "__docId__": 2820,
75308
+ "__docId__": 2826,
75113
75309
  "kind": "member",
75114
75310
  "name": "_ogapi",
75115
75311
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75132,7 +75328,7 @@
75132
75328
  }
75133
75329
  },
75134
75330
  {
75135
- "__docId__": 2821,
75331
+ "__docId__": 2827,
75136
75332
  "kind": "method",
75137
75333
  "name": "withName",
75138
75334
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75165,7 +75361,7 @@
75165
75361
  }
75166
75362
  },
75167
75363
  {
75168
- "__docId__": 2822,
75364
+ "__docId__": 2828,
75169
75365
  "kind": "member",
75170
75366
  "name": "_name",
75171
75367
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75188,7 +75384,7 @@
75188
75384
  }
75189
75385
  },
75190
75386
  {
75191
- "__docId__": 2823,
75387
+ "__docId__": 2829,
75192
75388
  "kind": "method",
75193
75389
  "name": "withDescription",
75194
75390
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75221,7 +75417,7 @@
75221
75417
  }
75222
75418
  },
75223
75419
  {
75224
- "__docId__": 2824,
75420
+ "__docId__": 2830,
75225
75421
  "kind": "member",
75226
75422
  "name": "_description",
75227
75423
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75244,7 +75440,7 @@
75244
75440
  }
75245
75441
  },
75246
75442
  {
75247
- "__docId__": 2825,
75443
+ "__docId__": 2831,
75248
75444
  "kind": "method",
75249
75445
  "name": "withAdministrative",
75250
75446
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75277,7 +75473,7 @@
75277
75473
  }
75278
75474
  },
75279
75475
  {
75280
- "__docId__": 2826,
75476
+ "__docId__": 2832,
75281
75477
  "kind": "member",
75282
75478
  "name": "_administrative",
75283
75479
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75300,7 +75496,7 @@
75300
75496
  }
75301
75497
  },
75302
75498
  {
75303
- "__docId__": 2827,
75499
+ "__docId__": 2833,
75304
75500
  "kind": "method",
75305
75501
  "name": "withDomainName",
75306
75502
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75333,7 +75529,7 @@
75333
75529
  }
75334
75530
  },
75335
75531
  {
75336
- "__docId__": 2828,
75532
+ "__docId__": 2834,
75337
75533
  "kind": "member",
75338
75534
  "name": "_domainName",
75339
75535
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75356,7 +75552,7 @@
75356
75552
  }
75357
75553
  },
75358
75554
  {
75359
- "__docId__": 2829,
75555
+ "__docId__": 2835,
75360
75556
  "kind": "method",
75361
75557
  "name": "_composeElement",
75362
75558
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75382,7 +75578,7 @@
75382
75578
  }
75383
75579
  },
75384
75580
  {
75385
- "__docId__": 2830,
75581
+ "__docId__": 2836,
75386
75582
  "kind": "member",
75387
75583
  "name": "_resource",
75388
75584
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75405,7 +75601,7 @@
75405
75601
  }
75406
75602
  },
75407
75603
  {
75408
- "__docId__": 2831,
75604
+ "__docId__": 2837,
75409
75605
  "kind": "method",
75410
75606
  "name": "_composeElementUpdate",
75411
75607
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75431,7 +75627,7 @@
75431
75627
  }
75432
75628
  },
75433
75629
  {
75434
- "__docId__": 2832,
75630
+ "__docId__": 2838,
75435
75631
  "kind": "member",
75436
75632
  "name": "_resource",
75437
75633
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75454,7 +75650,7 @@
75454
75650
  }
75455
75651
  },
75456
75652
  {
75457
- "__docId__": 2833,
75653
+ "__docId__": 2839,
75458
75654
  "kind": "method",
75459
75655
  "name": "_buildURL",
75460
75656
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75480,7 +75676,7 @@
75480
75676
  }
75481
75677
  },
75482
75678
  {
75483
- "__docId__": 2834,
75679
+ "__docId__": 2840,
75484
75680
  "kind": "method",
75485
75681
  "name": "update",
75486
75682
  "memberof": "src/workgroups/Workgroups.js~Workgroups",
@@ -75506,7 +75702,7 @@
75506
75702
  }
75507
75703
  },
75508
75704
  {
75509
- "__docId__": 2836,
75705
+ "__docId__": 2842,
75510
75706
  "kind": "external",
75511
75707
  "name": "Infinity",
75512
75708
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity",
@@ -75518,7 +75714,7 @@
75518
75714
  "builtinExternal": true
75519
75715
  },
75520
75716
  {
75521
- "__docId__": 2837,
75717
+ "__docId__": 2843,
75522
75718
  "kind": "external",
75523
75719
  "name": "NaN",
75524
75720
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN",
@@ -75530,7 +75726,7 @@
75530
75726
  "builtinExternal": true
75531
75727
  },
75532
75728
  {
75533
- "__docId__": 2838,
75729
+ "__docId__": 2844,
75534
75730
  "kind": "external",
75535
75731
  "name": "undefined",
75536
75732
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined",
@@ -75542,7 +75738,7 @@
75542
75738
  "builtinExternal": true
75543
75739
  },
75544
75740
  {
75545
- "__docId__": 2839,
75741
+ "__docId__": 2845,
75546
75742
  "kind": "external",
75547
75743
  "name": "null",
75548
75744
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null",
@@ -75554,7 +75750,7 @@
75554
75750
  "builtinExternal": true
75555
75751
  },
75556
75752
  {
75557
- "__docId__": 2840,
75753
+ "__docId__": 2846,
75558
75754
  "kind": "external",
75559
75755
  "name": "Object",
75560
75756
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
@@ -75566,7 +75762,7 @@
75566
75762
  "builtinExternal": true
75567
75763
  },
75568
75764
  {
75569
- "__docId__": 2841,
75765
+ "__docId__": 2847,
75570
75766
  "kind": "external",
75571
75767
  "name": "object",
75572
75768
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
@@ -75578,7 +75774,7 @@
75578
75774
  "builtinExternal": true
75579
75775
  },
75580
75776
  {
75581
- "__docId__": 2842,
75777
+ "__docId__": 2848,
75582
75778
  "kind": "external",
75583
75779
  "name": "Function",
75584
75780
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
@@ -75590,7 +75786,7 @@
75590
75786
  "builtinExternal": true
75591
75787
  },
75592
75788
  {
75593
- "__docId__": 2843,
75789
+ "__docId__": 2849,
75594
75790
  "kind": "external",
75595
75791
  "name": "function",
75596
75792
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
@@ -75602,7 +75798,7 @@
75602
75798
  "builtinExternal": true
75603
75799
  },
75604
75800
  {
75605
- "__docId__": 2844,
75801
+ "__docId__": 2850,
75606
75802
  "kind": "external",
75607
75803
  "name": "Boolean",
75608
75804
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
@@ -75614,7 +75810,7 @@
75614
75810
  "builtinExternal": true
75615
75811
  },
75616
75812
  {
75617
- "__docId__": 2845,
75813
+ "__docId__": 2851,
75618
75814
  "kind": "external",
75619
75815
  "name": "boolean",
75620
75816
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
@@ -75626,7 +75822,7 @@
75626
75822
  "builtinExternal": true
75627
75823
  },
75628
75824
  {
75629
- "__docId__": 2846,
75825
+ "__docId__": 2852,
75630
75826
  "kind": "external",
75631
75827
  "name": "Symbol",
75632
75828
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol",
@@ -75638,7 +75834,7 @@
75638
75834
  "builtinExternal": true
75639
75835
  },
75640
75836
  {
75641
- "__docId__": 2847,
75837
+ "__docId__": 2853,
75642
75838
  "kind": "external",
75643
75839
  "name": "Error",
75644
75840
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error",
@@ -75650,7 +75846,7 @@
75650
75846
  "builtinExternal": true
75651
75847
  },
75652
75848
  {
75653
- "__docId__": 2848,
75849
+ "__docId__": 2854,
75654
75850
  "kind": "external",
75655
75851
  "name": "EvalError",
75656
75852
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError",
@@ -75662,7 +75858,7 @@
75662
75858
  "builtinExternal": true
75663
75859
  },
75664
75860
  {
75665
- "__docId__": 2849,
75861
+ "__docId__": 2855,
75666
75862
  "kind": "external",
75667
75863
  "name": "InternalError",
75668
75864
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError",
@@ -75674,7 +75870,7 @@
75674
75870
  "builtinExternal": true
75675
75871
  },
75676
75872
  {
75677
- "__docId__": 2850,
75873
+ "__docId__": 2856,
75678
75874
  "kind": "external",
75679
75875
  "name": "RangeError",
75680
75876
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError",
@@ -75686,7 +75882,7 @@
75686
75882
  "builtinExternal": true
75687
75883
  },
75688
75884
  {
75689
- "__docId__": 2851,
75885
+ "__docId__": 2857,
75690
75886
  "kind": "external",
75691
75887
  "name": "ReferenceError",
75692
75888
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError",
@@ -75698,7 +75894,7 @@
75698
75894
  "builtinExternal": true
75699
75895
  },
75700
75896
  {
75701
- "__docId__": 2852,
75897
+ "__docId__": 2858,
75702
75898
  "kind": "external",
75703
75899
  "name": "SyntaxError",
75704
75900
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError",
@@ -75710,7 +75906,7 @@
75710
75906
  "builtinExternal": true
75711
75907
  },
75712
75908
  {
75713
- "__docId__": 2853,
75909
+ "__docId__": 2859,
75714
75910
  "kind": "external",
75715
75911
  "name": "TypeError",
75716
75912
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError",
@@ -75722,7 +75918,7 @@
75722
75918
  "builtinExternal": true
75723
75919
  },
75724
75920
  {
75725
- "__docId__": 2854,
75921
+ "__docId__": 2860,
75726
75922
  "kind": "external",
75727
75923
  "name": "URIError",
75728
75924
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError",
@@ -75734,7 +75930,7 @@
75734
75930
  "builtinExternal": true
75735
75931
  },
75736
75932
  {
75737
- "__docId__": 2855,
75933
+ "__docId__": 2861,
75738
75934
  "kind": "external",
75739
75935
  "name": "Number",
75740
75936
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
@@ -75746,7 +75942,7 @@
75746
75942
  "builtinExternal": true
75747
75943
  },
75748
75944
  {
75749
- "__docId__": 2856,
75945
+ "__docId__": 2862,
75750
75946
  "kind": "external",
75751
75947
  "name": "number",
75752
75948
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
@@ -75758,7 +75954,7 @@
75758
75954
  "builtinExternal": true
75759
75955
  },
75760
75956
  {
75761
- "__docId__": 2857,
75957
+ "__docId__": 2863,
75762
75958
  "kind": "external",
75763
75959
  "name": "Date",
75764
75960
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date",
@@ -75770,7 +75966,7 @@
75770
75966
  "builtinExternal": true
75771
75967
  },
75772
75968
  {
75773
- "__docId__": 2858,
75969
+ "__docId__": 2864,
75774
75970
  "kind": "external",
75775
75971
  "name": "String",
75776
75972
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
@@ -75782,7 +75978,7 @@
75782
75978
  "builtinExternal": true
75783
75979
  },
75784
75980
  {
75785
- "__docId__": 2859,
75981
+ "__docId__": 2865,
75786
75982
  "kind": "external",
75787
75983
  "name": "string",
75788
75984
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
@@ -75794,7 +75990,7 @@
75794
75990
  "builtinExternal": true
75795
75991
  },
75796
75992
  {
75797
- "__docId__": 2860,
75993
+ "__docId__": 2866,
75798
75994
  "kind": "external",
75799
75995
  "name": "RegExp",
75800
75996
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp",
@@ -75806,7 +76002,7 @@
75806
76002
  "builtinExternal": true
75807
76003
  },
75808
76004
  {
75809
- "__docId__": 2861,
76005
+ "__docId__": 2867,
75810
76006
  "kind": "external",
75811
76007
  "name": "Array",
75812
76008
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
@@ -75818,7 +76014,7 @@
75818
76014
  "builtinExternal": true
75819
76015
  },
75820
76016
  {
75821
- "__docId__": 2862,
76017
+ "__docId__": 2868,
75822
76018
  "kind": "external",
75823
76019
  "name": "Int8Array",
75824
76020
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array",
@@ -75830,7 +76026,7 @@
75830
76026
  "builtinExternal": true
75831
76027
  },
75832
76028
  {
75833
- "__docId__": 2863,
76029
+ "__docId__": 2869,
75834
76030
  "kind": "external",
75835
76031
  "name": "Uint8Array",
75836
76032
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array",
@@ -75842,7 +76038,7 @@
75842
76038
  "builtinExternal": true
75843
76039
  },
75844
76040
  {
75845
- "__docId__": 2864,
76041
+ "__docId__": 2870,
75846
76042
  "kind": "external",
75847
76043
  "name": "Uint8ClampedArray",
75848
76044
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray",
@@ -75854,7 +76050,7 @@
75854
76050
  "builtinExternal": true
75855
76051
  },
75856
76052
  {
75857
- "__docId__": 2865,
76053
+ "__docId__": 2871,
75858
76054
  "kind": "external",
75859
76055
  "name": "Int16Array",
75860
76056
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array",
@@ -75866,7 +76062,7 @@
75866
76062
  "builtinExternal": true
75867
76063
  },
75868
76064
  {
75869
- "__docId__": 2866,
76065
+ "__docId__": 2872,
75870
76066
  "kind": "external",
75871
76067
  "name": "Uint16Array",
75872
76068
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array",
@@ -75878,7 +76074,7 @@
75878
76074
  "builtinExternal": true
75879
76075
  },
75880
76076
  {
75881
- "__docId__": 2867,
76077
+ "__docId__": 2873,
75882
76078
  "kind": "external",
75883
76079
  "name": "Int32Array",
75884
76080
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array",
@@ -75890,7 +76086,7 @@
75890
76086
  "builtinExternal": true
75891
76087
  },
75892
76088
  {
75893
- "__docId__": 2868,
76089
+ "__docId__": 2874,
75894
76090
  "kind": "external",
75895
76091
  "name": "Uint32Array",
75896
76092
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array",
@@ -75902,7 +76098,7 @@
75902
76098
  "builtinExternal": true
75903
76099
  },
75904
76100
  {
75905
- "__docId__": 2869,
76101
+ "__docId__": 2875,
75906
76102
  "kind": "external",
75907
76103
  "name": "Float32Array",
75908
76104
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array",
@@ -75914,7 +76110,7 @@
75914
76110
  "builtinExternal": true
75915
76111
  },
75916
76112
  {
75917
- "__docId__": 2870,
76113
+ "__docId__": 2876,
75918
76114
  "kind": "external",
75919
76115
  "name": "Float64Array",
75920
76116
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array",
@@ -75926,7 +76122,7 @@
75926
76122
  "builtinExternal": true
75927
76123
  },
75928
76124
  {
75929
- "__docId__": 2871,
76125
+ "__docId__": 2877,
75930
76126
  "kind": "external",
75931
76127
  "name": "Map",
75932
76128
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map",
@@ -75938,7 +76134,7 @@
75938
76134
  "builtinExternal": true
75939
76135
  },
75940
76136
  {
75941
- "__docId__": 2872,
76137
+ "__docId__": 2878,
75942
76138
  "kind": "external",
75943
76139
  "name": "Set",
75944
76140
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set",
@@ -75950,7 +76146,7 @@
75950
76146
  "builtinExternal": true
75951
76147
  },
75952
76148
  {
75953
- "__docId__": 2873,
76149
+ "__docId__": 2879,
75954
76150
  "kind": "external",
75955
76151
  "name": "WeakMap",
75956
76152
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap",
@@ -75962,7 +76158,7 @@
75962
76158
  "builtinExternal": true
75963
76159
  },
75964
76160
  {
75965
- "__docId__": 2874,
76161
+ "__docId__": 2880,
75966
76162
  "kind": "external",
75967
76163
  "name": "WeakSet",
75968
76164
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet",
@@ -75974,7 +76170,7 @@
75974
76170
  "builtinExternal": true
75975
76171
  },
75976
76172
  {
75977
- "__docId__": 2875,
76173
+ "__docId__": 2881,
75978
76174
  "kind": "external",
75979
76175
  "name": "ArrayBuffer",
75980
76176
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer",
@@ -75986,7 +76182,7 @@
75986
76182
  "builtinExternal": true
75987
76183
  },
75988
76184
  {
75989
- "__docId__": 2876,
76185
+ "__docId__": 2882,
75990
76186
  "kind": "external",
75991
76187
  "name": "DataView",
75992
76188
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView",
@@ -75998,7 +76194,7 @@
75998
76194
  "builtinExternal": true
75999
76195
  },
76000
76196
  {
76001
- "__docId__": 2877,
76197
+ "__docId__": 2883,
76002
76198
  "kind": "external",
76003
76199
  "name": "JSON",
76004
76200
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON",
@@ -76010,7 +76206,7 @@
76010
76206
  "builtinExternal": true
76011
76207
  },
76012
76208
  {
76013
- "__docId__": 2878,
76209
+ "__docId__": 2884,
76014
76210
  "kind": "external",
76015
76211
  "name": "Promise",
76016
76212
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise",
@@ -76022,7 +76218,7 @@
76022
76218
  "builtinExternal": true
76023
76219
  },
76024
76220
  {
76025
- "__docId__": 2879,
76221
+ "__docId__": 2885,
76026
76222
  "kind": "external",
76027
76223
  "name": "Generator",
76028
76224
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator",
@@ -76034,7 +76230,7 @@
76034
76230
  "builtinExternal": true
76035
76231
  },
76036
76232
  {
76037
- "__docId__": 2880,
76233
+ "__docId__": 2886,
76038
76234
  "kind": "external",
76039
76235
  "name": "GeneratorFunction",
76040
76236
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction",
@@ -76046,7 +76242,7 @@
76046
76242
  "builtinExternal": true
76047
76243
  },
76048
76244
  {
76049
- "__docId__": 2881,
76245
+ "__docId__": 2887,
76050
76246
  "kind": "external",
76051
76247
  "name": "Reflect",
76052
76248
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect",
@@ -76058,7 +76254,7 @@
76058
76254
  "builtinExternal": true
76059
76255
  },
76060
76256
  {
76061
- "__docId__": 2882,
76257
+ "__docId__": 2888,
76062
76258
  "kind": "external",
76063
76259
  "name": "Proxy",
76064
76260
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy",
@@ -76071,7 +76267,7 @@
76071
76267
  "builtinExternal": true
76072
76268
  },
76073
76269
  {
76074
- "__docId__": 2884,
76270
+ "__docId__": 2890,
76075
76271
  "kind": "external",
76076
76272
  "name": "CanvasRenderingContext2D",
76077
76273
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D",
@@ -76083,7 +76279,7 @@
76083
76279
  "builtinExternal": true
76084
76280
  },
76085
76281
  {
76086
- "__docId__": 2885,
76282
+ "__docId__": 2891,
76087
76283
  "kind": "external",
76088
76284
  "name": "DocumentFragment",
76089
76285
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment",
@@ -76095,7 +76291,7 @@
76095
76291
  "builtinExternal": true
76096
76292
  },
76097
76293
  {
76098
- "__docId__": 2886,
76294
+ "__docId__": 2892,
76099
76295
  "kind": "external",
76100
76296
  "name": "Element",
76101
76297
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element",
@@ -76107,7 +76303,7 @@
76107
76303
  "builtinExternal": true
76108
76304
  },
76109
76305
  {
76110
- "__docId__": 2887,
76306
+ "__docId__": 2893,
76111
76307
  "kind": "external",
76112
76308
  "name": "Event",
76113
76309
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event",
@@ -76119,7 +76315,7 @@
76119
76315
  "builtinExternal": true
76120
76316
  },
76121
76317
  {
76122
- "__docId__": 2888,
76318
+ "__docId__": 2894,
76123
76319
  "kind": "external",
76124
76320
  "name": "Node",
76125
76321
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node",
@@ -76131,7 +76327,7 @@
76131
76327
  "builtinExternal": true
76132
76328
  },
76133
76329
  {
76134
- "__docId__": 2889,
76330
+ "__docId__": 2895,
76135
76331
  "kind": "external",
76136
76332
  "name": "NodeList",
76137
76333
  "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList",
@@ -76143,7 +76339,7 @@
76143
76339
  "builtinExternal": true
76144
76340
  },
76145
76341
  {
76146
- "__docId__": 2890,
76342
+ "__docId__": 2896,
76147
76343
  "kind": "external",
76148
76344
  "name": "XMLHttpRequest",
76149
76345
  "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest",
@@ -76155,7 +76351,7 @@
76155
76351
  "builtinExternal": true
76156
76352
  },
76157
76353
  {
76158
- "__docId__": 2891,
76354
+ "__docId__": 2897,
76159
76355
  "kind": "external",
76160
76356
  "name": "AudioContext",
76161
76357
  "externalLink": "https://developer.mozilla.org/en/docs/Web/API/AudioContext",
@@ -76168,7 +76364,7 @@
76168
76364
  "builtinExternal": true
76169
76365
  },
76170
76366
  {
76171
- "__docId__": 2892,
76367
+ "__docId__": 2898,
76172
76368
  "kind": "testFile",
76173
76369
  "name": "client/autogeneratedFields/fields.spec.js",
76174
76370
  "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});",
@@ -76179,7 +76375,7 @@
76179
76375
  "lineNumber": 1
76180
76376
  },
76181
76377
  {
76182
- "__docId__": 2893,
76378
+ "__docId__": 2899,
76183
76379
  "kind": "testDescribe",
76184
76380
  "name": "describe0",
76185
76381
  "testId": 0,
@@ -76192,7 +76388,7 @@
76192
76388
  "lineNumber": 4
76193
76389
  },
76194
76390
  {
76195
- "__docId__": 2894,
76391
+ "__docId__": 2900,
76196
76392
  "kind": "testIt",
76197
76393
  "name": "it1",
76198
76394
  "testId": 1,
@@ -76205,7 +76401,7 @@
76205
76401
  "lineNumber": 6
76206
76402
  },
76207
76403
  {
76208
- "__docId__": 2895,
76404
+ "__docId__": 2901,
76209
76405
  "kind": "testIt",
76210
76406
  "name": "it2",
76211
76407
  "testId": 2,
@@ -76218,7 +76414,7 @@
76218
76414
  "lineNumber": 14
76219
76415
  },
76220
76416
  {
76221
- "__docId__": 2896,
76417
+ "__docId__": 2902,
76222
76418
  "kind": "testIt",
76223
76419
  "name": "it3",
76224
76420
  "testId": 3,
@@ -76231,7 +76427,7 @@
76231
76427
  "lineNumber": 23
76232
76428
  },
76233
76429
  {
76234
- "__docId__": 2897,
76430
+ "__docId__": 2903,
76235
76431
  "kind": "testIt",
76236
76432
  "name": "it4",
76237
76433
  "testId": 4,
@@ -76244,7 +76440,7 @@
76244
76440
  "lineNumber": 39
76245
76441
  },
76246
76442
  {
76247
- "__docId__": 2898,
76443
+ "__docId__": 2904,
76248
76444
  "kind": "testIt",
76249
76445
  "name": "it5",
76250
76446
  "testId": 5,
@@ -76257,7 +76453,7 @@
76257
76453
  "lineNumber": 49
76258
76454
  },
76259
76455
  {
76260
- "__docId__": 2899,
76456
+ "__docId__": 2905,
76261
76457
  "kind": "testIt",
76262
76458
  "name": "it6",
76263
76459
  "testId": 6,
@@ -76270,7 +76466,7 @@
76270
76466
  "lineNumber": 57
76271
76467
  },
76272
76468
  {
76273
- "__docId__": 2900,
76469
+ "__docId__": 2906,
76274
76470
  "kind": "testIt",
76275
76471
  "name": "it7",
76276
76472
  "testId": 7,
@@ -76283,7 +76479,7 @@
76283
76479
  "lineNumber": 65
76284
76480
  },
76285
76481
  {
76286
- "__docId__": 2901,
76482
+ "__docId__": 2907,
76287
76483
  "kind": "testIt",
76288
76484
  "name": "it8",
76289
76485
  "testId": 8,
@@ -76296,7 +76492,7 @@
76296
76492
  "lineNumber": 72
76297
76493
  },
76298
76494
  {
76299
- "__docId__": 2902,
76495
+ "__docId__": 2908,
76300
76496
  "kind": "testIt",
76301
76497
  "name": "it9",
76302
76498
  "testId": 9,
@@ -76309,7 +76505,7 @@
76309
76505
  "lineNumber": 79
76310
76506
  },
76311
76507
  {
76312
- "__docId__": 2903,
76508
+ "__docId__": 2909,
76313
76509
  "kind": "testIt",
76314
76510
  "name": "it10",
76315
76511
  "testId": 10,
@@ -76322,7 +76518,7 @@
76322
76518
  "lineNumber": 87
76323
76519
  },
76324
76520
  {
76325
- "__docId__": 2904,
76521
+ "__docId__": 2910,
76326
76522
  "kind": "testFile",
76327
76523
  "name": "client/bundles/bundles.spec.js",
76328
76524
  "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});",
@@ -76333,7 +76529,7 @@
76333
76529
  "lineNumber": 1
76334
76530
  },
76335
76531
  {
76336
- "__docId__": 2905,
76532
+ "__docId__": 2911,
76337
76533
  "kind": "testDescribe",
76338
76534
  "name": "describe11",
76339
76535
  "testId": 11,
@@ -76355,7 +76551,7 @@
76355
76551
  ]
76356
76552
  },
76357
76553
  {
76358
- "__docId__": 2906,
76554
+ "__docId__": 2912,
76359
76555
  "kind": "testFile",
76360
76556
  "name": "client/collection/iot.spec.js",
76361
76557
  "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",
@@ -76366,7 +76562,7 @@
76366
76562
  "lineNumber": 1
76367
76563
  },
76368
76564
  {
76369
- "__docId__": 2907,
76565
+ "__docId__": 2913,
76370
76566
  "kind": "testDescribe",
76371
76567
  "name": "describe12",
76372
76568
  "testId": 12,
@@ -76388,7 +76584,7 @@
76388
76584
  ]
76389
76585
  },
76390
76586
  {
76391
- "__docId__": 2908,
76587
+ "__docId__": 2914,
76392
76588
  "kind": "testDescribe",
76393
76589
  "name": "describe13",
76394
76590
  "testId": 13,
@@ -76410,7 +76606,7 @@
76410
76606
  ]
76411
76607
  },
76412
76608
  {
76413
- "__docId__": 2909,
76609
+ "__docId__": 2915,
76414
76610
  "kind": "testIt",
76415
76611
  "name": "it14",
76416
76612
  "testId": 14,
@@ -76423,7 +76619,7 @@
76423
76619
  "lineNumber": 12
76424
76620
  },
76425
76621
  {
76426
- "__docId__": 2910,
76622
+ "__docId__": 2916,
76427
76623
  "kind": "testFile",
76428
76624
  "name": "client/device/device.spec.js",
76429
76625
  "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",
@@ -76434,7 +76630,7 @@
76434
76630
  "lineNumber": 1
76435
76631
  },
76436
76632
  {
76437
- "__docId__": 2911,
76633
+ "__docId__": 2917,
76438
76634
  "kind": "testDescribe",
76439
76635
  "name": "describe15",
76440
76636
  "testId": 15,
@@ -76456,7 +76652,7 @@
76456
76652
  ]
76457
76653
  },
76458
76654
  {
76459
- "__docId__": 2912,
76655
+ "__docId__": 2918,
76460
76656
  "kind": "testDescribe",
76461
76657
  "name": "describe16",
76462
76658
  "testId": 16,
@@ -76478,7 +76674,7 @@
76478
76674
  ]
76479
76675
  },
76480
76676
  {
76481
- "__docId__": 2913,
76677
+ "__docId__": 2919,
76482
76678
  "kind": "testIt",
76483
76679
  "name": "it17",
76484
76680
  "testId": 17,
@@ -76491,7 +76687,7 @@
76491
76687
  "lineNumber": 12
76492
76688
  },
76493
76689
  {
76494
- "__docId__": 2914,
76690
+ "__docId__": 2920,
76495
76691
  "kind": "testIt",
76496
76692
  "name": "it18",
76497
76693
  "testId": 18,
@@ -76504,7 +76700,7 @@
76504
76700
  "lineNumber": 19
76505
76701
  },
76506
76702
  {
76507
- "__docId__": 2915,
76703
+ "__docId__": 2921,
76508
76704
  "kind": "testIt",
76509
76705
  "name": "it19",
76510
76706
  "testId": 19,
@@ -76517,7 +76713,7 @@
76517
76713
  "lineNumber": 26
76518
76714
  },
76519
76715
  {
76520
- "__docId__": 2916,
76716
+ "__docId__": 2922,
76521
76717
  "kind": "testIt",
76522
76718
  "name": "it20",
76523
76719
  "testId": 20,
@@ -76530,7 +76726,7 @@
76530
76726
  "lineNumber": 33
76531
76727
  },
76532
76728
  {
76533
- "__docId__": 2917,
76729
+ "__docId__": 2923,
76534
76730
  "kind": "testIt",
76535
76731
  "name": "it21",
76536
76732
  "testId": 21,
@@ -76543,7 +76739,7 @@
76543
76739
  "lineNumber": 40
76544
76740
  },
76545
76741
  {
76546
- "__docId__": 2918,
76742
+ "__docId__": 2924,
76547
76743
  "kind": "testIt",
76548
76744
  "name": "it22",
76549
76745
  "testId": 22,
@@ -76556,7 +76752,7 @@
76556
76752
  "lineNumber": 47
76557
76753
  },
76558
76754
  {
76559
- "__docId__": 2919,
76755
+ "__docId__": 2925,
76560
76756
  "kind": "testIt",
76561
76757
  "name": "it23",
76562
76758
  "testId": 23,
@@ -76569,7 +76765,7 @@
76569
76765
  "lineNumber": 54
76570
76766
  },
76571
76767
  {
76572
- "__docId__": 2920,
76768
+ "__docId__": 2926,
76573
76769
  "kind": "testIt",
76574
76770
  "name": "it24",
76575
76771
  "testId": 24,
@@ -76582,7 +76778,7 @@
76582
76778
  "lineNumber": 61
76583
76779
  },
76584
76780
  {
76585
- "__docId__": 2921,
76781
+ "__docId__": 2927,
76586
76782
  "kind": "testIt",
76587
76783
  "name": "it25",
76588
76784
  "testId": 25,
@@ -76595,7 +76791,7 @@
76595
76791
  "lineNumber": 68
76596
76792
  },
76597
76793
  {
76598
- "__docId__": 2922,
76794
+ "__docId__": 2928,
76599
76795
  "kind": "testIt",
76600
76796
  "name": "it26",
76601
76797
  "testId": 26,
@@ -76608,7 +76804,7 @@
76608
76804
  "lineNumber": 75
76609
76805
  },
76610
76806
  {
76611
- "__docId__": 2923,
76807
+ "__docId__": 2929,
76612
76808
  "kind": "testIt",
76613
76809
  "name": "it27",
76614
76810
  "testId": 27,
@@ -76621,7 +76817,7 @@
76621
76817
  "lineNumber": 82
76622
76818
  },
76623
76819
  {
76624
- "__docId__": 2924,
76820
+ "__docId__": 2930,
76625
76821
  "kind": "testIt",
76626
76822
  "name": "it28",
76627
76823
  "testId": 28,
@@ -76634,7 +76830,7 @@
76634
76830
  "lineNumber": 88
76635
76831
  },
76636
76832
  {
76637
- "__docId__": 2925,
76833
+ "__docId__": 2931,
76638
76834
  "kind": "testDescribe",
76639
76835
  "name": "describe29",
76640
76836
  "testId": 29,
@@ -76647,7 +76843,7 @@
76647
76843
  "lineNumber": 94
76648
76844
  },
76649
76845
  {
76650
- "__docId__": 2926,
76846
+ "__docId__": 2932,
76651
76847
  "kind": "testIt",
76652
76848
  "name": "it30",
76653
76849
  "testId": 30,
@@ -76660,7 +76856,7 @@
76660
76856
  "lineNumber": 100
76661
76857
  },
76662
76858
  {
76663
- "__docId__": 2927,
76859
+ "__docId__": 2933,
76664
76860
  "kind": "testIt",
76665
76861
  "name": "it31",
76666
76862
  "testId": 31,
@@ -76673,7 +76869,7 @@
76673
76869
  "lineNumber": 106
76674
76870
  },
76675
76871
  {
76676
- "__docId__": 2928,
76872
+ "__docId__": 2934,
76677
76873
  "kind": "testIt",
76678
76874
  "name": "it32",
76679
76875
  "testId": 32,
@@ -76686,7 +76882,7 @@
76686
76882
  "lineNumber": 112
76687
76883
  },
76688
76884
  {
76689
- "__docId__": 2929,
76885
+ "__docId__": 2935,
76690
76886
  "kind": "testIt",
76691
76887
  "name": "it33",
76692
76888
  "testId": 33,
@@ -76699,7 +76895,7 @@
76699
76895
  "lineNumber": 117
76700
76896
  },
76701
76897
  {
76702
- "__docId__": 2930,
76898
+ "__docId__": 2936,
76703
76899
  "kind": "testDescribe",
76704
76900
  "name": "describe34",
76705
76901
  "testId": 34,
@@ -76712,7 +76908,7 @@
76712
76908
  "lineNumber": 131
76713
76909
  },
76714
76910
  {
76715
- "__docId__": 2931,
76911
+ "__docId__": 2937,
76716
76912
  "kind": "testIt",
76717
76913
  "name": "it35",
76718
76914
  "testId": 35,
@@ -76725,7 +76921,7 @@
76725
76921
  "lineNumber": 133
76726
76922
  },
76727
76923
  {
76728
- "__docId__": 2932,
76924
+ "__docId__": 2938,
76729
76925
  "kind": "testIt",
76730
76926
  "name": "it36",
76731
76927
  "testId": 36,
@@ -76738,7 +76934,7 @@
76738
76934
  "lineNumber": 139
76739
76935
  },
76740
76936
  {
76741
- "__docId__": 2933,
76937
+ "__docId__": 2939,
76742
76938
  "kind": "testDescribe",
76743
76939
  "name": "describe37",
76744
76940
  "testId": 37,
@@ -76751,7 +76947,7 @@
76751
76947
  "lineNumber": 144
76752
76948
  },
76753
76949
  {
76754
- "__docId__": 2934,
76950
+ "__docId__": 2940,
76755
76951
  "kind": "testIt",
76756
76952
  "name": "it38",
76757
76953
  "testId": 38,
@@ -76764,7 +76960,7 @@
76764
76960
  "lineNumber": 150
76765
76961
  },
76766
76962
  {
76767
- "__docId__": 2935,
76963
+ "__docId__": 2941,
76768
76964
  "kind": "testIt",
76769
76965
  "name": "it39",
76770
76966
  "testId": 39,
@@ -76777,7 +76973,7 @@
76777
76973
  "lineNumber": 155
76778
76974
  },
76779
76975
  {
76780
- "__docId__": 2936,
76976
+ "__docId__": 2942,
76781
76977
  "kind": "testIt",
76782
76978
  "name": "it40",
76783
76979
  "testId": 40,
@@ -76790,7 +76986,7 @@
76790
76986
  "lineNumber": 160
76791
76987
  },
76792
76988
  {
76793
- "__docId__": 2937,
76989
+ "__docId__": 2943,
76794
76990
  "kind": "testIt",
76795
76991
  "name": "it41",
76796
76992
  "testId": 41,
@@ -76803,7 +76999,7 @@
76803
76999
  "lineNumber": 165
76804
77000
  },
76805
77001
  {
76806
- "__docId__": 2938,
77002
+ "__docId__": 2944,
76807
77003
  "kind": "testIt",
76808
77004
  "name": "it42",
76809
77005
  "testId": 42,
@@ -76816,7 +77012,7 @@
76816
77012
  "lineNumber": 170
76817
77013
  },
76818
77014
  {
76819
- "__docId__": 2939,
77015
+ "__docId__": 2945,
76820
77016
  "kind": "testIt",
76821
77017
  "name": "it43",
76822
77018
  "testId": 43,
@@ -76829,7 +77025,7 @@
76829
77025
  "lineNumber": 175
76830
77026
  },
76831
77027
  {
76832
- "__docId__": 2940,
77028
+ "__docId__": 2946,
76833
77029
  "kind": "testIt",
76834
77030
  "name": "it44",
76835
77031
  "testId": 44,
@@ -76842,7 +77038,7 @@
76842
77038
  "lineNumber": 180
76843
77039
  },
76844
77040
  {
76845
- "__docId__": 2941,
77041
+ "__docId__": 2947,
76846
77042
  "kind": "testIt",
76847
77043
  "name": "it45",
76848
77044
  "testId": 45,
@@ -76855,7 +77051,7 @@
76855
77051
  "lineNumber": 185
76856
77052
  },
76857
77053
  {
76858
- "__docId__": 2942,
77054
+ "__docId__": 2948,
76859
77055
  "kind": "testIt",
76860
77056
  "name": "it46",
76861
77057
  "testId": 46,
@@ -76868,7 +77064,7 @@
76868
77064
  "lineNumber": 190
76869
77065
  },
76870
77066
  {
76871
- "__docId__": 2943,
77067
+ "__docId__": 2949,
76872
77068
  "kind": "testIt",
76873
77069
  "name": "it47",
76874
77070
  "testId": 47,
@@ -76881,7 +77077,7 @@
76881
77077
  "lineNumber": 195
76882
77078
  },
76883
77079
  {
76884
- "__docId__": 2944,
77080
+ "__docId__": 2950,
76885
77081
  "kind": "testIt",
76886
77082
  "name": "it48",
76887
77083
  "testId": 48,
@@ -76894,7 +77090,7 @@
76894
77090
  "lineNumber": 200
76895
77091
  },
76896
77092
  {
76897
- "__docId__": 2945,
77093
+ "__docId__": 2951,
76898
77094
  "kind": "testIt",
76899
77095
  "name": "it49",
76900
77096
  "testId": 49,
@@ -76907,7 +77103,7 @@
76907
77103
  "lineNumber": 205
76908
77104
  },
76909
77105
  {
76910
- "__docId__": 2946,
77106
+ "__docId__": 2952,
76911
77107
  "kind": "testIt",
76912
77108
  "name": "it50",
76913
77109
  "testId": 50,
@@ -76920,7 +77116,7 @@
76920
77116
  "lineNumber": 211
76921
77117
  },
76922
77118
  {
76923
- "__docId__": 2947,
77119
+ "__docId__": 2953,
76924
77120
  "kind": "testIt",
76925
77121
  "name": "it51",
76926
77122
  "testId": 51,
@@ -76933,7 +77129,7 @@
76933
77129
  "lineNumber": 222
76934
77130
  },
76935
77131
  {
76936
- "__docId__": 2948,
77132
+ "__docId__": 2954,
76937
77133
  "kind": "testIt",
76938
77134
  "name": "it52",
76939
77135
  "testId": 52,
@@ -76946,7 +77142,7 @@
76946
77142
  "lineNumber": 232
76947
77143
  },
76948
77144
  {
76949
- "__docId__": 2949,
77145
+ "__docId__": 2955,
76950
77146
  "kind": "testIt",
76951
77147
  "name": "it53",
76952
77148
  "testId": 53,
@@ -76959,7 +77155,7 @@
76959
77155
  "lineNumber": 243
76960
77156
  },
76961
77157
  {
76962
- "__docId__": 2950,
77158
+ "__docId__": 2956,
76963
77159
  "kind": "testIt",
76964
77160
  "name": "it54",
76965
77161
  "testId": 54,
@@ -76972,7 +77168,7 @@
76972
77168
  "lineNumber": 256
76973
77169
  },
76974
77170
  {
76975
- "__docId__": 2951,
77171
+ "__docId__": 2957,
76976
77172
  "kind": "testIt",
76977
77173
  "name": "it55",
76978
77174
  "testId": 55,
@@ -76985,7 +77181,7 @@
76985
77181
  "lineNumber": 273
76986
77182
  },
76987
77183
  {
76988
- "__docId__": 2952,
77184
+ "__docId__": 2958,
76989
77185
  "kind": "testIt",
76990
77186
  "name": "it56",
76991
77187
  "testId": 56,
@@ -76998,7 +77194,7 @@
76998
77194
  "lineNumber": 278
76999
77195
  },
77000
77196
  {
77001
- "__docId__": 2953,
77197
+ "__docId__": 2959,
77002
77198
  "kind": "testDescribe",
77003
77199
  "name": "describe57",
77004
77200
  "testId": 57,
@@ -77011,7 +77207,7 @@
77011
77207
  "lineNumber": 284
77012
77208
  },
77013
77209
  {
77014
- "__docId__": 2954,
77210
+ "__docId__": 2960,
77015
77211
  "kind": "testIt",
77016
77212
  "name": "it58",
77017
77213
  "testId": 58,
@@ -77024,7 +77220,7 @@
77024
77220
  "lineNumber": 298
77025
77221
  },
77026
77222
  {
77027
- "__docId__": 2955,
77223
+ "__docId__": 2961,
77028
77224
  "kind": "testIt",
77029
77225
  "name": "it59",
77030
77226
  "testId": 59,
@@ -77037,7 +77233,7 @@
77037
77233
  "lineNumber": 303
77038
77234
  },
77039
77235
  {
77040
- "__docId__": 2956,
77236
+ "__docId__": 2962,
77041
77237
  "kind": "testIt",
77042
77238
  "name": "it60",
77043
77239
  "testId": 60,
@@ -77050,7 +77246,7 @@
77050
77246
  "lineNumber": 308
77051
77247
  },
77052
77248
  {
77053
- "__docId__": 2957,
77249
+ "__docId__": 2963,
77054
77250
  "kind": "testIt",
77055
77251
  "name": "it61",
77056
77252
  "testId": 61,
@@ -77063,7 +77259,7 @@
77063
77259
  "lineNumber": 312
77064
77260
  },
77065
77261
  {
77066
- "__docId__": 2958,
77262
+ "__docId__": 2964,
77067
77263
  "kind": "testFile",
77068
77264
  "name": "client/provision/devices.provision.spec.js",
77069
77265
  "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});",
@@ -77074,7 +77270,7 @@
77074
77270
  "lineNumber": 1
77075
77271
  },
77076
77272
  {
77077
- "__docId__": 2959,
77273
+ "__docId__": 2965,
77078
77274
  "kind": "testDescribe",
77079
77275
  "name": "describe62",
77080
77276
  "testId": 62,
@@ -77096,7 +77292,7 @@
77096
77292
  ]
77097
77293
  },
77098
77294
  {
77099
- "__docId__": 2960,
77295
+ "__docId__": 2966,
77100
77296
  "kind": "testIt",
77101
77297
  "name": "it63",
77102
77298
  "testId": 63,
@@ -77109,7 +77305,7 @@
77109
77305
  "lineNumber": 5
77110
77306
  },
77111
77307
  {
77112
- "__docId__": 2961,
77308
+ "__docId__": 2967,
77113
77309
  "kind": "testFile",
77114
77310
  "name": "client/searching/FilterBuilder.spec.js",
77115
77311
  "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});",
@@ -77120,7 +77316,7 @@
77120
77316
  "lineNumber": 1
77121
77317
  },
77122
77318
  {
77123
- "__docId__": 2962,
77319
+ "__docId__": 2968,
77124
77320
  "kind": "testDescribe",
77125
77321
  "name": "describe64",
77126
77322
  "testId": 64,
@@ -77142,7 +77338,7 @@
77142
77338
  ]
77143
77339
  },
77144
77340
  {
77145
- "__docId__": 2963,
77341
+ "__docId__": 2969,
77146
77342
  "kind": "testIt",
77147
77343
  "name": "it65",
77148
77344
  "testId": 65,
@@ -77155,7 +77351,7 @@
77155
77351
  "lineNumber": 6
77156
77352
  },
77157
77353
  {
77158
- "__docId__": 2964,
77354
+ "__docId__": 2970,
77159
77355
  "kind": "testIt",
77160
77356
  "name": "it66",
77161
77357
  "testId": 66,
@@ -77177,7 +77373,7 @@
77177
77373
  ]
77178
77374
  },
77179
77375
  {
77180
- "__docId__": 2965,
77376
+ "__docId__": 2971,
77181
77377
  "kind": "testIt",
77182
77378
  "name": "it67",
77183
77379
  "testId": 67,
@@ -77199,7 +77395,7 @@
77199
77395
  ]
77200
77396
  },
77201
77397
  {
77202
- "__docId__": 2966,
77398
+ "__docId__": 2972,
77203
77399
  "kind": "testIt",
77204
77400
  "name": "it68",
77205
77401
  "testId": 68,
@@ -77221,7 +77417,7 @@
77221
77417
  ]
77222
77418
  },
77223
77419
  {
77224
- "__docId__": 2967,
77420
+ "__docId__": 2973,
77225
77421
  "kind": "testIt",
77226
77422
  "name": "it69",
77227
77423
  "testId": 69,
@@ -77243,7 +77439,7 @@
77243
77439
  ]
77244
77440
  },
77245
77441
  {
77246
- "__docId__": 2968,
77442
+ "__docId__": 2974,
77247
77443
  "kind": "testFile",
77248
77444
  "name": "client/searching/datapoints.search.spec.js",
77249
77445
  "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});",
@@ -77254,7 +77450,7 @@
77254
77450
  "lineNumber": 1
77255
77451
  },
77256
77452
  {
77257
- "__docId__": 2969,
77453
+ "__docId__": 2975,
77258
77454
  "kind": "testDescribe",
77259
77455
  "name": "describe70",
77260
77456
  "testId": 70,
@@ -77276,7 +77472,7 @@
77276
77472
  ]
77277
77473
  },
77278
77474
  {
77279
- "__docId__": 2970,
77475
+ "__docId__": 2976,
77280
77476
  "kind": "testIt",
77281
77477
  "name": "it71",
77282
77478
  "testId": 71,
@@ -77289,7 +77485,7 @@
77289
77485
  "lineNumber": 5
77290
77486
  },
77291
77487
  {
77292
- "__docId__": 2971,
77488
+ "__docId__": 2977,
77293
77489
  "kind": "testDescribe",
77294
77490
  "name": "describe72",
77295
77491
  "testId": 72,
@@ -77302,7 +77498,7 @@
77302
77498
  "lineNumber": 10
77303
77499
  },
77304
77500
  {
77305
- "__docId__": 2972,
77501
+ "__docId__": 2978,
77306
77502
  "kind": "testIt",
77307
77503
  "name": "it73",
77308
77504
  "testId": 73,
@@ -77315,7 +77511,7 @@
77315
77511
  "lineNumber": 11
77316
77512
  },
77317
77513
  {
77318
- "__docId__": 2973,
77514
+ "__docId__": 2979,
77319
77515
  "kind": "testIt",
77320
77516
  "name": "it74",
77321
77517
  "testId": 74,
@@ -77328,7 +77524,7 @@
77328
77524
  "lineNumber": 16
77329
77525
  },
77330
77526
  {
77331
- "__docId__": 2974,
77527
+ "__docId__": 2980,
77332
77528
  "kind": "testIt",
77333
77529
  "name": "it75",
77334
77530
  "testId": 75,
@@ -77341,7 +77537,7 @@
77341
77537
  "lineNumber": 21
77342
77538
  },
77343
77539
  {
77344
- "__docId__": 2975,
77540
+ "__docId__": 2981,
77345
77541
  "kind": "testIt",
77346
77542
  "name": "it76",
77347
77543
  "testId": 76,
@@ -77354,7 +77550,7 @@
77354
77550
  "lineNumber": 26
77355
77551
  },
77356
77552
  {
77357
- "__docId__": 2976,
77553
+ "__docId__": 2982,
77358
77554
  "kind": "testIt",
77359
77555
  "name": "it77",
77360
77556
  "testId": 77,
@@ -77367,7 +77563,7 @@
77367
77563
  "lineNumber": 31
77368
77564
  },
77369
77565
  {
77370
- "__docId__": 2977,
77566
+ "__docId__": 2983,
77371
77567
  "kind": "testIt",
77372
77568
  "name": "it78",
77373
77569
  "testId": 78,
@@ -77380,7 +77576,7 @@
77380
77576
  "lineNumber": 36
77381
77577
  },
77382
77578
  {
77383
- "__docId__": 2978,
77579
+ "__docId__": 2984,
77384
77580
  "kind": "testIt",
77385
77581
  "name": "it79",
77386
77582
  "testId": 79,
@@ -77393,7 +77589,7 @@
77393
77589
  "lineNumber": 42
77394
77590
  },
77395
77591
  {
77396
- "__docId__": 2979,
77592
+ "__docId__": 2985,
77397
77593
  "kind": "testDescribe",
77398
77594
  "name": "describe80",
77399
77595
  "testId": 80,
@@ -77406,7 +77602,7 @@
77406
77602
  "lineNumber": 52
77407
77603
  },
77408
77604
  {
77409
- "__docId__": 2980,
77605
+ "__docId__": 2986,
77410
77606
  "kind": "testIt",
77411
77607
  "name": "it81",
77412
77608
  "testId": 81,
@@ -77419,7 +77615,7 @@
77419
77615
  "lineNumber": 53
77420
77616
  },
77421
77617
  {
77422
- "__docId__": 2981,
77618
+ "__docId__": 2987,
77423
77619
  "kind": "testIt",
77424
77620
  "name": "it82",
77425
77621
  "testId": 82,
@@ -77432,7 +77628,7 @@
77432
77628
  "lineNumber": 60
77433
77629
  },
77434
77630
  {
77435
- "__docId__": 2982,
77631
+ "__docId__": 2988,
77436
77632
  "kind": "testIt",
77437
77633
  "name": "it83",
77438
77634
  "testId": 83,
@@ -77445,7 +77641,7 @@
77445
77641
  "lineNumber": 68
77446
77642
  },
77447
77643
  {
77448
- "__docId__": 2983,
77644
+ "__docId__": 2989,
77449
77645
  "kind": "testIt",
77450
77646
  "name": "it84",
77451
77647
  "testId": 84,
@@ -77458,7 +77654,7 @@
77458
77654
  "lineNumber": 75
77459
77655
  },
77460
77656
  {
77461
- "__docId__": 2984,
77657
+ "__docId__": 2990,
77462
77658
  "kind": "testIt",
77463
77659
  "name": "it85",
77464
77660
  "testId": 85,
@@ -77471,7 +77667,7 @@
77471
77667
  "lineNumber": 82
77472
77668
  },
77473
77669
  {
77474
- "__docId__": 2985,
77670
+ "__docId__": 2991,
77475
77671
  "kind": "testIt",
77476
77672
  "name": "it86",
77477
77673
  "testId": 86,
@@ -77484,7 +77680,7 @@
77484
77680
  "lineNumber": 91
77485
77681
  },
77486
77682
  {
77487
- "__docId__": 2986,
77683
+ "__docId__": 2992,
77488
77684
  "kind": "testFile",
77489
77685
  "name": "client/searching/module.searching.spec.js",
77490
77686
  "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",
@@ -77495,7 +77691,7 @@
77495
77691
  "lineNumber": 1
77496
77692
  },
77497
77693
  {
77498
- "__docId__": 2987,
77694
+ "__docId__": 2993,
77499
77695
  "kind": "testDescribe",
77500
77696
  "name": "describe87",
77501
77697
  "testId": 87,
@@ -77517,7 +77713,7 @@
77517
77713
  ]
77518
77714
  },
77519
77715
  {
77520
- "__docId__": 2988,
77716
+ "__docId__": 2994,
77521
77717
  "kind": "testIt",
77522
77718
  "name": "it88",
77523
77719
  "testId": 88,
@@ -77539,7 +77735,7 @@
77539
77735
  ]
77540
77736
  },
77541
77737
  {
77542
- "__docId__": 2989,
77738
+ "__docId__": 2995,
77543
77739
  "kind": "testIt",
77544
77740
  "name": "it89",
77545
77741
  "testId": 89,
@@ -77561,7 +77757,7 @@
77561
77757
  ]
77562
77758
  },
77563
77759
  {
77564
- "__docId__": 2990,
77760
+ "__docId__": 2996,
77565
77761
  "kind": "testIt",
77566
77762
  "name": "it90",
77567
77763
  "testId": 90,
@@ -77583,7 +77779,7 @@
77583
77779
  ]
77584
77780
  },
77585
77781
  {
77586
- "__docId__": 2991,
77782
+ "__docId__": 2997,
77587
77783
  "kind": "testIt",
77588
77784
  "name": "it91",
77589
77785
  "testId": 91,
@@ -77605,7 +77801,7 @@
77605
77801
  ]
77606
77802
  },
77607
77803
  {
77608
- "__docId__": 2992,
77804
+ "__docId__": 2998,
77609
77805
  "kind": "testIt",
77610
77806
  "name": "it92",
77611
77807
  "testId": 92,
@@ -77627,7 +77823,7 @@
77627
77823
  ]
77628
77824
  },
77629
77825
  {
77630
- "__docId__": 2993,
77826
+ "__docId__": 2999,
77631
77827
  "kind": "testIt",
77632
77828
  "name": "it93",
77633
77829
  "testId": 93,
@@ -77649,7 +77845,7 @@
77649
77845
  ]
77650
77846
  },
77651
77847
  {
77652
- "__docId__": 2994,
77848
+ "__docId__": 3000,
77653
77849
  "kind": "testIt",
77654
77850
  "name": "it94",
77655
77851
  "testId": 94,
@@ -77671,7 +77867,7 @@
77671
77867
  ]
77672
77868
  },
77673
77869
  {
77674
- "__docId__": 2995,
77870
+ "__docId__": 3001,
77675
77871
  "kind": "testIt",
77676
77872
  "name": "it95",
77677
77873
  "testId": 95,
@@ -77693,7 +77889,7 @@
77693
77889
  ]
77694
77890
  },
77695
77891
  {
77696
- "__docId__": 2996,
77892
+ "__docId__": 3002,
77697
77893
  "kind": "testFile",
77698
77894
  "name": "client/searching/rawsearch.spec.js",
77699
77895
  "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});",
@@ -77704,7 +77900,7 @@
77704
77900
  "lineNumber": 1
77705
77901
  },
77706
77902
  {
77707
- "__docId__": 2997,
77903
+ "__docId__": 3003,
77708
77904
  "kind": "testDescribe",
77709
77905
  "name": "describe96",
77710
77906
  "testId": 96,
@@ -77726,7 +77922,7 @@
77726
77922
  ]
77727
77923
  },
77728
77924
  {
77729
- "__docId__": 2998,
77925
+ "__docId__": 3004,
77730
77926
  "kind": "testIt",
77731
77927
  "name": "it97",
77732
77928
  "testId": 97,
@@ -77739,7 +77935,7 @@
77739
77935
  "lineNumber": 5
77740
77936
  },
77741
77937
  {
77742
- "__docId__": 2999,
77938
+ "__docId__": 3005,
77743
77939
  "kind": "testIt",
77744
77940
  "name": "it98",
77745
77941
  "testId": 98,
@@ -77761,7 +77957,7 @@
77761
77957
  ]
77762
77958
  },
77763
77959
  {
77764
- "__docId__": 3000,
77960
+ "__docId__": 3006,
77765
77961
  "kind": "testIt",
77766
77962
  "name": "it99",
77767
77963
  "testId": 99,
@@ -77783,7 +77979,7 @@
77783
77979
  ]
77784
77980
  },
77785
77981
  {
77786
- "__docId__": 3001,
77982
+ "__docId__": 3007,
77787
77983
  "kind": "testIt",
77788
77984
  "name": "it100",
77789
77985
  "testId": 100,
@@ -77805,7 +78001,7 @@
77805
78001
  ]
77806
78002
  },
77807
78003
  {
77808
- "__docId__": 3002,
78004
+ "__docId__": 3008,
77809
78005
  "kind": "testIt",
77810
78006
  "name": "it101",
77811
78007
  "testId": 101,
@@ -77827,7 +78023,7 @@
77827
78023
  ]
77828
78024
  },
77829
78025
  {
77830
- "__docId__": 3003,
78026
+ "__docId__": 3009,
77831
78027
  "kind": "testIt",
77832
78028
  "name": "it102",
77833
78029
  "testId": 102,
@@ -77849,7 +78045,7 @@
77849
78045
  ]
77850
78046
  },
77851
78047
  {
77852
- "__docId__": 3004,
78048
+ "__docId__": 3010,
77853
78049
  "kind": "testIt",
77854
78050
  "name": "it103",
77855
78051
  "testId": 103,
@@ -77871,7 +78067,7 @@
77871
78067
  ]
77872
78068
  },
77873
78069
  {
77874
- "__docId__": 3005,
78070
+ "__docId__": 3011,
77875
78071
  "kind": "testFile",
77876
78072
  "name": "client/searching/search.spec.js",
77877
78073
  "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});",
@@ -77882,7 +78078,7 @@
77882
78078
  "lineNumber": 1
77883
78079
  },
77884
78080
  {
77885
- "__docId__": 3006,
78081
+ "__docId__": 3012,
77886
78082
  "kind": "testDescribe",
77887
78083
  "name": "describe104",
77888
78084
  "testId": 104,
@@ -77934,7 +78130,7 @@
77934
78130
  ]
77935
78131
  },
77936
78132
  {
77937
- "__docId__": 3007,
78133
+ "__docId__": 3013,
77938
78134
  "kind": "testDescribe",
77939
78135
  "name": "describe105",
77940
78136
  "testId": 105,
@@ -77956,7 +78152,7 @@
77956
78152
  ]
77957
78153
  },
77958
78154
  {
77959
- "__docId__": 3008,
78155
+ "__docId__": 3014,
77960
78156
  "kind": "testIt",
77961
78157
  "name": "it106",
77962
78158
  "testId": 106,
@@ -77978,7 +78174,7 @@
77978
78174
  ]
77979
78175
  },
77980
78176
  {
77981
- "__docId__": 3009,
78177
+ "__docId__": 3015,
77982
78178
  "kind": "testIt",
77983
78179
  "name": "it107",
77984
78180
  "testId": 107,
@@ -78000,7 +78196,7 @@
78000
78196
  ]
78001
78197
  },
78002
78198
  {
78003
- "__docId__": 3010,
78199
+ "__docId__": 3016,
78004
78200
  "kind": "testIt",
78005
78201
  "name": "it108",
78006
78202
  "testId": 108,
@@ -78022,7 +78218,7 @@
78022
78218
  ]
78023
78219
  },
78024
78220
  {
78025
- "__docId__": 3011,
78221
+ "__docId__": 3017,
78026
78222
  "kind": "testIt",
78027
78223
  "name": "it109",
78028
78224
  "testId": 109,
@@ -78044,7 +78240,7 @@
78044
78240
  ]
78045
78241
  },
78046
78242
  {
78047
- "__docId__": 3012,
78243
+ "__docId__": 3018,
78048
78244
  "kind": "testDescribe",
78049
78245
  "name": "describe110",
78050
78246
  "testId": 110,
@@ -78066,7 +78262,7 @@
78066
78262
  ]
78067
78263
  },
78068
78264
  {
78069
- "__docId__": 3013,
78265
+ "__docId__": 3019,
78070
78266
  "kind": "testDescribe",
78071
78267
  "name": "describe111",
78072
78268
  "testId": 111,
@@ -78088,7 +78284,7 @@
78088
78284
  ]
78089
78285
  },
78090
78286
  {
78091
- "__docId__": 3014,
78287
+ "__docId__": 3020,
78092
78288
  "kind": "testIt",
78093
78289
  "name": "it112",
78094
78290
  "testId": 112,
@@ -78125,7 +78321,7 @@
78125
78321
  ]
78126
78322
  },
78127
78323
  {
78128
- "__docId__": 3015,
78324
+ "__docId__": 3021,
78129
78325
  "kind": "testIt",
78130
78326
  "name": "it113",
78131
78327
  "testId": 113,
@@ -78162,7 +78358,7 @@
78162
78358
  ]
78163
78359
  },
78164
78360
  {
78165
- "__docId__": 3016,
78361
+ "__docId__": 3022,
78166
78362
  "kind": "testIt",
78167
78363
  "name": "it114",
78168
78364
  "testId": 114,
@@ -78199,7 +78395,7 @@
78199
78395
  ]
78200
78396
  },
78201
78397
  {
78202
- "__docId__": 3017,
78398
+ "__docId__": 3023,
78203
78399
  "kind": "testDescribe",
78204
78400
  "name": "describe115",
78205
78401
  "testId": 115,
@@ -78212,7 +78408,7 @@
78212
78408
  "lineNumber": 71
78213
78409
  },
78214
78410
  {
78215
- "__docId__": 3018,
78411
+ "__docId__": 3024,
78216
78412
  "kind": "testIt",
78217
78413
  "name": "it116",
78218
78414
  "testId": 116,
@@ -78249,7 +78445,7 @@
78249
78445
  ]
78250
78446
  },
78251
78447
  {
78252
- "__docId__": 3019,
78448
+ "__docId__": 3025,
78253
78449
  "kind": "testIt",
78254
78450
  "name": "it117",
78255
78451
  "testId": 117,
@@ -78286,7 +78482,7 @@
78286
78482
  ]
78287
78483
  },
78288
78484
  {
78289
- "__docId__": 3020,
78485
+ "__docId__": 3026,
78290
78486
  "kind": "testIt",
78291
78487
  "name": "it118",
78292
78488
  "testId": 118,
@@ -78323,7 +78519,7 @@
78323
78519
  ]
78324
78520
  },
78325
78521
  {
78326
- "__docId__": 3021,
78522
+ "__docId__": 3027,
78327
78523
  "kind": "testDescribe",
78328
78524
  "name": "describe119",
78329
78525
  "testId": 119,
@@ -78336,7 +78532,7 @@
78336
78532
  "lineNumber": 97
78337
78533
  },
78338
78534
  {
78339
- "__docId__": 3022,
78535
+ "__docId__": 3028,
78340
78536
  "kind": "testIt",
78341
78537
  "name": "it120",
78342
78538
  "testId": 120,
@@ -78373,7 +78569,7 @@
78373
78569
  ]
78374
78570
  },
78375
78571
  {
78376
- "__docId__": 3023,
78572
+ "__docId__": 3029,
78377
78573
  "kind": "testIt",
78378
78574
  "name": "it121",
78379
78575
  "testId": 121,
@@ -78410,7 +78606,7 @@
78410
78606
  ]
78411
78607
  },
78412
78608
  {
78413
- "__docId__": 3024,
78609
+ "__docId__": 3030,
78414
78610
  "kind": "testIt",
78415
78611
  "name": "it122",
78416
78612
  "testId": 122,
@@ -78447,7 +78643,7 @@
78447
78643
  ]
78448
78644
  },
78449
78645
  {
78450
- "__docId__": 3025,
78646
+ "__docId__": 3031,
78451
78647
  "kind": "testDescribe",
78452
78648
  "name": "describe123",
78453
78649
  "testId": 123,
@@ -78484,7 +78680,7 @@
78484
78680
  ]
78485
78681
  },
78486
78682
  {
78487
- "__docId__": 3026,
78683
+ "__docId__": 3032,
78488
78684
  "kind": "testIt",
78489
78685
  "name": "it124",
78490
78686
  "testId": 124,
@@ -78497,7 +78693,7 @@
78497
78693
  "lineNumber": 129
78498
78694
  },
78499
78695
  {
78500
- "__docId__": 3027,
78696
+ "__docId__": 3033,
78501
78697
  "kind": "testDescribe",
78502
78698
  "name": "describe125",
78503
78699
  "testId": 125,
@@ -78519,7 +78715,7 @@
78519
78715
  ]
78520
78716
  },
78521
78717
  {
78522
- "__docId__": 3028,
78718
+ "__docId__": 3034,
78523
78719
  "kind": "testIt",
78524
78720
  "name": "it126",
78525
78721
  "testId": 126,
@@ -78532,7 +78728,7 @@
78532
78728
  "lineNumber": 141
78533
78729
  },
78534
78730
  {
78535
- "__docId__": 3029,
78731
+ "__docId__": 3035,
78536
78732
  "kind": "testIt",
78537
78733
  "name": "it127",
78538
78734
  "testId": 127,
@@ -78545,7 +78741,7 @@
78545
78741
  "lineNumber": 144
78546
78742
  },
78547
78743
  {
78548
- "__docId__": 3030,
78744
+ "__docId__": 3036,
78549
78745
  "kind": "testIt",
78550
78746
  "name": "it128",
78551
78747
  "testId": 128,
@@ -78558,7 +78754,7 @@
78558
78754
  "lineNumber": 147
78559
78755
  },
78560
78756
  {
78561
- "__docId__": 3031,
78757
+ "__docId__": 3037,
78562
78758
  "kind": "testIt",
78563
78759
  "name": "it129",
78564
78760
  "testId": 129,
@@ -78571,7 +78767,7 @@
78571
78767
  "lineNumber": 150
78572
78768
  },
78573
78769
  {
78574
- "__docId__": 3032,
78770
+ "__docId__": 3038,
78575
78771
  "kind": "testDescribe",
78576
78772
  "name": "describe130",
78577
78773
  "testId": 130,
@@ -78593,7 +78789,7 @@
78593
78789
  ]
78594
78790
  },
78595
78791
  {
78596
- "__docId__": 3033,
78792
+ "__docId__": 3039,
78597
78793
  "kind": "testIt",
78598
78794
  "name": "it131",
78599
78795
  "testId": 131,
@@ -78615,7 +78811,7 @@
78615
78811
  ]
78616
78812
  },
78617
78813
  {
78618
- "__docId__": 3034,
78814
+ "__docId__": 3040,
78619
78815
  "kind": "testIt",
78620
78816
  "name": "it132",
78621
78817
  "testId": 132,
@@ -78637,7 +78833,7 @@
78637
78833
  ]
78638
78834
  },
78639
78835
  {
78640
- "__docId__": 3035,
78836
+ "__docId__": 3041,
78641
78837
  "kind": "testIt",
78642
78838
  "name": "it133",
78643
78839
  "testId": 133,
@@ -78659,7 +78855,7 @@
78659
78855
  ]
78660
78856
  },
78661
78857
  {
78662
- "__docId__": 3036,
78858
+ "__docId__": 3042,
78663
78859
  "kind": "testDescribe",
78664
78860
  "name": "describe134",
78665
78861
  "testId": 134,
@@ -78681,7 +78877,7 @@
78681
78877
  ]
78682
78878
  },
78683
78879
  {
78684
- "__docId__": 3037,
78880
+ "__docId__": 3043,
78685
78881
  "kind": "testIt",
78686
78882
  "name": "it135",
78687
78883
  "testId": 135,
@@ -78703,7 +78899,7 @@
78703
78899
  ]
78704
78900
  },
78705
78901
  {
78706
- "__docId__": 3038,
78902
+ "__docId__": 3044,
78707
78903
  "kind": "testIt",
78708
78904
  "name": "it136",
78709
78905
  "testId": 136,
@@ -78725,7 +78921,7 @@
78725
78921
  ]
78726
78922
  },
78727
78923
  {
78728
- "__docId__": 3039,
78924
+ "__docId__": 3045,
78729
78925
  "kind": "testIt",
78730
78926
  "name": "it137",
78731
78927
  "testId": 137,
@@ -78747,7 +78943,7 @@
78747
78943
  ]
78748
78944
  },
78749
78945
  {
78750
- "__docId__": 3040,
78946
+ "__docId__": 3046,
78751
78947
  "kind": "testDescribe",
78752
78948
  "name": "describe138",
78753
78949
  "testId": 138,
@@ -78769,7 +78965,7 @@
78769
78965
  ]
78770
78966
  },
78771
78967
  {
78772
- "__docId__": 3041,
78968
+ "__docId__": 3047,
78773
78969
  "kind": "testIt",
78774
78970
  "name": "it139",
78775
78971
  "testId": 139,
@@ -78791,7 +78987,7 @@
78791
78987
  ]
78792
78988
  },
78793
78989
  {
78794
- "__docId__": 3042,
78990
+ "__docId__": 3048,
78795
78991
  "kind": "testIt",
78796
78992
  "name": "it140",
78797
78993
  "testId": 140,
@@ -78813,7 +79009,7 @@
78813
79009
  ]
78814
79010
  },
78815
79011
  {
78816
- "__docId__": 3043,
79012
+ "__docId__": 3049,
78817
79013
  "kind": "testIt",
78818
79014
  "name": "it141",
78819
79015
  "testId": 141,
@@ -78835,7 +79031,7 @@
78835
79031
  ]
78836
79032
  },
78837
79033
  {
78838
- "__docId__": 3044,
79034
+ "__docId__": 3050,
78839
79035
  "kind": "testDescribe",
78840
79036
  "name": "describe142",
78841
79037
  "testId": 142,
@@ -78857,7 +79053,7 @@
78857
79053
  ]
78858
79054
  },
78859
79055
  {
78860
- "__docId__": 3045,
79056
+ "__docId__": 3051,
78861
79057
  "kind": "testDescribe",
78862
79058
  "name": "describe143",
78863
79059
  "testId": 143,
@@ -78870,7 +79066,7 @@
78870
79066
  "lineNumber": 202
78871
79067
  },
78872
79068
  {
78873
- "__docId__": 3046,
79069
+ "__docId__": 3052,
78874
79070
  "kind": "testIt",
78875
79071
  "name": "it144",
78876
79072
  "testId": 144,
@@ -78897,7 +79093,7 @@
78897
79093
  ]
78898
79094
  },
78899
79095
  {
78900
- "__docId__": 3047,
79096
+ "__docId__": 3053,
78901
79097
  "kind": "testIt",
78902
79098
  "name": "it145",
78903
79099
  "testId": 145,
@@ -78924,7 +79120,7 @@
78924
79120
  ]
78925
79121
  },
78926
79122
  {
78927
- "__docId__": 3048,
79123
+ "__docId__": 3054,
78928
79124
  "kind": "testIt",
78929
79125
  "name": "it146",
78930
79126
  "testId": 146,
@@ -78951,7 +79147,7 @@
78951
79147
  ]
78952
79148
  },
78953
79149
  {
78954
- "__docId__": 3049,
79150
+ "__docId__": 3055,
78955
79151
  "kind": "testDescribe",
78956
79152
  "name": "describe147",
78957
79153
  "testId": 147,
@@ -78978,7 +79174,7 @@
78978
79174
  ]
78979
79175
  },
78980
79176
  {
78981
- "__docId__": 3050,
79177
+ "__docId__": 3056,
78982
79178
  "kind": "testIt",
78983
79179
  "name": "it148",
78984
79180
  "testId": 148,
@@ -79005,7 +79201,7 @@
79005
79201
  ]
79006
79202
  },
79007
79203
  {
79008
- "__docId__": 3051,
79204
+ "__docId__": 3057,
79009
79205
  "kind": "testIt",
79010
79206
  "name": "it149",
79011
79207
  "testId": 149,
@@ -79032,7 +79228,7 @@
79032
79228
  ]
79033
79229
  },
79034
79230
  {
79035
- "__docId__": 3052,
79231
+ "__docId__": 3058,
79036
79232
  "kind": "testIt",
79037
79233
  "name": "it150",
79038
79234
  "testId": 150,
@@ -79059,7 +79255,7 @@
79059
79255
  ]
79060
79256
  },
79061
79257
  {
79062
- "__docId__": 3053,
79258
+ "__docId__": 3059,
79063
79259
  "kind": "testDescribe",
79064
79260
  "name": "describe151",
79065
79261
  "testId": 151,
@@ -79072,7 +79268,7 @@
79072
79268
  "lineNumber": 252
79073
79269
  },
79074
79270
  {
79075
- "__docId__": 3054,
79271
+ "__docId__": 3060,
79076
79272
  "kind": "testIt",
79077
79273
  "name": "it152",
79078
79274
  "testId": 152,
@@ -79099,7 +79295,7 @@
79099
79295
  ]
79100
79296
  },
79101
79297
  {
79102
- "__docId__": 3055,
79298
+ "__docId__": 3061,
79103
79299
  "kind": "testIt",
79104
79300
  "name": "it153",
79105
79301
  "testId": 153,
@@ -79126,7 +79322,7 @@
79126
79322
  ]
79127
79323
  },
79128
79324
  {
79129
- "__docId__": 3056,
79325
+ "__docId__": 3062,
79130
79326
  "kind": "testIt",
79131
79327
  "name": "it154",
79132
79328
  "testId": 154,
@@ -79153,7 +79349,7 @@
79153
79349
  ]
79154
79350
  },
79155
79351
  {
79156
- "__docId__": 3057,
79352
+ "__docId__": 3063,
79157
79353
  "kind": "testDescribe",
79158
79354
  "name": "describe155",
79159
79355
  "testId": 155,
@@ -79166,7 +79362,7 @@
79166
79362
  "lineNumber": 275
79167
79363
  },
79168
79364
  {
79169
- "__docId__": 3058,
79365
+ "__docId__": 3064,
79170
79366
  "kind": "testIt",
79171
79367
  "name": "it156",
79172
79368
  "testId": 156,
@@ -79193,7 +79389,7 @@
79193
79389
  ]
79194
79390
  },
79195
79391
  {
79196
- "__docId__": 3059,
79392
+ "__docId__": 3065,
79197
79393
  "kind": "testIt",
79198
79394
  "name": "it157",
79199
79395
  "testId": 157,
@@ -79220,7 +79416,7 @@
79220
79416
  ]
79221
79417
  },
79222
79418
  {
79223
- "__docId__": 3060,
79419
+ "__docId__": 3066,
79224
79420
  "kind": "testIt",
79225
79421
  "name": "it158",
79226
79422
  "testId": 158,
@@ -79247,7 +79443,7 @@
79247
79443
  ]
79248
79444
  },
79249
79445
  {
79250
- "__docId__": 3061,
79446
+ "__docId__": 3067,
79251
79447
  "kind": "testDescribe",
79252
79448
  "name": "describe159",
79253
79449
  "testId": 159,
@@ -79260,7 +79456,7 @@
79260
79456
  "lineNumber": 300
79261
79457
  },
79262
79458
  {
79263
- "__docId__": 3062,
79459
+ "__docId__": 3068,
79264
79460
  "kind": "testIt",
79265
79461
  "name": "it160",
79266
79462
  "testId": 160,
@@ -79287,7 +79483,7 @@
79287
79483
  ]
79288
79484
  },
79289
79485
  {
79290
- "__docId__": 3063,
79486
+ "__docId__": 3069,
79291
79487
  "kind": "testIt",
79292
79488
  "name": "it161",
79293
79489
  "testId": 161,
@@ -79314,7 +79510,7 @@
79314
79510
  ]
79315
79511
  },
79316
79512
  {
79317
- "__docId__": 3064,
79513
+ "__docId__": 3070,
79318
79514
  "kind": "testIt",
79319
79515
  "name": "it162",
79320
79516
  "testId": 162,
@@ -79341,7 +79537,7 @@
79341
79537
  ]
79342
79538
  },
79343
79539
  {
79344
- "__docId__": 3065,
79540
+ "__docId__": 3071,
79345
79541
  "kind": "testDescribe",
79346
79542
  "name": "describe163",
79347
79543
  "testId": 163,
@@ -79354,7 +79550,7 @@
79354
79550
  "lineNumber": 325
79355
79551
  },
79356
79552
  {
79357
- "__docId__": 3066,
79553
+ "__docId__": 3072,
79358
79554
  "kind": "testIt",
79359
79555
  "name": "it164",
79360
79556
  "testId": 164,
@@ -79376,7 +79572,7 @@
79376
79572
  ]
79377
79573
  },
79378
79574
  {
79379
- "__docId__": 3067,
79575
+ "__docId__": 3073,
79380
79576
  "kind": "testIt",
79381
79577
  "name": "it165",
79382
79578
  "testId": 165,
@@ -79398,7 +79594,7 @@
79398
79594
  ]
79399
79595
  },
79400
79596
  {
79401
- "__docId__": 3068,
79597
+ "__docId__": 3074,
79402
79598
  "kind": "testIt",
79403
79599
  "name": "it166",
79404
79600
  "testId": 166,
@@ -79420,7 +79616,7 @@
79420
79616
  ]
79421
79617
  },
79422
79618
  {
79423
- "__docId__": 3069,
79619
+ "__docId__": 3075,
79424
79620
  "kind": "testDescribe",
79425
79621
  "name": "describe167",
79426
79622
  "testId": 167,
@@ -79433,7 +79629,7 @@
79433
79629
  "lineNumber": 345
79434
79630
  },
79435
79631
  {
79436
- "__docId__": 3070,
79632
+ "__docId__": 3076,
79437
79633
  "kind": "testIt",
79438
79634
  "name": "it168",
79439
79635
  "testId": 168,
@@ -79455,7 +79651,7 @@
79455
79651
  ]
79456
79652
  },
79457
79653
  {
79458
- "__docId__": 3071,
79654
+ "__docId__": 3077,
79459
79655
  "kind": "testIt",
79460
79656
  "name": "it169",
79461
79657
  "testId": 169,
@@ -79477,7 +79673,7 @@
79477
79673
  ]
79478
79674
  },
79479
79675
  {
79480
- "__docId__": 3072,
79676
+ "__docId__": 3078,
79481
79677
  "kind": "testIt",
79482
79678
  "name": "it170",
79483
79679
  "testId": 170,
@@ -79499,7 +79695,7 @@
79499
79695
  ]
79500
79696
  },
79501
79697
  {
79502
- "__docId__": 3073,
79698
+ "__docId__": 3079,
79503
79699
  "kind": "testIt",
79504
79700
  "name": "it171",
79505
79701
  "testId": 171,
@@ -79521,7 +79717,7 @@
79521
79717
  ]
79522
79718
  },
79523
79719
  {
79524
- "__docId__": 3074,
79720
+ "__docId__": 3080,
79525
79721
  "kind": "testDescribe",
79526
79722
  "name": "describe172",
79527
79723
  "testId": 172,
@@ -79534,7 +79730,7 @@
79534
79730
  "lineNumber": 362
79535
79731
  },
79536
79732
  {
79537
- "__docId__": 3075,
79733
+ "__docId__": 3081,
79538
79734
  "kind": "testIt",
79539
79735
  "name": "it173",
79540
79736
  "testId": 173,
@@ -79556,7 +79752,7 @@
79556
79752
  ]
79557
79753
  },
79558
79754
  {
79559
- "__docId__": 3076,
79755
+ "__docId__": 3082,
79560
79756
  "kind": "testIt",
79561
79757
  "name": "it174",
79562
79758
  "testId": 174,
@@ -79578,7 +79774,7 @@
79578
79774
  ]
79579
79775
  },
79580
79776
  {
79581
- "__docId__": 3077,
79777
+ "__docId__": 3083,
79582
79778
  "kind": "testIt",
79583
79779
  "name": "it175",
79584
79780
  "testId": 175,
@@ -79600,7 +79796,7 @@
79600
79796
  ]
79601
79797
  },
79602
79798
  {
79603
- "__docId__": 3078,
79799
+ "__docId__": 3084,
79604
79800
  "kind": "testIt",
79605
79801
  "name": "it176",
79606
79802
  "testId": 176,
@@ -79622,7 +79818,7 @@
79622
79818
  ]
79623
79819
  },
79624
79820
  {
79625
- "__docId__": 3079,
79821
+ "__docId__": 3085,
79626
79822
  "kind": "testDescribe",
79627
79823
  "name": "describe177",
79628
79824
  "testId": 177,
@@ -79635,7 +79831,7 @@
79635
79831
  "lineNumber": 382
79636
79832
  },
79637
79833
  {
79638
- "__docId__": 3080,
79834
+ "__docId__": 3086,
79639
79835
  "kind": "testIt",
79640
79836
  "name": "it178",
79641
79837
  "testId": 178,
@@ -79657,7 +79853,7 @@
79657
79853
  ]
79658
79854
  },
79659
79855
  {
79660
- "__docId__": 3081,
79856
+ "__docId__": 3087,
79661
79857
  "kind": "testIt",
79662
79858
  "name": "it179",
79663
79859
  "testId": 179,
@@ -79679,7 +79875,7 @@
79679
79875
  ]
79680
79876
  },
79681
79877
  {
79682
- "__docId__": 3082,
79878
+ "__docId__": 3088,
79683
79879
  "kind": "testIt",
79684
79880
  "name": "it180",
79685
79881
  "testId": 180,
@@ -79701,7 +79897,7 @@
79701
79897
  ]
79702
79898
  },
79703
79899
  {
79704
- "__docId__": 3083,
79900
+ "__docId__": 3089,
79705
79901
  "kind": "testDescribe",
79706
79902
  "name": "describe181",
79707
79903
  "testId": 181,
@@ -79714,7 +79910,7 @@
79714
79910
  "lineNumber": 396
79715
79911
  },
79716
79912
  {
79717
- "__docId__": 3084,
79913
+ "__docId__": 3090,
79718
79914
  "kind": "testIt",
79719
79915
  "name": "it182",
79720
79916
  "testId": 182,
@@ -79736,7 +79932,7 @@
79736
79932
  ]
79737
79933
  },
79738
79934
  {
79739
- "__docId__": 3085,
79935
+ "__docId__": 3091,
79740
79936
  "kind": "testIt",
79741
79937
  "name": "it183",
79742
79938
  "testId": 183,
@@ -79758,7 +79954,7 @@
79758
79954
  ]
79759
79955
  },
79760
79956
  {
79761
- "__docId__": 3086,
79957
+ "__docId__": 3092,
79762
79958
  "kind": "testIt",
79763
79959
  "name": "it184",
79764
79960
  "testId": 184,
@@ -79780,7 +79976,7 @@
79780
79976
  ]
79781
79977
  },
79782
79978
  {
79783
- "__docId__": 3087,
79979
+ "__docId__": 3093,
79784
79980
  "kind": "testIt",
79785
79981
  "name": "it185",
79786
79982
  "testId": 185,
@@ -79802,7 +79998,7 @@
79802
79998
  ]
79803
79999
  },
79804
80000
  {
79805
- "__docId__": 3088,
80001
+ "__docId__": 3094,
79806
80002
  "kind": "testDescribe",
79807
80003
  "name": "describe186",
79808
80004
  "testId": 186,
@@ -79815,7 +80011,7 @@
79815
80011
  "lineNumber": 413
79816
80012
  },
79817
80013
  {
79818
- "__docId__": 3089,
80014
+ "__docId__": 3095,
79819
80015
  "kind": "testIt",
79820
80016
  "name": "it187",
79821
80017
  "testId": 187,
@@ -79837,7 +80033,7 @@
79837
80033
  ]
79838
80034
  },
79839
80035
  {
79840
- "__docId__": 3090,
80036
+ "__docId__": 3096,
79841
80037
  "kind": "testIt",
79842
80038
  "name": "it188",
79843
80039
  "testId": 188,
@@ -79859,7 +80055,7 @@
79859
80055
  ]
79860
80056
  },
79861
80057
  {
79862
- "__docId__": 3091,
80058
+ "__docId__": 3097,
79863
80059
  "kind": "testIt",
79864
80060
  "name": "it189",
79865
80061
  "testId": 189,
@@ -79881,7 +80077,7 @@
79881
80077
  ]
79882
80078
  },
79883
80079
  {
79884
- "__docId__": 3092,
80080
+ "__docId__": 3098,
79885
80081
  "kind": "testIt",
79886
80082
  "name": "it190",
79887
80083
  "testId": 190,
@@ -79903,7 +80099,7 @@
79903
80099
  ]
79904
80100
  },
79905
80101
  {
79906
- "__docId__": 3093,
80102
+ "__docId__": 3099,
79907
80103
  "kind": "testDescribe",
79908
80104
  "name": "describe191",
79909
80105
  "testId": 191,
@@ -79916,7 +80112,7 @@
79916
80112
  "lineNumber": 433
79917
80113
  },
79918
80114
  {
79919
- "__docId__": 3094,
80115
+ "__docId__": 3100,
79920
80116
  "kind": "testIt",
79921
80117
  "name": "it192",
79922
80118
  "testId": 192,
@@ -79938,7 +80134,7 @@
79938
80134
  ]
79939
80135
  },
79940
80136
  {
79941
- "__docId__": 3095,
80137
+ "__docId__": 3101,
79942
80138
  "kind": "testDescribe",
79943
80139
  "name": "describe193",
79944
80140
  "testId": 193,
@@ -79951,7 +80147,7 @@
79951
80147
  "lineNumber": 438
79952
80148
  },
79953
80149
  {
79954
- "__docId__": 3096,
80150
+ "__docId__": 3102,
79955
80151
  "kind": "testIt",
79956
80152
  "name": "it194",
79957
80153
  "testId": 194,
@@ -79973,7 +80169,7 @@
79973
80169
  ]
79974
80170
  },
79975
80171
  {
79976
- "__docId__": 3097,
80172
+ "__docId__": 3103,
79977
80173
  "kind": "testIt",
79978
80174
  "name": "it195",
79979
80175
  "testId": 195,
@@ -79986,7 +80182,7 @@
79986
80182
  "lineNumber": 444
79987
80183
  },
79988
80184
  {
79989
- "__docId__": 3098,
80185
+ "__docId__": 3104,
79990
80186
  "kind": "testFile",
79991
80187
  "name": "client/security/certificates.spec.js",
79992
80188
  "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});",
@@ -79997,7 +80193,7 @@
79997
80193
  "lineNumber": 1
79998
80194
  },
79999
80195
  {
80000
- "__docId__": 3099,
80196
+ "__docId__": 3105,
80001
80197
  "kind": "testDescribe",
80002
80198
  "name": "describe196",
80003
80199
  "testId": 196,
@@ -80019,7 +80215,7 @@
80019
80215
  ]
80020
80216
  },
80021
80217
  {
80022
- "__docId__": 3100,
80218
+ "__docId__": 3106,
80023
80219
  "kind": "testDescribe",
80024
80220
  "name": "describe197",
80025
80221
  "testId": 197,
@@ -80041,7 +80237,7 @@
80041
80237
  ]
80042
80238
  },
80043
80239
  {
80044
- "__docId__": 3101,
80240
+ "__docId__": 3107,
80045
80241
  "kind": "testIt",
80046
80242
  "name": "it198",
80047
80243
  "testId": 198,
@@ -80054,7 +80250,7 @@
80054
80250
  "lineNumber": 12
80055
80251
  },
80056
80252
  {
80057
- "__docId__": 3102,
80253
+ "__docId__": 3108,
80058
80254
  "kind": "testIt",
80059
80255
  "name": "it199",
80060
80256
  "testId": 199,
@@ -80067,7 +80263,7 @@
80067
80263
  "lineNumber": 17
80068
80264
  },
80069
80265
  {
80070
- "__docId__": 3103,
80266
+ "__docId__": 3109,
80071
80267
  "kind": "testIt",
80072
80268
  "name": "it200",
80073
80269
  "testId": 200,
@@ -80080,7 +80276,7 @@
80080
80276
  "lineNumber": 23
80081
80277
  },
80082
80278
  {
80083
- "__docId__": 3104,
80279
+ "__docId__": 3110,
80084
80280
  "kind": "testIt",
80085
80281
  "name": "it201",
80086
80282
  "testId": 201,
@@ -80093,7 +80289,7 @@
80093
80289
  "lineNumber": 30
80094
80290
  },
80095
80291
  {
80096
- "__docId__": 3105,
80292
+ "__docId__": 3111,
80097
80293
  "kind": "testIt",
80098
80294
  "name": "it202",
80099
80295
  "testId": 202,
@@ -80106,7 +80302,7 @@
80106
80302
  "lineNumber": 37
80107
80303
  },
80108
80304
  {
80109
- "__docId__": 3106,
80305
+ "__docId__": 3112,
80110
80306
  "kind": "testDescribe",
80111
80307
  "name": "describe203",
80112
80308
  "testId": 203,
@@ -80119,7 +80315,7 @@
80119
80315
  "lineNumber": 46
80120
80316
  },
80121
80317
  {
80122
- "__docId__": 3107,
80318
+ "__docId__": 3113,
80123
80319
  "kind": "testIt",
80124
80320
  "name": "it204",
80125
80321
  "testId": 204,
@@ -80132,7 +80328,7 @@
80132
80328
  "lineNumber": 53
80133
80329
  },
80134
80330
  {
80135
- "__docId__": 3108,
80331
+ "__docId__": 3114,
80136
80332
  "kind": "testDescribe",
80137
80333
  "name": "describe205",
80138
80334
  "testId": 205,
@@ -80145,7 +80341,7 @@
80145
80341
  "lineNumber": 101
80146
80342
  },
80147
80343
  {
80148
- "__docId__": 3109,
80344
+ "__docId__": 3115,
80149
80345
  "kind": "testIt",
80150
80346
  "name": "it206",
80151
80347
  "testId": 206,
@@ -80158,7 +80354,7 @@
80158
80354
  "lineNumber": 109
80159
80355
  },
80160
80356
  {
80161
- "__docId__": 3110,
80357
+ "__docId__": 3116,
80162
80358
  "kind": "testIt",
80163
80359
  "name": "it207",
80164
80360
  "testId": 207,
@@ -80171,7 +80367,7 @@
80171
80367
  "lineNumber": 120
80172
80368
  },
80173
80369
  {
80174
- "__docId__": 3111,
80370
+ "__docId__": 3117,
80175
80371
  "kind": "testIt",
80176
80372
  "name": "it208",
80177
80373
  "testId": 208,
@@ -80184,7 +80380,7 @@
80184
80380
  "lineNumber": 166
80185
80381
  },
80186
80382
  {
80187
- "__docId__": 3112,
80383
+ "__docId__": 3118,
80188
80384
  "kind": "testDescribe",
80189
80385
  "name": "describe209",
80190
80386
  "testId": 209,
@@ -80197,7 +80393,7 @@
80197
80393
  "lineNumber": 176
80198
80394
  },
80199
80395
  {
80200
- "__docId__": 3113,
80396
+ "__docId__": 3119,
80201
80397
  "kind": "testIt",
80202
80398
  "name": "it210",
80203
80399
  "testId": 210,
@@ -80210,7 +80406,7 @@
80210
80406
  "lineNumber": 183
80211
80407
  },
80212
80408
  {
80213
- "__docId__": 3114,
80409
+ "__docId__": 3120,
80214
80410
  "kind": "testDescribe",
80215
80411
  "name": "describe211",
80216
80412
  "testId": 211,
@@ -80223,7 +80419,7 @@
80223
80419
  "lineNumber": 199
80224
80420
  },
80225
80421
  {
80226
- "__docId__": 3115,
80422
+ "__docId__": 3121,
80227
80423
  "kind": "testIt",
80228
80424
  "name": "it212",
80229
80425
  "testId": 212,
@@ -80236,7 +80432,7 @@
80236
80432
  "lineNumber": 239
80237
80433
  },
80238
80434
  {
80239
- "__docId__": 3116,
80435
+ "__docId__": 3122,
80240
80436
  "kind": "testIt",
80241
80437
  "name": "it213",
80242
80438
  "testId": 213,
@@ -80249,7 +80445,7 @@
80249
80445
  "lineNumber": 253
80250
80446
  },
80251
80447
  {
80252
- "__docId__": 3117,
80448
+ "__docId__": 3123,
80253
80449
  "kind": "testFile",
80254
80450
  "name": "client/users/find.spec.js",
80255
80451
  "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*/",
@@ -80260,7 +80456,7 @@
80260
80456
  "lineNumber": 1
80261
80457
  },
80262
80458
  {
80263
- "__docId__": 3118,
80459
+ "__docId__": 3124,
80264
80460
  "kind": "testFile",
80265
80461
  "name": "client/users/user.spec.js",
80266
80462
  "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});",
@@ -80271,7 +80467,7 @@
80271
80467
  "lineNumber": 1
80272
80468
  },
80273
80469
  {
80274
- "__docId__": 3119,
80470
+ "__docId__": 3125,
80275
80471
  "kind": "testDescribe",
80276
80472
  "name": "describe214",
80277
80473
  "testId": 214,
@@ -80284,7 +80480,7 @@
80284
80480
  "lineNumber": 3
80285
80481
  },
80286
80482
  {
80287
- "__docId__": 3120,
80483
+ "__docId__": 3126,
80288
80484
  "kind": "testIt",
80289
80485
  "name": "it215",
80290
80486
  "testId": 215,
@@ -80297,7 +80493,7 @@
80297
80493
  "lineNumber": 4
80298
80494
  },
80299
80495
  {
80300
- "__docId__": 3121,
80496
+ "__docId__": 3127,
80301
80497
  "kind": "testDescribe",
80302
80498
  "name": "describe216",
80303
80499
  "testId": 216,
@@ -80310,7 +80506,7 @@
80310
80506
  "lineNumber": 9
80311
80507
  },
80312
80508
  {
80313
- "__docId__": 3122,
80509
+ "__docId__": 3128,
80314
80510
  "kind": "testIt",
80315
80511
  "name": "it217",
80316
80512
  "testId": 217,
@@ -80323,7 +80519,7 @@
80323
80519
  "lineNumber": 11
80324
80520
  },
80325
80521
  {
80326
- "__docId__": 3123,
80522
+ "__docId__": 3129,
80327
80523
  "kind": "testDescribe",
80328
80524
  "name": "describe218",
80329
80525
  "testId": 218,
@@ -80336,7 +80532,7 @@
80336
80532
  "lineNumber": 23
80337
80533
  },
80338
80534
  {
80339
- "__docId__": 3124,
80535
+ "__docId__": 3130,
80340
80536
  "kind": "testIt",
80341
80537
  "name": "it219",
80342
80538
  "testId": 219,