@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
18 lines (17 loc) • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BusinessProfileAnalyticsSettings = void 0;
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
const BusinessProfile_1 = require("./../BusinessProfile");
class BusinessProfileAnalyticsSettings extends BusinessProfile_1.BusinessProfileProperty {
constructor() {
super(new models_1.Guid("39df27aa-95f1-4a23-b3f6-8b231afcda82"), "bpanalyticssettings");
this.enabled = false;
this.idSite = -1;
this.mappings = [];
this.shared = false;
}
}
exports.BusinessProfileAnalyticsSettings = BusinessProfileAnalyticsSettings;
BusinessProfileAnalyticsSettings.checkIfAnalyticsSwitchToDisabled = (currenttSetting, targetSetting) => targetSetting?.idSite !== currenttSetting?.idSite && !targetSetting?.enabled;
BusinessProfileAnalyticsSettings.checkIfAnalyticsSwitchToEnabled = (currenttSetting, targetSetting) => targetSetting?.idSite !== currenttSetting?.idSite && targetSetting?.enabled;