UNPKG

@atomist/cortex

Version:

Atomist Cortex model TypeScript typings

144 lines (143 loc) 4.66 kB
"use strict"; /* * 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 ParentImpact * Generated class exposing Atomist Cortex. * Fluent builder style class for use in testing and query by example. */ var ParentImpact = (function () { function ParentImpact() { this._nodeName = "ParentImpact"; this._nodeTags = ["ParentImpact", "-dynamic"]; } /** * Implementation of GraphNode interface method. * For infrastructure, not user use */ ParentImpact.prototype.nodeName = function () { return this._nodeName; }; /** * Implementation of GraphNode interface method. * For infrastructure, not user use */ ParentImpact.prototype.nodeTags = function () { return this._nodeTags; }; Object.defineProperty(ParentImpact.prototype, "commit", { /** * commit - ParentImpact -> Commit * * @property {Commit} commit */ get: function () { if (this._commit === undefined) { throw new Error("Please use the relevant builder method to set property [commit] on stub " + "[ParentImpact] before accessing it. It's probably called [withCommit]"); } return this._commit; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the commit property */ ParentImpact.prototype.withCommit = function (commit_) { this._commit = commit_; return this; }; Object.defineProperty(ParentImpact.prototype, "commits", { /** * commits - ParentImpact -> Commit * * @property {Commit[]} commits */ get: function () { if (this._commits === undefined) { throw new Error("Please use the relevant builder method to set property [commits] on stub " + "[ParentImpact] before accessing it. It's probably called [withCommits]"); } return this._commits; }, enumerable: true, configurable: true }); /** * Fluent builder method to add an element to the commits array */ ParentImpact.prototype.addCommits = function () { var commits_ = []; for (var _i = 0; _i < arguments.length; _i++) { commits_[_i] = arguments[_i]; } if (this._commits === undefined) { this._commits = []; } this._commits = this._commits.concat(commits_); return this; }; Object.defineProperty(ParentImpact.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 " + "[ParentImpact] before accessing it. It's probably called [withData]"); } return this._data; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the data property */ ParentImpact.prototype.withData = function (data_) { this._data = data_; return this; }; Object.defineProperty(ParentImpact.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 " + "[ParentImpact] before accessing it. It's probably called [withUrl]"); } return this._url; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the url property */ ParentImpact.prototype.withUrl = function (url_) { this._url = url_; return this; }; return ParentImpact; }()); exports.ParentImpact = ParentImpact;