botbuilder
Advanced tools
Comparing version 4.0.0-m1.5 to 4.0.0-m1.7
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Activity, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ResourceResponse } from 'botframework-schema'; | ||
/** | ||
@@ -11,0 +11,0 @@ * Implemented by activity adapters |
@@ -9,3 +9,3 @@ /** | ||
import { MiddlewareSet } from './middlewareSet'; | ||
import { Activity, ConversationReference, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ConversationReference, ResourceResponse } from 'botframework-schema'; | ||
import { ActivityAdapter } from './activityAdapter'; | ||
@@ -12,0 +12,0 @@ import { Promiseable } from './middleware'; |
@@ -11,3 +11,3 @@ "use strict"; | ||
const middlewareSet_1 = require("./middlewareSet"); | ||
const botbuilder_schema_1 = require("botbuilder-schema"); | ||
const botframework_schema_1 = require("botframework-schema"); | ||
const botContext_1 = require("./botContext"); | ||
@@ -149,3 +149,3 @@ const templateManager_1 = require("./templateManager"); | ||
if (!activity.type) { | ||
activity.type = botbuilder_schema_1.ActivityTypes.Message; | ||
activity.type = botframework_schema_1.ActivityTypes.Message; | ||
} | ||
@@ -152,0 +152,0 @@ botContext_1.applyConversationReference(activity, context.conversationReference); |
@@ -31,5 +31,5 @@ /** | ||
export * from './testAdapter'; | ||
export * from 'botbuilder-schema'; | ||
export * from 'botframework-schema'; | ||
import { Bot } from './bot'; | ||
import { Activity, ConversationReference, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ConversationReference, ResourceResponse } from 'botframework-schema'; | ||
import { Intent } from './intentRecognizer'; | ||
@@ -36,0 +36,0 @@ import { StoreItem, Storage } from './storage'; |
@@ -33,3 +33,3 @@ "use strict"; | ||
__export(require("./testAdapter")); | ||
__export(require("botbuilder-schema")); | ||
__export(require("botframework-schema")); | ||
//# sourceMappingURL=botbuilder.js.map |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Activity, ConversationReference } from 'botbuilder-schema'; | ||
import { Activity, ConversationReference } from 'botframework-schema'; | ||
import { Bot } from './bot'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -10,3 +10,3 @@ "use strict"; | ||
*/ | ||
const botbuilder_schema_1 = require("botbuilder-schema"); | ||
const botframework_schema_1 = require("botframework-schema"); | ||
const bot_1 = require("./bot"); | ||
@@ -51,4 +51,4 @@ /** | ||
const activity = { | ||
type: botbuilder_schema_1.ActivityTypes.EndOfConversation, | ||
code: code || botbuilder_schema_1.EndOfConversationCodes.CompletedSuccessfully | ||
type: botframework_schema_1.ActivityTypes.EndOfConversation, | ||
code: code || botframework_schema_1.EndOfConversationCodes.CompletedSuccessfully | ||
}; | ||
@@ -67,3 +67,3 @@ this.responses.push(activity); | ||
if (!textOrActivity.type) { | ||
textOrActivity.type = botbuilder_schema_1.ActivityTypes.Message; | ||
textOrActivity.type = botframework_schema_1.ActivityTypes.Message; | ||
} | ||
@@ -74,3 +74,3 @@ this.responses.push(textOrActivity); | ||
const activity = Object.assign({ | ||
type: botbuilder_schema_1.ActivityTypes.Message, | ||
type: botframework_schema_1.ActivityTypes.Message, | ||
text: textOrActivity || '', | ||
@@ -113,3 +113,3 @@ }, additional || {}); | ||
throwIfDisposed('showTyping'); | ||
this.responses.push({ type: botbuilder_schema_1.ActivityTypes.Typing }); | ||
this.responses.push({ type: botframework_schema_1.ActivityTypes.Typing }); | ||
return this; | ||
@@ -116,0 +116,0 @@ }; |
@@ -9,3 +9,3 @@ /** | ||
import { Middleware } from './middleware'; | ||
import { Activity, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ResourceResponse } from 'botframework-schema'; | ||
import { StoreItems } from './storage'; | ||
@@ -12,0 +12,0 @@ /** Optional settings used to configure a BotStateManager instance. */ |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Attachment, MediaUrl, CardAction, AnimationCard, CardImage, HeroCard, ReceiptCard, ThumbnailCard } from "botbuilder-schema"; | ||
import { Attachment, MediaUrl, CardAction, AnimationCard, CardImage, HeroCard, ReceiptCard, ThumbnailCard } from "botframework-schema"; | ||
/** | ||
@@ -11,0 +11,0 @@ * A set of utility functions designed to assist with the formatting of the various card types a |
@@ -10,3 +10,3 @@ "use strict"; | ||
*/ | ||
const botbuilder_schema_1 = require("botbuilder-schema"); | ||
const botframework_schema_1 = require("botframework-schema"); | ||
/** | ||
@@ -91,3 +91,3 @@ * A set of utility functions designed to assist with the formatting of the various card types a | ||
static signinCard(title, url, text) { | ||
const card = { buttons: [{ type: botbuilder_schema_1.ActionTypes.Signin, title: title, value: url }] }; | ||
const card = { buttons: [{ type: botframework_schema_1.ActionTypes.Signin, title: title, value: url }] }; | ||
if (text) { | ||
@@ -144,3 +144,3 @@ card.text = text; | ||
else { | ||
list.push({ type: botbuilder_schema_1.ActionTypes.ImBack, value: a.toString(), title: a.toString() }); | ||
list.push({ type: botframework_schema_1.ActionTypes.ImBack, value: a.toString(), title: a.toString() }); | ||
} | ||
@@ -147,0 +147,0 @@ }); |
@@ -10,3 +10,3 @@ /** | ||
import { Middleware } from './middleware'; | ||
import { Activity } from 'botbuilder-schema'; | ||
import { Activity } from 'botframework-schema'; | ||
export declare type SimpleTemplateFunction = (context: BotContext, data: Object) => Partial<Activity> | string | undefined; | ||
@@ -13,0 +13,0 @@ /** |
@@ -5,3 +5,3 @@ /** | ||
/** second comment block */ | ||
import { Entity } from 'botbuilder-schema'; | ||
import { Entity } from 'botframework-schema'; | ||
/** | ||
@@ -8,0 +8,0 @@ * A strongly typed entity. |
@@ -10,3 +10,3 @@ /** | ||
import { Middleware } from './middleware'; | ||
import { Activity } from 'botbuilder-schema'; | ||
import { Activity } from 'botframework-schema'; | ||
/** | ||
@@ -13,0 +13,0 @@ * A template function that can return a stringified value from a given data object. |
@@ -1,2 +0,2 @@ | ||
import { Activity, CardAction, Attachment, InputHints } from 'botbuilder-schema'; | ||
import { Activity, CardAction, Attachment, InputHints } from 'botframework-schema'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A set of utility functions to assist with the formatting of the various message types a bot can |
@@ -11,3 +11,3 @@ "use strict"; | ||
const cardStyler_1 = require("./cardStyler"); | ||
const botbuilder_schema_1 = require("botbuilder-schema"); | ||
const botframework_schema_1 = require("botframework-schema"); | ||
/** | ||
@@ -51,3 +51,3 @@ * A set of utility functions to assist with the formatting of the various message types a bot can | ||
const msg = { | ||
type: botbuilder_schema_1.ActivityTypes.Message, | ||
type: botframework_schema_1.ActivityTypes.Message, | ||
text: text || '' | ||
@@ -73,3 +73,3 @@ }; | ||
const msg = { | ||
type: botbuilder_schema_1.ActivityTypes.Message, | ||
type: botframework_schema_1.ActivityTypes.Message, | ||
suggestedActions: { | ||
@@ -99,3 +99,3 @@ actions: cardStyler_1.CardStyler.actions(actions) | ||
static attachment(attachment, text, speak, inputHint) { | ||
return attachmentActivity(botbuilder_schema_1.AttachmentLayoutTypes.List, [attachment], text, speak, inputHint); | ||
return attachmentActivity(botframework_schema_1.AttachmentLayoutTypes.List, [attachment], text, speak, inputHint); | ||
} | ||
@@ -111,3 +111,3 @@ /** | ||
static list(attachments, text, speak, inputHint) { | ||
return attachmentActivity(botbuilder_schema_1.AttachmentLayoutTypes.List, attachments, text, speak, inputHint); | ||
return attachmentActivity(botframework_schema_1.AttachmentLayoutTypes.List, attachments, text, speak, inputHint); | ||
} | ||
@@ -136,3 +136,3 @@ /** | ||
static carousel(attachments, text, speak, inputHint) { | ||
return attachmentActivity(botbuilder_schema_1.AttachmentLayoutTypes.Carousel, attachments, text, speak, inputHint); | ||
return attachmentActivity(botframework_schema_1.AttachmentLayoutTypes.Carousel, attachments, text, speak, inputHint); | ||
} | ||
@@ -163,3 +163,3 @@ /** | ||
} | ||
return attachmentActivity(botbuilder_schema_1.AttachmentLayoutTypes.List, [a], text, speak, inputHint); | ||
return attachmentActivity(botframework_schema_1.AttachmentLayoutTypes.List, [a], text, speak, inputHint); | ||
} | ||
@@ -170,3 +170,3 @@ } | ||
const msg = { | ||
type: botbuilder_schema_1.ActivityTypes.Message, | ||
type: botframework_schema_1.ActivityTypes.Message, | ||
attachmentLayout: attachmentLayout, | ||
@@ -173,0 +173,0 @@ attachments: attachments |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Activity, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ResourceResponse } from 'botframework-schema'; | ||
/** | ||
@@ -11,0 +11,0 @@ * Type signature for a return value that can (Optionally) return its value |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Activity, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ResourceResponse } from 'botframework-schema'; | ||
import { Middleware } from './middleware'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -9,3 +9,3 @@ /** | ||
import { Middleware } from './middleware'; | ||
import { Activity, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ResourceResponse } from 'botframework-schema'; | ||
/** Interface for a template renderer which provides the ability | ||
@@ -12,0 +12,0 @@ * to create a text reply or activity reply from the language, templateid and data object |
@@ -11,3 +11,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const botbuilder_schema_1 = require("botbuilder-schema"); | ||
const botframework_schema_1 = require("botframework-schema"); | ||
class TemplateManager { | ||
@@ -68,3 +68,3 @@ constructor() { | ||
if (!templateOutput.type) { | ||
templateOutput.type = botbuilder_schema_1.ActivityTypes.Message; | ||
templateOutput.type = botframework_schema_1.ActivityTypes.Message; | ||
} | ||
@@ -75,3 +75,3 @@ return templateOutput; | ||
const activity = { | ||
type: botbuilder_schema_1.ActivityTypes.Message, | ||
type: botframework_schema_1.ActivityTypes.Message, | ||
text: templateOutput || '', | ||
@@ -78,0 +78,0 @@ }; |
@@ -9,3 +9,3 @@ /** | ||
import { ActivityAdapter } from './activityAdapter'; | ||
import { Activity, ConversationReference } from 'botbuilder-schema'; | ||
import { Activity, ConversationReference } from 'botframework-schema'; | ||
/** | ||
@@ -12,0 +12,0 @@ * Test adapter used for unit tests. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const botbuilder_schema_1 = require("botbuilder-schema"); | ||
const botframework_schema_1 = require("botframework-schema"); | ||
const assert = require("assert"); | ||
@@ -50,3 +50,3 @@ /** | ||
// ready for next reply | ||
let activity = (typeof userSays === 'string' ? { type: botbuilder_schema_1.ActivityTypes.Message, text: userSays } : userSays); | ||
let activity = (typeof userSays === 'string' ? { type: botframework_schema_1.ActivityTypes.Message, text: userSays } : userSays); | ||
if (!activity.type) | ||
@@ -153,3 +153,3 @@ throw new Error("Missing activity.type"); | ||
if ((current - start) > timeout) { | ||
let expectedActivity = (typeof expected === 'string' ? { type: botbuilder_schema_1.ActivityTypes.Message, text: expected } : expected); | ||
let expectedActivity = (typeof expected === 'string' ? { type: botframework_schema_1.ActivityTypes.Message, text: expected } : expected); | ||
throw new Error(`${timeout}ms Timed out waiting for:${description || expectedActivity.text}`); | ||
@@ -166,3 +166,3 @@ } | ||
else if (typeof expected === 'string') { | ||
assert.equal(botReply.type, botbuilder_schema_1.ActivityTypes.Message, (description || '') + ` type === '${botReply.type}'. `); | ||
assert.equal(botReply.type, botframework_schema_1.ActivityTypes.Message, (description || '') + ` type === '${botReply.type}'. `); | ||
assert.equal(botReply.text, expected, (description || '') + ` text === "${botReply.text}"`); | ||
@@ -169,0 +169,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Bot Builder core library. Bot Builder is a toolkit for building rich bots on virtually any platform.", | ||
"version": "4.0.0-m1.5", | ||
"version": "4.0.0-m1.7", | ||
"license": "MIT", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"dependencies": { | ||
"botframework-schema": "^4.0.0-m1.5", | ||
"botframework-schema": "^4.0.0-m1.7", | ||
"assert": "^1.4.1" | ||
@@ -27,0 +27,0 @@ }, |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Activity, ConversationReference, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ConversationReference, ResourceResponse } from 'botframework-schema'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -10,3 +10,3 @@ /** | ||
import { EntityObject, EntityTypes } from './entityObject'; | ||
import { Attachment } from 'botbuilder-schema'; | ||
import { Attachment } from 'botframework-schema'; | ||
@@ -13,0 +13,0 @@ /** Optional settings for an `AttachmentRecognizer`. */ |
@@ -9,3 +9,3 @@ /** | ||
import { MiddlewareSet } from './middlewareSet'; | ||
import { ActivityTypes, Activity, ConversationReference, ResourceResponse, } from 'botbuilder-schema'; | ||
import { ActivityTypes, Activity, ConversationReference, ResourceResponse, } from 'botframework-schema'; | ||
import { ActivityAdapter } from './activityAdapter'; | ||
@@ -12,0 +12,0 @@ import { Promiseable } from './middleware'; |
@@ -32,6 +32,6 @@ /** | ||
export * from './testAdapter'; | ||
export * from 'botbuilder-schema'; | ||
export * from 'botframework-schema'; | ||
import { Bot } from './bot'; | ||
import { Activity, ConversationReference, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ConversationReference, ResourceResponse } from 'botframework-schema'; | ||
import { Intent } from './intentRecognizer'; | ||
@@ -38,0 +38,0 @@ import { EntityObject } from './entityObject'; |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { ActivityTypes, EndOfConversationCodes, Activity, ConversationReference } from 'botbuilder-schema'; | ||
import { ActivityTypes, EndOfConversationCodes, Activity, ConversationReference } from 'botframework-schema'; | ||
import { Bot } from './bot'; | ||
@@ -11,0 +11,0 @@ import { Intent } from './intentRecognizer'; |
@@ -9,3 +9,3 @@ /** | ||
import { Middleware } from './middleware'; | ||
import { Activity, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ResourceResponse } from 'botframework-schema'; | ||
import { StoreItem, StoreItems } from './storage'; | ||
@@ -12,0 +12,0 @@ |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Attachment, MediaUrl, CardAction, AnimationCard, CardImage, HeroCard, ReceiptCard, SigninCard, ThumbnailCard, VideoCard, ActionTypes } from "botbuilder-schema"; | ||
import { Attachment, MediaUrl, CardAction, AnimationCard, CardImage, HeroCard, ReceiptCard, SigninCard, ThumbnailCard, VideoCard, ActionTypes } from "botframework-schema"; | ||
@@ -11,0 +11,0 @@ /** |
@@ -11,3 +11,3 @@ /** | ||
import { BotService } from './botService'; | ||
import { Activity } from 'botbuilder-schema'; | ||
import { Activity } from 'botframework-schema'; | ||
@@ -14,0 +14,0 @@ export declare type SimpleTemplateFunction = (context: BotContext, data: Object) => Partial<Activity> | string | undefined; |
@@ -5,3 +5,3 @@ /** | ||
/** second comment block */ | ||
import { Entity } from 'botbuilder-schema'; | ||
import { Entity } from 'botframework-schema'; | ||
@@ -8,0 +8,0 @@ /** |
@@ -11,3 +11,3 @@ /** | ||
import { BotService } from './botService'; | ||
import { Activity } from 'botbuilder-schema'; | ||
import { Activity } from 'botframework-schema'; | ||
@@ -14,0 +14,0 @@ /** |
@@ -9,3 +9,3 @@ /** | ||
import { CardStyler } from './cardStyler'; | ||
import { ActivityTypes, AttachmentLayoutTypes, Activity, CardAction, SuggestedActions, Attachment, InputHints } from 'botbuilder-schema'; | ||
import { ActivityTypes, AttachmentLayoutTypes, Activity, CardAction, SuggestedActions, Attachment, InputHints } from 'botframework-schema'; | ||
@@ -12,0 +12,0 @@ /** |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Activity, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ResourceResponse } from 'botframework-schema'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Activity, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ResourceResponse } from 'botframework-schema'; | ||
import { Middleware } from './middleware'; | ||
@@ -11,0 +11,0 @@ |
@@ -9,3 +9,3 @@ /** | ||
import { Middleware, Promiseable } from './middleware'; | ||
import { Activity, ConversationReference, ActivityTypes, ResourceResponse } from 'botbuilder-schema'; | ||
import { Activity, ConversationReference, ActivityTypes, ResourceResponse } from 'botframework-schema'; | ||
@@ -12,0 +12,0 @@ /** Interface for a template renderer which provides the ability |
@@ -9,3 +9,3 @@ /** | ||
import { ActivityAdapter } from './activityAdapter'; | ||
import { ActivityTypes, Activity, ConversationReference, ChannelAccount } from 'botbuilder-schema'; | ||
import { ActivityTypes, Activity, ConversationReference, ChannelAccount } from 'botframework-schema'; | ||
import { Promiseable } from './middleware'; | ||
@@ -12,0 +12,0 @@ import assert = require('assert'); |
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
Sorry, the diff of this file is not supported yet
391836