Comparing version 7.3.6 to 7.3.7
@@ -918,3 +918,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
// Answers | ||
// Intents Answers | ||
@@ -948,3 +948,3 @@ }, { | ||
// Questions | ||
// Intents Questions | ||
@@ -1094,2 +1094,71 @@ }, { | ||
} | ||
//Content Assistant | ||
}, { | ||
key: 'analyseContent', | ||
value: function analyseContent(analysis) { | ||
return this._processCommand(this._createSetCommand(UriTemplates.CONTENT_ANALYSIS, ContentTypes.ANALYSIS, analysis, this._to)); | ||
} | ||
}, { | ||
key: 'matchContent', | ||
value: function matchContent(combination) { | ||
return this._processCommand(this._createSetCommand(UriTemplates.CONTENT_ANALYSIS, ContentTypes.CONTENT_COMBINATION, combination, this._to)); | ||
} | ||
}, { | ||
key: 'getContents', | ||
value: function getContents() { | ||
var skip = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; | ||
var take = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100; | ||
var ascending = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; | ||
var intents = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; | ||
var entities = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : []; | ||
var text = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : ''; | ||
var beginDate = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : ''; | ||
var endDate = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : ''; | ||
return this._processCommand(this._createGetCommand(this._buildResourceQuery(UriTemplates.CONTENT, { | ||
$skip: skip, | ||
$take: take, | ||
$ascending: ascending, | ||
intents: intents, | ||
entities: entities, | ||
text: text, | ||
beginDate: beginDate, | ||
endDate: endDate | ||
}), this._to)); | ||
} | ||
}, { | ||
key: 'getContent', | ||
value: function getContent(id) { | ||
return this._processCommand(this._createGetCommand(this._buildUri(UriTemplates.CONTENT_ID, id), this._to)); | ||
} | ||
}, { | ||
key: 'setContent', | ||
value: function setContent(content) { | ||
return this._processCommand(this._createSetCommand(UriTemplates.CONTENT, ContentTypes.CONTENT_RESULT, content, this._to)); | ||
} | ||
}, { | ||
key: 'setContentResult', | ||
value: function setContentResult(id, content) { | ||
return this._processCommand(this._createSetCommand(this._buildUri(UriTemplates.CONTENT_ID, id), ContentTypes.CONTENT_RESULT, content, this._to)); | ||
} | ||
}, { | ||
key: 'setContentCombination', | ||
value: function setContentCombination(id, combination) { | ||
return this._processCommand(this._createSetCommand(this._buildUri(UriTemplates.CONTENT_ID, id), ContentTypes.CONTENT_COMBINATION, combination, this._to)); | ||
} | ||
}, { | ||
key: 'setContentCombinations', | ||
value: function setContentCombinations(id, combinations) { | ||
return this._processCommand(this._createSetCommand(this._buildUri(UriTemplates.CONTENT_ID, id), Lime.ContentTypes.COLLECTION, { | ||
itemType: ContentTypes.CONTENT_COMBINATION, | ||
items: combinations | ||
}, this._to)); | ||
} | ||
}, { | ||
key: 'deleteContent', | ||
value: function deleteContent(id) { | ||
return this._processCommand(this._createDeleteCommand(this._buildUri(UriTemplates.CONTENT_ID, id), this._to)); | ||
} | ||
}]); | ||
@@ -1153,2 +1222,8 @@ | ||
var WORD_SETS_ANALYSIS = exports.WORD_SETS_ANALYSIS = '/word-sets-analysis '; | ||
var CONTENT = exports.CONTENT = '/content'; | ||
var CONTENT_ID = exports.CONTENT_ID = '/content/{0}'; | ||
var CONTENT_ANALYSIS = exports.CONTENT_ANALYSIS = '/content/analysis'; | ||
@@ -1172,2 +1247,6 @@ /***/ }), | ||
var CONTENT_RESULT = exports.CONTENT_RESULT = 'application/vnd.iris.ai.content-result+json'; | ||
var CONTENT_COMBINATION = exports.CONTENT_COMBINATION = 'application/vnd.iris.ai.content-combination+json'; | ||
var ENTITY = exports.ENTITY = 'application/vnd.iris.ai.entity+json'; | ||
@@ -1174,0 +1253,0 @@ |
{ | ||
"name": "blip-sdk", | ||
"version": "7.3.6", | ||
"version": "7.3.7", | ||
"description": "BLiP SDK JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/blip-sdk.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72988
1359