@axiapps/bridge-metrics 0.1.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.
- package/dist/aggregationTypes.cjs +18 -0
- package/dist/aggregationTypes.d.cts +21 -0
- package/dist/aggregationTypes.d.ts +21 -0
- package/dist/aggregationTypes.js +1 -0
- package/dist/boonGeneration.cjs +308 -0
- package/dist/boonGeneration.d.cts +65 -0
- package/dist/boonGeneration.d.ts +65 -0
- package/dist/boonGeneration.js +16 -0
- package/dist/chunk-42DVJJLC.js +106 -0
- package/dist/chunk-4F55Q6K2.js +0 -0
- package/dist/chunk-ELKDB763.js +349 -0
- package/dist/chunk-FU74LJEM.js +77 -0
- package/dist/chunk-J3YCFY3C.js +37 -0
- package/dist/chunk-JP2ZL44R.js +18 -0
- package/dist/chunk-K2SRAMGC.js +0 -0
- package/dist/chunk-KRHODGVU.js +48 -0
- package/dist/chunk-LIGIXSSA.js +1383 -0
- package/dist/chunk-M2WR3JBQ.js +0 -0
- package/dist/chunk-PMVLNDZZ.js +279 -0
- package/dist/chunk-R5EJF5AW.js +147 -0
- package/dist/chunk-RGXSI3AI.js +298 -0
- package/dist/chunk-UFJJ6WLD.js +197 -0
- package/dist/chunk-WW5XFXGC.js +234 -0
- package/dist/chunk-ZFZS7JFU.js +10 -0
- package/dist/combatMetrics.cjs +251 -0
- package/dist/combatMetrics.d.cts +26 -0
- package/dist/combatMetrics.d.ts +26 -0
- package/dist/combatMetrics.js +21 -0
- package/dist/computePlayerAggregation.cjs +2042 -0
- package/dist/computePlayerAggregation.d.cts +249 -0
- package/dist/computePlayerAggregation.d.ts +249 -0
- package/dist/computePlayerAggregation.js +30 -0
- package/dist/conditionsMetrics.cjs +328 -0
- package/dist/conditionsMetrics.d.cts +67 -0
- package/dist/conditionsMetrics.d.ts +67 -0
- package/dist/conditionsMetrics.js +18 -0
- package/dist/constants.cjs +36 -0
- package/dist/constants.d.cts +18 -0
- package/dist/constants.d.ts +18 -0
- package/dist/constants.js +10 -0
- package/dist/dashboardMetrics.cjs +226 -0
- package/dist/dashboardMetrics.d.cts +29 -0
- package/dist/dashboardMetrics.d.ts +29 -0
- package/dist/dashboardMetrics.js +42 -0
- package/dist/dpsReportTypes.cjs +18 -0
- package/dist/dpsReportTypes.d.cts +294 -0
- package/dist/dpsReportTypes.d.ts +294 -0
- package/dist/dpsReportTypes.js +1 -0
- package/dist/index.cjs +2902 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +152 -0
- package/dist/metrics-methods.json +38 -0
- package/dist/metricsSettings.cjs +75 -0
- package/dist/metricsSettings.d.cts +23 -0
- package/dist/metricsSettings.d.ts +23 -0
- package/dist/metricsSettings.js +8 -0
- package/dist/professionUtils.cjs +265 -0
- package/dist/professionUtils.d.cts +10 -0
- package/dist/professionUtils.d.ts +10 -0
- package/dist/professionUtils.js +20 -0
- package/dist/reportMetrics.cjs +224 -0
- package/dist/reportMetrics.d.cts +85 -0
- package/dist/reportMetrics.d.ts +85 -0
- package/dist/reportMetrics.js +12 -0
- package/dist/resUtility.cjs +52 -0
- package/dist/resUtility.d.cts +5 -0
- package/dist/resUtility.d.ts +5 -0
- package/dist/resUtility.js +8 -0
- package/dist/roles.cjs +18 -0
- package/dist/roles.d.cts +17 -0
- package/dist/roles.d.ts +17 -0
- package/dist/roles.js +1 -0
- package/dist/rollup.cjs +378 -0
- package/dist/rollup.d.cts +103 -0
- package/dist/rollup.d.ts +103 -0
- package/dist/rollup.js +16 -0
- package/dist/statsMetrics.cjs +153 -0
- package/dist/statsMetrics.d.cts +39 -0
- package/dist/statsMetrics.d.ts +39 -0
- package/dist/statsMetrics.js +22 -0
- package/dist/timestampUtils.cjs +63 -0
- package/dist/timestampUtils.d.cts +12 -0
- package/dist/timestampUtils.d.ts +12 -0
- package/dist/timestampUtils.js +9 -0
- package/package.json +44 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { DisruptionMethod } from './metricsSettings.cjs';
|
|
2
|
+
import { PlayerSkillDamageEntry, PlayerHealingSkillEntry } from './aggregationTypes.cjs';
|
|
3
|
+
import { PlayerRoleClassification } from './roles.cjs';
|
|
4
|
+
|
|
5
|
+
interface PlayerStats {
|
|
6
|
+
name: string;
|
|
7
|
+
account: string;
|
|
8
|
+
characterNames: Set<string>;
|
|
9
|
+
downContrib: number;
|
|
10
|
+
cleanses: number;
|
|
11
|
+
strips: number;
|
|
12
|
+
stab: number;
|
|
13
|
+
healing: number;
|
|
14
|
+
barrier: number;
|
|
15
|
+
cc: number;
|
|
16
|
+
interrupts: number;
|
|
17
|
+
logsJoined: number;
|
|
18
|
+
totalDist: number;
|
|
19
|
+
distCount: number;
|
|
20
|
+
stackedLogCount: number;
|
|
21
|
+
dodges: number;
|
|
22
|
+
downs: number;
|
|
23
|
+
deaths: number;
|
|
24
|
+
kills: number;
|
|
25
|
+
enemyDowns: number;
|
|
26
|
+
damageTaken: number;
|
|
27
|
+
breakbar: number;
|
|
28
|
+
blocks: number;
|
|
29
|
+
evades: number;
|
|
30
|
+
misses: number;
|
|
31
|
+
totalFightMs: number;
|
|
32
|
+
offenseTotals: Record<string, number>;
|
|
33
|
+
offenseRateWeights: Record<string, number>;
|
|
34
|
+
defenseActiveMs: number;
|
|
35
|
+
defenseTotals: Record<string, number>;
|
|
36
|
+
defenseMinionDamageTaken: Record<string, number>;
|
|
37
|
+
supportActiveMs: number;
|
|
38
|
+
supportTotals: Record<string, number>;
|
|
39
|
+
healingActiveMs: number;
|
|
40
|
+
healingTotals: Record<string, number>;
|
|
41
|
+
hasHealAddon: boolean;
|
|
42
|
+
profession: string;
|
|
43
|
+
professions: Set<string>;
|
|
44
|
+
professionList?: string[];
|
|
45
|
+
professionTimeMs: Record<string, number>;
|
|
46
|
+
squadActiveMs: number;
|
|
47
|
+
firstSeenFightTs: number;
|
|
48
|
+
lastSeenFightTs: number;
|
|
49
|
+
lastSeenFightDurationMs: number;
|
|
50
|
+
isCommander: boolean;
|
|
51
|
+
damage: number;
|
|
52
|
+
dps: number;
|
|
53
|
+
revives: number;
|
|
54
|
+
outgoingConditions: Record<string, any>;
|
|
55
|
+
incomingConditions: Record<string, any>;
|
|
56
|
+
damageModTotals: Record<string, {
|
|
57
|
+
damageGain: number;
|
|
58
|
+
hitCount: number;
|
|
59
|
+
totalHitCount: number;
|
|
60
|
+
totalDamage: number;
|
|
61
|
+
}>;
|
|
62
|
+
incomingDamageModTotals: Record<string, {
|
|
63
|
+
damageGain: number;
|
|
64
|
+
hitCount: number;
|
|
65
|
+
totalHitCount: number;
|
|
66
|
+
totalDamage: number;
|
|
67
|
+
}>;
|
|
68
|
+
roleClassification: PlayerRoleClassification;
|
|
69
|
+
}
|
|
70
|
+
type DamageMitigationTotals = {
|
|
71
|
+
totalHits: number;
|
|
72
|
+
blocked: number;
|
|
73
|
+
evaded: number;
|
|
74
|
+
glanced: number;
|
|
75
|
+
missed: number;
|
|
76
|
+
invulned: number;
|
|
77
|
+
interrupted: number;
|
|
78
|
+
totalMitigation: number;
|
|
79
|
+
minMitigation: number;
|
|
80
|
+
};
|
|
81
|
+
type DamageMitigationRow = {
|
|
82
|
+
account: string;
|
|
83
|
+
name: string;
|
|
84
|
+
profession: string;
|
|
85
|
+
professionList: string[];
|
|
86
|
+
activeMs: number;
|
|
87
|
+
mitigationTotals: DamageMitigationTotals;
|
|
88
|
+
};
|
|
89
|
+
type DamageMitigationMinionRow = DamageMitigationRow & {
|
|
90
|
+
minion: string;
|
|
91
|
+
};
|
|
92
|
+
type SpecialBuffAggEntry = {
|
|
93
|
+
key: string;
|
|
94
|
+
account: string;
|
|
95
|
+
profession: string;
|
|
96
|
+
professions: Set<string>;
|
|
97
|
+
professionTimeMs: Record<string, number>;
|
|
98
|
+
totalMs: number;
|
|
99
|
+
uptimeMs: number;
|
|
100
|
+
durationMs: number;
|
|
101
|
+
};
|
|
102
|
+
declare const getFightDownsDeaths: (details: any) => {
|
|
103
|
+
squadDownsDeaths: number;
|
|
104
|
+
enemyDownsDeaths: number;
|
|
105
|
+
squadDeaths: number;
|
|
106
|
+
enemyDeaths: number;
|
|
107
|
+
};
|
|
108
|
+
declare const getFightOutcome: (details: any) => any;
|
|
109
|
+
declare const resolveProfessionLabel: (name?: string) => string;
|
|
110
|
+
interface PlayerAggregationAccumulators {
|
|
111
|
+
playerStats: Map<string, PlayerStats>;
|
|
112
|
+
skillDamageMap: Record<number, {
|
|
113
|
+
name: string;
|
|
114
|
+
icon?: string;
|
|
115
|
+
damage: number;
|
|
116
|
+
hits: number;
|
|
117
|
+
downContribution: number;
|
|
118
|
+
}>;
|
|
119
|
+
incomingSkillDamageMap: Record<number, {
|
|
120
|
+
name: string;
|
|
121
|
+
icon?: string;
|
|
122
|
+
damage: number;
|
|
123
|
+
hits: number;
|
|
124
|
+
}>;
|
|
125
|
+
playerSkillBreakdownMap: Map<string, {
|
|
126
|
+
key: string;
|
|
127
|
+
account: string;
|
|
128
|
+
displayName: string;
|
|
129
|
+
profession: string;
|
|
130
|
+
professionList: string[];
|
|
131
|
+
totalFightMs: number;
|
|
132
|
+
skills: Map<string, PlayerSkillDamageEntry>;
|
|
133
|
+
}>;
|
|
134
|
+
healingBreakdownMap: Map<string, {
|
|
135
|
+
key: string;
|
|
136
|
+
account: string;
|
|
137
|
+
displayName: string;
|
|
138
|
+
profession: string;
|
|
139
|
+
professionList: string[];
|
|
140
|
+
healingSkills: Map<string, PlayerHealingSkillEntry>;
|
|
141
|
+
barrierSkills: Map<string, PlayerHealingSkillEntry>;
|
|
142
|
+
hasHealAddon: boolean;
|
|
143
|
+
}>;
|
|
144
|
+
outgoingCondiTotals: Record<string, any>;
|
|
145
|
+
incomingCondiTotals: Record<string, any>;
|
|
146
|
+
enemyProfessionCounts: Record<string, number>;
|
|
147
|
+
specialBuffMeta: Map<string, {
|
|
148
|
+
name?: string;
|
|
149
|
+
stacking?: boolean;
|
|
150
|
+
icon?: string;
|
|
151
|
+
}>;
|
|
152
|
+
specialBuffAgg: Map<string, Map<string, SpecialBuffAggEntry>>;
|
|
153
|
+
specialBuffOutputAgg: Map<string, Map<string, SpecialBuffAggEntry>>;
|
|
154
|
+
damageMitigationPlayersMap: Map<string, DamageMitigationRow>;
|
|
155
|
+
damageMitigationMinionsMap: Map<string, DamageMitigationMinionRow>;
|
|
156
|
+
globalEnemySkillStats: Map<number, {
|
|
157
|
+
totalDamage: number;
|
|
158
|
+
connectedHits: number;
|
|
159
|
+
minTotal: number;
|
|
160
|
+
minCount: number;
|
|
161
|
+
}>;
|
|
162
|
+
mitigationCumulativeCounts: Map<string, DamageMitigationTotals>;
|
|
163
|
+
mitigationMinionCumulativeCounts: Map<string, DamageMitigationTotals>;
|
|
164
|
+
wins: number;
|
|
165
|
+
losses: number;
|
|
166
|
+
totalSquadSizeAccum: number;
|
|
167
|
+
totalEnemiesAccum: number;
|
|
168
|
+
totalSquadDeaths: number;
|
|
169
|
+
totalSquadKills: number;
|
|
170
|
+
totalEnemyDeaths: number;
|
|
171
|
+
totalEnemyKills: number;
|
|
172
|
+
totalSquadDowns: number;
|
|
173
|
+
totalEnemyDowns: number;
|
|
174
|
+
}
|
|
175
|
+
declare const createPlayerAggregationAccumulators: () => PlayerAggregationAccumulators;
|
|
176
|
+
interface PlayerAggregationOptions {
|
|
177
|
+
method: DisruptionMethod;
|
|
178
|
+
skillDamageSource: string;
|
|
179
|
+
splitPlayersByClass: boolean;
|
|
180
|
+
}
|
|
181
|
+
declare const precomputeGlobalEnemySkillStats: (log: any, acc: PlayerAggregationAccumulators) => void;
|
|
182
|
+
declare const ingestLogPlayerData: (log: any, acc: PlayerAggregationAccumulators, options: PlayerAggregationOptions) => void;
|
|
183
|
+
declare const finalizePlayerAggregation: (acc: PlayerAggregationAccumulators) => void;
|
|
184
|
+
declare const computePlayerAggregation: ({ validLogs, method, skillDamageSource, splitPlayersByClass, }: {
|
|
185
|
+
validLogs: any[];
|
|
186
|
+
method: DisruptionMethod;
|
|
187
|
+
skillDamageSource: string;
|
|
188
|
+
splitPlayersByClass: boolean;
|
|
189
|
+
}) => {
|
|
190
|
+
playerStats: Map<string, PlayerStats>;
|
|
191
|
+
skillDamageMap: Record<number, {
|
|
192
|
+
name: string;
|
|
193
|
+
icon?: string;
|
|
194
|
+
damage: number;
|
|
195
|
+
hits: number;
|
|
196
|
+
downContribution: number;
|
|
197
|
+
}>;
|
|
198
|
+
incomingSkillDamageMap: Record<number, {
|
|
199
|
+
name: string;
|
|
200
|
+
icon?: string;
|
|
201
|
+
damage: number;
|
|
202
|
+
hits: number;
|
|
203
|
+
}>;
|
|
204
|
+
playerSkillBreakdownMap: Map<string, {
|
|
205
|
+
key: string;
|
|
206
|
+
account: string;
|
|
207
|
+
displayName: string;
|
|
208
|
+
profession: string;
|
|
209
|
+
professionList: string[];
|
|
210
|
+
totalFightMs: number;
|
|
211
|
+
skills: Map<string, PlayerSkillDamageEntry>;
|
|
212
|
+
}>;
|
|
213
|
+
healingBreakdownMap: Map<string, {
|
|
214
|
+
key: string;
|
|
215
|
+
account: string;
|
|
216
|
+
displayName: string;
|
|
217
|
+
profession: string;
|
|
218
|
+
professionList: string[];
|
|
219
|
+
healingSkills: Map<string, PlayerHealingSkillEntry>;
|
|
220
|
+
barrierSkills: Map<string, PlayerHealingSkillEntry>;
|
|
221
|
+
hasHealAddon: boolean;
|
|
222
|
+
}>;
|
|
223
|
+
outgoingCondiTotals: Record<string, any>;
|
|
224
|
+
incomingCondiTotals: Record<string, any>;
|
|
225
|
+
enemyProfessionCounts: Record<string, number>;
|
|
226
|
+
specialBuffMeta: Map<string, {
|
|
227
|
+
name?: string;
|
|
228
|
+
stacking?: boolean;
|
|
229
|
+
icon?: string;
|
|
230
|
+
}>;
|
|
231
|
+
specialBuffAgg: Map<string, Map<string, SpecialBuffAggEntry>>;
|
|
232
|
+
specialBuffOutputAgg: Map<string, Map<string, SpecialBuffAggEntry>>;
|
|
233
|
+
damageMitigationPlayersMap: Map<string, DamageMitigationRow>;
|
|
234
|
+
damageMitigationMinionsMap: Map<string, DamageMitigationMinionRow>;
|
|
235
|
+
mitigationCumulativeCounts: Map<string, DamageMitigationTotals>;
|
|
236
|
+
mitigationMinionCumulativeCounts: Map<string, DamageMitigationTotals>;
|
|
237
|
+
wins: number;
|
|
238
|
+
losses: number;
|
|
239
|
+
totalSquadSizeAccum: number;
|
|
240
|
+
totalEnemiesAccum: number;
|
|
241
|
+
totalSquadDeaths: number;
|
|
242
|
+
totalSquadKills: number;
|
|
243
|
+
totalEnemyDeaths: number;
|
|
244
|
+
totalEnemyKills: number;
|
|
245
|
+
totalSquadDowns: number;
|
|
246
|
+
totalEnemyDowns: number;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
export { type DamageMitigationMinionRow, type DamageMitigationRow, type DamageMitigationTotals, type PlayerAggregationAccumulators, type PlayerAggregationOptions, type PlayerStats, type SpecialBuffAggEntry, computePlayerAggregation, createPlayerAggregationAccumulators, finalizePlayerAggregation, getFightDownsDeaths, getFightOutcome, ingestLogPlayerData, precomputeGlobalEnemySkillStats, resolveProfessionLabel };
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { DisruptionMethod } from './metricsSettings.js';
|
|
2
|
+
import { PlayerSkillDamageEntry, PlayerHealingSkillEntry } from './aggregationTypes.js';
|
|
3
|
+
import { PlayerRoleClassification } from './roles.js';
|
|
4
|
+
|
|
5
|
+
interface PlayerStats {
|
|
6
|
+
name: string;
|
|
7
|
+
account: string;
|
|
8
|
+
characterNames: Set<string>;
|
|
9
|
+
downContrib: number;
|
|
10
|
+
cleanses: number;
|
|
11
|
+
strips: number;
|
|
12
|
+
stab: number;
|
|
13
|
+
healing: number;
|
|
14
|
+
barrier: number;
|
|
15
|
+
cc: number;
|
|
16
|
+
interrupts: number;
|
|
17
|
+
logsJoined: number;
|
|
18
|
+
totalDist: number;
|
|
19
|
+
distCount: number;
|
|
20
|
+
stackedLogCount: number;
|
|
21
|
+
dodges: number;
|
|
22
|
+
downs: number;
|
|
23
|
+
deaths: number;
|
|
24
|
+
kills: number;
|
|
25
|
+
enemyDowns: number;
|
|
26
|
+
damageTaken: number;
|
|
27
|
+
breakbar: number;
|
|
28
|
+
blocks: number;
|
|
29
|
+
evades: number;
|
|
30
|
+
misses: number;
|
|
31
|
+
totalFightMs: number;
|
|
32
|
+
offenseTotals: Record<string, number>;
|
|
33
|
+
offenseRateWeights: Record<string, number>;
|
|
34
|
+
defenseActiveMs: number;
|
|
35
|
+
defenseTotals: Record<string, number>;
|
|
36
|
+
defenseMinionDamageTaken: Record<string, number>;
|
|
37
|
+
supportActiveMs: number;
|
|
38
|
+
supportTotals: Record<string, number>;
|
|
39
|
+
healingActiveMs: number;
|
|
40
|
+
healingTotals: Record<string, number>;
|
|
41
|
+
hasHealAddon: boolean;
|
|
42
|
+
profession: string;
|
|
43
|
+
professions: Set<string>;
|
|
44
|
+
professionList?: string[];
|
|
45
|
+
professionTimeMs: Record<string, number>;
|
|
46
|
+
squadActiveMs: number;
|
|
47
|
+
firstSeenFightTs: number;
|
|
48
|
+
lastSeenFightTs: number;
|
|
49
|
+
lastSeenFightDurationMs: number;
|
|
50
|
+
isCommander: boolean;
|
|
51
|
+
damage: number;
|
|
52
|
+
dps: number;
|
|
53
|
+
revives: number;
|
|
54
|
+
outgoingConditions: Record<string, any>;
|
|
55
|
+
incomingConditions: Record<string, any>;
|
|
56
|
+
damageModTotals: Record<string, {
|
|
57
|
+
damageGain: number;
|
|
58
|
+
hitCount: number;
|
|
59
|
+
totalHitCount: number;
|
|
60
|
+
totalDamage: number;
|
|
61
|
+
}>;
|
|
62
|
+
incomingDamageModTotals: Record<string, {
|
|
63
|
+
damageGain: number;
|
|
64
|
+
hitCount: number;
|
|
65
|
+
totalHitCount: number;
|
|
66
|
+
totalDamage: number;
|
|
67
|
+
}>;
|
|
68
|
+
roleClassification: PlayerRoleClassification;
|
|
69
|
+
}
|
|
70
|
+
type DamageMitigationTotals = {
|
|
71
|
+
totalHits: number;
|
|
72
|
+
blocked: number;
|
|
73
|
+
evaded: number;
|
|
74
|
+
glanced: number;
|
|
75
|
+
missed: number;
|
|
76
|
+
invulned: number;
|
|
77
|
+
interrupted: number;
|
|
78
|
+
totalMitigation: number;
|
|
79
|
+
minMitigation: number;
|
|
80
|
+
};
|
|
81
|
+
type DamageMitigationRow = {
|
|
82
|
+
account: string;
|
|
83
|
+
name: string;
|
|
84
|
+
profession: string;
|
|
85
|
+
professionList: string[];
|
|
86
|
+
activeMs: number;
|
|
87
|
+
mitigationTotals: DamageMitigationTotals;
|
|
88
|
+
};
|
|
89
|
+
type DamageMitigationMinionRow = DamageMitigationRow & {
|
|
90
|
+
minion: string;
|
|
91
|
+
};
|
|
92
|
+
type SpecialBuffAggEntry = {
|
|
93
|
+
key: string;
|
|
94
|
+
account: string;
|
|
95
|
+
profession: string;
|
|
96
|
+
professions: Set<string>;
|
|
97
|
+
professionTimeMs: Record<string, number>;
|
|
98
|
+
totalMs: number;
|
|
99
|
+
uptimeMs: number;
|
|
100
|
+
durationMs: number;
|
|
101
|
+
};
|
|
102
|
+
declare const getFightDownsDeaths: (details: any) => {
|
|
103
|
+
squadDownsDeaths: number;
|
|
104
|
+
enemyDownsDeaths: number;
|
|
105
|
+
squadDeaths: number;
|
|
106
|
+
enemyDeaths: number;
|
|
107
|
+
};
|
|
108
|
+
declare const getFightOutcome: (details: any) => any;
|
|
109
|
+
declare const resolveProfessionLabel: (name?: string) => string;
|
|
110
|
+
interface PlayerAggregationAccumulators {
|
|
111
|
+
playerStats: Map<string, PlayerStats>;
|
|
112
|
+
skillDamageMap: Record<number, {
|
|
113
|
+
name: string;
|
|
114
|
+
icon?: string;
|
|
115
|
+
damage: number;
|
|
116
|
+
hits: number;
|
|
117
|
+
downContribution: number;
|
|
118
|
+
}>;
|
|
119
|
+
incomingSkillDamageMap: Record<number, {
|
|
120
|
+
name: string;
|
|
121
|
+
icon?: string;
|
|
122
|
+
damage: number;
|
|
123
|
+
hits: number;
|
|
124
|
+
}>;
|
|
125
|
+
playerSkillBreakdownMap: Map<string, {
|
|
126
|
+
key: string;
|
|
127
|
+
account: string;
|
|
128
|
+
displayName: string;
|
|
129
|
+
profession: string;
|
|
130
|
+
professionList: string[];
|
|
131
|
+
totalFightMs: number;
|
|
132
|
+
skills: Map<string, PlayerSkillDamageEntry>;
|
|
133
|
+
}>;
|
|
134
|
+
healingBreakdownMap: Map<string, {
|
|
135
|
+
key: string;
|
|
136
|
+
account: string;
|
|
137
|
+
displayName: string;
|
|
138
|
+
profession: string;
|
|
139
|
+
professionList: string[];
|
|
140
|
+
healingSkills: Map<string, PlayerHealingSkillEntry>;
|
|
141
|
+
barrierSkills: Map<string, PlayerHealingSkillEntry>;
|
|
142
|
+
hasHealAddon: boolean;
|
|
143
|
+
}>;
|
|
144
|
+
outgoingCondiTotals: Record<string, any>;
|
|
145
|
+
incomingCondiTotals: Record<string, any>;
|
|
146
|
+
enemyProfessionCounts: Record<string, number>;
|
|
147
|
+
specialBuffMeta: Map<string, {
|
|
148
|
+
name?: string;
|
|
149
|
+
stacking?: boolean;
|
|
150
|
+
icon?: string;
|
|
151
|
+
}>;
|
|
152
|
+
specialBuffAgg: Map<string, Map<string, SpecialBuffAggEntry>>;
|
|
153
|
+
specialBuffOutputAgg: Map<string, Map<string, SpecialBuffAggEntry>>;
|
|
154
|
+
damageMitigationPlayersMap: Map<string, DamageMitigationRow>;
|
|
155
|
+
damageMitigationMinionsMap: Map<string, DamageMitigationMinionRow>;
|
|
156
|
+
globalEnemySkillStats: Map<number, {
|
|
157
|
+
totalDamage: number;
|
|
158
|
+
connectedHits: number;
|
|
159
|
+
minTotal: number;
|
|
160
|
+
minCount: number;
|
|
161
|
+
}>;
|
|
162
|
+
mitigationCumulativeCounts: Map<string, DamageMitigationTotals>;
|
|
163
|
+
mitigationMinionCumulativeCounts: Map<string, DamageMitigationTotals>;
|
|
164
|
+
wins: number;
|
|
165
|
+
losses: number;
|
|
166
|
+
totalSquadSizeAccum: number;
|
|
167
|
+
totalEnemiesAccum: number;
|
|
168
|
+
totalSquadDeaths: number;
|
|
169
|
+
totalSquadKills: number;
|
|
170
|
+
totalEnemyDeaths: number;
|
|
171
|
+
totalEnemyKills: number;
|
|
172
|
+
totalSquadDowns: number;
|
|
173
|
+
totalEnemyDowns: number;
|
|
174
|
+
}
|
|
175
|
+
declare const createPlayerAggregationAccumulators: () => PlayerAggregationAccumulators;
|
|
176
|
+
interface PlayerAggregationOptions {
|
|
177
|
+
method: DisruptionMethod;
|
|
178
|
+
skillDamageSource: string;
|
|
179
|
+
splitPlayersByClass: boolean;
|
|
180
|
+
}
|
|
181
|
+
declare const precomputeGlobalEnemySkillStats: (log: any, acc: PlayerAggregationAccumulators) => void;
|
|
182
|
+
declare const ingestLogPlayerData: (log: any, acc: PlayerAggregationAccumulators, options: PlayerAggregationOptions) => void;
|
|
183
|
+
declare const finalizePlayerAggregation: (acc: PlayerAggregationAccumulators) => void;
|
|
184
|
+
declare const computePlayerAggregation: ({ validLogs, method, skillDamageSource, splitPlayersByClass, }: {
|
|
185
|
+
validLogs: any[];
|
|
186
|
+
method: DisruptionMethod;
|
|
187
|
+
skillDamageSource: string;
|
|
188
|
+
splitPlayersByClass: boolean;
|
|
189
|
+
}) => {
|
|
190
|
+
playerStats: Map<string, PlayerStats>;
|
|
191
|
+
skillDamageMap: Record<number, {
|
|
192
|
+
name: string;
|
|
193
|
+
icon?: string;
|
|
194
|
+
damage: number;
|
|
195
|
+
hits: number;
|
|
196
|
+
downContribution: number;
|
|
197
|
+
}>;
|
|
198
|
+
incomingSkillDamageMap: Record<number, {
|
|
199
|
+
name: string;
|
|
200
|
+
icon?: string;
|
|
201
|
+
damage: number;
|
|
202
|
+
hits: number;
|
|
203
|
+
}>;
|
|
204
|
+
playerSkillBreakdownMap: Map<string, {
|
|
205
|
+
key: string;
|
|
206
|
+
account: string;
|
|
207
|
+
displayName: string;
|
|
208
|
+
profession: string;
|
|
209
|
+
professionList: string[];
|
|
210
|
+
totalFightMs: number;
|
|
211
|
+
skills: Map<string, PlayerSkillDamageEntry>;
|
|
212
|
+
}>;
|
|
213
|
+
healingBreakdownMap: Map<string, {
|
|
214
|
+
key: string;
|
|
215
|
+
account: string;
|
|
216
|
+
displayName: string;
|
|
217
|
+
profession: string;
|
|
218
|
+
professionList: string[];
|
|
219
|
+
healingSkills: Map<string, PlayerHealingSkillEntry>;
|
|
220
|
+
barrierSkills: Map<string, PlayerHealingSkillEntry>;
|
|
221
|
+
hasHealAddon: boolean;
|
|
222
|
+
}>;
|
|
223
|
+
outgoingCondiTotals: Record<string, any>;
|
|
224
|
+
incomingCondiTotals: Record<string, any>;
|
|
225
|
+
enemyProfessionCounts: Record<string, number>;
|
|
226
|
+
specialBuffMeta: Map<string, {
|
|
227
|
+
name?: string;
|
|
228
|
+
stacking?: boolean;
|
|
229
|
+
icon?: string;
|
|
230
|
+
}>;
|
|
231
|
+
specialBuffAgg: Map<string, Map<string, SpecialBuffAggEntry>>;
|
|
232
|
+
specialBuffOutputAgg: Map<string, Map<string, SpecialBuffAggEntry>>;
|
|
233
|
+
damageMitigationPlayersMap: Map<string, DamageMitigationRow>;
|
|
234
|
+
damageMitigationMinionsMap: Map<string, DamageMitigationMinionRow>;
|
|
235
|
+
mitigationCumulativeCounts: Map<string, DamageMitigationTotals>;
|
|
236
|
+
mitigationMinionCumulativeCounts: Map<string, DamageMitigationTotals>;
|
|
237
|
+
wins: number;
|
|
238
|
+
losses: number;
|
|
239
|
+
totalSquadSizeAccum: number;
|
|
240
|
+
totalEnemiesAccum: number;
|
|
241
|
+
totalSquadDeaths: number;
|
|
242
|
+
totalSquadKills: number;
|
|
243
|
+
totalEnemyDeaths: number;
|
|
244
|
+
totalEnemyKills: number;
|
|
245
|
+
totalSquadDowns: number;
|
|
246
|
+
totalEnemyDowns: number;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
export { type DamageMitigationMinionRow, type DamageMitigationRow, type DamageMitigationTotals, type PlayerAggregationAccumulators, type PlayerAggregationOptions, type PlayerStats, type SpecialBuffAggEntry, computePlayerAggregation, createPlayerAggregationAccumulators, finalizePlayerAggregation, getFightDownsDeaths, getFightOutcome, ingestLogPlayerData, precomputeGlobalEnemySkillStats, resolveProfessionLabel };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computePlayerAggregation,
|
|
3
|
+
createPlayerAggregationAccumulators,
|
|
4
|
+
finalizePlayerAggregation,
|
|
5
|
+
getFightDownsDeaths,
|
|
6
|
+
getFightOutcome,
|
|
7
|
+
ingestLogPlayerData,
|
|
8
|
+
precomputeGlobalEnemySkillStats,
|
|
9
|
+
resolveProfessionLabel
|
|
10
|
+
} from "./chunk-LIGIXSSA.js";
|
|
11
|
+
import "./chunk-JP2ZL44R.js";
|
|
12
|
+
import "./chunk-J3YCFY3C.js";
|
|
13
|
+
import "./chunk-42DVJJLC.js";
|
|
14
|
+
import "./chunk-FU74LJEM.js";
|
|
15
|
+
import "./chunk-R5EJF5AW.js";
|
|
16
|
+
import "./chunk-ZFZS7JFU.js";
|
|
17
|
+
import "./chunk-PMVLNDZZ.js";
|
|
18
|
+
import "./chunk-KRHODGVU.js";
|
|
19
|
+
import "./chunk-RGXSI3AI.js";
|
|
20
|
+
import "./chunk-WW5XFXGC.js";
|
|
21
|
+
export {
|
|
22
|
+
computePlayerAggregation,
|
|
23
|
+
createPlayerAggregationAccumulators,
|
|
24
|
+
finalizePlayerAggregation,
|
|
25
|
+
getFightDownsDeaths,
|
|
26
|
+
getFightOutcome,
|
|
27
|
+
ingestLogPlayerData,
|
|
28
|
+
precomputeGlobalEnemySkillStats,
|
|
29
|
+
resolveProfessionLabel
|
|
30
|
+
};
|