botbuilder
Advanced tools
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Session_1 = require("./Session"); | ||
@@ -3,0 +4,0 @@ exports.Session = Session_1.Session; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var OpenIdMetadata_1 = require("./OpenIdMetadata"); | ||
@@ -3,0 +4,0 @@ var utils = require("../utils"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Message_1 = require("../Message"); | ||
@@ -73,2 +74,3 @@ var utils = require("../utils"); | ||
addresses.push(adr); | ||
cb(null); | ||
} | ||
@@ -75,0 +77,0 @@ else { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var WaterfallDialog_1 = require("../dialogs/WaterfallDialog"); | ||
@@ -8,0 +14,0 @@ var ActionSet_1 = require("../dialogs/ActionSet"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var logger = require("../logger"); | ||
@@ -3,0 +4,0 @@ var request = require("request"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Library_1 = require("./Library"); | ||
@@ -8,0 +14,0 @@ var Session_1 = require("../Session"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var MediaCard_1 = require("./MediaCard"); | ||
@@ -8,0 +14,0 @@ var AnimationCard = (function (_super) { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var MediaCard_1 = require("./MediaCard"); | ||
@@ -8,0 +14,0 @@ var AudioCard = (function (_super) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Message_1 = require("../Message"); | ||
@@ -3,0 +4,0 @@ var CardAction = (function () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Message_1 = require("../Message"); | ||
@@ -3,0 +4,0 @@ var CardImage = (function () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var CardMedia = (function () { | ||
@@ -3,0 +4,0 @@ function CardMedia(session) { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ThumbnailCard_1 = require("./ThumbnailCard"); | ||
@@ -8,0 +14,0 @@ var HeroCard = (function (_super) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Keyboard = (function () { | ||
@@ -3,0 +4,0 @@ function Keyboard(session) { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Message_1 = require("../Message"); | ||
@@ -8,0 +14,0 @@ var Keyboard_1 = require("./Keyboard"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Message_1 = require("../Message"); | ||
@@ -3,0 +4,0 @@ var ReceiptCard = (function () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Message_1 = require("../Message"); | ||
@@ -3,0 +4,0 @@ var SigninCard = (function () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var SuggestedActions = (function () { | ||
@@ -3,0 +4,0 @@ function SuggestedActions(session) { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Message_1 = require("../Message"); | ||
@@ -8,0 +14,0 @@ var Keyboard_1 = require("./Keyboard"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Message_1 = require("../Message"); | ||
@@ -8,0 +14,0 @@ var MediaCard_1 = require("./MediaCard"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.channels = { | ||
@@ -3,0 +4,0 @@ facebook: 'facebook', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.agent = 'botbuilder'; | ||
@@ -3,0 +4,0 @@ exports.messageType = 'message'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Library_1 = require("./bots/Library"); | ||
var logger = require("./logger"); | ||
@@ -22,3 +24,3 @@ var consts = require("./consts"); | ||
var path = library.localePath(); | ||
if (path) { | ||
if (path && fs.existsSync(path)) { | ||
_that.localePaths.push(path); | ||
@@ -28,2 +30,3 @@ } | ||
} | ||
libsSeen[Library_1.systemLib.name] = true; | ||
addPaths(root); | ||
@@ -104,2 +107,3 @@ } | ||
var _this = this; | ||
var asyncEachSeries = Promise.denodeify(async.eachSeries); | ||
if (!this.locales.hasOwnProperty(locale)) { | ||
@@ -109,12 +113,8 @@ var entry; | ||
entry.loaded = new Promise(function (resolve, reject) { | ||
async.eachSeries(_this.localePaths, function (path, cb) { | ||
_this.loadLocalePath(locale, path).done(function () { return cb(); }, function (err) { return cb(err); }); | ||
}, function (err) { | ||
if (err) { | ||
reject(err); | ||
} | ||
else { | ||
resolve(true); | ||
} | ||
}); | ||
_this.loadSystemResources(locale) | ||
.then(function () { | ||
return asyncEachSeries(_this.localePaths, function (localePath, cb) { | ||
_this.loadLocalePath(locale, localePath).done(function () { return cb(); }, function (err) { return cb(err); }); | ||
}); | ||
}).done(function () { return resolve(true); }, function (err) { return reject(err); }); | ||
}); | ||
@@ -199,2 +199,25 @@ } | ||
}; | ||
DefaultLocalizer.prototype.loadSystemResources = function (locale) { | ||
var _this = this; | ||
return new Promise(function (resolve, reject) { | ||
var access = Promise.denodeify(fs.access); | ||
var dir = path.join(Library_1.systemLib.localePath(), locale); | ||
var filename = Library_1.systemLib.name + '.json'; | ||
var filepath = path.join(dir, filename); | ||
access(filepath) | ||
.then(function () { | ||
return _this.parseFile(locale, dir, filename); | ||
}) | ||
.done(function (count) { return resolve(count); }, function (err) { | ||
if (err.code === 'ENOENT') { | ||
logger.debug("localizer.loadSystemResources(%s) - Couldn't find file: %s", locale, filepath); | ||
resolve(-1); | ||
} | ||
else { | ||
logger.error('localizer.loadSystemResources(%s) - Error: %s', locale, err.toString()); | ||
reject(err); | ||
} | ||
}); | ||
}); | ||
}; | ||
DefaultLocalizer.prototype.createKey = function (ns, msgid) { | ||
@@ -201,0 +224,0 @@ var escapedMsgId = this.escapeKey(msgid); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var UniversalBot_1 = require("../bots/UniversalBot"); | ||
@@ -3,0 +4,0 @@ var ChatConnector_1 = require("../bots/ChatConnector"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Dialog_1 = require("../dialogs/Dialog"); | ||
@@ -8,0 +14,0 @@ var IntentDialog_1 = require("../dialogs/IntentDialog"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Library_1 = require("../bots/Library"); | ||
@@ -93,3 +99,3 @@ var Dialog_1 = require("../dialogs/Dialog"); | ||
function LegacyPrompts() { | ||
return _super.apply(this, arguments) || this; | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -96,0 +102,0 @@ LegacyPrompts.prototype.begin = function (session, args) { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Dialog_1 = require("../dialogs/Dialog"); | ||
@@ -8,0 +14,0 @@ var IntentDialog_1 = require("../dialogs/IntentDialog"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var UniversalBot_1 = require("../bots/UniversalBot"); | ||
@@ -3,0 +4,0 @@ var ConsoleConnector_1 = require("../bots/ConsoleConnector"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var consts = require("../consts"); | ||
@@ -3,0 +4,0 @@ var utils = require("../utils"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ActionSet_1 = require("./ActionSet"); | ||
@@ -20,3 +26,3 @@ var ResumeReason; | ||
function Dialog() { | ||
return _super.apply(this, arguments) || this; | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -23,0 +29,0 @@ Dialog.prototype.begin = function (session, args) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Session_1 = require("../Session"); | ||
@@ -3,0 +4,0 @@ var Dialog_1 = require("../dialogs/Dialog"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var utils = require("../utils"); | ||
@@ -3,0 +4,0 @@ var chrono = require("chrono-node"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var WaterfallDialog_1 = require("./WaterfallDialog"); | ||
@@ -8,0 +14,0 @@ var DialogAction_1 = require("./DialogAction"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var IntentRecognizer = (function () { | ||
@@ -3,0 +4,0 @@ function IntentRecognizer() { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var IntentRecognizer_1 = require("./IntentRecognizer"); | ||
@@ -8,0 +14,0 @@ var utils = require("../utils"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var IntentRecognizer_1 = require("./IntentRecognizer"); | ||
@@ -8,0 +14,0 @@ var RegExpRecognizer_1 = require("./RegExpRecognizer"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var IntentRecognizer_1 = require("./IntentRecognizer"); | ||
@@ -8,0 +14,0 @@ var request = require("request"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var WaterfallDialog_1 = require("./WaterfallDialog"); | ||
@@ -364,1 +370,2 @@ var DialogAction_1 = require("./DialogAction"); | ||
exports.Prompt = Prompt; | ||
var prompt = new Prompt({}); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Prompt_1 = require("./Prompt"); | ||
@@ -8,0 +14,0 @@ var consts = require("../consts"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Prompt_1 = require("./Prompt"); | ||
@@ -8,0 +14,0 @@ var PromptRecognizers_1 = require("./PromptRecognizers"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Prompt_1 = require("./Prompt"); | ||
@@ -8,0 +14,0 @@ var PromptChoice_1 = require("./PromptChoice"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Prompt_1 = require("./Prompt"); | ||
@@ -8,0 +14,0 @@ var PromptRecognizers_1 = require("./PromptRecognizers"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var EntityRecognizer_1 = require("./EntityRecognizer"); | ||
@@ -3,0 +4,0 @@ var consts = require("../consts"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Dialog_1 = require("./Dialog"); | ||
@@ -3,0 +4,0 @@ var Library_1 = require("../bots/Library"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Prompt_1 = require("./Prompt"); | ||
@@ -8,0 +14,0 @@ var consts = require("../consts"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Prompt_1 = require("./Prompt"); | ||
@@ -8,0 +14,0 @@ var PromptRecognizers_1 = require("./PromptRecognizers"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var IntentRecognizer_1 = require("./IntentRecognizer"); | ||
@@ -8,0 +14,0 @@ var RegExpRecognizer = (function (_super) { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Dialog_1 = require("./Dialog"); | ||
@@ -8,0 +14,0 @@ var SimpleDialog = (function (_super) { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Dialog_1 = require("./Dialog"); | ||
@@ -8,0 +14,0 @@ var consts = require("../consts"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Prompt_1 = require("./dialogs/Prompt"); | ||
@@ -3,0 +4,0 @@ var Channel = require("./Channel"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var HeroCard_1 = require("./cards/HeroCard"); | ||
@@ -3,0 +4,0 @@ var CardImage_1 = require("./cards/CardImage"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Dialog_1 = require("../dialogs/Dialog"); | ||
@@ -3,0 +4,0 @@ var Library_1 = require("../bots/Library"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var SessionLogger_1 = require("./SessionLogger"); | ||
@@ -8,0 +14,0 @@ var RemoteSessionLogger = (function (_super) { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Dialog_1 = require("./dialogs/Dialog"); | ||
@@ -405,2 +411,3 @@ var Message_1 = require("./Message"); | ||
if (this.sendingBatch) { | ||
this.batchStarted = true; | ||
return; | ||
@@ -407,0 +414,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var logger = require("./logger"); | ||
@@ -3,0 +4,0 @@ var SessionLogger = (function () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var MemoryBotStorage = (function () { | ||
@@ -3,0 +4,0 @@ function MemoryBotStorage() { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var sprintf = require("sprintf-js"); | ||
@@ -3,0 +4,0 @@ function clone(obj) { |
@@ -5,3 +5,3 @@ { | ||
"description": "Bot Builder is a dialog system for building rich bots on virtually any platform.", | ||
"version": "3.8.1", | ||
"version": "3.8.2", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
623986
1.91%13518
1.66%