diff --git a/.env.example b/.env.example index c1afc97..f7fc1de 100644 --- a/.env.example +++ b/.env.example @@ -4,4 +4,5 @@ POSTGRES_USER="postgres" POSTGRES_PASSWORD="postgres" REDIS_USER="default" REDIS_PASSWORD="" -REDIS_URL="redis://awesome.redis.server:6379" \ No newline at end of file +REDIS_URL="redis://awesome.redis.server:6379" +SERVERAUTH_TEST="1:f9f8fc8c-9185-47a8-8a99-9e3acf6ca007" \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 2da8654..49c5608 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -21,6 +21,15 @@ "program": "${workspaceFolder}/src/clientMain.ts", "preLaunchTask": "tsc: build - tsconfig.json", "outFiles": ["${workspaceFolder}/out/**/*.js"] + }, + { + "type": "node", + "request": "launch", + "name": "Launch Process API", + "skipFiles": ["/**"], + "program": "${workspaceFolder}/src/processMain.ts", + "preLaunchTask": "tsc: build - tsconfig.json", + "outFiles": ["${workspaceFolder}/out/**/*.js"] } ] } diff --git a/babel.config.js b/babel.config.js index f5c1c3c..7b976f5 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,6 @@ module.exports = { - presets: [['@babel/preset-env', { targets: { node: 'current' } }]] + presets: [ + ['@babel/preset-env', { targets: { node: 'current' } }], + '@babel/preset-typescript' + ] } diff --git a/docs/index.html b/docs/index.html index ddc1b80..59ff5c0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -418,9 +418,9 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/
Request Body schema: application/json
tone_version
string
match_id
string
game_mode
string
map
string
game_time
string <time>
player_count
integer
attacker_name
string
attacker_id
integer
attacker_current_weapon
string
attacker_current_weapon_mods
integer
attacker_weapon_1
string
attacker_weapon_1_mods
integer
attacker_weapon_2
string
attacker_weapon_2_mods
integer
attacker_weapon_3
string
attacker_weapon_3_mods
integer
attacker_offhand_weapon_1
integer
attacker_offhand_weapon_2
integer
victim_name
string
victim_id
integer
victim_current_weapon
string
victim_current_weapon_mods
integer
victim_weapon_1
string
victim_weapon_1_mods
integer
victim_weapon_2
string
victim_weapon_2_mods
integer
victim_weapon_3
string
victim_weapon_3_mods
integer
victim_offhand_weapon_1
integer
victim_offhand_weapon_2
integer
cause_of_death
required
string
distance
number

Responses

Request samples

Content type
application/json
{
  • "tone_version": "string",
  • "match_id": "string",
  • "game_mode": "string",
  • "map": "string",
  • "game_time": "14:15:22Z",
  • "player_count": 0,
  • "attacker_name": "string",
  • "attacker_id": 0,
  • "attacker_current_weapon": "string",
  • "attacker_current_weapon_mods": 0,
  • "attacker_weapon_1": "string",
  • "attacker_weapon_1_mods": 0,
  • "attacker_weapon_2": "string",
  • "attacker_weapon_2_mods": 0,
  • "attacker_weapon_3": "string",
  • "attacker_weapon_3_mods": 0,
  • "attacker_offhand_weapon_1": 0,
  • "attacker_offhand_weapon_2": 0,
  • "victim_name": "string",
  • "victim_id": 0,
  • "victim_current_weapon": "string",
  • "victim_current_weapon_mods": 0,
  • "victim_weapon_1": "string",
  • "victim_weapon_1_mods": 0,
  • "victim_weapon_2": "string",
  • "victim_weapon_2_mods": 0,
  • "victim_weapon_3": "string",
  • "victim_weapon_3_mods": 0,
  • "victim_offhand_weapon_1": 0,
  • "victim_offhand_weapon_2": 0,
  • "cause_of_death": "string",
  • "distance": 0
}
+

Request samples

Content type
application/json
{
  • "tone_version": "string",
  • "match_id": "string",
  • "game_mode": "string",
  • "map": "string",
  • "game_time": "14:15:22Z",
  • "player_count": 0,
  • "attacker_name": "string",
  • "attacker_id": 0,
  • "attacker_current_weapon": "string",
  • "attacker_current_weapon_mods": 0,
  • "attacker_weapon_1": "string",
  • "attacker_weapon_1_mods": 0,
  • "attacker_weapon_2": "string",
  • "attacker_weapon_2_mods": 0,
  • "attacker_weapon_3": "string",
  • "attacker_weapon_3_mods": 0,
  • "attacker_offhand_weapon_1": 0,
  • "attacker_offhand_weapon_2": 0,
  • "victim_name": "string",
  • "victim_id": 0,
  • "victim_current_weapon": "string",
  • "victim_current_weapon_mods": 0,
  • "victim_weapon_1": "string",
  • "victim_weapon_1_mods": 0,
  • "victim_weapon_2": "string",
  • "victim_weapon_2_mods": 0,
  • "victim_weapon_3": "string",
  • "victim_weapon_3_mods": 0,
  • "victim_offhand_weapon_1": 0,
  • "victim_offhand_weapon_2": 0,
  • "cause_of_death": "string",
  • "distance": 0
}