@wise-old-man/utils 3.1.13 → 3.1.14
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 +1 -21
- package/dist/index.js +0 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1424,13 +1424,6 @@ declare type Top5ProgressResult = Array<{
|
|
|
1424
1424
|
}>;
|
|
1425
1425
|
}>;
|
|
1426
1426
|
|
|
1427
|
-
declare type ExperienceMap = MapOf<Skill, number>;
|
|
1428
|
-
declare type KillcountMap = MapOf<Boss, number>;
|
|
1429
|
-
declare type EfficiencyMap = ExperienceMap & KillcountMap;
|
|
1430
|
-
declare enum BonusType {
|
|
1431
|
-
START = 0,
|
|
1432
|
-
END = 1
|
|
1433
|
-
}
|
|
1434
1427
|
declare enum EfficiencyAlgorithmType {
|
|
1435
1428
|
MAIN = "main",
|
|
1436
1429
|
IRONMAN = "ironman",
|
|
@@ -1465,19 +1458,6 @@ interface Bonus {
|
|
|
1465
1458
|
end: boolean;
|
|
1466
1459
|
ratio: number;
|
|
1467
1460
|
}
|
|
1468
|
-
interface EfficiencyAlgorithm {
|
|
1469
|
-
type: EfficiencyAlgorithmType;
|
|
1470
|
-
skillMetas: SkillMetaConfig[];
|
|
1471
|
-
bossMetas: BossMetaConfig[];
|
|
1472
|
-
maximumEHP: number;
|
|
1473
|
-
maxedEHP: number;
|
|
1474
|
-
calculateEHB(killcountMap: KillcountMap): number;
|
|
1475
|
-
calculateEHP(experienceMap: ExperienceMap): number;
|
|
1476
|
-
calculateTTM(experienceMap: ExperienceMap): number;
|
|
1477
|
-
calculateTT200m(experienceMap: ExperienceMap): number;
|
|
1478
|
-
calculateSkillEHP(skill: Skill, experienceMap: ExperienceMap): number;
|
|
1479
|
-
calculateBossEHB(boss: Boss, killcountMap: KillcountMap): number;
|
|
1480
|
-
}
|
|
1481
1461
|
|
|
1482
1462
|
declare type DenyContext = {
|
|
1483
1463
|
reason: 'manual_review';
|
|
@@ -2272,4 +2252,4 @@ declare class WOMClient extends BaseAPIClient {
|
|
|
2272
2252
|
constructor(options?: WOMClientOptions);
|
|
2273
2253
|
}
|
|
2274
2254
|
|
|
2275
|
-
export { ACTIVITIES, Achievement, AchievementDefinition, AchievementProgress, AchievementTemplate, Activity, ActivityDelta, ActivityType, ActivityValue, ActivityValueWithPlayer, AssertPlayerTypeResponse, BOSSES, Bonus,
|
|
2255
|
+
export { ACTIVITIES, Achievement, AchievementDefinition, AchievementProgress, AchievementTemplate, Activity, ActivityDelta, ActivityType, ActivityValue, ActivityValueWithPlayer, AssertPlayerTypeResponse, BOSSES, Bonus, Boss, BossDelta, BossMetaConfig, BossValue, BossValueWithPlayer, CAPPED_MAX_TOTAL_XP, CMLGroupData, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, ChangeMemberRolePayload, CompetitionCSVTableType, CompetitionDetails, CompetitionDetailsCSVParams, CompetitionListItem, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, CompetitionWithParticipations, CompetitionsSearchFilter, ComputedMetric, ComputedMetricDelta, ComputedMetricValue, ComputedMetricValueWithPlayer, Country, CountryDetails, CountryProps, CreateCompetitionPayload, CreateCompetitionResponse, CreateGroupPayload, CreateGroupResponse, DeltaGroupLeaderboardEntry, DeltaLeaderboardEntry, DeltaLeaderboardFilter, DenyContext, EditCompetitionPayload, EditGroupPayload, EfficiencyAlgorithmType, EfficiencyAlgorithmTypeUnion, EfficiencyLeaderboardsFilter, ExtendedAchievement, ExtendedAchievementWithPlayer, F2P_BOSSES, FlaggedPlayerReviewContext, FormattedSnapshot, GROUP_ROLES, GenericCountMessageResponse, GenericMessageResponse, GetGroupGainsFilter, GetPlayerGainsResponse, GroupDetails, GroupHiscoresActivityItem, GroupHiscoresBossItem, GroupHiscoresComputedMetricItem, GroupHiscoresEntry, GroupHiscoresSkillItem, GroupListItem, GroupMemberFragment, GroupRecordsFilter, GroupRole, GroupRoleProps, GroupStatistics, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, MapOf, MeasuredDeltaProgress, MemberActivityWithPlayer, MemberInput, MemberJoinedEvent, MemberLeftEvent, MemberRoleChangeEvent, MembershipWithGroup, MembershipWithPlayer, Metric, MetricLeaders, MetricMeasure, MetricProps, MetricType, MetricValueKey, MigrationDataSource, NameChange, NameChangeDetails, NameChangeStatus, NameChangeWithPlayer, NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, ParticipationWithCompetition, ParticipationWithCompetitionAndStandings, ParticipationWithPlayer, ParticipationWithPlayerAndProgress, Period, PeriodProps, Player, PlayerArchiveWithPlayer, PlayerBuild, PlayerBuildProps, PlayerCompetitionStandingsFilter, PlayerCompetitionsFilter, PlayerDeltasArray, PlayerDeltasMap, PlayerDetails, PlayerRecordsFilter, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, Record, RecordLeaderboardEntry, RecordLeaderboardFilter, SKILLS, SKILL_EXP_AT_99, Skill, SkillDelta, SkillMetaConfig, SkillMetaMethod, SkillValue, SkillValueWithPlayer, SkipContext, 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, isPlayerStatus, isPlayerType, isSkill, padNumber, parseMetricAbbreviation, parsePeriodExpression, round };
|
package/dist/index.js
CHANGED
|
@@ -2435,11 +2435,6 @@ function round(num, cases) {
|
|
|
2435
2435
|
return Math.round(num * Math.pow(10, cases)) / Math.pow(10, cases);
|
|
2436
2436
|
}
|
|
2437
2437
|
|
|
2438
|
-
exports.BonusType = void 0;
|
|
2439
|
-
(function (BonusType) {
|
|
2440
|
-
BonusType[BonusType["START"] = 0] = "START";
|
|
2441
|
-
BonusType[BonusType["END"] = 1] = "END";
|
|
2442
|
-
})(exports.BonusType || (exports.BonusType = {}));
|
|
2443
2438
|
exports.EfficiencyAlgorithmType = void 0;
|
|
2444
2439
|
(function (EfficiencyAlgorithmType) {
|
|
2445
2440
|
EfficiencyAlgorithmType["MAIN"] = "main";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.14",
|
|
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",
|