-
Notifications
You must be signed in to change notification settings - Fork 10
/
AdAnalyticsAbstractFilter.ts
58 lines (52 loc) · 2.04 KB
/
AdAnalyticsAbstractFilter.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import {map, mapArray} from '../common/Mapper';
import AdAnalyticsAttribute from './AdAnalyticsAttribute';
import AdAnalyticsContainsFilter from './AdAnalyticsContainsFilter';
import AdAnalyticsEqualFilter from './AdAnalyticsEqualFilter';
import AdAnalyticsGreaterThanFilter from './AdAnalyticsGreaterThanFilter';
import AdAnalyticsGreaterThanOrEqualFilter from './AdAnalyticsGreaterThanOrEqualFilter';
import AdAnalyticsInFilter from './AdAnalyticsInFilter';
import AdAnalyticsLessThanFilter from './AdAnalyticsLessThanFilter';
import AdAnalyticsLessThanOrEqualFilter from './AdAnalyticsLessThanOrEqualFilter';
import AdAnalyticsNotContainsFilter from './AdAnalyticsNotContainsFilter';
import AdAnalyticsNotEqualFilter from './AdAnalyticsNotEqualFilter';
import AnalyticsQueryOperator from './AnalyticsQueryOperator';
export type AdAnalyticsAbstractFilterUnion =
AdAnalyticsInFilter |
AdAnalyticsEqualFilter |
AdAnalyticsNotEqualFilter |
AdAnalyticsLessThanFilter |
AdAnalyticsLessThanOrEqualFilter |
AdAnalyticsGreaterThanFilter |
AdAnalyticsGreaterThanOrEqualFilter |
AdAnalyticsContainsFilter |
AdAnalyticsNotContainsFilter;
/**
* @export
* @class AdAnalyticsAbstractFilter
*/
export class AdAnalyticsAbstractFilter {
protected static readonly _discriminatorName = 'operator';
protected static readonly _discriminatorMapping: { [key in keyof typeof AnalyticsQueryOperator]: string; } = {
IN: 'AdAnalyticsInFilter',
EQ: 'AdAnalyticsEqualFilter',
NE: 'AdAnalyticsNotEqualFilter',
LT: 'AdAnalyticsLessThanFilter',
LTE: 'AdAnalyticsLessThanOrEqualFilter',
GT: 'AdAnalyticsGreaterThanFilter',
GTE: 'AdAnalyticsGreaterThanOrEqualFilter',
CONTAINS: 'AdAnalyticsContainsFilter',
NOTCONTAINS: 'AdAnalyticsNotContainsFilter'
};
/**
* @type {AdAnalyticsAttribute}
* @memberof AdAnalyticsAbstractFilter
*/
public name?: AdAnalyticsAttribute;
constructor(obj?: Partial<AdAnalyticsAbstractFilter>) {
if(!obj) {
return;
}
this.name = map(obj.name);
}
}
export default AdAnalyticsAbstractFilter;