@atomist/rug
Advanced tools
Comparing version 1.0.0-m.4 to 1.0.0-m.5
@@ -24,3 +24,2 @@ /* | ||
import { ChangeLogging } from "./ChangeLogging"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { Directory } from "./Directory"; | ||
@@ -70,3 +69,2 @@ import { DockerFile } from "./DockerFile"; | ||
export { ChangeLogging }; | ||
export { CommonViewOperations }; | ||
export { Directory }; | ||
@@ -73,0 +71,0 @@ export { DockerFile }; |
@@ -21,3 +21,2 @@ /* | ||
import { ArtifactContainerView } from "./ArtifactContainerView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { MutableView } from "./MutableView"; | ||
@@ -30,3 +29,3 @@ | ||
*/ | ||
interface Directory extends ArtifactContainer, ArtifactContainerView, CommonViewOperations, MutableView { | ||
interface Directory extends ArtifactContainer, ArtifactContainerView, MutableView { | ||
@@ -33,0 +32,0 @@ /** |
@@ -21,3 +21,2 @@ /* | ||
import { MutableView } from "./MutableView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
@@ -29,3 +28,3 @@ export { DockerFile }; | ||
*/ | ||
interface DockerFile extends FileArtifactBacked, MutableView, CommonViewOperations { | ||
interface DockerFile extends FileArtifactBacked, MutableView { | ||
@@ -32,0 +31,0 @@ /** |
@@ -25,3 +25,2 @@ /* | ||
import { MutableView } from "./MutableView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
@@ -33,5 +32,5 @@ export { EveryPom }; | ||
*/ | ||
interface EveryPom extends Xml, PomMutableViewNonMutatingFunctions, BuildViewNonMutatingFunctions, PomMutableViewMutatingFunctions, BuildViewMutatingFunctions, MutableView, CommonViewOperations { | ||
interface EveryPom extends Xml, PomMutableViewNonMutatingFunctions, BuildViewNonMutatingFunctions, PomMutableViewMutatingFunctions, BuildViewMutatingFunctions, MutableView { | ||
} | ||
@@ -21,3 +21,2 @@ /* | ||
import { MutableView } from "./MutableView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
@@ -29,3 +28,3 @@ export { File }; | ||
*/ | ||
interface File extends FileArtifactBacked, MutableView, CommonViewOperations { | ||
interface File extends FileArtifactBacked, MutableView { | ||
@@ -32,0 +31,0 @@ /** |
@@ -20,3 +20,2 @@ /* | ||
import { TypeDeclarationView } from "./TypeDeclarationView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { MutableView } from "./MutableView"; | ||
@@ -30,3 +29,3 @@ import { JavaSource } from "./JavaSource"; | ||
*/ | ||
interface JavaClassOrInterface extends TypeDeclarationView, CommonViewOperations, MutableView { | ||
interface JavaClassOrInterface extends TypeDeclarationView, MutableView { | ||
@@ -33,0 +32,0 @@ /** |
@@ -20,3 +20,2 @@ /* | ||
import { BodyDeclarationView } from "./BodyDeclarationView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { MutableView } from "./MutableView"; | ||
@@ -29,3 +28,3 @@ | ||
*/ | ||
interface JavaConstructor extends BodyDeclarationView, CommonViewOperations, MutableView { | ||
interface JavaConstructor extends BodyDeclarationView, MutableView { | ||
@@ -32,0 +31,0 @@ /** |
@@ -21,3 +21,2 @@ /* | ||
import { MutableView } from "./MutableView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { JavaClassOrInterface } from "./JavaClassOrInterface"; | ||
@@ -30,3 +29,3 @@ | ||
*/ | ||
interface JavaField extends BodyDeclarationView, MutableView, CommonViewOperations { | ||
interface JavaField extends BodyDeclarationView, MutableView { | ||
@@ -33,0 +32,0 @@ /** |
@@ -20,3 +20,2 @@ /* | ||
import { BodyDeclarationView } from "./BodyDeclarationView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { MutableView } from "./MutableView"; | ||
@@ -29,3 +28,3 @@ | ||
*/ | ||
interface JavaMethod extends BodyDeclarationView, CommonViewOperations, MutableView { | ||
interface JavaMethod extends BodyDeclarationView, MutableView { | ||
@@ -32,0 +31,0 @@ /** |
@@ -23,3 +23,2 @@ /* | ||
import { ChangeLogging } from "./ChangeLogging"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { MutableView } from "./MutableView"; | ||
@@ -32,3 +31,3 @@ | ||
*/ | ||
interface JavaProject extends ProjectDecorating, ProjectView, ArtifactContainerView, ChangeLogging, CommonViewOperations, MutableView { | ||
interface JavaProject extends ProjectDecorating, ProjectView, ArtifactContainerView, ChangeLogging, MutableView { | ||
@@ -35,0 +34,0 @@ /** |
@@ -21,3 +21,2 @@ /* | ||
import { MutableView } from "./MutableView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { JavaProject } from "./JavaProject"; | ||
@@ -30,3 +29,3 @@ | ||
*/ | ||
interface JavaSource extends FileArtifactBacked, MutableView, CommonViewOperations { | ||
interface JavaSource extends FileArtifactBacked, MutableView { | ||
@@ -33,0 +32,0 @@ /** |
@@ -20,3 +20,2 @@ /* | ||
import { TypeDeclarationView } from "./TypeDeclarationView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { MutableView } from "./MutableView"; | ||
@@ -30,3 +29,3 @@ import { JavaSource } from "./JavaSource"; | ||
*/ | ||
interface JavaType extends TypeDeclarationView, CommonViewOperations, MutableView { | ||
interface JavaType extends TypeDeclarationView, MutableView { | ||
@@ -33,0 +32,0 @@ /** |
@@ -21,3 +21,2 @@ /* | ||
import { MutableView } from "./MutableView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { File } from "./File"; | ||
@@ -30,3 +29,3 @@ | ||
*/ | ||
interface Line extends ViewSupport, MutableView, CommonViewOperations { | ||
interface Line extends ViewSupport, MutableView { | ||
@@ -33,0 +32,0 @@ /** |
@@ -20,3 +20,2 @@ /* | ||
import { ViewSupport } from "./ViewSupport"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { MutableView } from "./MutableView"; | ||
@@ -29,3 +28,3 @@ | ||
*/ | ||
interface Pair extends ViewSupport, CommonViewOperations, MutableView { | ||
interface Pair extends ViewSupport, MutableView { | ||
@@ -32,0 +31,0 @@ /** |
@@ -25,3 +25,2 @@ /* | ||
import { MutableView } from "./MutableView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
@@ -33,5 +32,5 @@ export { Pom }; | ||
*/ | ||
interface Pom extends Xml, PomMutableViewNonMutatingFunctions, BuildViewNonMutatingFunctions, PomMutableViewMutatingFunctions, BuildViewMutatingFunctions, MutableView, CommonViewOperations { | ||
interface Pom extends Xml, PomMutableViewNonMutatingFunctions, BuildViewNonMutatingFunctions, PomMutableViewMutatingFunctions, BuildViewMutatingFunctions, MutableView { | ||
} | ||
@@ -23,3 +23,2 @@ /* | ||
import { ChangeLogging } from "./ChangeLogging"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
import { MutableView } from "./MutableView"; | ||
@@ -32,3 +31,3 @@ | ||
*/ | ||
interface Project extends ArtifactContainer, ProjectView, ArtifactContainerView, ChangeLogging, CommonViewOperations, MutableView { | ||
interface Project extends ArtifactContainer, ProjectView, ArtifactContainerView, ChangeLogging, MutableView { | ||
@@ -35,0 +34,0 @@ /** |
@@ -21,3 +21,2 @@ /* | ||
import { MutableView } from "./MutableView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
@@ -29,3 +28,3 @@ export { Properties }; | ||
*/ | ||
interface Properties extends FileArtifactBacked, MutableView, CommonViewOperations { | ||
interface Properties extends FileArtifactBacked, MutableView { | ||
@@ -32,0 +31,0 @@ /** |
@@ -36,9 +36,2 @@ /* | ||
/** | ||
* DEPRECATED - Cause the operation to fail with a fatal error | ||
* | ||
* @param msg {string} The message to be displayed | ||
*/ | ||
fail(msg: string): void; | ||
/** | ||
* Tags attached to the node | ||
@@ -58,9 +51,2 @@ * | ||
/** | ||
* DEPRECATED - Cause the editor to print to the console. Useful for debugging if running editors locally. | ||
* | ||
* @param msg {string} The message to be displayed | ||
*/ | ||
println(msg: string): void; | ||
/** | ||
* Node content | ||
@@ -67,0 +53,0 @@ * |
@@ -21,3 +21,2 @@ /* | ||
import { MutableView } from "./MutableView"; | ||
import { CommonViewOperations } from "./CommonViewOperations"; | ||
@@ -29,3 +28,3 @@ export { Xml }; | ||
*/ | ||
interface Xml extends FileArtifactBacked, MutableView, CommonViewOperations { | ||
interface Xml extends FileArtifactBacked, MutableView { | ||
@@ -32,0 +31,0 @@ /** |
@@ -203,2 +203,16 @@ "use strict"; | ||
/** | ||
* Message that can be re-written in the bot | ||
*/ | ||
var UpdatableMessage = (function (_super) { | ||
__extends(UpdatableMessage, _super); | ||
function UpdatableMessage(id, body, address, contentType) { | ||
var _this = _super.call(this, body, address, contentType) || this; | ||
_this.timestamp = new Date().getTime().toString(); | ||
_this.id = id; | ||
return _this; | ||
} | ||
return UpdatableMessage; | ||
}(DirectedMessage)); | ||
exports.UpdatableMessage = UpdatableMessage; | ||
/** | ||
* Correlated, updatable messages to the bot | ||
@@ -232,4 +246,6 @@ */ | ||
MappedParameters.SLACK_CHANNEL = "atomist://slack/channel"; | ||
MappedParameters.SLACK_CHANNEL_NAME = "atomist://slack/channel_name"; | ||
MappedParameters.SLACK_TEAM = "atomist://slack/team"; | ||
MappedParameters.SLACK_USER = "atomist://slack/user"; | ||
MappedParameters.SLACK_USER_NAME = "atomist://slack/user_name"; | ||
exports.MappedParameters = MappedParameters; |
@@ -9,2 +9,3 @@ import { | ||
import { Parameter } from "./RugOperation"; | ||
import { GitProjectLoader } from "./GitProjectLoader"; | ||
@@ -142,2 +143,8 @@ export interface RugCoordinate { | ||
contextRoot: GraphNode; | ||
/** | ||
* RepoResolver to use in loading repositories. | ||
*/ | ||
gitProjectLoader: GitProjectLoader; | ||
} | ||
@@ -279,2 +286,3 @@ | ||
export class DirectedMessage extends LocallyRenderedMessage<"directed"> { | ||
public kind: "directed" = "directed"; | ||
@@ -293,2 +301,18 @@ | ||
/** | ||
* Message that can be re-written in the bot | ||
*/ | ||
export class UpdatableMessage extends DirectedMessage { | ||
public id: string; | ||
public timestamp: string = new Date().getTime().toString(); | ||
// Time after which the message will get re-posted instead of re-written | ||
public ttl?: string; | ||
constructor(id: string, body: string, address: MessageAddress, contentType?: MessageMimeType) { | ||
super(body, address, contentType); | ||
this.id = id; | ||
} | ||
} | ||
/** | ||
* Correlated, updatable messages to the bot | ||
@@ -325,4 +349,6 @@ */ | ||
public static readonly SLACK_CHANNEL: string = "atomist://slack/channel"; | ||
public static readonly SLACK_CHANNEL_NAME: string = "atomist://slack/channel_name"; | ||
public static readonly SLACK_TEAM: string = "atomist://slack/team"; | ||
public static readonly SLACK_USER: string = "atomist://slack/user"; | ||
public static readonly SLACK_USER_NAME: string = "atomist://slack/user_name"; | ||
} |
{ | ||
"name": "@atomist/rug", | ||
"version": "1.0.0-m.4", | ||
"version": "1.0.0-m.5", | ||
"description": "TypeScript model for Atomist Rugs, see http://docs.atomist.com/", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -27,2 +27,3 @@ "use strict"; | ||
contextRoot: m1.contextRoot, | ||
gitProjectLoader: m1.gitProjectLoader, | ||
}; | ||
@@ -29,0 +30,0 @@ return m2; |
@@ -28,2 +28,3 @@ | ||
contextRoot: m1.contextRoot, | ||
gitProjectLoader: m1.gitProjectLoader, | ||
}; | ||
@@ -30,0 +31,0 @@ return m2; |
316425
149
7981