UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

41 lines (40 loc) 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVDropboxDataSourceItem = void 0; const RVDataSourceItem_1 = require("../AbstractClasses/RVDataSourceItem"); const RVDropboxDataSource_1 = require("./RVDropboxDataSource"); /** * Dropbox data source item, referencing a file in Dropbox */ class RVDropboxDataSourceItem extends RVDataSourceItem_1.RVDataSourceItem { /** @hidden */ constructor(arg) { super(arg !== null && arg !== void 0 ? arg : new RVDropboxDataSource_1.RVDropboxDataSource()); this._path = null; if (arg && !(arg instanceof RVDropboxDataSource_1.RVDropboxDataSource)) { var props = arg.Properties; this._path = props["Path"]; } } /** @hidden */ toJson() { var json = super.toJson(); var props = json['Properties']; props['Path'] = this._path; return json; } /** * Path to the file in Dropbox account */ get path() { return this._path; } set path(value) { this._path = value; } /** @hidden */ getType() { return "RVDropboxDataSourceItem"; } } exports.RVDropboxDataSourceItem = RVDropboxDataSourceItem;