1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var debug = require('debug')('environment');
|
4 | var Cluster = (function () {
|
5 | function Cluster(name, baseUrl, token, local) {
|
6 | if (local === void 0) { local = true; }
|
7 | this.name = name;
|
8 | this.baseUrl = baseUrl;
|
9 | this.clusterToken = token;
|
10 | this.local = local;
|
11 | }
|
12 | Object.defineProperty(Cluster.prototype, "token", {
|
13 | get: function () {
|
14 | return this.clusterToken;
|
15 | },
|
16 | enumerable: true,
|
17 | configurable: true
|
18 | });
|
19 | Cluster.prototype.getApiEndpoint = function (serviceName, stage) {
|
20 | return this.baseUrl + "/api/" + serviceName + "/" + stage;
|
21 | };
|
22 | Cluster.prototype.getDeployEndpoint = function () {
|
23 | return this.baseUrl + "/system/graphiql.html";
|
24 | };
|
25 | return Cluster;
|
26 | }());
|
27 | exports.Cluster = Cluster;
|
28 |
|
\ | No newline at end of file |