@atomist/rug
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -338,5 +338,2 @@ | ||
//sourcePath: string | ||
copyEditorBackingFileOrFail(sourcePath: string): void | ||
//sourcePath: string | ||
//destinationPath: string | ||
@@ -346,2 +343,5 @@ copyEditorBackingFileOrFail(sourcePath: string, destinationPath: string): void | ||
//sourcePath: string | ||
copyEditorBackingFileOrFail(sourcePath: string): void | ||
//sourcePath: string | ||
//destinationPath: string | ||
@@ -1051,5 +1051,2 @@ copyEditorBackingFilesOrFail(sourcePath: string, destinationPath: string): void | ||
//sourcePath: string | ||
copyEditorBackingFileOrFail(sourcePath: string): void | ||
//sourcePath: string | ||
//destinationPath: string | ||
@@ -1059,2 +1056,5 @@ copyEditorBackingFileOrFail(sourcePath: string, destinationPath: string): void | ||
//sourcePath: string | ||
copyEditorBackingFileOrFail(sourcePath: string): void | ||
//sourcePath: string | ||
//destinationPath: string | ||
@@ -1340,5 +1340,2 @@ copyEditorBackingFilesOrFail(sourcePath: string, destinationPath: string): void | ||
//sourcePath: string | ||
copyEditorBackingFileOrFail(sourcePath: string): void | ||
//sourcePath: string | ||
//destinationPath: string | ||
@@ -1348,2 +1345,5 @@ copyEditorBackingFileOrFail(sourcePath: string, destinationPath: string): void | ||
//sourcePath: string | ||
copyEditorBackingFileOrFail(sourcePath: string): void | ||
//sourcePath: string | ||
//destinationPath: string | ||
@@ -1350,0 +1350,0 @@ copyEditorBackingFilesOrFail(sourcePath: string, destinationPath: string): void |
@@ -36,52 +36,75 @@ | ||
userMessageRouter(): UserMessageRouter | ||
messageBuilder(): MessageBuilder | ||
} | ||
export interface UserMessageRouter { | ||
/** | ||
* Send a message to the channel associated with the current service, | ||
* or `general` or some other fallback channel if the service is null | ||
* | ||
* @param service service we're concerned with. Null if this affects multiple services | ||
* @param msg message | ||
*/ | ||
messageServiceChannel(service: Service, msg: string): void | ||
/** | ||
* Enables us to create new messages that will be routed | ||
* appropriately by the infrastructure | ||
*/ | ||
export interface MessageBuilder { | ||
/** | ||
* Send a message to the current user, possibly associated with a current service. | ||
* | ||
* @param service service we're concerned with. Null if this affects multiple services | ||
* @param screenName screen name in chat | ||
* @param msg message | ||
*/ | ||
messageUser(service: Service, screenName: string, msg: string): void | ||
regarding(n: TreeNode): Message | ||
/** | ||
* Send a message to the given channel | ||
* | ||
* @param channelName name of the channel | ||
* @param msg message text | ||
*/ | ||
messageChannel(channelName: String, msg: string): void | ||
say(msg: string): Message | ||
} | ||
export interface ActionRegistry { | ||
findByName(name: String): Action | ||
} | ||
interface MessageBuilder { | ||
export interface Message { | ||
regarding(n: TreeNode, teamId: string): Message | ||
actionRegistry(): ActionRegistry | ||
say(msg: string, teamId: string): Message | ||
/** | ||
* Set the message | ||
*/ | ||
say(msg: string): Message | ||
withAction(a: Action): Message | ||
address(channelId: string): Message | ||
/** | ||
* Set the address (channel) | ||
*/ | ||
on(channelId: string): Message | ||
send(): void | ||
} | ||
interface Message { | ||
export interface Action { | ||
withAction(s: string): Message | ||
title(): string | ||
callback(): Callback | ||
parameters(): Array<ParameterValue> | ||
} | ||
send(): void | ||
export interface ParameterValue { | ||
} | ||
name: string | ||
value: any | ||
} | ||
export interface Callback { | ||
callbackType(): string | ||
rug(): Rug | ||
} | ||
export interface Rug { | ||
group: string | ||
artifact: string | ||
name: string | ||
version: string | ||
} |
{ | ||
"name": "@atomist/rug", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "TypeScript model for Atomist editors, generators etc", | ||
@@ -5,0 +5,0 @@ "repository": { |
1453
80736