UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

63 lines (62 loc) 1.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVODataDataSourceItem = void 0; const RVDataSourceItem_1 = require("../AbstractClasses/RVDataSourceItem"); const RVODataDataSource_1 = require("./RVODataDataSource"); /** OData data source item, see {@link RVODataDataSource} for more information. */ class RVODataDataSourceItem extends RVDataSourceItem_1.RVDataSourceItem { /** @hidden */ constructor(arg) { super(arg); this._url = null; this._entityType = null; this._functionQName = null; if (!(arg instanceof RVODataDataSource_1.RVODataDataSource)) { var props = arg.Properties; this._url = props["Url"]; this._entityType = props["EntityType"]; this._functionQName = props["FunctionQName"]; } } /** @hidden */ toJson() { var json = super.toJson(); var props = json['Properties']; props['Url'] = this._url; props['EntityType'] = this._entityType; props['FunctionQName'] = this._functionQName; return json; } /** URL to the OData entity set or function. */ get url() { return this._url; } set url(value) { this._url = value; } get entityType() { return this._entityType; } set entityType(value) { this._entityType = value; } get functionQName() { return this._functionQName; } set functionQName(value) { this._functionQName = value; } /** @hidden */ getType() { return "RVODataDataSourceItem"; } /** @hidden */ _getWrapper() { let wrapper = super._getWrapper(); wrapper.url(this.url); wrapper.entityType(this.entityType); wrapper.functionQName(this.functionQName); return wrapper; } } exports.RVODataDataSourceItem = RVODataDataSourceItem;