a05cf1a2d168e5e1a06ece9761e44f8490b902283936df27bca57b283512e83e.json 5.3 KB

1
  1. {"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.IntentRecognitionCanceledEventArgs = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Define payload of intent recognition canceled result events.\n * @class IntentRecognitionCanceledEventArgs\n */\nclass IntentRecognitionCanceledEventArgs extends Exports_js_1.IntentRecognitionEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {CancellationReason} result - The result of the intent recognition.\n * @param {string} offset - The offset.\n * @param {IntentRecognitionResult} sessionId - The session id.\n */\n constructor(reason, errorDetails, errorCode, result, offset, sessionId) {\n super(result, offset, sessionId);\n this.privReason = reason;\n this.privErrorDetails = errorDetails;\n this.privErrorCode = errorCode;\n }\n /**\n * The reason the recognition was canceled.\n * @member IntentRecognitionCanceledEventArgs.prototype.reason\n * @function\n * @public\n * @returns {CancellationReason} Specifies the reason canceled.\n */\n get reason() {\n return this.privReason;\n }\n /**\n * The error code in case of an unsuccessful recognition.\n * Added in version 1.1.0.\n * @return An error code that represents the error reason.\n */\n get errorCode() {\n return this.privErrorCode;\n }\n /**\n * In case of an unsuccessful recognition, provides details of the occurred error.\n * @member IntentRecognitionCanceledEventArgs.prototype.errorDetails\n * @function\n * @public\n * @returns {string} A String that represents the error details.\n */\n get errorDetails() {\n return this.privErrorDetails;\n }\n}\nexports.IntentRecognitionCanceledEventArgs = IntentRecognitionCanceledEventArgs;","map":{"version":3,"names":["Object","defineProperty","exports","value","IntentRecognitionCanceledEventArgs","Exports_js_1","require","IntentRecognitionEventArgs","constructor","reason","errorDetails","errorCode","result","offset","sessionId","privReason","privErrorDetails","privErrorCode"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/IntentRecognitionCanceledEventArgs.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IntentRecognitionCanceledEventArgs = void 0;\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Define payload of intent recognition canceled result events.\n * @class IntentRecognitionCanceledEventArgs\n */\nclass IntentRecognitionCanceledEventArgs extends Exports_js_1.IntentRecognitionEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {CancellationReason} result - The result of the intent recognition.\n * @param {string} offset - The offset.\n * @param {IntentRecognitionResult} sessionId - The session id.\n */\n constructor(reason, errorDetails, errorCode, result, offset, sessionId) {\n super(result, offset, sessionId);\n this.privReason = reason;\n this.privErrorDetails = errorDetails;\n this.privErrorCode = errorCode;\n }\n /**\n * The reason the recognition was canceled.\n * @member IntentRecognitionCanceledEventArgs.prototype.reason\n * @function\n * @public\n * @returns {CancellationReason} Specifies the reason canceled.\n */\n get reason() {\n return this.privReason;\n }\n /**\n * The error code in case of an unsuccessful recognition.\n * Added in version 1.1.0.\n * @return An error code that represents the error reason.\n */\n get errorCode() {\n return this.privErrorCode;\n }\n /**\n * In case of an unsuccessful recognition, provides details of the occurred error.\n * @member IntentRecognitionCanceledEventArgs.prototype.errorDetails\n * @function\n * @public\n * @returns {string} A String that represents the error details.\n */\n get errorDetails() {\n return this.privErrorDetails;\n }\n}\nexports.IntentRecognitionCanceledEventArgs = IntentRecognitionCanceledEventArgs;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,kCAAkC,GAAG,KAAK,CAAC;AACnD,MAAMC,YAAY,GAAGC,OAAO,CAAC,cAAc,CAAC;AAC5C;AACA;AACA;AACA;AACA,MAAMF,kCAAkC,SAASC,YAAY,CAACE,0BAA0B,CAAC;EACrF;AACJ;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,MAAM,EAAEC,YAAY,EAAEC,SAAS,EAAEC,MAAM,EAAEC,MAAM,EAAEC,SAAS,EAAE;IACpE,KAAK,CAACF,MAAM,EAAEC,MAAM,EAAEC,SAAS,CAAC;IAChC,IAAI,CAACC,UAAU,GAAGN,MAAM;IACxB,IAAI,CAACO,gBAAgB,GAAGN,YAAY;IACpC,IAAI,CAACO,aAAa,GAAGN,SAAS;EAClC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIF,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACM,UAAU;EAC1B;EACA;AACJ;AACA;AACA;AACA;EACI,IAAIJ,SAASA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACM,aAAa;EAC7B;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIP,YAAYA,CAAA,EAAG;IACf,OAAO,IAAI,CAACM,gBAAgB;EAChC;AACJ;AACAd,OAAO,CAACE,kCAAkC,GAAGA,kCAAkC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}