loop54-js-connector
Advanced tools
Comparing version 1.9.128 to 1.10.143
@@ -65,3 +65,3 @@ 'use strict'; | ||
versions: { | ||
libVersion: "1.9.128", //"128" will be replaced by teamcity. also in package.json | ||
libVersion: "1.10.143", //"143" will be replaced by teamcity. also in package.json | ||
apiVersion: "V3" | ||
@@ -606,3 +606,50 @@ }, | ||
}, | ||
/** | ||
* Used to perform a request to get information about attributes, indexed and non-indexed. | ||
*/ | ||
getIndexedAttributes: function () { | ||
var args = core.getOptionsAndCallback(arguments, 0); | ||
if (args.error) { | ||
return core.returnError(args.error,args.callback); | ||
} | ||
var options = args.options ? args.options : {}; | ||
var callback = args.callback ? args.callback : null; | ||
var req = core.call(this.endpoint, "/getIndexedAttributes", { | ||
customData:options.customData | ||
}, null, callback, userId, apiKey, customHeaders); | ||
return req; | ||
}, | ||
/** | ||
* Used to perform a request to get a list of all unique values that are indexed for the provided attribute. | ||
* @param {string} attributeName The name of the attribute for which to fetch indexed values. | ||
*/ | ||
getIndexedAttributeValues: function (attributeName) { | ||
var args = core.getOptionsAndCallback(arguments, 1); | ||
if (args.error) { | ||
return core.returnError(args.error,args.callback); | ||
} | ||
var options = args.options ? args.options : {}; | ||
var callback = args.callback ? args.callback : null; | ||
//validate input | ||
if (typeof(attributeName) != "string" || attributeName.length == 0) { | ||
return core.returnError("attributeName is either missing or not a string", callback); | ||
} | ||
var req = core.call(this.endpoint, "/getIndexedAttributeValues", { | ||
attributeName: attributeName, | ||
customData:options.customData | ||
}, null, callback, userId, apiKey, customHeaders); | ||
return req; | ||
}, | ||
/** | ||
@@ -609,0 +656,0 @@ * Used for removing current userId cookie and setting a new one. |
{ | ||
"name": "loop54-js-connector", | ||
"version": "1.9.128", | ||
"version": "1.10.143", | ||
"description": "JS Wrapper for Loop54 JSON API", | ||
@@ -36,3 +36,3 @@ "license": "BSD-3-Clause", | ||
"babelify": "^10.0.0", | ||
"chai": "^3.4.1", | ||
"chai": "^4.0.0", | ||
"chai-as-promised": "^7.1.1", | ||
@@ -39,0 +39,0 @@ "express": "^4.16.2", |
@@ -150,2 +150,4 @@ # JS-Connector | ||
- CreateEvents | ||
- GetIndexedAttributes | ||
- GetIndexedAttributeValues | ||
@@ -152,0 +154,0 @@ It also aids in developing a Loop54 integration by: |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
591655
8904
185