Skip to content

Commit

Permalink
feat: changes according to paladins API
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharlock10 committed Jan 13, 2024
1 parent cfd0c20 commit f6940aa
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v3.6.0
- Added support for `Omen`
- Added Bans 7,8 in match details
- Removed `Ranked Controller`
- Renamed `Ranked Keyboard` to `Ranked`

# v3.5.0
- Added support for `Nyx`

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pe-paladins.js",
"version": "3.5.0",
"version": "3.6.0",
"description": "A strongly typed fork of paladins.js, used by Paladins Edge",
"keywords": [
"paladins",
Expand Down
4 changes: 4 additions & 0 deletions src/apiResponse/getMatchDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ interface MatchPlayerDetail {
BanId4: Champions,
BanId5: Champions,
BanId6: Champions,
BanId7: Champions,
BanId8: Champions,
Ban_1: string,
Ban_2: string,
Ban_3: string,
Ban_4: string,
Ban_5: string,
Ban_6: string,
Ban_7: string,
Ban_8: string,
Camps_Cleared: number;
ChampionId: Champions;
Damage_Bot: number;
Expand Down
1 change: 1 addition & 0 deletions src/data/champions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const Champions: ChampionsType = {
2481: "Moji",
2560: "Nyx",
2540: "Octavia",
2566: "Omen",
2056: "Pip",
2528: "Raum",
2542: "Rei",
Expand Down
3 changes: 1 addition & 2 deletions src/data/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ export const Queue: QueueType = {
424: "Casual Siege",
469: "Team Deathmatch",
452: "Onslaught",
486: "Ranked Keyboard",
428: "Ranked Controller",
486: "Ranked",
434: "Shooting Range",
425: "Training Siege",
470: "Training Team Deathmatch",
Expand Down
1 change: 1 addition & 0 deletions src/enums/champions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export enum Champions {
Moji = 2481,
Nyx = 2560,
Octavia = 2540,
Omen = 2566,
Pip = 2056,
Raum = 2528,
Rei = 2542,
Expand Down
3 changes: 1 addition & 2 deletions src/enums/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ export enum Queue {
Casual_Siege = 424,
Team_Deathmatch = 469,
Onslaught = 452,
Ranked_Keyboard = 486,
Ranked_Controller = 428,
Ranked = 486,
Shooting_Range = 434,
Training_Siege = 425,
Training_Team_Deathmatch = 470,
Expand Down
1 change: 1 addition & 0 deletions src/strings/champions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export type Champions =
| "Moji"
| "Nyx"
| "Octavia"
| "Omen"
| "Pip"
| "Raum"
| "Rei"
Expand Down
3 changes: 1 addition & 2 deletions src/strings/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ export type Queue =
| "Casual Siege"
| "Team Deathmatch"
| "Onslaught"
| "Ranked Keyboard"
| "Ranked Controller"
| "Ranked"
| "Shooting Range"
| "Training Siege"
| "Training Team Deathmatch"
Expand Down
2 changes: 1 addition & 1 deletion test/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const hour = dayjs.utc().format("H");
export const testData = {
getChampionCards: 2548,
getPlayerChampionRanks: 718389146,
getMatchIdsByQueue: [hour, date, Enums.Queue.Ranked_Keyboard] as [string, string, Enums.Queue],
getMatchIdsByQueue: [hour, date, Enums.Queue.Ranked] as [string, string, Enums.Queue],
getChampionSkins: Enums.Champions.Androxus,
getPlayer: 718389146,
getPlayerBatch: [507294712, 717323258, 12141128],
Expand Down

0 comments on commit f6940aa

Please sign in to comment.