-
Notifications
You must be signed in to change notification settings - Fork 10
/
AnalyticsImpressionsQuery.ts
43 lines (37 loc) · 1.16 KB
/
AnalyticsImpressionsQuery.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import {map, mapArray} from '../common/Mapper';
import AnalyticsAbstractFilter from './AnalyticsAbstractFilter';
import AnalyticsQueryTimeframe from './AnalyticsQueryTimeframe';
/**
* @export
* @class AnalyticsImpressionsQuery
*/
export class AnalyticsImpressionsQuery extends AnalyticsQueryTimeframe {
/**
* Analytics license key (required)
* @type {string}
* @memberof AnalyticsImpressionsQuery
*/
public licenseKey?: string;
/**
* Analytics Query Filters Each filter requires 3 properties: name, operator and value. Valid operators are [IN, EQ, NE, LT, LTE, GT, GTE, CONTAINS, NOTCONTAINS]
* @type {AnalyticsAbstractFilter[]}
* @memberof AnalyticsImpressionsQuery
*/
public filters?: AnalyticsAbstractFilter[];
/**
* Number of returned impressions
* @type {number}
* @memberof AnalyticsImpressionsQuery
*/
public limit?: number;
constructor(obj?: Partial<AnalyticsImpressionsQuery>) {
super(obj);
if(!obj) {
return;
}
this.licenseKey = map(obj.licenseKey);
this.filters = mapArray(obj.filters, AnalyticsAbstractFilter);
this.limit = map(obj.limit);
}
}
export default AnalyticsImpressionsQuery;