botframework
Advanced tools
Comparing version 0.6.1 to 0.7.0
@@ -73,3 +73,3 @@ "use strict"; | ||
.then(function (user) { | ||
return _this.botController.newUser(user, reply); | ||
return _this.botController.newUser({ user: user, ref: messaging.optin.ref }, reply); | ||
}); | ||
@@ -76,0 +76,0 @@ } |
@@ -40,2 +40,6 @@ export interface IBotUser { | ||
} | ||
export interface INewUserMessage { | ||
user: IBotUser; | ||
ref: string; | ||
} | ||
export declare class BOT_REPLY_LIST_ACTION_TYPE { | ||
@@ -62,3 +66,3 @@ static LINK: string; | ||
export interface IBotController { | ||
newUser?(user: IBotUser, reply: IBotReply): void; | ||
newUser?(msg: INewUserMessage, reply: IBotReply): void; | ||
textMessage?(textMessage: ITextMessage, reply: IBotReply): void; | ||
@@ -65,0 +69,0 @@ imageMessage?(imageMessage: IImageMessage, reply: IBotReply): void; |
{ | ||
"name": "botframework", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"description": "Framework for messaging bots", | ||
@@ -43,2 +43,2 @@ "main": "./dist/es5/src/bot.js", | ||
} | ||
} | ||
} |
@@ -66,3 +66,3 @@ import {IBotController, IBotSettings, IBotUser, ITextMessage, IBotReply, IBotReplyListItem} from '../interfaces' | ||
.then( (user: IBotUser) => { | ||
return this.botController.newUser(user, reply); | ||
return this.botController.newUser({user, ref: messaging.optin.ref}, reply); | ||
}); | ||
@@ -69,0 +69,0 @@ } |
@@ -50,2 +50,8 @@ | ||
export interface INewUserMessage { | ||
user: IBotUser; | ||
ref: string; | ||
} | ||
// enum | ||
@@ -81,3 +87,3 @@ // currently very aligned to facebook | ||
export interface IBotController { | ||
newUser?(user: IBotUser, reply: IBotReply): void; | ||
newUser?(msg: INewUserMessage, reply: IBotReply): void; | ||
textMessage?(textMessage: ITextMessage, reply: IBotReply): void; | ||
@@ -84,0 +90,0 @@ imageMessage?(imageMessage: IImageMessage, reply: IBotReply): void; |
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
771915
64
15558