@wise-old-man/utils 3.1.12 → 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 +4 -21
- package/dist/index.js +2 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -449,6 +449,7 @@ declare const Boss: {
|
|
|
449
449
|
readonly PHANTOM_MUSPAH: "phantom_muspah";
|
|
450
450
|
readonly SARACHNIS: "sarachnis";
|
|
451
451
|
readonly SCORPIA: "scorpia";
|
|
452
|
+
readonly SCURRIUS: "scurrius";
|
|
452
453
|
readonly SKOTIZO: "skotizo";
|
|
453
454
|
readonly SPINDEL: "spindel";
|
|
454
455
|
readonly TEMPOROSS: "tempoross";
|
|
@@ -517,6 +518,7 @@ declare const Metric: {
|
|
|
517
518
|
readonly PHANTOM_MUSPAH: "phantom_muspah";
|
|
518
519
|
readonly SARACHNIS: "sarachnis";
|
|
519
520
|
readonly SCORPIA: "scorpia";
|
|
521
|
+
readonly SCURRIUS: "scurrius";
|
|
520
522
|
readonly SKOTIZO: "skotizo";
|
|
521
523
|
readonly SPINDEL: "spindel";
|
|
522
524
|
readonly TEMPOROSS: "tempoross";
|
|
@@ -1422,13 +1424,6 @@ declare type Top5ProgressResult = Array<{
|
|
|
1422
1424
|
}>;
|
|
1423
1425
|
}>;
|
|
1424
1426
|
|
|
1425
|
-
declare type ExperienceMap = MapOf<Skill, number>;
|
|
1426
|
-
declare type KillcountMap = MapOf<Boss, number>;
|
|
1427
|
-
declare type EfficiencyMap = ExperienceMap & KillcountMap;
|
|
1428
|
-
declare enum BonusType {
|
|
1429
|
-
START = 0,
|
|
1430
|
-
END = 1
|
|
1431
|
-
}
|
|
1432
1427
|
declare enum EfficiencyAlgorithmType {
|
|
1433
1428
|
MAIN = "main",
|
|
1434
1429
|
IRONMAN = "ironman",
|
|
@@ -1463,19 +1458,6 @@ interface Bonus {
|
|
|
1463
1458
|
end: boolean;
|
|
1464
1459
|
ratio: number;
|
|
1465
1460
|
}
|
|
1466
|
-
interface EfficiencyAlgorithm {
|
|
1467
|
-
type: EfficiencyAlgorithmType;
|
|
1468
|
-
skillMetas: SkillMetaConfig[];
|
|
1469
|
-
bossMetas: BossMetaConfig[];
|
|
1470
|
-
maximumEHP: number;
|
|
1471
|
-
maxedEHP: number;
|
|
1472
|
-
calculateEHB(killcountMap: KillcountMap): number;
|
|
1473
|
-
calculateEHP(experienceMap: ExperienceMap): number;
|
|
1474
|
-
calculateTTM(experienceMap: ExperienceMap): number;
|
|
1475
|
-
calculateTT200m(experienceMap: ExperienceMap): number;
|
|
1476
|
-
calculateSkillEHP(skill: Skill, experienceMap: ExperienceMap): number;
|
|
1477
|
-
calculateBossEHB(boss: Boss, killcountMap: KillcountMap): number;
|
|
1478
|
-
}
|
|
1479
1461
|
|
|
1480
1462
|
declare type DenyContext = {
|
|
1481
1463
|
reason: 'manual_review';
|
|
@@ -1697,6 +1679,7 @@ declare const MetricProps: {
|
|
|
1697
1679
|
readonly phantom_muspah: BossProperties;
|
|
1698
1680
|
readonly sarachnis: BossProperties;
|
|
1699
1681
|
readonly scorpia: BossProperties;
|
|
1682
|
+
readonly scurrius: BossProperties;
|
|
1700
1683
|
readonly skotizo: BossProperties;
|
|
1701
1684
|
readonly spindel: BossProperties;
|
|
1702
1685
|
readonly tempoross: BossProperties;
|
|
@@ -2269,4 +2252,4 @@ declare class WOMClient extends BaseAPIClient {
|
|
|
2269
2252
|
constructor(options?: WOMClientOptions);
|
|
2270
2253
|
}
|
|
2271
2254
|
|
|
2272
|
-
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
|
@@ -603,6 +603,7 @@ const Boss = {
|
|
|
603
603
|
PHANTOM_MUSPAH: 'phantom_muspah',
|
|
604
604
|
SARACHNIS: 'sarachnis',
|
|
605
605
|
SCORPIA: 'scorpia',
|
|
606
|
+
SCURRIUS: 'scurrius',
|
|
606
607
|
SKOTIZO: 'skotizo',
|
|
607
608
|
SPINDEL: 'spindel',
|
|
608
609
|
TEMPOROSS: 'tempoross',
|
|
@@ -1936,6 +1937,7 @@ const BossProps = mapValues({
|
|
|
1936
1937
|
[Boss.PHANTOM_MUSPAH]: { name: 'Phantom Muspah' },
|
|
1937
1938
|
[Boss.SARACHNIS]: { name: 'Sarachnis' },
|
|
1938
1939
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
1940
|
+
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
1939
1941
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
1940
1942
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
|
1941
1943
|
[Boss.TEMPOROSS]: { name: 'Tempoross' },
|
|
@@ -2433,11 +2435,6 @@ function round(num, cases) {
|
|
|
2433
2435
|
return Math.round(num * Math.pow(10, cases)) / Math.pow(10, cases);
|
|
2434
2436
|
}
|
|
2435
2437
|
|
|
2436
|
-
exports.BonusType = void 0;
|
|
2437
|
-
(function (BonusType) {
|
|
2438
|
-
BonusType[BonusType["START"] = 0] = "START";
|
|
2439
|
-
BonusType[BonusType["END"] = 1] = "END";
|
|
2440
|
-
})(exports.BonusType || (exports.BonusType = {}));
|
|
2441
2438
|
exports.EfficiencyAlgorithmType = void 0;
|
|
2442
2439
|
(function (EfficiencyAlgorithmType) {
|
|
2443
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",
|