@rocket.chat/apps-engine
Advanced tools
Comparing version 0.4.5 to 0.4.6
{ | ||
"name": "@rocket.chat/apps-engine", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.", | ||
@@ -47,3 +47,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@rocket.chat/apps-ts-definition": "^0.7.10", | ||
"@rocket.chat/apps-ts-definition": "^0.7.12", | ||
"adm-zip": "^0.4.7", | ||
@@ -50,0 +50,0 @@ "semver": "^5.3.0", |
@@ -1,2 +0,2 @@ | ||
import { IModify, IModifyCreator, IModifyExtender, IModifyUpdater } from '@rocket.chat/apps-ts-definition/accessors'; | ||
import { IModify, IModifyCreator, IModifyExtender, IModifyUpdater, INotifier } from '@rocket.chat/apps-ts-definition/accessors'; | ||
import { AppBridges } from '../bridges'; | ||
@@ -9,2 +9,3 @@ export declare class Modify implements IModify { | ||
private extender; | ||
private notifier; | ||
constructor(bridges: AppBridges, appId: string); | ||
@@ -14,2 +15,3 @@ getCreator(): IModifyCreator; | ||
getExtender(): IModifyExtender; | ||
getNotifer(): INotifier; | ||
} |
@@ -6,2 +6,3 @@ "use strict"; | ||
var ModifyUpdater_1 = require("./ModifyUpdater"); | ||
var Notifier_1 = require("./Notifier"); | ||
var Modify = (function () { | ||
@@ -14,2 +15,3 @@ function Modify(bridges, appId) { | ||
this.extender = new ModifyExtender_1.ModifyExtender(this.bridges, this.appId); | ||
this.notifier = new Notifier_1.Notifier(this.bridges, this.appId); | ||
} | ||
@@ -25,2 +27,5 @@ Modify.prototype.getCreator = function () { | ||
}; | ||
Modify.prototype.getNotifer = function () { | ||
return this.notifier; | ||
}; | ||
return Modify; | ||
@@ -27,0 +32,0 @@ }()); |
@@ -6,3 +6,3 @@ import { AppInterface } from '../compiler'; | ||
messageEvent(int: AppInterface, message: IMessage): void | boolean | IMessage; | ||
roomEvent(int: AppInterface, room: IRoom): void | boolean | IMessage; | ||
roomEvent(int: AppInterface, room: IRoom): void | boolean | IRoom; | ||
} |
import { IMessage } from '@rocket.chat/apps-ts-definition/messages'; | ||
import { IRoom } from '@rocket.chat/apps-ts-definition/rooms'; | ||
import { IUser } from '@rocket.chat/apps-ts-definition/users/IUser'; | ||
export interface IMessageBridge { | ||
@@ -6,2 +8,4 @@ create(message: IMessage, appId: string): string; | ||
update(message: IMessage, appId: string): void; | ||
notifyUser(user: IUser, message: IMessage, appId: string): void; | ||
notifyRoom(room: IRoom, message: IMessage, appId: string): void; | ||
} |
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
378522
221
3981