UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

46 lines (45 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVMarketoDataSource = void 0; const RVDashboardDataSource_1 = require("../AbstractClasses/RVDashboardDataSource"); /** Marketo data source, configures the URL to get data from. */ class RVMarketoDataSource extends RVDashboardDataSource_1.RVDashboardDataSource { /** @hidden */ constructor(json) { super(json); this._url = null; if (json) { var props = json.Properties; this._url = props['Url']; } } /** @hidden */ toJson() { var json = super.toJson(); var props = json.Properties; props['Url'] = this._url; return json; } /** @hidden */ getProviderKey() { return 'MARKETO'; } /** URL to the login endpoint */ get url() { return this._url; } set url(value) { this._url = value; } /** @hidden */ getType() { return "RVMarketoDataSource"; } /** @hidden */ _getWrapper() { var wrapper = super._getWrapper(); wrapper.url(this.url); return wrapper; } } exports.RVMarketoDataSource = RVMarketoDataSource;