UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

91 lines (90 loc) 2.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVSharePointListDataSourceItem = void 0; const RVBaseSharePointDataSourceItem_1 = require("./RVBaseSharePointDataSourceItem"); const RVSharePointDataSource_1 = require("./RVSharePointDataSource"); /** Data source item to get data from a SharePoint list */ class RVSharePointListDataSourceItem extends RVBaseSharePointDataSourceItem_1.RVBaseSharePointDataSourceItem { /** @hidden */ constructor(arg) { super(arg); this._webUrl = null; this._listUrl = null; this._listName = null; this._isLibrary = false; this._view = null; if (!(arg instanceof RVSharePointDataSource_1.RVSharePointDataSource)) { var props = arg.Properties; this._webUrl = props["WebUrl"]; this._listUrl = props["ListUrl"]; this._listName = props["ListName"]; this._isLibrary = props["IsLibrary"]; this._view = arg.Parameters["View"]; } } /** @hidden */ toJson() { var json = super.toJson(); var props = json['Properties']; props["WebUrl"] = this._webUrl; props["ListUrl"] = this._listUrl; props["ListName"] = this._listName; props["IsLibrary"] = this._isLibrary; json.Parameters["View"] = this._view; return json; } /** @hidden */ getSharePointItemType() { return "List"; } /** URL to the site containing the list */ get webUrl() { return this._webUrl; } set webUrl(value) { this._webUrl = value; } /** URL to the list */ get listUrl() { return this._listUrl; } set listUrl(value) { this._listUrl = value; } /** The title of the list (not the GUID!) */ get listName() { return this._listName; } set listName(value) { this._listName = value; } /** Is this list a document library? */ get isLibrary() { return this._isLibrary; } set isLibrary(value) { this._isLibrary = value; } /** Name of the view to use */ get view() { return this._view; } set view(value) { this._view = value; } /** @hidden */ getType() { return "RVSharePointListDataSourceItem"; } /** @hidden */ _getWrapper() { let wrapper = super._getWrapper(); wrapper.webUrl(this.webUrl); wrapper.listUrl(this.listUrl); wrapper.listName(this.listName); wrapper.isLibrary(this.isLibrary); wrapper.view(this.view); return wrapper; } } exports.RVSharePointListDataSourceItem = RVSharePointListDataSourceItem;