UNPKG

@atomist/cortex

Version:

Atomist Cortex model TypeScript typings

137 lines (136 loc) 4.38 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 GitHubProvider * Generated class exposing Atomist Cortex. * Fluent builder style class for use in testing and query by example. */ var GitHubProvider = (function () { function GitHubProvider() { this._nodeName = "GitHubProvider"; this._nodeTags = ["GitHubProvider", "-dynamic"]; } /** * Implementation of GraphNode interface method. * For infrastructure, not user use */ GitHubProvider.prototype.nodeName = function () { return this._nodeName; }; /** * Implementation of GraphNode interface method. * For infrastructure, not user use */ GitHubProvider.prototype.nodeTags = function () { return this._nodeTags; }; Object.defineProperty(GitHubProvider.prototype, "apiUrl", { /** * apiUrl * * @property {string} apiUrl */ get: function () { if (this._apiUrl === undefined) { throw new Error("Please use the relevant builder method to set property [apiUrl] on stub " + "[GitHubProvider] before accessing it. It's probably called [withApiUrl]"); } return this._apiUrl; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the apiUrl property */ GitHubProvider.prototype.withApiUrl = function (apiUrl_) { this._apiUrl = apiUrl_; return this; }; Object.defineProperty(GitHubProvider.prototype, "gitUrl", { /** * gitUrl * * @property {string} gitUrl */ get: function () { if (this._gitUrl === undefined) { throw new Error("Please use the relevant builder method to set property [gitUrl] on stub " + "[GitHubProvider] before accessing it. It's probably called [withGitUrl]"); } return this._gitUrl; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the gitUrl property */ GitHubProvider.prototype.withGitUrl = function (gitUrl_) { this._gitUrl = gitUrl_; return this; }; Object.defineProperty(GitHubProvider.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 " + "[GitHubProvider] before accessing it. It's probably called [withId]"); } return this._id; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the id property */ GitHubProvider.prototype.withId = function (id_) { this._id = id_; return this; }; Object.defineProperty(GitHubProvider.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 " + "[GitHubProvider] before accessing it. It's probably called [withUrl]"); } return this._url; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the url property */ GitHubProvider.prototype.withUrl = function (url_) { this._url = url_; return this; }; return GitHubProvider; }()); exports.GitHubProvider = GitHubProvider;