@azure/cognitiveservices-luis-runtime
Advanced tools
Comparing version 1.2.1 to 2.0.0
@@ -583,3 +583,3 @@ /* | ||
var packageName = "@azure/cognitiveservices-luis-runtime"; | ||
var packageVersion = "1.2.0"; | ||
var packageVersion = "2.0.0"; | ||
var LUISRuntimeClientContext = /** @class */ (function (_super) { | ||
@@ -594,9 +594,9 @@ __extends(LUISRuntimeClientContext, _super); | ||
*/ | ||
function LUISRuntimeClientContext(endpoint, credentials, options) { | ||
function LUISRuntimeClientContext(credentials, endpoint, options) { | ||
var _this = this; | ||
if (endpoint === null || endpoint === undefined) { | ||
throw new Error('\'endpoint\' cannot be null.'); | ||
if (endpoint == undefined) { | ||
throw new Error("'endpoint' cannot be null."); | ||
} | ||
if (credentials === null || credentials === undefined) { | ||
throw new Error('\'credentials\' cannot be null.'); | ||
if (credentials == undefined) { | ||
throw new Error("'credentials' cannot be null."); | ||
} | ||
@@ -638,4 +638,4 @@ if (!options) { | ||
*/ | ||
function LUISRuntimeClient(endpoint, credentials, options) { | ||
var _this = _super.call(this, endpoint, credentials, options) || this; | ||
function LUISRuntimeClient(credentials, endpoint, options) { | ||
var _this = _super.call(this, credentials, endpoint, options) || this; | ||
_this.prediction = new Prediction(_this); | ||
@@ -642,0 +642,0 @@ return _this; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-js"],t):t((e.Azure=e.Azure||{},e.Azure.CognitiveservicesLuisRuntime={}),e.msRest)}(this,function(e,o){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function t(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var i=function(){return(i=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.freeze({}),a={serializedName:"IntentModel",type:{name:"Composite",className:"IntentModel",modelProperties:{intent:{serializedName:"intent",type:{name:"String"}},score:{serializedName:"score",constraints:{InclusiveMaximum:1,InclusiveMinimum:0},type:{name:"Number"}}}}},s={serializedName:"EntityModel",type:{name:"Composite",className:"EntityModel",modelProperties:{entity:{required:!0,serializedName:"entity",type:{name:"String"}},type:{required:!0,serializedName:"type",type:{name:"String"}},startIndex:{required:!0,serializedName:"startIndex",type:{name:"Number"}},endIndex:{required:!0,serializedName:"endIndex",type:{name:"Number"}}},additionalProperties:{type:{name:"Object"}}}},m={serializedName:"CompositeChildModel",type:{name:"Composite",className:"CompositeChildModel",modelProperties:{type:{required:!0,serializedName:"type",type:{name:"String"}},value:{required:!0,serializedName:"value",type:{name:"String"}}}}},p={serializedName:"CompositeEntityModel",type:{name:"Composite",className:"CompositeEntityModel",modelProperties:{parentType:{required:!0,serializedName:"parentType",type:{name:"String"}},value:{required:!0,serializedName:"value",type:{name:"String"}},children:{required:!0,serializedName:"children",type:{name:"Sequence",element:{type:{name:"Composite",className:"CompositeChildModel"}}}}}}},l={serializedName:"Sentiment",type:{name:"Composite",className:"Sentiment",modelProperties:{label:{serializedName:"label",type:{name:"String"}},score:{serializedName:"score",type:{name:"Number"}}}}},d={serializedName:"LuisResult",type:{name:"Composite",className:"LuisResult",modelProperties:{query:{serializedName:"query",type:{name:"String"}},alteredQuery:{serializedName:"alteredQuery",type:{name:"String"}},topScoringIntent:{serializedName:"topScoringIntent",type:{name:"Composite",className:"IntentModel"}},intents:{serializedName:"intents",type:{name:"Sequence",element:{type:{name:"Composite",className:"IntentModel"}}}},entities:{serializedName:"entities",type:{name:"Sequence",element:{type:{name:"Composite",className:"EntityModel",additionalProperties:{type:{name:"Object"}}}}}},compositeEntities:{serializedName:"compositeEntities",type:{name:"Sequence",element:{type:{name:"Composite",className:"CompositeEntityModel"}}}},sentimentAnalysis:{serializedName:"sentimentAnalysis",type:{name:"Composite",className:"Sentiment"}},connectedServiceResult:{serializedName:"connectedServiceResult",type:{name:"Composite",className:"LuisResult"}}}}},u={serializedName:"EntityWithScore",type:{name:"Composite",className:"EntityWithScore",modelProperties:i({},s.type.modelProperties,{score:{required:!0,serializedName:"score",constraints:{InclusiveMaximum:1,InclusiveMinimum:0},type:{name:"Number"}}}),additionalProperties:s.type.additionalProperties}},y={serializedName:"EntityWithResolution",type:{name:"Composite",className:"EntityWithResolution",modelProperties:i({},s.type.modelProperties,{resolution:{required:!0,serializedName:"resolution",type:{name:"Object"}}}),additionalProperties:s.type.additionalProperties}},c={serializedName:"APIError",type:{name:"Composite",className:"APIError",modelProperties:{statusCode:{serializedName:"statusCode",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},N=Object.freeze({IntentModel:a,EntityModel:s,CompositeChildModel:m,CompositeEntityModel:p,Sentiment:l,LuisResult:d,EntityWithScore:u,EntityWithResolution:y,APIError:c}),z=Object.freeze({APIError:c,CompositeChildModel:m,CompositeEntityModel:p,EntityModel:s,EntityWithResolution:y,EntityWithScore:u,IntentModel:a,LuisResult:d,Sentiment:l}),h=function(){function e(e){this.client=e}return e.prototype.resolve=function(e,t,i,n){return this.client.sendOperationRequest({appId:e,query:t,options:i},f,n)},e}(),f={httpMethod:"POST",path:"apps/{appId}",urlParameters:[{parameterPath:"endpoint",mapper:{required:!0,serializedName:"Endpoint",defaultValue:"",type:{name:"String"}},skipEncoding:!0},{parameterPath:"appId",mapper:{required:!0,serializedName:"appId",type:{name:"String"}}}],queryParameters:[{parameterPath:["options","timezoneOffset"],mapper:{serializedName:"timezoneOffset",type:{name:"Number"}}},{parameterPath:["options","verbose"],mapper:{serializedName:"verbose",type:{name:"Boolean"}}},{parameterPath:["options","staging"],mapper:{serializedName:"staging",type:{name:"Boolean"}}},{parameterPath:["options","spellCheck"],mapper:{serializedName:"spellCheck",type:{name:"Boolean"}}},{parameterPath:["options","bingSpellCheckSubscriptionKey"],mapper:{serializedName:"bing-spell-check-subscription-key",type:{name:"String"}}},{parameterPath:["options","log"],mapper:{serializedName:"log",type:{name:"Boolean"}}}],requestBody:{parameterPath:"query",mapper:{required:!0,serializedName:"query",constraints:{MaxLength:500},type:{name:"String"}}},responses:{200:{bodyMapper:d},default:{bodyMapper:c}},serializer:new o.Serializer(z)},C=function(a){function e(e,t,i){var n=this;if(null==e)throw new Error("'endpoint' cannot be null.");if(null==t)throw new Error("'credentials' cannot be null.");if(i||(i={}),!i.userAgent){var r=o.getDefaultUserAgentValue();i.userAgent="@azure/cognitiveservices-luis-runtime/1.2.0 "+r}return(n=a.call(this,t,i)||this).baseUri="{Endpoint}/luis/v2.0",n.requestContentType="application/json; charset=utf-8",n.endpoint=e,n.credentials=t,n}return t(e,a),e}(o.ServiceClient),S=function(r){function e(e,t,i){var n=r.call(this,e,t,i)||this;return n.prediction=new h(n),n}return t(e,r),e}(C);e.LUISRuntimeClient=S,e.LUISRuntimeClientContext=C,e.LUISRuntimeModels=r,e.LUISRuntimeMappers=N,e.Prediction=h,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-js"],t):t((e.Azure=e.Azure||{},e.Azure.CognitiveservicesLuisRuntime={}),e.msRest)}(this,function(e,o){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function t(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var i=function(){return(i=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.freeze({}),a={serializedName:"IntentModel",type:{name:"Composite",className:"IntentModel",modelProperties:{intent:{serializedName:"intent",type:{name:"String"}},score:{serializedName:"score",constraints:{InclusiveMaximum:1,InclusiveMinimum:0},type:{name:"Number"}}}}},s={serializedName:"EntityModel",type:{name:"Composite",className:"EntityModel",modelProperties:{entity:{required:!0,serializedName:"entity",type:{name:"String"}},type:{required:!0,serializedName:"type",type:{name:"String"}},startIndex:{required:!0,serializedName:"startIndex",type:{name:"Number"}},endIndex:{required:!0,serializedName:"endIndex",type:{name:"Number"}}},additionalProperties:{type:{name:"Object"}}}},m={serializedName:"CompositeChildModel",type:{name:"Composite",className:"CompositeChildModel",modelProperties:{type:{required:!0,serializedName:"type",type:{name:"String"}},value:{required:!0,serializedName:"value",type:{name:"String"}}}}},p={serializedName:"CompositeEntityModel",type:{name:"Composite",className:"CompositeEntityModel",modelProperties:{parentType:{required:!0,serializedName:"parentType",type:{name:"String"}},value:{required:!0,serializedName:"value",type:{name:"String"}},children:{required:!0,serializedName:"children",type:{name:"Sequence",element:{type:{name:"Composite",className:"CompositeChildModel"}}}}}}},l={serializedName:"Sentiment",type:{name:"Composite",className:"Sentiment",modelProperties:{label:{serializedName:"label",type:{name:"String"}},score:{serializedName:"score",type:{name:"Number"}}}}},d={serializedName:"LuisResult",type:{name:"Composite",className:"LuisResult",modelProperties:{query:{serializedName:"query",type:{name:"String"}},alteredQuery:{serializedName:"alteredQuery",type:{name:"String"}},topScoringIntent:{serializedName:"topScoringIntent",type:{name:"Composite",className:"IntentModel"}},intents:{serializedName:"intents",type:{name:"Sequence",element:{type:{name:"Composite",className:"IntentModel"}}}},entities:{serializedName:"entities",type:{name:"Sequence",element:{type:{name:"Composite",className:"EntityModel",additionalProperties:{type:{name:"Object"}}}}}},compositeEntities:{serializedName:"compositeEntities",type:{name:"Sequence",element:{type:{name:"Composite",className:"CompositeEntityModel"}}}},sentimentAnalysis:{serializedName:"sentimentAnalysis",type:{name:"Composite",className:"Sentiment"}},connectedServiceResult:{serializedName:"connectedServiceResult",type:{name:"Composite",className:"LuisResult"}}}}},u={serializedName:"EntityWithScore",type:{name:"Composite",className:"EntityWithScore",modelProperties:i({},s.type.modelProperties,{score:{required:!0,serializedName:"score",constraints:{InclusiveMaximum:1,InclusiveMinimum:0},type:{name:"Number"}}}),additionalProperties:s.type.additionalProperties}},y={serializedName:"EntityWithResolution",type:{name:"Composite",className:"EntityWithResolution",modelProperties:i({},s.type.modelProperties,{resolution:{required:!0,serializedName:"resolution",type:{name:"Object"}}}),additionalProperties:s.type.additionalProperties}},c={serializedName:"APIError",type:{name:"Composite",className:"APIError",modelProperties:{statusCode:{serializedName:"statusCode",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},N=Object.freeze({IntentModel:a,EntityModel:s,CompositeChildModel:m,CompositeEntityModel:p,Sentiment:l,LuisResult:d,EntityWithScore:u,EntityWithResolution:y,APIError:c}),z=Object.freeze({APIError:c,CompositeChildModel:m,CompositeEntityModel:p,EntityModel:s,EntityWithResolution:y,EntityWithScore:u,IntentModel:a,LuisResult:d,Sentiment:l}),h=function(){function e(e){this.client=e}return e.prototype.resolve=function(e,t,i,n){return this.client.sendOperationRequest({appId:e,query:t,options:i},f,n)},e}(),f={httpMethod:"POST",path:"apps/{appId}",urlParameters:[{parameterPath:"endpoint",mapper:{required:!0,serializedName:"Endpoint",defaultValue:"",type:{name:"String"}},skipEncoding:!0},{parameterPath:"appId",mapper:{required:!0,serializedName:"appId",type:{name:"String"}}}],queryParameters:[{parameterPath:["options","timezoneOffset"],mapper:{serializedName:"timezoneOffset",type:{name:"Number"}}},{parameterPath:["options","verbose"],mapper:{serializedName:"verbose",type:{name:"Boolean"}}},{parameterPath:["options","staging"],mapper:{serializedName:"staging",type:{name:"Boolean"}}},{parameterPath:["options","spellCheck"],mapper:{serializedName:"spellCheck",type:{name:"Boolean"}}},{parameterPath:["options","bingSpellCheckSubscriptionKey"],mapper:{serializedName:"bing-spell-check-subscription-key",type:{name:"String"}}},{parameterPath:["options","log"],mapper:{serializedName:"log",type:{name:"Boolean"}}}],requestBody:{parameterPath:"query",mapper:{required:!0,serializedName:"query",constraints:{MaxLength:500},type:{name:"String"}}},responses:{200:{bodyMapper:d},default:{bodyMapper:c}},serializer:new o.Serializer(z)},C=function(a){function e(e,t,i){var n=this;if(null==t)throw new Error("'endpoint' cannot be null.");if(null==e)throw new Error("'credentials' cannot be null.");if(i||(i={}),!i.userAgent){var r=o.getDefaultUserAgentValue();i.userAgent="@azure/cognitiveservices-luis-runtime/2.0.0 "+r}return(n=a.call(this,e,i)||this).baseUri="{Endpoint}/luis/v2.0",n.requestContentType="application/json; charset=utf-8",n.endpoint=t,n.credentials=e,n}return t(e,a),e}(o.ServiceClient),S=function(r){function e(e,t,i){var n=r.call(this,e,t,i)||this;return n.prediction=new h(n),n}return t(e,r),e}(C);e.LUISRuntimeClient=S,e.LUISRuntimeClientContext=C,e.LUISRuntimeModels=r,e.LUISRuntimeMappers=N,e.Prediction=h,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -15,3 +15,3 @@ import * as msRest from "@azure/ms-rest-js"; | ||
*/ | ||
constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions); | ||
constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions); | ||
} | ||
@@ -18,0 +18,0 @@ export { LUISRuntimeClient, LUISRuntimeClientContext, Models as LUISRuntimeModels, Mappers as LUISRuntimeMappers }; |
@@ -24,4 +24,4 @@ /* | ||
*/ | ||
function LUISRuntimeClient(endpoint, credentials, options) { | ||
var _this = _super.call(this, endpoint, credentials, options) || this; | ||
function LUISRuntimeClient(credentials, endpoint, options) { | ||
var _this = _super.call(this, credentials, endpoint, options) || this; | ||
_this.prediction = new operations.Prediction(_this); | ||
@@ -28,0 +28,0 @@ return _this; |
@@ -12,4 +12,4 @@ import * as msRest from "@azure/ms-rest-js"; | ||
*/ | ||
constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions); | ||
constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions); | ||
} | ||
//# sourceMappingURL=lUISRuntimeClientContext.d.ts.map |
@@ -13,3 +13,3 @@ /* | ||
var packageName = "@azure/cognitiveservices-luis-runtime"; | ||
var packageVersion = "1.2.0"; | ||
var packageVersion = "2.0.0"; | ||
var LUISRuntimeClientContext = /** @class */ (function (_super) { | ||
@@ -24,9 +24,9 @@ tslib_1.__extends(LUISRuntimeClientContext, _super); | ||
*/ | ||
function LUISRuntimeClientContext(endpoint, credentials, options) { | ||
function LUISRuntimeClientContext(credentials, endpoint, options) { | ||
var _this = this; | ||
if (endpoint === null || endpoint === undefined) { | ||
throw new Error('\'endpoint\' cannot be null.'); | ||
if (endpoint == undefined) { | ||
throw new Error("'endpoint' cannot be null."); | ||
} | ||
if (credentials === null || credentials === undefined) { | ||
throw new Error('\'credentials\' cannot be null.'); | ||
if (credentials == undefined) { | ||
throw new Error("'credentials' cannot be null."); | ||
} | ||
@@ -33,0 +33,0 @@ if (!options) { |
@@ -28,4 +28,4 @@ /* | ||
*/ | ||
constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { | ||
super(endpoint, credentials, options); | ||
constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions) { | ||
super(credentials, endpoint, options); | ||
this.prediction = new operations.Prediction(this); | ||
@@ -32,0 +32,0 @@ } |
@@ -14,3 +14,3 @@ /* | ||
const packageName = "@azure/cognitiveservices-luis-runtime"; | ||
const packageVersion = "1.2.0"; | ||
const packageVersion = "2.0.0"; | ||
@@ -28,8 +28,8 @@ export class LUISRuntimeClientContext extends msRest.ServiceClient { | ||
*/ | ||
constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { | ||
if (endpoint === null || endpoint === undefined) { | ||
throw new Error('\'endpoint\' cannot be null.'); | ||
constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions) { | ||
if (endpoint == undefined) { | ||
throw new Error("'endpoint' cannot be null."); | ||
} | ||
if (credentials === null || credentials === undefined) { | ||
throw new Error('\'credentials\' cannot be null.'); | ||
if (credentials == undefined) { | ||
throw new Error("'credentials' cannot be null."); | ||
} | ||
@@ -36,0 +36,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "LUISRuntimeClient Library with typescript type definitions for node.js and browser.", | ||
"version": "1.2.1", | ||
"version": "2.0.0", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@azure/ms-rest-js": "^1.6.0", |
@@ -111,1 +111,4 @@ ## An isomorphic javascript sdk for - LUISRuntimeClient | ||
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) | ||
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Fcognitiveservices-luis-runtime%2FREADME.png) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
114
145222