@wfcd/profile-parser 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/package.json +104 -0
  4. package/src/Ability.js +21 -0
  5. package/src/ArchonCrystal.js +8 -0
  6. package/src/ChallengeProgress.js +15 -0
  7. package/src/Enemy.js +45 -0
  8. package/src/Intrinsics.js +69 -0
  9. package/src/ItemConfig.js +51 -0
  10. package/src/LoadOutInventory.js +43 -0
  11. package/src/LoadOutItem.js +135 -0
  12. package/src/Mission.js +40 -0
  13. package/src/OperatorLoadOuts.js +68 -0
  14. package/src/Polarity.js +17 -0
  15. package/src/Profile.js +189 -0
  16. package/src/ProfileParser.js +32 -0
  17. package/src/Pvp.js +27 -0
  18. package/src/Race.js +15 -0
  19. package/src/Scan.js +15 -0
  20. package/src/Stats.js +339 -0
  21. package/src/Syndicate.js +30 -0
  22. package/src/Util.js +12 -0
  23. package/src/Weapon.js +51 -0
  24. package/src/WeaponSkin.js +9 -0
  25. package/src/XpInfo.js +23 -0
  26. package/types/Ability.d.ts +19 -0
  27. package/types/ArchonCrystal.d.ts +5 -0
  28. package/types/ChallengeProgress.d.ts +13 -0
  29. package/types/Enemy.d.ts +39 -0
  30. package/types/Intrinsics.d.ts +56 -0
  31. package/types/ItemConfig.d.ts +19 -0
  32. package/types/LoadOutInventory.d.ts +36 -0
  33. package/types/LoadOutItem.d.ts +78 -0
  34. package/types/Mission.d.ts +21 -0
  35. package/types/OperatorLoadOuts.d.ts +26 -0
  36. package/types/Polarity.d.ts +13 -0
  37. package/types/Profile.d.ts +143 -0
  38. package/types/ProfileParser.d.ts +19 -0
  39. package/types/Pvp.d.ts +23 -0
  40. package/types/Race.d.ts +13 -0
  41. package/types/Scan.d.ts +13 -0
  42. package/types/Stats.d.ts +258 -0
  43. package/types/Syndicate.d.ts +24 -0
  44. package/types/Util.d.ts +6 -0
  45. package/types/Weapon.d.ts +43 -0
  46. package/types/WeaponSkin.d.ts +8 -0
  47. package/types/XpInfo.d.ts +18 -0
@@ -0,0 +1,258 @@
1
+ /**
2
+ * Player stats
3
+ */
4
+ export default class Stats {
5
+ /**
6
+ *
7
+ * @param {Object} stats Player stats
8
+ */
9
+ constructor(stats: any);
10
+ /**
11
+ * Guild name
12
+ * @type {String}
13
+ */
14
+ guildName: string;
15
+ /**
16
+ * Player's total accumalted xp
17
+ * @type {String}
18
+ */
19
+ xp: string;
20
+ /**
21
+ * Missions completed
22
+ * @type {number}
23
+ */
24
+ missionsCompleted: number;
25
+ /**
26
+ * MIssions quit
27
+ * @type {number}
28
+ */
29
+ missionsQuit: number;
30
+ /**
31
+ * MIsions failed
32
+ * @type {number}
33
+ */
34
+ missionsFailed: number;
35
+ /**
36
+ * MIssions interrupted
37
+ * @type {number}
38
+ */
39
+ missionsInterrupted: number;
40
+ /**
41
+ * MIssions dumped
42
+ * @type {number}
43
+ */
44
+ missionsDumped: number;
45
+ /**
46
+ * Items picked up
47
+ * @type {number}
48
+ */
49
+ pickupCount: number;
50
+ /**
51
+ * Stats per weapon
52
+ * @type {Array<Weapon>}
53
+ */
54
+ weapons: Array<Weapon>;
55
+ /**
56
+ * Stats on enemy encounters.
57
+ * @type {Array<Enemy>}
58
+ */
59
+ enemies: Array<Enemy>;
60
+ /**
61
+ * Max score for Operation: Cryotic Front
62
+ * @type {number}
63
+ */
64
+ excavationEventScoreMax: number;
65
+ /**
66
+ * Max scoring for The Cicero crisis
67
+ * @type {number}
68
+ */
69
+ forestEventScoreMax: number;
70
+ /**
71
+ * Clan scoring for The Cicero crisis
72
+ * @type {number}
73
+ */
74
+ forestEventScoreSum: number;
75
+ /**
76
+ * Melee kilss
77
+ * @type {number}
78
+ */
79
+ meleeKills: number;
80
+ /**
81
+ * Used abilities
82
+ * @type {number}
83
+ */
84
+ abilities: number;
85
+ /**
86
+ * Ciphers completed succefully
87
+ * @type {number}
88
+ */
89
+ ciphersSolved: number;
90
+ /**
91
+ * Ciphers failed
92
+ * @type {number}
93
+ */
94
+ ciphersFailed: number;
95
+ /**
96
+ * Gross income
97
+ * @type {number}
98
+ */
99
+ income: number;
100
+ /**
101
+ * Total play time since account creation
102
+ * @type {string}
103
+ */
104
+ timePlayedSec: string;
105
+ /**
106
+ * Average time to hack a panel
107
+ * @type {number}
108
+ */
109
+ cipherTime: number;
110
+ /**
111
+ * @type {number}
112
+ */
113
+ rating: number;
114
+ /**
115
+ * Mastery rank
116
+ * @type {number}
117
+ */
118
+ rank: number;
119
+ /**
120
+ * Total deaths since account creation
121
+ * @type {number}
122
+ */
123
+ deaths: number;
124
+ /**
125
+ * Mastery rank
126
+ * @type {number}
127
+ */
128
+ playerLevel: number;
129
+ /**
130
+ * List of missions and high scores
131
+ * @type {Array<Mission>}
132
+ */
133
+ missions: Array<Mission>;
134
+ /**
135
+ * Team heals
136
+ * @type {number}
137
+ */
138
+ healCount: number;
139
+ /**
140
+ * Event Scores for Operation breeding grounds
141
+ * @type {Map<String,numbert>}
142
+ */
143
+ breedGrounds: Map<string, numbert>;
144
+ /**
145
+ * Event Scores for The Gradivus Dilemma
146
+ * @type {Map<String,numbert>}
147
+ */
148
+ gradivusDilemma: Map<string, numbert>;
149
+ /**
150
+ * List of scans
151
+ * @type {Array<Scan>}
152
+ */
153
+ scans: Array<Scan>;
154
+ /**
155
+ * Team revives
156
+ * @type {number}
157
+ */
158
+ reviveCount: number;
159
+ /**
160
+ * Score for Operation: Eyes of Blight
161
+ */
162
+ fomorianEventScore: any;
163
+ /**
164
+ * Conclave scores
165
+ * @type {Array<Pvp>}
166
+ */
167
+ pvp: Array<Pvp>;
168
+ /**
169
+ * Lunaro stats
170
+ * @type {Map<String,number>}
171
+ */
172
+ lunaro: Map<string, number>;
173
+ /**
174
+ * Dojo obstacle course goal
175
+ * @type {number}
176
+ */
177
+ dojoObstacleScore: number;
178
+ /**
179
+ * @type {number}
180
+ */
181
+ pvpGamesPendingMask: number;
182
+ /**
183
+ * @type {number}
184
+ */
185
+ dedicatedServerGamesCompleted: number;
186
+ /**
187
+ * Event score for the Pacifism Defect
188
+ * @type {number}
189
+ */
190
+ pacifismDefect: number;
191
+ /**
192
+ * Score for operation Ambulas reborn.
193
+ * @type {number}
194
+ */
195
+ ambulasReborn: number;
196
+ /**
197
+ * Score for Wyrmius mini game
198
+ * @type {number}
199
+ */
200
+ sentinelGameScore: number;
201
+ /**
202
+ * Event score for operation hostile merger
203
+ * @type {number}
204
+ */
205
+ amalgamEventScoreMax: number;
206
+ /**
207
+ * Operation Scarlet spear event score and badges
208
+ * @type {Map<String,number>}
209
+ */
210
+ scarletSpear: Map<string, number>;
211
+ orphixVenomScore: any;
212
+ happyZephyrScore: any;
213
+ kDriveRaces: any;
214
+ /**
215
+ * Operation Gate Crash event
216
+ * @type {number}
217
+ */
218
+ gateCrash: number;
219
+ /**
220
+ * Per mission score for Operation: False Profit
221
+ * @type {number}
222
+ */
223
+ falseProfitMissionScore: number;
224
+ /**
225
+ * Total even score for Operation: False Profit
226
+ * @type {number}
227
+ */
228
+ fasleProfitEventScore: number;
229
+ /**
230
+ * Operation: Shadow Debt event score
231
+ * @type {number}
232
+ */
233
+ shadowDebtEventScore: number;
234
+ /**
235
+ * Operation: Rathuum event score
236
+ * @type {number}
237
+ */
238
+ rathuumEventScore: number;
239
+ /**
240
+ * Hollowed flame event max score
241
+ * @type {number}
242
+ */
243
+ hallowedFlameScoreMax: number;
244
+ /**
245
+ * Survival Weekend event score
246
+ * @type {number}
247
+ */
248
+ survivalWeekenedEventScore: number;
249
+ /**
250
+ * @type {number}
251
+ */
252
+ infestedEventScore: number;
253
+ }
254
+ import Weapon from './Weapon.js';
255
+ import Enemy from './Enemy.js';
256
+ import Mission from './Mission.js';
257
+ import Scan from './Scan.js';
258
+ import Pvp from './Pvp.js';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Represents a player's progress with a Syndicate
3
+ */
4
+ export default class Syndicate {
5
+ /**
6
+ * @param {Object} affiliation The syndicate data
7
+ */
8
+ constructor(affiliation: any);
9
+ /**
10
+ * Name of the syndicate
11
+ * @type {String}
12
+ */
13
+ name: string;
14
+ /**
15
+ * Current standing the player has with the syndicate
16
+ * @type {number}
17
+ */
18
+ standing: number;
19
+ /**
20
+ * The player's current syndicate title
21
+ * @type {String}
22
+ */
23
+ title: string;
24
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Map base10 int colors to hex color strings
3
+ * @param {Record<string, number | undefined>} colors color map
4
+ * @returns {Record<string, string>}
5
+ */
6
+ export default function mapToHex(colors: Record<string, number | undefined>): Record<string, string>;
@@ -0,0 +1,43 @@
1
+ export default class Weapon {
2
+ constructor(weapon: any);
3
+ /**
4
+ * Weapon unique name
5
+ * @type {String}
6
+ */
7
+ uniqueName: string;
8
+ /**
9
+ * Earned XP with weapon
10
+ * @type {number}
11
+ */
12
+ xp: number;
13
+ /**
14
+ * Time using this weapon
15
+ * @type {number}
16
+ */
17
+ equiptime: number;
18
+ /**
19
+ * Headshots using this weapon
20
+ * @type {number}
21
+ */
22
+ headShots: number;
23
+ /**
24
+ * Hits using weapon
25
+ * @type {number}
26
+ */
27
+ hits: number;
28
+ /**
29
+ * Assists using weapon
30
+ * @type {number}
31
+ */
32
+ assists: number;
33
+ /**
34
+ * Kills with weapon
35
+ * @type {number}
36
+ */
37
+ kills: number;
38
+ /**
39
+ * Shots fired
40
+ * @type {number}
41
+ */
42
+ fired: number;
43
+ }
@@ -0,0 +1,8 @@
1
+ export default class WeaponSkin {
2
+ constructor(skin: any);
3
+ /**
4
+ * Unique name
5
+ * @type {String}
6
+ */
7
+ unuqueName: string;
8
+ }
@@ -0,0 +1,18 @@
1
+ export default class XpInfo {
2
+ constructor(info: any);
3
+ /**
4
+ * Unique name
5
+ * @type {String}
6
+ */
7
+ uniqueName: string;
8
+ /**
9
+ * XP earned
10
+ * @type {number}
11
+ */
12
+ xp: number;
13
+ /**
14
+ * The item corrosponding to the unique name.
15
+ * @type {module:"warframe-items".Item | undefined}
16
+ */
17
+ item: any;
18
+ }