reveal-sdk-node
Version:
RevealBI Node.js SDK
54 lines (53 loc) • 1.8 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RVGoogleAnalytics4DataSourceItem = void 0;
const RVDataSourceItem_1 = require("../AbstractClasses/RVDataSourceItem");
const RVGoogleAnalytics4DataSource_1 = require("./RVGoogleAnalytics4DataSource");
/** Google Analytics 4 data source item. */
class RVGoogleAnalytics4DataSourceItem extends RVDataSourceItem_1.RVDataSourceItem {
/** @hidden */
constructor(arg) {
super(arg);
this._accountId = null;
this._propertyId = null;
if (!(arg instanceof RVGoogleAnalytics4DataSource_1.RVGoogleAnalytics4DataSource)) {
var props = arg.Properties;
this._accountId = props["ga4AccountId"];
this._propertyId = props["PropertyId"];
}
}
/** @hidden */
toJson() {
var json = super.toJson();
var props = json['Properties'];
props['ga4AccountId'] = this._accountId;
props['PropertyId'] = this._propertyId;
return json;
}
/** Account identifier to get data from */
get accountId() {
return this._accountId;
}
set accountId(value) {
this._accountId = value;
}
/** Property identifier to get data from */
get propertyId() {
return this._propertyId;
}
set propertyId(value) {
this._propertyId = value;
}
/** @hidden */
getType() {
return "RVGoogleAnalytics4DataSourceItem";
}
/** @hidden */
_getWrapper() {
var wrapper = super._getWrapper();
wrapper.accountId(this.accountId);
wrapper.propertyId(this.propertyId);
return wrapper;
}
}
exports.RVGoogleAnalytics4DataSourceItem = RVGoogleAnalytics4DataSourceItem;