UNPKG

@atomist/cortex

Version:

Atomist Cortex model TypeScript typings

137 lines (136 loc) 4.25 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 Release * Generated class exposing Atomist Cortex. * Fluent builder style class for use in testing and query by example. */ var Release = (function () { function Release() { this._nodeName = "Release"; this._nodeTags = ["Release", "-dynamic"]; } /** * Implementation of GraphNode interface method. * For infrastructure, not user use */ Release.prototype.nodeName = function () { return this._nodeName; }; /** * Implementation of GraphNode interface method. * For infrastructure, not user use */ Release.prototype.nodeTags = function () { return this._nodeTags; }; Object.defineProperty(Release.prototype, "id", { /** * id * * @property {string} id */ get: function () { if (this._id === undefined) { throw new Error("Please use the relevant builder method to set property [id] on stub " + "[Release] before accessing it. It's probably called [withId]"); } return this._id; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the id property */ Release.prototype.withId = function (id_) { this._id = id_; return this; }; Object.defineProperty(Release.prototype, "name", { /** * name * * @property {string} name */ get: function () { if (this._name === undefined) { throw new Error("Please use the relevant builder method to set property [name] on stub " + "[Release] before accessing it. It's probably called [withName]"); } return this._name; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the name property */ Release.prototype.withName = function (name_) { this._name = name_; return this; }; Object.defineProperty(Release.prototype, "tag", { /** * tag - Release -> Tag * * @property {Tag} tag */ get: function () { if (this._tag === undefined) { throw new Error("Please use the relevant builder method to set property [tag] on stub " + "[Release] before accessing it. It's probably called [withTag]"); } return this._tag; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the tag property */ Release.prototype.withTag = function (tag_) { this._tag = tag_; return this; }; Object.defineProperty(Release.prototype, "timestamp", { /** * timestamp * * @property {string} timestamp */ get: function () { if (this._timestamp === undefined) { throw new Error("Please use the relevant builder method to set property [timestamp] on stub " + "[Release] before accessing it. It's probably called [withTimestamp]"); } return this._timestamp; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the timestamp property */ Release.prototype.withTimestamp = function (timestamp_) { this._timestamp = timestamp_; return this; }; return Release; }()); exports.Release = Release;