/
model.ts
47 lines (42 loc) · 882 Bytes
/
model.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
/* -----------------------------------
*
* Param
*
* -------------------------------- */
const param = {
protocolVersion: 'v',
trackingId: 'tid',
pageId: '_p',
language: 'ul',
clientId: 'cid',
firstVisit: '_fv',
hitCount: '_s',
sessionId: 'sid',
sessionCount: 'sct',
sessionEngagement: 'seg',
sessionStart: '_ss',
debug: '_dbg',
referrer: 'dr',
location: 'dl',
title: 'dt',
eventName: 'en',
eventParam: 'ep',
eventParamNumber: 'epn',
screenResolution: 'sr',
enagementTime: '_et',
};
/* -----------------------------------
*
* Filetypes
*
* -------------------------------- */
const files = [
'pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi',
'mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma',
];
/* -----------------------------------
*
* Export
*
* -------------------------------- */
export { param, files };