UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

79 lines (78 loc) 2.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVReportingServicesDataSource = void 0; const RVDashboardDataSource_1 = require("../AbstractClasses/RVDashboardDataSource"); /** Microsoft Reporting Services (MS SSRS) data source */ class RVReportingServicesDataSource extends RVDashboardDataSource_1.RVDashboardDataSource { /** @hidden */ constructor(json) { super(json); this._url = null; this._path = null; this._serverMode = null; this._serverVersion = null; if (json) { var props = json.Properties; this._url = props['Url']; this._path = props['Path']; this._serverMode = props['ServerMode']; this._serverVersion = props['ServerVersion']; } } /** @hidden */ toJson() { var json = super.toJson(); var props = json.Properties; props['Url'] = this._url; props['Path'] = this._path; props['ServerMode'] = this._serverMode; props['ServerVersion'] = this._serverVersion; return json; } /** @hidden */ getProviderKey() { return 'SSRS'; } /** URL to the server */ get url() { return this._url; } set url(value) { this._url = value; } /** Path in the server, used only when SSRS is running integrated into Sharepoint */ get path() { return this._path; } set path(value) { this._path = value; } /** Gets the report server mode */ get serverMode() { return this._serverMode; } set serverMode(value) { this._serverMode = value; } /** Gets the report server version */ get serverVersion() { return this._serverVersion; } set serverVersion(value) { this._serverVersion = value; } /** @hidden */ getType() { return "RVReportingServicesDataSource"; } /** @hidden */ _getWrapper() { let wrapper = super._getWrapper(); wrapper.url(this.url); wrapper.path(this.path); wrapper.serverMode(this.serverMode); wrapper.serverVersion(this.serverVersion); return wrapper; } } exports.RVReportingServicesDataSource = RVReportingServicesDataSource;