@atomist/cortex
Version:
Atomist Cortex model TypeScript typings
114 lines (113 loc) • 3.57 kB
JavaScript
;
/*
* Copyright 2015-2017 Atomist Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Type PushImpact
* Generated class exposing Atomist Cortex.
* Fluent builder style class for use in testing and query by example.
*/
var PushImpact = (function () {
function PushImpact() {
this._nodeName = "PushImpact";
this._nodeTags = ["PushImpact", "-dynamic"];
}
/**
* Implementation of GraphNode interface method.
* For infrastructure, not user use
*/
PushImpact.prototype.nodeName = function () {
return this._nodeName;
};
/**
* Implementation of GraphNode interface method.
* For infrastructure, not user use
*/
PushImpact.prototype.nodeTags = function () {
return this._nodeTags;
};
Object.defineProperty(PushImpact.prototype, "data", {
/**
* data
*
* @property {string} data
*/
get: function () {
if (this._data === undefined) {
throw new Error("Please use the relevant builder method to set property [data] on stub " +
"[PushImpact] before accessing it. It's probably called [withData]");
}
return this._data;
},
enumerable: true,
configurable: true
});
/**
* Fluent builder method to set the data property
*/
PushImpact.prototype.withData = function (data_) {
this._data = data_;
return this;
};
Object.defineProperty(PushImpact.prototype, "push", {
/**
* push - PushImpact -> Push
*
* @property {Push} push
*/
get: function () {
if (this._push === undefined) {
throw new Error("Please use the relevant builder method to set property [push] on stub " +
"[PushImpact] before accessing it. It's probably called [withPush]");
}
return this._push;
},
enumerable: true,
configurable: true
});
/**
* Fluent builder method to set the push property
*/
PushImpact.prototype.withPush = function (push_) {
this._push = push_;
return this;
};
Object.defineProperty(PushImpact.prototype, "url", {
/**
* url
*
* @property {string} url
*/
get: function () {
if (this._url === undefined) {
throw new Error("Please use the relevant builder method to set property [url] on stub " +
"[PushImpact] before accessing it. It's probably called [withUrl]");
}
return this._url;
},
enumerable: true,
configurable: true
});
/**
* Fluent builder method to set the url property
*/
PushImpact.prototype.withUrl = function (url_) {
this._url = url_;
return this;
};
return PushImpact;
}());
exports.PushImpact = PushImpact;