UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

47 lines (46 loc) 1.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVSharePointSiteDataSourceItem = void 0; const RVBaseSharePointDataSourceItem_1 = require("./RVBaseSharePointDataSourceItem"); const RVSharePointDataSource_1 = require("./RVSharePointDataSource"); /** Data source item to show information from a site (or sub site) */ class RVSharePointSiteDataSourceItem extends RVBaseSharePointDataSourceItem_1.RVBaseSharePointDataSourceItem { /** @hidden */ constructor(arg) { super(arg); this._webUrl = null; if (!(arg instanceof RVSharePointDataSource_1.RVSharePointDataSource)) { var props = arg.Properties; this._webUrl = props["WebUrl"]; } } /** @hidden */ toJson() { var json = super.toJson(); var props = json['Properties']; props["WebUrl"] = this._webUrl; return json; } /** @hidden */ getSharePointItemType() { return "Site"; } /** URL to the site or sub site. */ get webUrl() { return this._webUrl; } set webUrl(value) { this._webUrl = value; } /** @hidden */ getType() { return "RVSharePointSiteDataSourceItem"; } /** @hidden */ _getWrapper() { let wrapper = super._getWrapper(); wrapper.webUrl(this.webUrl); return wrapper; } } exports.RVSharePointSiteDataSourceItem = RVSharePointSiteDataSourceItem;