UNPKG

922 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var debug = require('debug')('environment');
4var 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}());
27exports.Cluster = Cluster;
28//# sourceMappingURL=Cluster.js.map
\No newline at end of file