From 75459c4f94fdc38de1616d2000d9880943e47473 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sun, 27 Jan 2019 12:57:49 +0000 Subject: [PATCH] Generated from 59e0c9edb7b7859abb45c76c118343b7998eb5c0 Add dispatch child to LUIS Runtime response --- .../LICENSE.txt | 2 +- .../cognitiveservices-luis-runtime/README.md | 8 +++---- .../lib/models/index.ts | 6 ++++- .../lib/models/mappers.ts | 7 ++++++ .../package.json | 3 ++- .../rollup.config.js | 22 ++++++++++++------- 6 files changed, 33 insertions(+), 15 deletions(-) diff --git a/packages/@azure/cognitiveservices-luis-runtime/LICENSE.txt b/packages/@azure/cognitiveservices-luis-runtime/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/LICENSE.txt +++ b/packages/@azure/cognitiveservices-luis-runtime/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/@azure/cognitiveservices-luis-runtime/README.md b/packages/@azure/cognitiveservices-luis-runtime/README.md index d54e65122cec..552d47a0d747 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/README.md +++ b/packages/@azure/cognitiveservices-luis-runtime/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for LUISRuntimeClient. ### How to Install -``` +```bash npm install @azure/cognitiveservices-luis-runtime ``` @@ -19,13 +19,13 @@ npm install @azure/cognitiveservices-luis-runtime ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; import { LUISRuntimeClient, LUISRuntimeModels, LUISRuntimeMappers } from "@azure/cognitiveservices-luis-runtime"; @@ -54,7 +54,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` diff --git a/packages/@azure/cognitiveservices-luis-runtime/lib/models/index.ts b/packages/@azure/cognitiveservices-luis-runtime/lib/models/index.ts index a2714ea251cd..572380deb27f 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/lib/models/index.ts +++ b/packages/@azure/cognitiveservices-luis-runtime/lib/models/index.ts @@ -126,7 +126,7 @@ export interface Sentiment { */ export interface LuisResult { /** - * @member {string} [query] The input utterance that was analized. + * @member {string} [query] The input utterance that was analyzed. */ query?: string; /** @@ -157,6 +157,10 @@ export interface LuisResult { * @member {Sentiment} [sentimentAnalysis] */ sentimentAnalysis?: Sentiment; + /** + * @member {LuisResult} [connectedServiceResult] + */ + connectedServiceResult?: LuisResult; } /** diff --git a/packages/@azure/cognitiveservices-luis-runtime/lib/models/mappers.ts b/packages/@azure/cognitiveservices-luis-runtime/lib/models/mappers.ts index db19d170b934..adfb6e94ce82 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/lib/models/mappers.ts +++ b/packages/@azure/cognitiveservices-luis-runtime/lib/models/mappers.ts @@ -235,6 +235,13 @@ export const LuisResult: msRest.CompositeMapper = { name: "Composite", className: "Sentiment" } + }, + connectedServiceResult: { + serializedName: "connectedServiceResult", + type: { + name: "Composite", + className: "LuisResult" + } } } } diff --git a/packages/@azure/cognitiveservices-luis-runtime/package.json b/packages/@azure/cognitiveservices-luis-runtime/package.json index 47df6e8c4ba9..68b4d2df77fa 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/package.json +++ b/packages/@azure/cognitiveservices-luis-runtime/package.json @@ -4,7 +4,7 @@ "description": "LUISRuntimeClient Library with typescript type definitions for node.js and browser.", "version": "0.1.0", "dependencies": { - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -22,6 +22,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/cognitiveservices-luis-runtime", diff --git a/packages/@azure/cognitiveservices-luis-runtime/rollup.config.js b/packages/@azure/cognitiveservices-luis-runtime/rollup.config.js index 3f361759ba07..ceb7313a16bd 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/rollup.config.js +++ b/packages/@azure/cognitiveservices-luis-runtime/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/lUISRuntimeClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/lUISRuntimeClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/cognitiveservices-luis-runtime.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;