@wise-old-man/utils 2.0.0-beta.7 → 2.0.0-beta.9

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 CHANGED
@@ -1549,13 +1549,14 @@ interface SkillProperties {
1549
1549
  }
1550
1550
  interface BossProperties {
1551
1551
  name: string;
1552
- minimumKc: number;
1552
+ minimumValue: number;
1553
1553
  isMembers: boolean;
1554
1554
  type: MetricType;
1555
1555
  measure: MetricMeasure;
1556
1556
  }
1557
1557
  interface ActivityProperties {
1558
1558
  name: string;
1559
+ minimumValue: number;
1559
1560
  type: MetricType;
1560
1561
  measure: MetricMeasure;
1561
1562
  }
@@ -1675,7 +1676,7 @@ declare function getMetricRankKey(metric: Metric): string;
1675
1676
  declare function getMetricValueKey(metric: Metric): string;
1676
1677
  declare function getMetricMeasure(metric: Metric): MetricMeasure;
1677
1678
  declare function getMetricName(metric: Metric): string;
1678
- declare function getMinimumBossKc(metric: Metric): number;
1679
+ declare function getMinimumValue(metric: Metric): number;
1679
1680
  declare function getParentEfficiencyMetric(metric: Metric): "ehp" | "ehb";
1680
1681
  declare function parseMetricAbbreviation(abbreviation: string): Metric | null;
1681
1682
 
@@ -2128,4 +2129,4 @@ declare class WOMClient {
2128
2129
  constructor(options?: WOMClientOptions);
2129
2130
  }
2130
2131
 
2131
- 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, MigrationDataSource, NameChangeDetails, NameChangeStatus, NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, ParticipationWithCompetition, ParticipationWithPlayer, ParticipationWithPlayerAndProgress, Period, PeriodProps, Player, PlayerBuild, PlayerBuildProps, PlayerDeltasArray, PlayerDeltasMap, PlayerDetails, PlayerRecordsFilter, PlayerResolvable, 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, getMinimumBossKc, getParentEfficiencyMetric, isActivity, isBoss, isCompetitionStatus, isCompetitionType, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerType, isSkill, padNumber, parseMetricAbbreviation, parsePeriodExpression, round };
2132
+ 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, MigrationDataSource, NameChangeDetails, NameChangeStatus, NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, ParticipationWithCompetition, ParticipationWithPlayer, ParticipationWithPlayerAndProgress, Period, PeriodProps, Player, PlayerBuild, PlayerBuildProps, PlayerDeltasArray, PlayerDeltasMap, PlayerDetails, PlayerRecordsFilter, PlayerResolvable, 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 };
package/dist/index.js CHANGED
@@ -1785,87 +1785,83 @@ exports.MetricMeasure = void 0;
1785
1785
  MetricMeasure["VALUE"] = "value";
1786
1786
  })(exports.MetricMeasure || (exports.MetricMeasure = {}));
1787
1787
  const SkillProps = lodash.mapValues({
1788
- [Skill.OVERALL]: { name: 'Overall', isCombat: false, isMembers: false },
1789
- [Skill.ATTACK]: { name: 'Attack', isCombat: true, isMembers: false },
1790
- [Skill.DEFENCE]: { name: 'Defence', isCombat: true, isMembers: false },
1791
- [Skill.STRENGTH]: { name: 'Strength', isCombat: true, isMembers: false },
1792
- [Skill.HITPOINTS]: { name: 'Hitpoints', isCombat: true, isMembers: false },
1793
- [Skill.RANGED]: { name: 'Ranged', isCombat: true, isMembers: false },
1794
- [Skill.PRAYER]: { name: 'Prayer', isCombat: true, isMembers: false },
1795
- [Skill.MAGIC]: { name: 'Magic', isCombat: true, isMembers: false },
1796
- [Skill.COOKING]: { name: 'Cooking', isCombat: false, isMembers: false },
1797
- [Skill.WOODCUTTING]: { name: 'Woodcutting', isCombat: false, isMembers: false },
1798
- [Skill.FLETCHING]: { name: 'Fletching', isCombat: false, isMembers: true },
1799
- [Skill.FISHING]: { name: 'Fishing', isCombat: false, isMembers: false },
1800
- [Skill.FIREMAKING]: { name: 'Firemaking', isCombat: false, isMembers: false },
1801
- [Skill.CRAFTING]: { name: 'Crafting', isCombat: false, isMembers: false },
1802
- [Skill.SMITHING]: { name: 'Smithing', isCombat: false, isMembers: false },
1803
- [Skill.MINING]: { name: 'Mining', isCombat: false, isMembers: false },
1804
- [Skill.HERBLORE]: { name: 'Herblore', isCombat: false, isMembers: true },
1805
- [Skill.AGILITY]: { name: 'Agility', isCombat: false, isMembers: true },
1806
- [Skill.THIEVING]: { name: 'Thieving', isCombat: false, isMembers: true },
1807
- [Skill.SLAYER]: { name: 'Slayer', isCombat: false, isMembers: true },
1808
- [Skill.FARMING]: { name: 'Farming', isCombat: false, isMembers: true },
1809
- [Skill.RUNECRAFTING]: { name: 'Runecrafting', isCombat: false, isMembers: false },
1810
- [Skill.HUNTER]: { name: 'Hunter', isCombat: false, isMembers: true },
1811
- [Skill.CONSTRUCTION]: { name: 'Construction', isCombat: false, isMembers: false }
1812
- }, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.SKILL, measure: exports.MetricMeasure.EXPERIENCE })));
1788
+ [Skill.OVERALL]: { name: 'Overall' },
1789
+ [Skill.ATTACK]: { name: 'Attack', isCombat: true },
1790
+ [Skill.DEFENCE]: { name: 'Defence', isCombat: true },
1791
+ [Skill.STRENGTH]: { name: 'Strength', isCombat: true },
1792
+ [Skill.HITPOINTS]: { name: 'Hitpoints', isCombat: true },
1793
+ [Skill.RANGED]: { name: 'Ranged', isCombat: true },
1794
+ [Skill.PRAYER]: { name: 'Prayer', isCombat: true },
1795
+ [Skill.MAGIC]: { name: 'Magic', isCombat: true },
1796
+ [Skill.COOKING]: { name: 'Cooking' },
1797
+ [Skill.WOODCUTTING]: { name: 'Woodcutting' },
1798
+ [Skill.FLETCHING]: { name: 'Fletching', isMembers: true },
1799
+ [Skill.FISHING]: { name: 'Fishing' },
1800
+ [Skill.FIREMAKING]: { name: 'Firemaking' },
1801
+ [Skill.CRAFTING]: { name: 'Crafting' },
1802
+ [Skill.SMITHING]: { name: 'Smithing' },
1803
+ [Skill.MINING]: { name: 'Mining' },
1804
+ [Skill.HERBLORE]: { name: 'Herblore', isMembers: true },
1805
+ [Skill.AGILITY]: { name: 'Agility', isMembers: true },
1806
+ [Skill.THIEVING]: { name: 'Thieving', isMembers: true },
1807
+ [Skill.SLAYER]: { name: 'Slayer', isMembers: true },
1808
+ [Skill.FARMING]: { name: 'Farming', isMembers: true },
1809
+ [Skill.RUNECRAFTING]: { name: 'Runecrafting' },
1810
+ [Skill.HUNTER]: { name: 'Hunter', isMembers: true },
1811
+ [Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true }
1812
+ }, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.SKILL, measure: exports.MetricMeasure.EXPERIENCE, isCombat: 'isCombat' in props ? props.isCombat : false, isMembers: 'isMembers' in props ? props.isMembers : false })));
1813
1813
  const BossProps = lodash.mapValues({
1814
- [Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire', minimumKc: 50, isMembers: true },
1815
- [Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra', minimumKc: 50, isMembers: true },
1816
- [Boss.BARROWS_CHESTS]: { name: 'Barrows Chests', minimumKc: 50, isMembers: true },
1817
- [Boss.BRYOPHYTA]: { name: 'Bryophyta', minimumKc: 5, isMembers: false },
1818
- [Boss.CALLISTO]: { name: 'Callisto', minimumKc: 50, isMembers: true },
1819
- [Boss.CERBERUS]: { name: 'Cerberus', minimumKc: 50, isMembers: true },
1820
- [Boss.CHAMBERS_OF_XERIC]: { name: 'Chambers Of Xeric', minimumKc: 50, isMembers: true },
1821
- [Boss.CHAMBERS_OF_XERIC_CM]: { name: 'Chambers Of Xeric (CM)', minimumKc: 5, isMembers: true },
1822
- [Boss.CHAOS_ELEMENTAL]: { name: 'Chaos Elemental', minimumKc: 50, isMembers: true },
1823
- [Boss.CHAOS_FANATIC]: { name: 'Chaos Fanatic', minimumKc: 50, isMembers: true },
1824
- [Boss.COMMANDER_ZILYANA]: { name: 'Commander Zilyana', minimumKc: 50, isMembers: true },
1825
- [Boss.CORPOREAL_BEAST]: { name: 'Corporeal Beast', minimumKc: 50, isMembers: true },
1826
- [Boss.CRAZY_ARCHAEOLOGIST]: { name: 'Crazy Archaeologist', minimumKc: 50, isMembers: true },
1827
- [Boss.DAGANNOTH_PRIME]: { name: 'Dagannoth Prime', minimumKc: 50, isMembers: true },
1828
- [Boss.DAGANNOTH_REX]: { name: 'Dagannoth Rex', minimumKc: 50, isMembers: true },
1829
- [Boss.DAGANNOTH_SUPREME]: { name: 'Dagannoth Supreme', minimumKc: 50, isMembers: true },
1830
- [Boss.DERANGED_ARCHAEOLOGIST]: { name: 'Deranged Archaeologist', minimumKc: 50, isMembers: true },
1831
- [Boss.GENERAL_GRAARDOR]: { name: 'General Graardor', minimumKc: 50, isMembers: true },
1832
- [Boss.GIANT_MOLE]: { name: 'Giant Mole', minimumKc: 50, isMembers: true },
1833
- [Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians', minimumKc: 50, isMembers: true },
1834
- [Boss.HESPORI]: { name: 'Hespori', minimumKc: 5, isMembers: true },
1835
- [Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen', minimumKc: 50, isMembers: true },
1836
- [Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon', minimumKc: 50, isMembers: true },
1837
- [Boss.KRAKEN]: { name: 'Kraken', minimumKc: 50, isMembers: true },
1838
- [Boss.KREEARRA]: { name: "Kree'Arra", minimumKc: 50, isMembers: true },
1839
- [Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth", minimumKc: 50, isMembers: true },
1840
- [Boss.MIMIC]: { name: 'Mimic', minimumKc: 1, isMembers: true },
1841
- [Boss.NEX]: { name: 'Nex', minimumKc: 50, isMembers: true },
1842
- [Boss.NIGHTMARE]: { name: 'Nightmare', minimumKc: 50, isMembers: true },
1843
- [Boss.PHOSANIS_NIGHTMARE]: { name: "Phosani's Nightmare", minimumKc: 50, isMembers: true },
1844
- [Boss.OBOR]: { name: 'Obor', minimumKc: 5, isMembers: false },
1845
- [Boss.SARACHNIS]: { name: 'Sarachnis', minimumKc: 50, isMembers: true },
1846
- [Boss.SKOTIZO]: { name: 'Skotizo', minimumKc: 5, isMembers: true },
1847
- [Boss.SCORPIA]: { name: 'Scorpia', minimumKc: 50, isMembers: true },
1848
- [Boss.TEMPOROSS]: { name: 'Tempoross', minimumKc: 50, isMembers: true },
1849
- [Boss.THE_GAUNTLET]: { name: 'The Gauntlet', minimumKc: 50, isMembers: true },
1850
- [Boss.THE_CORRUPTED_GAUNTLET]: { name: 'The Corrupted Gauntlet', minimumKc: 5, isMembers: true },
1851
- [Boss.THEATRE_OF_BLOOD]: { name: 'Theatre Of Blood', minimumKc: 50, isMembers: true },
1852
- [Boss.THEATRE_OF_BLOOD_HARD_MODE]: { name: 'Theatre Of Blood (HM)', minimumKc: 50, isMembers: true },
1853
- [Boss.THERMONUCLEAR_SMOKE_DEVIL]: { name: 'Thermonuclear Smoke Devil', minimumKc: 50, isMembers: true },
1854
- [Boss.TOMBS_OF_AMASCUT]: { name: 'Tombs of Amascut', minimumKc: 50, isMembers: true },
1855
- [Boss.TOMBS_OF_AMASCUT_EXPERT]: {
1856
- name: 'Tombs of Amascut (Expert Mode)',
1857
- minimumKc: 50,
1858
- isMembers: true
1859
- },
1860
- [Boss.TZKAL_ZUK]: { name: 'TzKal-Zuk', minimumKc: 1, isMembers: true },
1861
- [Boss.TZTOK_JAD]: { name: 'TzTok-Jad', minimumKc: 5, isMembers: true },
1862
- [Boss.VENENATIS]: { name: 'Venenatis', minimumKc: 50, isMembers: true },
1863
- [Boss.VETION]: { name: "Vet'ion", minimumKc: 50, isMembers: true },
1864
- [Boss.VORKATH]: { name: 'Vorkath', minimumKc: 50, isMembers: true },
1865
- [Boss.WINTERTODT]: { name: 'Wintertodt', minimumKc: 50, isMembers: true },
1866
- [Boss.ZALCANO]: { name: 'Zalcano', minimumKc: 50, isMembers: true },
1867
- [Boss.ZULRAH]: { name: 'Zulrah', minimumKc: 50, isMembers: true }
1868
- }, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.BOSS, measure: exports.MetricMeasure.KILLS })));
1814
+ [Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
1815
+ [Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
1816
+ [Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
1817
+ [Boss.BRYOPHYTA]: { name: 'Bryophyta', minimumValue: 5, isMembers: false },
1818
+ [Boss.CALLISTO]: { name: 'Callisto' },
1819
+ [Boss.CERBERUS]: { name: 'Cerberus' },
1820
+ [Boss.CHAMBERS_OF_XERIC]: { name: 'Chambers Of Xeric' },
1821
+ [Boss.CHAMBERS_OF_XERIC_CM]: { name: 'Chambers Of Xeric (CM)', minimumValue: 5 },
1822
+ [Boss.CHAOS_ELEMENTAL]: { name: 'Chaos Elemental' },
1823
+ [Boss.CHAOS_FANATIC]: { name: 'Chaos Fanatic' },
1824
+ [Boss.COMMANDER_ZILYANA]: { name: 'Commander Zilyana' },
1825
+ [Boss.CORPOREAL_BEAST]: { name: 'Corporeal Beast' },
1826
+ [Boss.CRAZY_ARCHAEOLOGIST]: { name: 'Crazy Archaeologist' },
1827
+ [Boss.DAGANNOTH_PRIME]: { name: 'Dagannoth Prime' },
1828
+ [Boss.DAGANNOTH_REX]: { name: 'Dagannoth Rex' },
1829
+ [Boss.DAGANNOTH_SUPREME]: { name: 'Dagannoth Supreme' },
1830
+ [Boss.DERANGED_ARCHAEOLOGIST]: { name: 'Deranged Archaeologist' },
1831
+ [Boss.GENERAL_GRAARDOR]: { name: 'General Graardor' },
1832
+ [Boss.GIANT_MOLE]: { name: 'Giant Mole' },
1833
+ [Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians' },
1834
+ [Boss.HESPORI]: { name: 'Hespori', minimumValue: 5 },
1835
+ [Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen' },
1836
+ [Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon' },
1837
+ [Boss.KRAKEN]: { name: 'Kraken' },
1838
+ [Boss.KREEARRA]: { name: "Kree'Arra" },
1839
+ [Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth" },
1840
+ [Boss.MIMIC]: { name: 'Mimic', minimumValue: 1 },
1841
+ [Boss.NEX]: { name: 'Nex' },
1842
+ [Boss.NIGHTMARE]: { name: 'Nightmare' },
1843
+ [Boss.PHOSANIS_NIGHTMARE]: { name: "Phosani's Nightmare" },
1844
+ [Boss.OBOR]: { name: 'Obor', minimumValue: 5, isMembers: false },
1845
+ [Boss.SARACHNIS]: { name: 'Sarachnis' },
1846
+ [Boss.SKOTIZO]: { name: 'Skotizo', minimumValue: 5 },
1847
+ [Boss.SCORPIA]: { name: 'Scorpia' },
1848
+ [Boss.TEMPOROSS]: { name: 'Tempoross' },
1849
+ [Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
1850
+ [Boss.THE_CORRUPTED_GAUNTLET]: { name: 'The Corrupted Gauntlet', minimumValue: 5 },
1851
+ [Boss.THEATRE_OF_BLOOD]: { name: 'Theatre Of Blood' },
1852
+ [Boss.THEATRE_OF_BLOOD_HARD_MODE]: { name: 'Theatre Of Blood (HM)' },
1853
+ [Boss.THERMONUCLEAR_SMOKE_DEVIL]: { name: 'Thermonuclear Smoke Devil' },
1854
+ [Boss.TOMBS_OF_AMASCUT]: { name: 'Tombs of Amascut' },
1855
+ [Boss.TOMBS_OF_AMASCUT_EXPERT]: { name: 'Tombs of Amascut (Expert Mode)' },
1856
+ [Boss.TZKAL_ZUK]: { name: 'TzKal-Zuk', minimumValue: 1 },
1857
+ [Boss.TZTOK_JAD]: { name: 'TzTok-Jad', minimumValue: 5 },
1858
+ [Boss.VENENATIS]: { name: 'Venenatis' },
1859
+ [Boss.VETION]: { name: "Vet'ion" },
1860
+ [Boss.VORKATH]: { name: 'Vorkath' },
1861
+ [Boss.WINTERTODT]: { name: 'Wintertodt' },
1862
+ [Boss.ZALCANO]: { name: 'Zalcano' },
1863
+ [Boss.ZULRAH]: { name: 'Zulrah' }
1864
+ }, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.BOSS, measure: exports.MetricMeasure.KILLS, isMembers: 'isMembers' in props ? props.isMembers : true, minimumValue: 'minimumValue' in props ? props.minimumValue : 50 })));
1869
1865
  const ActivityProps = lodash.mapValues({
1870
1866
  [Activity.LEAGUE_POINTS]: { name: 'League Points' },
1871
1867
  [Activity.BOUNTY_HUNTER_HUNTER]: { name: 'Bounty Hunter (Hunter)' },
@@ -1877,11 +1873,11 @@ const ActivityProps = lodash.mapValues({
1877
1873
  [Activity.CLUE_SCROLLS_HARD]: { name: 'Clue Scrolls (Hard)' },
1878
1874
  [Activity.CLUE_SCROLLS_ELITE]: { name: 'Clue Scrolls (Elite)' },
1879
1875
  [Activity.CLUE_SCROLLS_MASTER]: { name: 'Clue Scrolls (Master)' },
1880
- [Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing' },
1881
- [Activity.PVP_ARENA]: { name: 'PvP Arena' },
1882
- [Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal' },
1883
- [Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift' }
1884
- }, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.ACTIVITY, measure: exports.MetricMeasure.SCORE })));
1876
+ [Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing', minimumValue: 500 },
1877
+ [Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
1878
+ [Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
1879
+ [Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 }
1880
+ }, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.ACTIVITY, measure: exports.MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
1885
1881
  const ComputedMetricProps = lodash.mapValues({
1886
1882
  [ComputedMetric.EHP]: { name: 'EHP' },
1887
1883
  [ComputedMetric.EHB]: { name: 'EHB' }
@@ -1930,8 +1926,8 @@ function getMetricMeasure(metric) {
1930
1926
  function getMetricName(metric) {
1931
1927
  return MetricProps[metric].name;
1932
1928
  }
1933
- function getMinimumBossKc(metric) {
1934
- return isBoss(metric) ? MetricProps[metric].minimumKc : 0;
1929
+ function getMinimumValue(metric) {
1930
+ return isBoss(metric) || isActivity(metric) ? MetricProps[metric].minimumValue : 1;
1935
1931
  }
1936
1932
  function getParentEfficiencyMetric(metric) {
1937
1933
  if (isBoss(metric))
@@ -2482,12 +2478,15 @@ class CompetitionsClient extends BaseAPIClient {
2482
2478
 
2483
2479
  class WOMClient {
2484
2480
  constructor(options) {
2481
+ const headers = {
2482
+ 'x-user-agent': (options === null || options === void 0 ? void 0 : options.userAgent) || config.defaultUserAgent
2483
+ };
2484
+ if (options === null || options === void 0 ? void 0 : options.apiKey) {
2485
+ headers['x-api-key'] = options.apiKey;
2486
+ }
2485
2487
  const axiosInstance = axios__default["default"].create({
2486
2488
  baseURL: (options === null || options === void 0 ? void 0 : options.baseAPIUrl) || config.baseAPIUrl,
2487
- headers: {
2488
- 'x-api-key': (options === null || options === void 0 ? void 0 : options.apiKey) || null,
2489
- 'x-user-agent': (options === null || options === void 0 ? void 0 : options.userAgent) || config.defaultUserAgent
2490
- }
2489
+ headers
2491
2490
  });
2492
2491
  this.deltas = new DeltasClient(axiosInstance);
2493
2492
  this.groups = new GroupsClient(axiosInstance);
@@ -2558,7 +2557,7 @@ exports.getMetricMeasure = getMetricMeasure;
2558
2557
  exports.getMetricName = getMetricName;
2559
2558
  exports.getMetricRankKey = getMetricRankKey;
2560
2559
  exports.getMetricValueKey = getMetricValueKey;
2561
- exports.getMinimumBossKc = getMinimumBossKc;
2560
+ exports.getMinimumValue = getMinimumValue;
2562
2561
  exports.getParentEfficiencyMetric = getParentEfficiencyMetric;
2563
2562
  exports.isActivity = isActivity;
2564
2563
  exports.isBoss = isBoss;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise-old-man/utils",
3
- "version": "2.0.0-beta.7",
3
+ "version": "2.0.0-beta.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",