UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

23 lines (22 loc) 707 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVDateRule = void 0; /** * A class that represents a date rule for a filter. */ class RVDateRule { constructor(periodRelation, periodCountOrType, periodType) { this.periodRelation = periodRelation; if (periodType !== undefined) { // 3-arg constructor: (relation, count, type) this.count = periodCountOrType; this.periodType = periodType; } else { // 2-arg constructor: (relation, type) this.count = 0; this.periodType = periodCountOrType; } } } exports.RVDateRule = RVDateRule;