{
  "api": "pf-js-api",
  "docsBaseUrl": "https://documentation.opengate.es/",
  "functions": [
    {
      "examples": [
        {
          "code": "const entity = new Entity(\"entityIdentifier\");",
          "language": "javascript"
        }
      ],
      "id": "Entity",
      "internal": false,
      "kind": "function",
      "name": "Entity",
      "namespace": "",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "identifier for current entity.",
          "name": "entityIdentifier",
          "type": "String"
        }
      ],
      "signature": "Entity(entityIdentifier)",
      "summary": "Init entityJson property with an entity identifier. Use new Entity(entityIdentifier) to create a new Entity.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entityentityidentifier"
    },
    {
      "examples": [
        {
          "code": "entity.withPrefix(\"prefix\");",
          "language": "javascript"
        }
      ],
      "id": "entity.withPrefix",
      "internal": false,
      "kind": "function",
      "name": "withPrefix",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "The prefix that will be used in next `addDatastream` calls. If it is empty the prefix will be removed.",
          "name": "prefixToBeUsed",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Entity - Current Entity instance"
      },
      "signature": "entity.withPrefix(prefixToBeUsed)",
      "summary": "Define the prefix of the datastreams to be used by addDatastream method.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entitywithprefixprefixtobeused"
    },
    {
      "examples": [
        {
          "code": "entity.getDatastream(\"datastream\");",
          "language": "javascript"
        }
      ],
      "id": "entity.getDatastream",
      "internal": false,
      "kind": "function",
      "name": "getDatastream",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Datastream complete flattened name.",
          "name": "datastream",
          "type": "String"
        },
        {
          "description": "If datastream is an array, index should be provided, if not, first element will be returned.",
          "name": "_index",
          "type": "String"
        }
      ],
      "returns": {
        "description": "- Found datastream's value, it can be complex. Null if not found."
      },
      "signature": "entity.getDatastream(datastream, _index)",
      "summary": "Search specified datastream and returns value. This function requires always complete datastream (ignores withPrefix functions calls).",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entitygetdatastreamdatastream-_index"
    },
    {
      "examples": [
        {
          "code": "entity.deleteDatastream(\"datastream\");",
          "language": "javascript"
        }
      ],
      "id": "entity.deleteDatastream",
      "internal": false,
      "kind": "function",
      "name": "deleteDatastream",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Datastream complete flattened name.",
          "name": "datastream",
          "type": "String"
        },
        {
          "description": "If datastream is an array, index should be provided, if not, first element will be returned.",
          "name": "_index",
          "type": "String"
        }
      ],
      "returns": {
        "description": "- Found datastream's value, it can be complex. Null if not found."
      },
      "signature": "entity.deleteDatastream(datastream, _index)",
      "summary": "Delete specified datastream. This function requires always complete datastream (ignores withPrefix functions calls).",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entitydeletedatastreamdatastream-_index"
    },
    {
      "examples": [
        {
          "code": "entity.addDatastream(\"datastream\", \"value\");",
          "language": "javascript"
        }
      ],
      "id": "entity.addDatastream",
      "internal": false,
      "kind": "function",
      "name": "addDatastream",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Datastream flattened name.",
          "name": "datastream",
          "type": "String"
        },
        {
          "description": "Value for the datastream.",
          "name": "value",
          "type": "String"
        },
        {
          "description": "If provided, it will create special indexed datastream (for communicationModules[] datastreams).",
          "name": "_index",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Entity - Current Entity instance"
      },
      "signature": "entity.addDatastream(datastream, value, _index)",
      "summary": "Method to be used to add datastreams to current entity.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entityadddatastreamdatastream-value-_index"
    },
    {
      "examples": [
        {
          "code": "entity._addToEntity({ datastream: \"value\" });",
          "language": "javascript"
        }
      ],
      "id": "entity._addToEntity",
      "internal": false,
      "kind": "function",
      "name": "_addToEntity",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Object to be attached to current Entity.",
          "name": "datastream",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "Entity - Current Entity instance."
      },
      "signature": "entity._addToEntity(datastream)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entity_addtoentitydatastream"
    },
    {
      "examples": [
        {
          "code": "entity._generateDatastreamJsonWithArray(\"datastream\", [\"value\"]);",
          "language": "javascript"
        }
      ],
      "id": "entity._generateDatastreamJsonWithArray",
      "internal": false,
      "kind": "function",
      "name": "_generateDatastreamJsonWithArray",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Datastream flattened name.",
          "name": "datastream",
          "type": "String"
        },
        {
          "description": "Array of objects for the datastream.",
          "name": "valuesArray",
          "type": "Array"
        }
      ],
      "returns": {
        "description": "Object - Json object with built datastream."
      },
      "signature": "entity._generateDatastreamJsonWithArray(datastream, valuesArray)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entity_generatedatastreamjsonwitharraydatastream-valuesarray"
    },
    {
      "examples": [
        {
          "code": "entity._generateDatastreamWithJson(\"datastream\", { value: \"value\" });",
          "language": "javascript"
        }
      ],
      "id": "entity._generateDatastreamWithJson",
      "internal": false,
      "kind": "function",
      "name": "_generateDatastreamWithJson",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Datastream flattened name.",
          "name": "datastream",
          "type": "String"
        },
        {
          "description": "Json object with datastream value.",
          "name": "value",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "Object - Json object with built datastream."
      },
      "signature": "entity._generateDatastreamWithJson(datastream, value)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entity_generatedatastreamwithjsondatastream-value"
    },
    {
      "examples": [
        {
          "code": "entity._generateIndexedJson(\"index\", \"value\");",
          "language": "javascript"
        }
      ],
      "id": "entity._generateIndexedJson",
      "internal": false,
      "kind": "function",
      "name": "_generateIndexedJson",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Identifier for _index value.",
          "name": "index",
          "type": "String"
        },
        {
          "description": "It can be plain value (String,...) or complex Json.",
          "name": "value",
          "type": "\\*"
        }
      ],
      "returns": {
        "description": "Object - Json object with indexed value structure."
      },
      "signature": "entity._generateIndexedJson(index, value)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entity_generateindexedjsonindex-value"
    },
    {
      "examples": [
        {
          "code": "entity._generateJsonCurrentValue(\"value\");",
          "language": "javascript"
        },
        {
          "code": "{\n    \"_value\":{\n        \"_current\":{\n            \"value\": value\n        }\n    }\n}",
          "language": "json"
        }
      ],
      "id": "entity._generateJsonCurrentValue",
      "internal": false,
      "kind": "function",
      "name": "_generateJsonCurrentValue",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "It can be plain value (String,...) or complex Json",
          "name": "value",
          "type": "\\*"
        }
      ],
      "returns": {
        "description": "Object - Json object with basic value structure."
      },
      "signature": "entity._generateJsonCurrentValue(value)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entity_generatejsoncurrentvaluevalue"
    },
    {
      "examples": [
        {
          "code": "entity._cleanArray([\"value\", \"\", null, undefined]);",
          "language": "javascript"
        }
      ],
      "id": "entity._cleanArray",
      "internal": false,
      "kind": "function",
      "name": "_cleanArray",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Array to be checked.",
          "name": "valuesArray",
          "type": "Array"
        }
      ],
      "returns": {
        "description": "Array - New array without empty elements. null if the array is empty."
      },
      "signature": "entity._cleanArray(valuesArray)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entity_cleanarrayvaluesarray"
    },
    {
      "examples": [
        {
          "code": "entity._generateDatastreamEntry(\"datastream\", { value: \"value\" });",
          "language": "javascript"
        },
        {
          "code": "{\n    \"datastream.name\": {...}\n}",
          "language": "json"
        },
        {
          "code": "{\n    \"datastream.name\": [...]\n}",
          "language": "json"
        }
      ],
      "id": "entity._generateDatastreamEntry",
      "internal": false,
      "kind": "function",
      "name": "_generateDatastreamEntry",
      "namespace": "entity",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Datastream flattened name.",
          "name": "datastream",
          "type": "String"
        },
        {
          "description": "Json value for the datastream.",
          "name": "dsJson",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "Object - Json object with built datastream."
      },
      "signature": "entity._generateDatastreamEntry(datastream, dsJson)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#entity_generatedatastreamentrydatastream-dsjson"
    },
    {
      "examples": [
        {
          "code": "readMapValue(map, \"headerName\", \"defaultValue\", \"headerColumn\");",
          "language": "javascript"
        }
      ],
      "id": "readMapValue",
      "internal": false,
      "kind": "function",
      "name": "readMapValue",
      "namespace": "",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "map from which to read values.",
          "name": "map",
          "type": "Object"
        },
        {
          "description": "Header name for mapped row.",
          "name": "headerName",
          "type": "String"
        },
        {
          "description": "If no value is read or it is empty or undefined, default value will be returned.",
          "name": "defaultValue",
          "type": "\\*"
        },
        {
          "description": "Header column letter for mapped row (if null, only `headerName` will be used as key).",
          "name": "headerColumn",
          "type": "String"
        }
      ],
      "returns": {
        "description": "\\* - Obtained value for specified header name and column or at least defined default value."
      },
      "signature": "readMapValue(map, headerName, defaultValue, headerColumn)",
      "summary": "Auxiliary method to read values from the specified map.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#readmapvaluemap-headername-defaultvalue-headercolumn"
    },
    {
      "examples": [
        {
          "code": "var entity = newEntityBuilder(fromEntityJson);",
          "language": "javascript"
        }
      ],
      "id": "newEntityBuilder",
      "internal": false,
      "kind": "function",
      "name": "newEntityBuilder",
      "namespace": "",
      "page": {
        "title": "Entities Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/",
        "weight": 3
      },
      "params": [
        {
          "description": "Json with Opengate flattened entity",
          "name": "fromEntityJson",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "Entity - Entity Class instance"
      },
      "signature": "newEntityBuilder(fromEntityJson)",
      "summary": "Creates Entity class object with specified entity json.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_entities_js_api/#newentitybuilderfromentityjson"
    },
    {
      "examples": [
        {
          "code": "const assetJson = {\n    \"name\": \"asset1\",\n    \"description\": \"asset1\",\n    \"type\": \"asset\"\n}\nconst action = CREATE_ASSET_ACTION(assetJson, \"Create Asset\");",
          "language": "javascript"
        }
      ],
      "id": "CREATE_ASSET_ACTION",
      "internal": false,
      "kind": "function",
      "name": "CREATE_ASSET_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Asset Entity Json to be created.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "CREATE_ASSET_ACTION(entityJson, description)",
      "summary": "Builds Create Asset action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#create_asset_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const assetJson = {\n    \"name\": \"asset1\",\n    \"description\": \"asset1\",\n    \"type\": \"asset\"\n}\nconst action = UPDATE_ASSET_ACTION(assetJson, \"Update Asset\");",
          "language": "javascript"
        }
      ],
      "id": "UPDATE_ASSET_ACTION",
      "internal": false,
      "kind": "function",
      "name": "UPDATE_ASSET_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Asset Entity Json to be updated.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "UPDATE_ASSET_ACTION(entityJson, description)",
      "summary": "Builds Update Asset action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#update_asset_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const assetJson = {\n    \"name\": \"asset1\",\n    \"description\": \"asset1\",\n    \"type\": \"asset\"\n}\nconst action = PATCH_ASSET_ACTION(assetJson, \"Patch Asset\");",
          "language": "javascript"
        }
      ],
      "id": "PATCH_ASSET_ACTION",
      "internal": false,
      "kind": "function",
      "name": "PATCH_ASSET_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Asset Entity Json to be updated.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "PATCH_ASSET_ACTION(entityJson, description)",
      "summary": "Builds Patch Asset action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#patch_asset_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const assetJson = {\n    \"name\": \"asset1\",\n    \"description\": \"asset1\",\n    \"type\": \"asset\"\n}\nconst action = DELETE_ASSET_ACTION(assetJson, \"Delete Asset\");",
          "language": "javascript"
        }
      ],
      "id": "DELETE_ASSET_ACTION",
      "internal": false,
      "kind": "function",
      "name": "DELETE_ASSET_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Asset Entity Json to be deleted.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "DELETE_ASSET_ACTION(entityJson, description)",
      "summary": "Builds Delete Asset action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#delete_asset_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const deviceJson = {\n    \"name\": \"device1\",\n    \"description\": \"device1\",\n    \"type\": \"device\"\n}\nconst action = CREATE_DEVICE_ACTION(deviceJson, \"Create Device\");",
          "language": "javascript"
        }
      ],
      "id": "CREATE_DEVICE_ACTION",
      "internal": false,
      "kind": "function",
      "name": "CREATE_DEVICE_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Device Entity Json to be created.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "CREATE_DEVICE_ACTION(entityJson, description)",
      "summary": "Builds Create Device action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#create_device_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const deviceJson = {\n    \"name\": \"device1\",\n    \"description\": \"device1\",\n    \"type\": \"device\"\n}\nconst action = UPDATE_DEVICE_ACTION(deviceJson, \"Update Device\");",
          "language": "javascript"
        }
      ],
      "id": "UPDATE_DEVICE_ACTION",
      "internal": false,
      "kind": "function",
      "name": "UPDATE_DEVICE_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Device Entity Json to be updated.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "UPDATE_DEVICE_ACTION(entityJson, description)",
      "summary": "Builds Update Device action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#update_device_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const deviceJson = {\n    \"name\": \"device1\",\n    \"description\": \"device1\",\n    \"type\": \"device\"\n}\nconst action = PATCH_DEVICE_ACTION(deviceJson, \"Patch Device\");",
          "language": "javascript"
        }
      ],
      "id": "PATCH_DEVICE_ACTION",
      "internal": false,
      "kind": "function",
      "name": "PATCH_DEVICE_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Device Entity Json to be updated.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "PATCH_DEVICE_ACTION(entityJson, description)",
      "summary": "Builds Patch DEVICE action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#patch_device_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const deviceJson = {\n    \"name\": \"device1\",\n    \"description\": \"device1\",\n    \"type\": \"device\"\n}\nconst action = DELETE_DEVICE_ACTION(deviceJson, true, \"Delete Device\");",
          "language": "javascript"
        }
      ],
      "id": "DELETE_DEVICE_ACTION",
      "internal": false,
      "kind": "function",
      "name": "DELETE_DEVICE_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Device Entity Json to be deleted.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "true to delete also related Subscriptions and Subscribers.",
          "name": "full",
          "type": "boolean"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "DELETE_DEVICE_ACTION(entityJson, full, description)",
      "summary": "Builds Delete Device action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#delete_device_actionentityjson-full-description"
    },
    {
      "examples": [
        {
          "code": "const subscriptionJson = {\n    \"name\": \"subscription1\",\n    \"description\": \"subscription1\",\n    \"type\": \"subscription\"\n}\nconst action = CREATE_SUBSCRIPTION_ACTION(subscriptionJson, \"Create Subscription\");",
          "language": "javascript"
        }
      ],
      "id": "CREATE_SUBSCRIPTION_ACTION",
      "internal": false,
      "kind": "function",
      "name": "CREATE_SUBSCRIPTION_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Subscription Entity Json to be created.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "CREATE_SUBSCRIPTION_ACTION(entityJson, description)",
      "summary": "Builds Create Subscription action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#create_subscription_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const subscriptionJson = {\n    \"name\": \"subscription1\",\n    \"description\": \"subscription1\",\n    \"type\": \"subscription\"\n}\nconst action = UPDATE_SUBSCRIPTION_ACTION(subscriptionJson, \"Update Subscription\");",
          "language": "javascript"
        }
      ],
      "id": "UPDATE_SUBSCRIPTION_ACTION",
      "internal": false,
      "kind": "function",
      "name": "UPDATE_SUBSCRIPTION_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Subscription Entity Json to be updated.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "UPDATE_SUBSCRIPTION_ACTION(entityJson, description)",
      "summary": "Builds Update Subscription action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#update_subscription_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const subscriptionJson = {\n    \"name\": \"subscription1\",\n    \"description\": \"subscription1\",\n    \"type\": \"subscription\"\n}\nconst action = PATCH_SUBSCRIPTION_ACTION(subscriptionJson, \"Patch Subscription\");",
          "language": "javascript"
        }
      ],
      "id": "PATCH_SUBSCRIPTION_ACTION",
      "internal": false,
      "kind": "function",
      "name": "PATCH_SUBSCRIPTION_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Subscription Entity Json to be updated.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "PATCH_SUBSCRIPTION_ACTION(entityJson, description)",
      "summary": "Builds Patch Subscription action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#patch_subscription_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const subscriptionJson = {\n    \"name\": \"subscription1\",\n    \"description\": \"subscription1\",\n    \"type\": \"subscription\"\n}\nconst action = DELETE_SUBSCRIPTION_ACTION(subscriptionJson, \"Delete Subscription\");",
          "language": "javascript"
        }
      ],
      "id": "DELETE_SUBSCRIPTION_ACTION",
      "internal": false,
      "kind": "function",
      "name": "DELETE_SUBSCRIPTION_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Subscription Entity Json to be deleted.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "DELETE_SUBSCRIPTION_ACTION(entityJson, description)",
      "summary": "Builds Delete Subscription action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#delete_subscription_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const subscriberJson = {\n    \"name\": \"subscriber1\",\n    \"description\": \"subscriber1\",\n    \"type\": \"subscriber\"\n}\nconst action = CREATE_SUBSCRIBER_ACTION(subscriberJson, \"Create Subscriber\");",
          "language": "javascript"
        }
      ],
      "id": "CREATE_SUBSCRIBER_ACTION",
      "internal": false,
      "kind": "function",
      "name": "CREATE_SUBSCRIBER_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Subscriber Entity Json to be created.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "CREATE_SUBSCRIBER_ACTION(entityJson, description)",
      "summary": "Builds Create Subscriber action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#create_subscriber_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const subscriberJson = {\n    \"name\": \"subscriber1\",\n    \"description\": \"subscriber1\",\n    \"type\": \"subscriber\"\n}\nconst action = UPDATE_SUBSCRIBER_ACTION(subscriberJson, \"Update Subscriber\");",
          "language": "javascript"
        }
      ],
      "id": "UPDATE_SUBSCRIBER_ACTION",
      "internal": false,
      "kind": "function",
      "name": "UPDATE_SUBSCRIBER_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Subscriber Entity Json to be updated.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "UPDATE_SUBSCRIBER_ACTION(entityJson, description)",
      "summary": "Builds Update Subscriber action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#update_subscriber_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const subscriberJson = {\n    \"name\": \"subscriber1\",\n    \"description\": \"subscriber1\",\n    \"type\": \"subscriber\"\n}\nconst action = PATCH_SUBSCRIBER_ACTION(subscriberJson, \"Patch Subscriber\");",
          "language": "javascript"
        }
      ],
      "id": "PATCH_SUBSCRIBER_ACTION",
      "internal": false,
      "kind": "function",
      "name": "PATCH_SUBSCRIBER_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Subscriber Entity Json to be updated.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "PATCH_SUBSCRIBER_ACTION(entityJson, description)",
      "summary": "Builds Patch Subscriber action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#patch_subscriber_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const subscriberJson = {\n    \"name\": \"subscriber1\",\n    \"description\": \"subscriber1\",\n    \"type\": \"subscriber\"\n}\nconst action = DELETE_SUBSCRIBER_ACTION(subscriberJson, \"Delete Subscriber\");",
          "language": "javascript"
        }
      ],
      "id": "DELETE_SUBSCRIBER_ACTION",
      "internal": false,
      "kind": "function",
      "name": "DELETE_SUBSCRIBER_ACTION",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Subscriber Entity Json to be deleted.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Created action."
      },
      "signature": "DELETE_SUBSCRIBER_ACTION(entityJson, description)",
      "summary": "Builds Delete Subscriber action with provided JSON.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#delete_subscriber_actionentityjson-description"
    },
    {
      "examples": [
        {
          "code": "const action = _createAction(\"CREATE\", deviceJson, \"device\", false, \"Create Device\");",
          "language": "javascript"
        }
      ],
      "id": "_createAction",
      "internal": false,
      "kind": "function",
      "name": "_createAction",
      "namespace": "",
      "page": {
        "title": "Actions Utils",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/",
        "weight": 4
      },
      "params": [
        {
          "description": "Action to be done.",
          "name": "action",
          "type": "String"
        },
        {
          "description": "Entity JSON to be processed.",
          "name": "entityJson",
          "type": "Object"
        },
        {
          "description": "Entity type to be processed.",
          "name": "entityType",
          "type": "String"
        },
        {
          "description": "Only for `DELETE device`. `true` to delete also related Subscriptions and Subscribers.",
          "name": "full",
          "type": "Boolean"
        },
        {
          "description": "Action short description.",
          "name": "description",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Action object with provided parameters."
      },
      "signature": "_createAction(action, entityJson, entityType, full, description)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_actions_js_api/#_createactionaction-entityjson-entitytype-full-description"
    },
    {
      "examples": [
        {
          "code": "printLog('Provision processor started');",
          "language": "javascript"
        }
      ],
      "id": "printLog",
      "internal": false,
      "kind": "function",
      "name": "printLog",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "String to be printed in Java logs",
          "name": "msg",
          "type": "String"
        }
      ],
      "signature": "printLog(msg)",
      "summary": "Invokes Java V8 printLogInternal method.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#printlogmsg"
    },
    {
      "examples": [
        {
          "code": "var assetEntity = getEntity(normalizedObject.asset_identifier, 'entity.asset');",
          "language": "javascript"
        }
      ],
      "id": "getEntity",
      "internal": false,
      "kind": "function",
      "name": "getEntity",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Id of the entity to be retrieved",
          "name": "entityId",
          "type": "String"
        },
        {
          "description": "Parameter used to specify the entity type to be retrieved",
          "name": "resourceType",
          "type": "String"
        },
        {
          "description": "Parameters for query. Not mandatory",
          "name": "queryContextParams",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "Object - Entity Json. null if no entity is found"
      },
      "signature": "getEntity(entityId, resourceType, queryContextParams)",
      "summary": "Invokes Java V8 getEntityInternal method.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#getentityentityid-resourcetype-querycontextparams"
    },
    {
      "examples": [
        {
          "code": "var assetEntity = entitiesGenericSearch(normalizedObject.asset_identifier, 'entity.asset');",
          "language": "javascript"
        }
      ],
      "id": "entitiesGenericSearch",
      "internal": false,
      "kind": "function",
      "name": "entitiesGenericSearch",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "json search filter",
          "name": "searchFilter",
          "type": "String"
        },
        {
          "description": "Parameters for query. Not mandatory",
          "name": "queryContextParams",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "Object - Search result json. null if no result is found."
      },
      "signature": "entitiesGenericSearch(searchFilter, queryContextParams)",
      "summary": "Invokes Java V8 genericSearchInternal method for ENTITIES.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#entitiesgenericsearchsearchfilter-querycontextparams"
    },
    {
      "examples": [
        {
          "code": "var javaParams = _minJavaParams({ utc: true });",
          "language": "javascript"
        }
      ],
      "id": "_minJavaParams",
      "internal": false,
      "kind": "function",
      "name": "_minJavaParams",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "parameters for query. Not mandatory.",
          "name": "queryContextParams",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "Object - Json object"
      },
      "signature": "_minJavaParams(queryContextParams)",
      "summary": "Auxiliary method to build params maps for Java Queries",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#_minjavaparamsquerycontextparams"
    },
    {
      "examples": [
        {
          "code": "if (checkAsset(normalizedObject.asset_identifier)) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "checkAsset",
      "internal": false,
      "kind": "function",
      "name": "checkAsset",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "asset identifier.",
          "name": "id",
          "type": "String"
        }
      ],
      "returns": {
        "description": "boolean - If the asset exists."
      },
      "signature": "checkAsset(id)",
      "summary": "Check if an Asset exists for specified id.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#checkassetid"
    },
    {
      "examples": [
        {
          "code": "if (checkDevice(normalizedObject.device_identifier)) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "checkDevice",
      "internal": false,
      "kind": "function",
      "name": "checkDevice",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Device identifier.",
          "name": "id",
          "type": "String"
        }
      ],
      "returns": {
        "description": "boolean - If the Device exists."
      },
      "signature": "checkDevice(id)",
      "summary": "Check if a Device exists for specified id.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#checkdeviceid"
    },
    {
      "examples": [
        {
          "code": "if (checkSubscription(normalizedObject.subscription_identifier)) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "checkSubscription",
      "internal": false,
      "kind": "function",
      "name": "checkSubscription",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Subscription identifier.",
          "name": "id",
          "type": "String"
        }
      ],
      "returns": {
        "description": "boolean - If the Subscription exists."
      },
      "signature": "checkSubscription(id)",
      "summary": "Check if a Subscription exists for specified id.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#checksubscriptionid"
    },
    {
      "examples": [
        {
          "code": "if (checkSubscriber(normalizedObject.subscriber_identifier)) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "checkSubscriber",
      "internal": false,
      "kind": "function",
      "name": "checkSubscriber",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Subscriber identifier.",
          "name": "id",
          "type": "String"
        }
      ],
      "returns": {
        "description": "boolean - If the Subscriber exists."
      },
      "signature": "checkSubscriber(id)",
      "summary": "Check if a Subscriber exists for specified id.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#checksubscriberid"
    },
    {
      "examples": [
        {
          "code": "var assetEntity = getAssetEntity(normalizedObject.asset_identifier);",
          "language": "javascript"
        }
      ],
      "id": "getAssetEntity",
      "internal": false,
      "kind": "function",
      "name": "getAssetEntity",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Asset identifier.",
          "name": "id",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Asset entity, null if the Asset does not exist."
      },
      "signature": "getAssetEntity(id)",
      "summary": "Gets specific Asset for specified id.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#getassetentityid"
    },
    {
      "examples": [
        {
          "code": "var deviceEntity = getDeviceEntity(normalizedObject.device_identifier);",
          "language": "javascript"
        }
      ],
      "id": "getDeviceEntity",
      "internal": false,
      "kind": "function",
      "name": "getDeviceEntity",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Device identifier.",
          "name": "id",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Device entity, null if the Device does not exist."
      },
      "signature": "getDeviceEntity(id)",
      "summary": "Gets specific Device for specified id.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#getdeviceentityid"
    },
    {
      "examples": [
        {
          "code": "var subscriptionEntity = getSubscriptionEntity(normalizedObject.subscription_identifier);",
          "language": "javascript"
        }
      ],
      "id": "getSubscriptionEntity",
      "internal": false,
      "kind": "function",
      "name": "getSubscriptionEntity",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Subscription identifier.",
          "name": "id",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Subscription entity, null if the Subscription does not exist."
      },
      "signature": "getSubscriptionEntity(id)",
      "summary": "Gets specific Subscription for specified id.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#getsubscriptionentityid"
    },
    {
      "examples": [
        {
          "code": "var subscriberEntity = getSubscriberEntity(normalizedObject.subscriber_identifier);",
          "language": "javascript"
        }
      ],
      "id": "getSubscriberEntity",
      "internal": false,
      "kind": "function",
      "name": "getSubscriberEntity",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Subscriber identifier.",
          "name": "id",
          "type": "String"
        }
      ],
      "returns": {
        "description": "Object - Subscriber entity, null if the Subscriber does not exist."
      },
      "signature": "getSubscriberEntity(id)",
      "summary": "Gets specific Subscriber for specified id.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#getsubscriberentityid"
    },
    {
      "examples": [
        {
          "code": "if (duplicatedDsInSubscriptions(normalizedObject.subscription_identifier, normalizedObject.datastreams)) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "duplicatedDsInSubscriptions",
      "internal": false,
      "kind": "function",
      "name": "duplicatedDsInSubscriptions",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "The Subscription id with the datastreams to be checked.",
          "name": "currentSubscriptionId",
          "type": "String"
        },
        {
          "description": "Datastreams to be checked if they are duplicated. Each datastream must be defined as \\{\"datastreamId\": \"datastreamValue\"\\}.",
          "name": "...datastreamsToCheck",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "boolean - If some Subscription has been found with some of duplicated datastreams."
      },
      "signature": "duplicatedDsInSubscriptions(currentSubscriptionId, ...datastreamsToCheck)",
      "summary": "Searches for duplicated datastreams in other Subscriptions (other than currentSubscriptionId).",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#duplicateddsinsubscriptionscurrentsubscriptionid-datastreamstocheck"
    },
    {
      "examples": [
        {
          "code": "if (duplicatedDsInSubscribers(normalizedObject.subscriber_identifier, normalizedObject.datastreams)) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "duplicatedDsInSubscribers",
      "internal": false,
      "kind": "function",
      "name": "duplicatedDsInSubscribers",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "The Subscriber id with the datastreams to be checked.",
          "name": "currentSubscriberId",
          "type": "String"
        },
        {
          "description": "Datastreams to be checked if they are duplicated. Each datastream is defined as a pair \\{\"datastreamId\": \"datastreamValue\"\\}.",
          "name": "...datastreamsToCheck",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "boolean - If some Subscriber has been found with some of duplicated datastreams"
      },
      "signature": "duplicatedDsInSubscribers(currentSubscriberId, ...datastreamsToCheck)",
      "summary": "Searches for duplicated datastreams in other Subscribers (other than currentSubscriberId).",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#duplicateddsinsubscriberscurrentsubscriberid-datastreamstocheck"
    },
    {
      "examples": [
        {
          "code": "if (duplicatedDsInDevices(normalizedObject.device_identifier, normalizedObject.datastreams)) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "duplicatedDsInDevices",
      "internal": false,
      "kind": "function",
      "name": "duplicatedDsInDevices",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "The Device id with the datastreams to be checked.",
          "name": "currentDeviceId",
          "type": "String"
        },
        {
          "description": "Datastreams to be checked if they are duplicated. Each datastream is defined as a pair \\{\"datastreamId\": \"datastreamValue\"\\}.",
          "name": "...datastreamsToCheck",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "boolean - If some Device has been found with some of duplicated datastreams."
      },
      "signature": "duplicatedDsInDevices(currentDeviceId, ...datastreamsToCheck)",
      "summary": "Searches for duplicated datastreams in other Devices (other than currentDeviceId).",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#duplicateddsindevicescurrentdeviceid-datastreamstocheck"
    },
    {
      "examples": [
        {
          "code": "if (duplicatedDsInAssets(normalizedObject.asset_identifier, normalizedObject.datastreams)) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "duplicatedDsInAssets",
      "internal": false,
      "kind": "function",
      "name": "duplicatedDsInAssets",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "The Asset id with the datastreams to be checked.",
          "name": "currentAssetId",
          "type": "String"
        },
        {
          "description": "Datastreams to be checked if they are duplicated. Each datastream is defined as a pair \\{\"datastreamId\": \"datastreamValue\"\\}.",
          "name": "...datastreamsToCheck",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "boolean - If some Asset has been found with some of duplicated datastreams."
      },
      "signature": "duplicatedDsInAssets(currentAssetId, ...datastreamsToCheck)",
      "summary": "Searches for duplicated datastreams in other Assets (other than currentAssetId).",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#duplicateddsinassetscurrentassetid-datastreamstocheck"
    },
    {
      "examples": [
        {
          "code": "if (_checkEntity(normalizedObject.asset_identifier, 'asset')) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "_checkEntity",
      "internal": false,
      "kind": "function",
      "name": "_checkEntity",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Entity id to be checked.",
          "name": "id",
          "type": "String"
        },
        {
          "description": "Entity type to be checked.",
          "name": "resourceType",
          "type": "String"
        }
      ],
      "returns": {
        "description": "boolean - If the ENTITY exists."
      },
      "signature": "_checkEntity(id, resourceType)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#_checkentityid-resourcetype"
    },
    {
      "examples": [
        {
          "code": "if (_checkDuplicatedDS(normalizedObject.subscription_identifier, normalizedObject.subscription_identifier, normalizedObject.datastreams)) {\n  printLog('Check returned true');\n}",
          "language": "javascript"
        }
      ],
      "id": "_checkDuplicatedDS",
      "internal": false,
      "kind": "function",
      "name": "_checkDuplicatedDS",
      "namespace": "",
      "page": {
        "title": "V8 Utils API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/",
        "weight": 5
      },
      "params": [
        {
          "description": "Datastream used to specify the Entity id with the datastreams to be checked.",
          "name": "currentEntityIdentifierDatastream",
          "type": "String"
        },
        {
          "description": "Value for currentEntityIdentifierDatastream field.",
          "name": "currentEntityIdentifierValue",
          "type": "String"
        },
        {
          "description": "Datastreams to be checked if they are duplicated. Each datastream is defined as a pair \\{\"datastreamId\": \"datastreamValue\"\\}.",
          "name": "...datastreamsToCheck",
          "type": "Object"
        }
      ],
      "returns": {
        "description": "boolean - If duplicated Datasteams are found in other entities."
      },
      "signature": "_checkDuplicatedDS(currentEntityIdentifierDatastream, currentEntityIdentifierValue, ...datastreamsToCheck)",
      "summary": "*Internal method.*",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_v8utils_js_api/#_checkduplicateddscurrententityidentifierdatastream-currententityidentifiervalue-datastreamstocheck"
    },
    {
      "examples": [
        {
          "code": "var errorManager = new ErrorManager(platformErrors, actionObject, defaultErrorMessage);",
          "language": "javascript"
        }
      ],
      "id": "ErrorManager",
      "internal": false,
      "kind": "function",
      "name": "ErrorManager",
      "namespace": "",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "list of `ApiPlatformError` representation.",
          "name": "platformErrors",
          "type": "Object"
        },
        {
          "description": "OdmProvisionAction representation.",
          "name": "actionObject",
          "type": "Object"
        },
        {
          "description": "default error message.",
          "name": "defaultErrorMessage",
          "type": "String"
        }
      ],
      "signature": "ErrorManager(platformErrors, actionObject, defaultErrorMessage)",
      "summary": "Initialize ErrorManager entity. Use new keyword to create an instance of ErrorManager.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagerplatformerrors-actionobject-defaulterrormessage"
    },
    {
      "examples": [
        {
          "code": "var defaultMessage = errorManager.getDefaultMessage();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getDefaultMessage",
      "internal": false,
      "kind": "function",
      "name": "getDefaultMessage",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "string - initialized default message"
      },
      "signature": "errorManager.getDefaultMessage()",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetdefaultmessage"
    },
    {
      "examples": [
        {
          "code": "var firstError = errorManager.getFirstError();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstError",
      "internal": false,
      "kind": "function",
      "name": "getFirstError",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "Object - first error. It can be undefined or null."
      },
      "signature": "errorManager.getFirstError()",
      "summary": "Returns first error object.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirsterror"
    },
    {
      "examples": [
        {
          "code": "var firstErrorAsString = errorManager.getFirstErrorAsString();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstErrorAsString",
      "internal": false,
      "kind": "function",
      "name": "getFirstErrorAsString",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "string - first error as string. It can be undefined or null."
      },
      "signature": "errorManager.getFirstErrorAsString()",
      "summary": "Returns first error object as string",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirsterrorasstring"
    },
    {
      "examples": [
        {
          "code": "var firstErrorMessage = errorManager.getFirstErrorMessage();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstErrorMessage",
      "internal": false,
      "kind": "function",
      "name": "getFirstErrorMessage",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "String - message property value. It can be undefined or null."
      },
      "signature": "errorManager.getFirstErrorMessage()",
      "summary": "Returns first error's message property.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirsterrormessage"
    },
    {
      "examples": [
        {
          "code": "var firstErrorCode = errorManager.getFirstErrorCode();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstErrorCode",
      "internal": false,
      "kind": "function",
      "name": "getFirstErrorCode",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "String - code property value. It can be undefined or null."
      },
      "signature": "errorManager.getFirstErrorCode()",
      "summary": "Returns first error's code property.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirsterrorcode"
    },
    {
      "examples": [
        {
          "code": "var firstErrorContextArray = errorManager.getFirstErrorContextArray();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstErrorContextArray",
      "internal": false,
      "kind": "function",
      "name": "getFirstErrorContextArray",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "array - context property value as array. It can be undefined or null."
      },
      "signature": "errorManager.getFirstErrorContextArray()",
      "summary": "Returns first error's context property.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirsterrorcontextarray"
    },
    {
      "examples": [
        {
          "code": "var firstErrorContextArrayAsString = errorManager.getFirstErrorContextArrayAsString();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstErrorContextArrayAsString",
      "internal": false,
      "kind": "function",
      "name": "getFirstErrorContextArrayAsString",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "string - context property value as string. It can be undefined or null."
      },
      "signature": "errorManager.getFirstErrorContextArrayAsString()",
      "summary": "Returns first error's context property.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirsterrorcontextarrayasstring"
    },
    {
      "examples": [
        {
          "code": "var firstContextName = errorManager.getFirstContextName();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstContextName",
      "internal": false,
      "kind": "function",
      "name": "getFirstContextName",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "string - context name property value. It can be undefined or null."
      },
      "signature": "errorManager.getFirstContextName()",
      "summary": "Returns first error's first context's name property.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirstcontextname"
    },
    {
      "examples": [
        {
          "code": "var firstContextValue = errorManager.getFirstContextValue();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstContextValue",
      "internal": false,
      "kind": "function",
      "name": "getFirstContextValue",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "string - context value property value. It can be undefined or null."
      },
      "signature": "errorManager.getFirstContextValue()",
      "summary": "Returns first error's first context's value property.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirstcontextvalue"
    },
    {
      "examples": [
        {
          "code": "var firstContext = errorManager.getFirstContext();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstContext",
      "internal": false,
      "kind": "function",
      "name": "getFirstContext",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "Object - context object. It can be undefined or null."
      },
      "signature": "errorManager.getFirstContext()",
      "summary": "Returns first error's first context object.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirstcontext"
    },
    {
      "examples": [
        {
          "code": "var firstContextAsString = errorManager.getFirstContextAsString();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getFirstContextAsString",
      "internal": false,
      "kind": "function",
      "name": "getFirstContextAsString",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "string - context object as string. It can be undefined or null."
      },
      "signature": "errorManager.getFirstContextAsString()",
      "summary": "Returns first error's first context object as string.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetfirstcontextasstring"
    },
    {
      "examples": [
        {
          "code": "var errorsSize = errorManager.getErrorsSize();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getErrorsSize",
      "internal": false,
      "kind": "function",
      "name": "getErrorsSize",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "number - size of contained errors."
      },
      "signature": "errorManager.getErrorsSize()",
      "summary": "Returns number of errors contained.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergeterrorssize"
    },
    {
      "examples": [
        {
          "code": "var specificErrorObject = errorManager.getSpecificErrorObject(0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificErrorObject",
      "internal": false,
      "kind": "function",
      "name": "getSpecificErrorObject",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "index",
          "type": "number"
        }
      ],
      "returns": {
        "description": "Object - error object. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificErrorObject(index)",
      "summary": "Returns specific error object",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificerrorobjectindex"
    },
    {
      "examples": [
        {
          "code": "var specificErrorObjectAsString = errorManager.getSpecificErrorObjectAsString(0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificErrorObjectAsString",
      "internal": false,
      "kind": "function",
      "name": "getSpecificErrorObjectAsString",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "index",
          "type": "number"
        }
      ],
      "returns": {
        "description": "string - error object as string. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificErrorObjectAsString(index)",
      "summary": "Returns specific error object as a string",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificerrorobjectasstringindex"
    },
    {
      "examples": [
        {
          "code": "var specificErrorMessage = errorManager.getSpecificErrorMessage(0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificErrorMessage",
      "internal": false,
      "kind": "function",
      "name": "getSpecificErrorMessage",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "index",
          "type": "number"
        }
      ],
      "returns": {
        "description": "String - message property value for specified error. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificErrorMessage(index)",
      "summary": "Returns specific error's message",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificerrormessageindex"
    },
    {
      "examples": [
        {
          "code": "var specificErrorCode = errorManager.getSpecificErrorCode(0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificErrorCode",
      "internal": false,
      "kind": "function",
      "name": "getSpecificErrorCode",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "index",
          "type": "number"
        }
      ],
      "returns": {
        "description": "String - code property value for specified error. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificErrorCode(index)",
      "summary": "Returns specific error's code",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificerrorcodeindex"
    },
    {
      "examples": [
        {
          "code": "var specificErrorContextArray = errorManager.getSpecificErrorContextArray(0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificErrorContextArray",
      "internal": false,
      "kind": "function",
      "name": "getSpecificErrorContextArray",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "index",
          "type": "number"
        }
      ],
      "returns": {
        "description": "array - context property value as array. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificErrorContextArray(index)",
      "summary": "Returns specific error's context property as array.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificerrorcontextarrayindex"
    },
    {
      "examples": [
        {
          "code": "var specificErrorContextArrayAsString = errorManager.getSpecificErrorContextArrayAsString(0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificErrorContextArrayAsString",
      "internal": false,
      "kind": "function",
      "name": "getSpecificErrorContextArrayAsString",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "index",
          "type": "number"
        }
      ],
      "returns": {
        "description": "string - context property value for specified error. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificErrorContextArrayAsString(index)",
      "summary": "Returns specific error's context property as string.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificerrorcontextarrayasstringindex"
    },
    {
      "examples": [
        {
          "code": "var specificContext = errorManager.getSpecificContext(0, 0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificContext",
      "internal": false,
      "kind": "function",
      "name": "getSpecificContext",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "errorIndex",
          "type": "number"
        },
        {
          "description": "context index in specified error",
          "name": "contextIndex",
          "type": "number"
        }
      ],
      "returns": {
        "description": "Object - context object. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificContext(errorIndex, contextIndex)",
      "summary": "Returns specific context in specific error.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificcontexterrorindex-contextindex"
    },
    {
      "examples": [
        {
          "code": "var specificContextAsString = errorManager.getSpecificContextAsString(0, 0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificContextAsString",
      "internal": false,
      "kind": "function",
      "name": "getSpecificContextAsString",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "errorIndex",
          "type": "number"
        },
        {
          "description": "context index in specified error",
          "name": "contextIndex",
          "type": "number"
        }
      ],
      "returns": {
        "description": "string - context object. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificContextAsString(errorIndex, contextIndex)",
      "summary": "Returns specific context in specific error as string.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificcontextasstringerrorindex-contextindex"
    },
    {
      "examples": [
        {
          "code": "var specificContextName = errorManager.getSpecificContextName(0, 0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificContextName",
      "internal": false,
      "kind": "function",
      "name": "getSpecificContextName",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "errorIndex",
          "type": "number"
        },
        {
          "description": "context index in specified error",
          "name": "contextIndex",
          "type": "number"
        }
      ],
      "returns": {
        "description": "string - name property value for specified context. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificContextName(errorIndex, contextIndex)",
      "summary": "Returns specific context's name in specific error.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificcontextnameerrorindex-contextindex"
    },
    {
      "examples": [
        {
          "code": "var specificContextValue = errorManager.getSpecificContextValue(0, 0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getSpecificContextValue",
      "internal": false,
      "kind": "function",
      "name": "getSpecificContextValue",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "errorIndex",
          "type": "number"
        },
        {
          "description": "context index in specified error",
          "name": "contextIndex",
          "type": "number"
        }
      ],
      "returns": {
        "description": "string - value property value for specified context. It can be undefined or null."
      },
      "signature": "errorManager.getSpecificContextValue(errorIndex, contextIndex)",
      "summary": "Returns specific context's value in specific error.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetspecificcontextvalueerrorindex-contextindex"
    },
    {
      "examples": [
        {
          "code": "var administrationIdentifier = errorManager.getAdministrationIdentifier();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getAdministrationIdentifier",
      "internal": false,
      "kind": "function",
      "name": "getAdministrationIdentifier",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "string - It can be undefined or null."
      },
      "signature": "errorManager.getAdministrationIdentifier()",
      "summary": "Returns entity administration identifier.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetadministrationidentifier"
    },
    {
      "examples": [
        {
          "code": "var datastreamValue = errorManager.getDatastreamValue(0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getDatastreamValue",
      "internal": false,
      "kind": "function",
      "name": "getDatastreamValue",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "index",
          "type": "number"
        }
      ],
      "returns": {
        "description": "Object - Object with specific datastream. It can be undefined or null."
      },
      "signature": "errorManager.getDatastreamValue(index)",
      "summary": "Returns from entity (in OdmProvisionAction) specific datastream value (datastream._value._current.value). It can be an object or plain string.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetdatastreamvalueindex"
    },
    {
      "examples": [
        {
          "code": "var datastreamValueAsString = errorManager.getDatastreamValueAsString(0);",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getDatastreamValueAsString",
      "internal": false,
      "kind": "function",
      "name": "getDatastreamValueAsString",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "params": [
        {
          "description": "error index in errors list",
          "name": "index",
          "type": "number"
        }
      ],
      "returns": {
        "description": "string - String with specific datastream. It can be undefined or null."
      },
      "signature": "errorManager.getDatastreamValueAsString(index)",
      "summary": "Returns from entity (in OdmProvisionAction) specific datastream value (datastream._value._current.value). It can be a json string.",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetdatastreamvalueasstringindex"
    },
    {
      "examples": [
        {
          "code": "var action = errorManager.getAction();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getAction",
      "internal": false,
      "kind": "function",
      "name": "getAction",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "string - It can be undefined or null."
      },
      "signature": "errorManager.getAction()",
      "summary": "Returns provision action type (POST, PUT, PATCH, DELETE) from OdmProvisionAction",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetaction"
    },
    {
      "examples": [
        {
          "code": "var isPost = errorManager.isPost();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.isPost",
      "internal": false,
      "kind": "function",
      "name": "isPost",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "boolean - true if provision action is POST."
      },
      "signature": "errorManager.isPost()",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagerispost"
    },
    {
      "examples": [
        {
          "code": "var isPut = errorManager.isPut();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.isPut",
      "internal": false,
      "kind": "function",
      "name": "isPut",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "boolean - true if provision action is PUT."
      },
      "signature": "errorManager.isPut()",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagerisput"
    },
    {
      "examples": [
        {
          "code": "var isPatch = errorManager.isPatch();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.isPatch",
      "internal": false,
      "kind": "function",
      "name": "isPatch",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "boolean - true if provision action is PATCH."
      },
      "signature": "errorManager.isPatch()",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagerispatch"
    },
    {
      "examples": [
        {
          "code": "var isDelete = errorManager.isDelete();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.isDelete",
      "internal": false,
      "kind": "function",
      "name": "isDelete",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "boolean - true if provision action is DELETE."
      },
      "signature": "errorManager.isDelete()",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagerisdelete"
    },
    {
      "examples": [
        {
          "code": "var entityType = errorManager.getEntityType();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.getEntityType",
      "internal": false,
      "kind": "function",
      "name": "getEntityType",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "string - It can be undefined or null."
      },
      "signature": "errorManager.getEntityType()",
      "summary": "Returns provision entity type (asset, device, subscription, subscriber) from OdmProvisionAction",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagergetentitytype"
    },
    {
      "examples": [
        {
          "code": "var isSubscription = errorManager.isSubscription();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.isSubscription",
      "internal": false,
      "kind": "function",
      "name": "isSubscription",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "boolean - true if provision entity is subscription."
      },
      "signature": "errorManager.isSubscription()",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagerissubscription"
    },
    {
      "examples": [
        {
          "code": "var isSubscriber = errorManager.isSubscriber();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.isSubscriber",
      "internal": false,
      "kind": "function",
      "name": "isSubscriber",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "boolean - true if provision entity is subscriber."
      },
      "signature": "errorManager.isSubscriber()",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagerissubscriber"
    },
    {
      "examples": [
        {
          "code": "var isDevice = errorManager.isDevice();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.isDevice",
      "internal": false,
      "kind": "function",
      "name": "isDevice",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "boolean - true if provision entity is device."
      },
      "signature": "errorManager.isDevice()",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagerisdevice"
    },
    {
      "examples": [
        {
          "code": "var isAsset = errorManager.isAsset();",
          "language": "javascript"
        }
      ],
      "id": "errorManager.isAsset",
      "internal": false,
      "kind": "function",
      "name": "isAsset",
      "namespace": "errorManager",
      "page": {
        "title": "Error API",
        "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/",
        "weight": 6
      },
      "returns": {
        "description": "boolean - true if provision entity is asset."
      },
      "signature": "errorManager.isAsset()",
      "url": "api/management/organizations/channels/entities/bulk/provision_functions/provision_functions_errors_js_api/#errormanagerisasset"
    }
  ],
  "generatedAt": "2026-08-17T11:35:13Z",
  "internal": false,
  "platformVersion": "20.5.1-SNAPSHOT",
  "schemaVersion": "1.0"
}