@wise-old-man/utils 2.0.15 → 2.1.1
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/index.d.ts +21 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1293,22 +1293,40 @@ interface SkillValue {
|
|
|
1293
1293
|
experience: number;
|
|
1294
1294
|
ehp?: number;
|
|
1295
1295
|
}
|
|
1296
|
+
interface SkillValueWithPlayer extends SkillValue {
|
|
1297
|
+
player: Player;
|
|
1298
|
+
}
|
|
1296
1299
|
interface BossValue {
|
|
1297
1300
|
metric: Boss;
|
|
1298
1301
|
rank: number;
|
|
1299
1302
|
kills: number;
|
|
1300
1303
|
ehb?: number;
|
|
1301
1304
|
}
|
|
1305
|
+
interface BossValueWithPlayer extends BossValue {
|
|
1306
|
+
player: Player;
|
|
1307
|
+
}
|
|
1302
1308
|
interface ActivityValue {
|
|
1303
1309
|
metric: Activity;
|
|
1304
1310
|
rank: number;
|
|
1305
1311
|
score: number;
|
|
1306
1312
|
}
|
|
1313
|
+
interface ActivityValueWithPlayer extends ActivityValue {
|
|
1314
|
+
player: Player;
|
|
1315
|
+
}
|
|
1307
1316
|
interface ComputedMetricValue {
|
|
1308
1317
|
metric: ComputedMetric;
|
|
1309
1318
|
rank: number;
|
|
1310
1319
|
value: number;
|
|
1311
1320
|
}
|
|
1321
|
+
interface ComputedMetricValueWithPlayer extends ComputedMetricValue {
|
|
1322
|
+
player: Player;
|
|
1323
|
+
}
|
|
1324
|
+
interface MetricLeaders {
|
|
1325
|
+
skills: MapOf<Skill, SkillValueWithPlayer>;
|
|
1326
|
+
bosses: MapOf<Boss, BossValueWithPlayer>;
|
|
1327
|
+
activities: MapOf<Activity, ActivityValueWithPlayer>;
|
|
1328
|
+
computed: MapOf<ComputedMetric, ComputedMetricValueWithPlayer>;
|
|
1329
|
+
}
|
|
1312
1330
|
interface FormattedSnapshot {
|
|
1313
1331
|
id: number;
|
|
1314
1332
|
playerId: number;
|
|
@@ -1364,6 +1382,7 @@ interface GroupStatistics {
|
|
|
1364
1382
|
maxedTotalCount: number;
|
|
1365
1383
|
maxed200msCount: number;
|
|
1366
1384
|
averageStats: FormattedSnapshot;
|
|
1385
|
+
metricLeaders: MetricLeaders;
|
|
1367
1386
|
}
|
|
1368
1387
|
declare enum MigrationDataSource {
|
|
1369
1388
|
TEMPLE_OSRS = 0,
|
|
@@ -1426,6 +1445,7 @@ declare enum BonusType {
|
|
|
1426
1445
|
declare enum EfficiencyAlgorithmType {
|
|
1427
1446
|
MAIN = "main",
|
|
1428
1447
|
IRONMAN = "ironman",
|
|
1448
|
+
ULTIMATE = "ultimate",
|
|
1429
1449
|
LVL3 = "lvl3",
|
|
1430
1450
|
F2P = "f2p"
|
|
1431
1451
|
}
|
|
@@ -2151,4 +2171,4 @@ declare class WOMClient {
|
|
|
2151
2171
|
constructor(options?: WOMClientOptions);
|
|
2152
2172
|
}
|
|
2153
2173
|
|
|
2154
|
-
export { ACTIVITIES, Achievement, AchievementDefinition, AchievementProgress, AchievementTemplate, Activity, ActivityDelta, ActivityValue, AlgorithmCache, AssertPlayerTypeResponse, BOSSES, Bonus, BonusType, Boss, BossDelta, BossMetaConfig, BossValue, CAPPED_MAX_TOTAL_XP, CMLGroupData, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, ChangeMemberRolePayload, CompetitionDetails, CompetitionListItem, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, CompetitionWithParticipations, CompetitionsSearchFilter, ComputedMetric, ComputedMetricDelta, ComputedMetricValue, Country, CountryDetails, CountryProps, CreateCompetitionPayload, CreateCompetitionResponse, CreateGroupPayload, CreateGroupResponse, DeltaLeaderboardEntry, DeltaLeaderboardFilter, EditCompetitionPayload, EditGroupPayload, EfficiencyAlgorithm, EfficiencyAlgorithmType, EfficiencyAlgorithmTypeUnion, EfficiencyLeaderboardsFilter, EfficiencyMap, ExperienceMap, ExtendedAchievement, F2P_BOSSES, FormattedSnapshot, GROUP_ROLES, GenericCountMessageResponse, GenericMessageResponse, GetGroupGainsFilter, GetPlayerGainsResponse, GroupDetails, GroupHiscoresActivityItem, GroupHiscoresBossItem, GroupHiscoresComputedMetricItem, GroupHiscoresEntry, GroupHiscoresSkillItem, GroupListItem, GroupMemberFragment, GroupRecordsFilter, GroupRole, GroupRoleProps, GroupStatistics, KillcountMap, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, MapOf, MeasuredDeltaProgress, MemberInput, MembershipWithGroup, MembershipWithPlayer, Metric, MetricMeasure, MetricProps, MetricType, MetricValueKey, MigrationDataSource, NameChangeDetails, NameChangeStatus, NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, ParticipationWithCompetition, ParticipationWithCompetitionAndStandings, ParticipationWithPlayer, ParticipationWithPlayerAndProgress, Period, PeriodProps, Player, PlayerBuild, PlayerBuildProps, PlayerCompetitionStandingsFilter, PlayerCompetitionsFilter, PlayerDeltasArray, PlayerDeltasMap, PlayerDetails, PlayerRecordsFilter, PlayerType, PlayerTypeProps, REAL_SKILLS, Record, RecordLeaderboardEntry, RecordLeaderboardFilter, SKILLS, SKILL_EXP_AT_99, Skill, SkillDelta, SkillMetaConfig, SkillValue, Snapshot, SnapshotDataSource, SnapshotFragment, Team, TempleGroupData, TimeRangeFilter, Top5ProgressResult, WOMClient, findCountry, findCountryByCode, findCountryByName, findGroupRole, findMetric, findPeriod, findPlayerBuild, findPlayerType, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMetricMeasure, getMetricName, getMetricRankKey, getMetricValueKey, getMinimumValue, getParentEfficiencyMetric, isActivity, isBoss, isCompetitionStatus, isCompetitionType, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerType, isSkill, padNumber, parseMetricAbbreviation, parsePeriodExpression, round };
|
|
2174
|
+
export { ACTIVITIES, Achievement, AchievementDefinition, AchievementProgress, AchievementTemplate, Activity, ActivityDelta, ActivityValue, ActivityValueWithPlayer, AlgorithmCache, AssertPlayerTypeResponse, BOSSES, Bonus, BonusType, Boss, BossDelta, BossMetaConfig, BossValue, BossValueWithPlayer, CAPPED_MAX_TOTAL_XP, CMLGroupData, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, ChangeMemberRolePayload, CompetitionDetails, CompetitionListItem, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, CompetitionWithParticipations, CompetitionsSearchFilter, ComputedMetric, ComputedMetricDelta, ComputedMetricValue, ComputedMetricValueWithPlayer, Country, CountryDetails, CountryProps, CreateCompetitionPayload, CreateCompetitionResponse, CreateGroupPayload, CreateGroupResponse, DeltaLeaderboardEntry, DeltaLeaderboardFilter, EditCompetitionPayload, EditGroupPayload, EfficiencyAlgorithm, EfficiencyAlgorithmType, EfficiencyAlgorithmTypeUnion, EfficiencyLeaderboardsFilter, EfficiencyMap, ExperienceMap, ExtendedAchievement, F2P_BOSSES, FormattedSnapshot, GROUP_ROLES, GenericCountMessageResponse, GenericMessageResponse, GetGroupGainsFilter, GetPlayerGainsResponse, GroupDetails, GroupHiscoresActivityItem, GroupHiscoresBossItem, GroupHiscoresComputedMetricItem, GroupHiscoresEntry, GroupHiscoresSkillItem, GroupListItem, GroupMemberFragment, GroupRecordsFilter, GroupRole, GroupRoleProps, GroupStatistics, KillcountMap, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, MapOf, MeasuredDeltaProgress, MemberInput, MembershipWithGroup, MembershipWithPlayer, Metric, MetricLeaders, MetricMeasure, MetricProps, MetricType, MetricValueKey, MigrationDataSource, NameChangeDetails, NameChangeStatus, NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, ParticipationWithCompetition, ParticipationWithCompetitionAndStandings, ParticipationWithPlayer, ParticipationWithPlayerAndProgress, Period, PeriodProps, Player, PlayerBuild, PlayerBuildProps, PlayerCompetitionStandingsFilter, PlayerCompetitionsFilter, PlayerDeltasArray, PlayerDeltasMap, PlayerDetails, PlayerRecordsFilter, PlayerType, PlayerTypeProps, REAL_SKILLS, Record, RecordLeaderboardEntry, RecordLeaderboardFilter, SKILLS, SKILL_EXP_AT_99, Skill, SkillDelta, SkillMetaConfig, SkillValue, SkillValueWithPlayer, Snapshot, SnapshotDataSource, SnapshotFragment, Team, TempleGroupData, TimeRangeFilter, Top5ProgressResult, WOMClient, findCountry, findCountryByCode, findCountryByName, findGroupRole, findMetric, findPeriod, findPlayerBuild, findPlayerType, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMetricMeasure, getMetricName, getMetricRankKey, getMetricValueKey, getMinimumValue, getParentEfficiencyMetric, isActivity, isBoss, isCompetitionStatus, isCompetitionType, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerType, isSkill, padNumber, parseMetricAbbreviation, parsePeriodExpression, round };
|
package/dist/index.js
CHANGED
|
@@ -2327,6 +2327,7 @@ exports.EfficiencyAlgorithmType = void 0;
|
|
|
2327
2327
|
(function (EfficiencyAlgorithmType) {
|
|
2328
2328
|
EfficiencyAlgorithmType["MAIN"] = "main";
|
|
2329
2329
|
EfficiencyAlgorithmType["IRONMAN"] = "ironman";
|
|
2330
|
+
EfficiencyAlgorithmType["ULTIMATE"] = "ultimate";
|
|
2330
2331
|
EfficiencyAlgorithmType["LVL3"] = "lvl3";
|
|
2331
2332
|
EfficiencyAlgorithmType["F2P"] = "f2p";
|
|
2332
2333
|
})(exports.EfficiencyAlgorithmType || (exports.EfficiencyAlgorithmType = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "A JavaScript/TypeScript client that interfaces and consumes the Wise Old Man API, an API that tracks and measures players' progress in Old School Runescape.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wiseoldman",
|