summaryrefslogtreecommitdiff
path: root/config.js
blob: f2e0b4f81be48f6345081070a92ecd158e2d55ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/node

module.exports = {
  api: {
    baseUrl: 'https://api.dc01.gamelockerapp.com',
    timeout: 5,
    regions: ['sg', 'eu', 'na'],
    rpm: 5,
    modes: ['blitz_pvp_ranked'],
  },
  etl: {
    participant: [ ['Winner', ['attributes', 'stats', 'winner']] ],
    roster: [ ],
    match: [ ],
  },
  reduce: {
    group: ['Actor', 'Talent'],
    sum: ['Level', 'Winner'],
  },
  file: {
    pattern: (moment) => `./data/${moment.week()}/${moment.toISOString()}.json`,
  },
};