@wise-old-man/utils 3.3.5 → 3.3.7
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/cjs/index.cjs +15 -2
- package/dist/es/index.js +15 -3
- package/dist/es/index.mjs +15 -3
- package/dist/index.d.ts +23 -3
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -552,11 +552,13 @@ const Activity = {
|
|
|
552
552
|
PVP_ARENA: 'pvp_arena',
|
|
553
553
|
SOUL_WARS_ZEAL: 'soul_wars_zeal',
|
|
554
554
|
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift',
|
|
555
|
-
COLOSSEUM_GLORY: 'colosseum_glory'
|
|
555
|
+
COLOSSEUM_GLORY: 'colosseum_glory',
|
|
556
|
+
COLLECTIONS_LOGGED: 'collections_logged'
|
|
556
557
|
};
|
|
557
558
|
const Boss = {
|
|
558
559
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
559
560
|
ALCHEMICAL_HYDRA: 'alchemical_hydra',
|
|
561
|
+
AMOXLIATL: 'amoxliatl',
|
|
560
562
|
ARAXXOR: 'araxxor',
|
|
561
563
|
ARTIO: 'artio',
|
|
562
564
|
BARROWS_CHESTS: 'barrows_chests',
|
|
@@ -601,6 +603,7 @@ const Boss = {
|
|
|
601
603
|
TEMPOROSS: 'tempoross',
|
|
602
604
|
THE_GAUNTLET: 'the_gauntlet',
|
|
603
605
|
THE_CORRUPTED_GAUNTLET: 'the_corrupted_gauntlet',
|
|
606
|
+
THE_HUEYCOATL: 'the_hueycoatl',
|
|
604
607
|
THE_LEVIATHAN: 'the_leviathan',
|
|
605
608
|
THE_WHISPERER: 'the_whisperer',
|
|
606
609
|
THEATRE_OF_BLOOD: 'theatre_of_blood',
|
|
@@ -642,6 +645,11 @@ const PlayerType = {
|
|
|
642
645
|
HARDCORE: 'hardcore',
|
|
643
646
|
ULTIMATE: 'ultimate'
|
|
644
647
|
};
|
|
648
|
+
const PlayerAnnotationType = {
|
|
649
|
+
BLACKLIST: 'blacklist',
|
|
650
|
+
GREYLIST: 'greylist',
|
|
651
|
+
FAKE_F2P: 'fake_f2p'
|
|
652
|
+
};
|
|
645
653
|
const PlayerBuild = {
|
|
646
654
|
MAIN: 'main',
|
|
647
655
|
F2P: 'f2p',
|
|
@@ -1901,6 +1909,7 @@ const SkillProps = mapValues({
|
|
|
1901
1909
|
const BossProps = mapValues({
|
|
1902
1910
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1903
1911
|
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1912
|
+
[Boss.AMOXLIATL]: { name: 'Amoxliatl' },
|
|
1904
1913
|
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
1905
1914
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
1906
1915
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
@@ -1924,6 +1933,7 @@ const BossProps = mapValues({
|
|
|
1924
1933
|
[Boss.GIANT_MOLE]: { name: 'Giant Mole' },
|
|
1925
1934
|
[Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians' },
|
|
1926
1935
|
[Boss.HESPORI]: { name: 'Hespori' },
|
|
1936
|
+
[Boss.THE_HUEYCOATL]: { name: 'The Hueycoatl' },
|
|
1927
1937
|
[Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen' },
|
|
1928
1938
|
[Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon' },
|
|
1929
1939
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
@@ -1977,7 +1987,8 @@ const ActivityProps = mapValues({
|
|
|
1977
1987
|
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1978
1988
|
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1979
1989
|
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 },
|
|
1980
|
-
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 }
|
|
1990
|
+
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 },
|
|
1991
|
+
[Activity.COLLECTIONS_LOGGED]: { name: 'Collection Logs', minimumValue: 500 }
|
|
1981
1992
|
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.ACTIVITY, measure: exports.MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1982
1993
|
const ComputedMetricProps = mapValues({
|
|
1983
1994
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
|
@@ -2198,6 +2209,7 @@ exports.EfficiencyAlgorithmType = void 0;
|
|
|
2198
2209
|
EfficiencyAlgorithmType["F2P_LVL3"] = "f2p_lvl3";
|
|
2199
2210
|
EfficiencyAlgorithmType["F2P_IRONMAN"] = "f2p_ironman";
|
|
2200
2211
|
EfficiencyAlgorithmType["F2P_LVL3_IRONMAN"] = "f2p_lvl3_ironman";
|
|
2212
|
+
EfficiencyAlgorithmType["DEF1"] = "def1";
|
|
2201
2213
|
})(exports.EfficiencyAlgorithmType || (exports.EfficiencyAlgorithmType = {}));
|
|
2202
2214
|
|
|
2203
2215
|
class EfficiencyClient extends BaseAPIClient {
|
|
@@ -2407,6 +2419,7 @@ exports.PLAYER_TYPES = PLAYER_TYPES;
|
|
|
2407
2419
|
exports.PRIVELEGED_GROUP_ROLES = PRIVELEGED_GROUP_ROLES;
|
|
2408
2420
|
exports.Period = Period;
|
|
2409
2421
|
exports.PeriodProps = PeriodProps;
|
|
2422
|
+
exports.PlayerAnnotationType = PlayerAnnotationType;
|
|
2410
2423
|
exports.PlayerBuild = PlayerBuild;
|
|
2411
2424
|
exports.PlayerBuildProps = PlayerBuildProps;
|
|
2412
2425
|
exports.PlayerStatus = PlayerStatus;
|
package/dist/es/index.js
CHANGED
|
@@ -550,11 +550,13 @@ const Activity = {
|
|
|
550
550
|
PVP_ARENA: 'pvp_arena',
|
|
551
551
|
SOUL_WARS_ZEAL: 'soul_wars_zeal',
|
|
552
552
|
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift',
|
|
553
|
-
COLOSSEUM_GLORY: 'colosseum_glory'
|
|
553
|
+
COLOSSEUM_GLORY: 'colosseum_glory',
|
|
554
|
+
COLLECTIONS_LOGGED: 'collections_logged'
|
|
554
555
|
};
|
|
555
556
|
const Boss = {
|
|
556
557
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
557
558
|
ALCHEMICAL_HYDRA: 'alchemical_hydra',
|
|
559
|
+
AMOXLIATL: 'amoxliatl',
|
|
558
560
|
ARAXXOR: 'araxxor',
|
|
559
561
|
ARTIO: 'artio',
|
|
560
562
|
BARROWS_CHESTS: 'barrows_chests',
|
|
@@ -599,6 +601,7 @@ const Boss = {
|
|
|
599
601
|
TEMPOROSS: 'tempoross',
|
|
600
602
|
THE_GAUNTLET: 'the_gauntlet',
|
|
601
603
|
THE_CORRUPTED_GAUNTLET: 'the_corrupted_gauntlet',
|
|
604
|
+
THE_HUEYCOATL: 'the_hueycoatl',
|
|
602
605
|
THE_LEVIATHAN: 'the_leviathan',
|
|
603
606
|
THE_WHISPERER: 'the_whisperer',
|
|
604
607
|
THEATRE_OF_BLOOD: 'theatre_of_blood',
|
|
@@ -640,6 +643,11 @@ const PlayerType = {
|
|
|
640
643
|
HARDCORE: 'hardcore',
|
|
641
644
|
ULTIMATE: 'ultimate'
|
|
642
645
|
};
|
|
646
|
+
const PlayerAnnotationType = {
|
|
647
|
+
BLACKLIST: 'blacklist',
|
|
648
|
+
GREYLIST: 'greylist',
|
|
649
|
+
FAKE_F2P: 'fake_f2p'
|
|
650
|
+
};
|
|
643
651
|
const PlayerBuild = {
|
|
644
652
|
MAIN: 'main',
|
|
645
653
|
F2P: 'f2p',
|
|
@@ -1899,6 +1907,7 @@ const SkillProps = mapValues({
|
|
|
1899
1907
|
const BossProps = mapValues({
|
|
1900
1908
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1901
1909
|
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1910
|
+
[Boss.AMOXLIATL]: { name: 'Amoxliatl' },
|
|
1902
1911
|
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
1903
1912
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
1904
1913
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
@@ -1922,6 +1931,7 @@ const BossProps = mapValues({
|
|
|
1922
1931
|
[Boss.GIANT_MOLE]: { name: 'Giant Mole' },
|
|
1923
1932
|
[Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians' },
|
|
1924
1933
|
[Boss.HESPORI]: { name: 'Hespori' },
|
|
1934
|
+
[Boss.THE_HUEYCOATL]: { name: 'The Hueycoatl' },
|
|
1925
1935
|
[Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen' },
|
|
1926
1936
|
[Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon' },
|
|
1927
1937
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
@@ -1975,7 +1985,8 @@ const ActivityProps = mapValues({
|
|
|
1975
1985
|
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1976
1986
|
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1977
1987
|
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 },
|
|
1978
|
-
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 }
|
|
1988
|
+
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 },
|
|
1989
|
+
[Activity.COLLECTIONS_LOGGED]: { name: 'Collection Logs', minimumValue: 500 }
|
|
1979
1990
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.ACTIVITY, measure: MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1980
1991
|
const ComputedMetricProps = mapValues({
|
|
1981
1992
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
|
@@ -2196,6 +2207,7 @@ var EfficiencyAlgorithmType;
|
|
|
2196
2207
|
EfficiencyAlgorithmType["F2P_LVL3"] = "f2p_lvl3";
|
|
2197
2208
|
EfficiencyAlgorithmType["F2P_IRONMAN"] = "f2p_ironman";
|
|
2198
2209
|
EfficiencyAlgorithmType["F2P_LVL3_IRONMAN"] = "f2p_lvl3_ironman";
|
|
2210
|
+
EfficiencyAlgorithmType["DEF1"] = "def1";
|
|
2199
2211
|
})(EfficiencyAlgorithmType || (EfficiencyAlgorithmType = {}));
|
|
2200
2212
|
|
|
2201
2213
|
class EfficiencyClient extends BaseAPIClient {
|
|
@@ -2369,4 +2381,4 @@ class WOMClient extends BaseAPIClient {
|
|
|
2369
2381
|
}
|
|
2370
2382
|
}
|
|
2371
2383
|
|
|
2372
|
-
export { ACTIVITIES, Activity, ActivityType, BOSSES, Boss, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, CompetitionCSVTableType, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, ComputedMetric, Country, CountryProps, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, GroupRole, GroupRoleProps, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, Metric, MetricMeasure, MetricProps, MetricType, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, Period, PeriodProps, PlayerBuild, PlayerBuildProps, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, SKILLS, SKILL_EXP_AT_99, Skill, 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, parsePeriodExpression, round };
|
|
2384
|
+
export { ACTIVITIES, Activity, ActivityType, BOSSES, Boss, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, CompetitionCSVTableType, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, ComputedMetric, Country, CountryProps, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, GroupRole, GroupRoleProps, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, Metric, MetricMeasure, MetricProps, MetricType, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, Period, PeriodProps, PlayerAnnotationType, PlayerBuild, PlayerBuildProps, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, SKILLS, SKILL_EXP_AT_99, Skill, 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, parsePeriodExpression, round };
|
package/dist/es/index.mjs
CHANGED
|
@@ -550,11 +550,13 @@ const Activity = {
|
|
|
550
550
|
PVP_ARENA: 'pvp_arena',
|
|
551
551
|
SOUL_WARS_ZEAL: 'soul_wars_zeal',
|
|
552
552
|
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift',
|
|
553
|
-
COLOSSEUM_GLORY: 'colosseum_glory'
|
|
553
|
+
COLOSSEUM_GLORY: 'colosseum_glory',
|
|
554
|
+
COLLECTIONS_LOGGED: 'collections_logged'
|
|
554
555
|
};
|
|
555
556
|
const Boss = {
|
|
556
557
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
557
558
|
ALCHEMICAL_HYDRA: 'alchemical_hydra',
|
|
559
|
+
AMOXLIATL: 'amoxliatl',
|
|
558
560
|
ARAXXOR: 'araxxor',
|
|
559
561
|
ARTIO: 'artio',
|
|
560
562
|
BARROWS_CHESTS: 'barrows_chests',
|
|
@@ -599,6 +601,7 @@ const Boss = {
|
|
|
599
601
|
TEMPOROSS: 'tempoross',
|
|
600
602
|
THE_GAUNTLET: 'the_gauntlet',
|
|
601
603
|
THE_CORRUPTED_GAUNTLET: 'the_corrupted_gauntlet',
|
|
604
|
+
THE_HUEYCOATL: 'the_hueycoatl',
|
|
602
605
|
THE_LEVIATHAN: 'the_leviathan',
|
|
603
606
|
THE_WHISPERER: 'the_whisperer',
|
|
604
607
|
THEATRE_OF_BLOOD: 'theatre_of_blood',
|
|
@@ -640,6 +643,11 @@ const PlayerType = {
|
|
|
640
643
|
HARDCORE: 'hardcore',
|
|
641
644
|
ULTIMATE: 'ultimate'
|
|
642
645
|
};
|
|
646
|
+
const PlayerAnnotationType = {
|
|
647
|
+
BLACKLIST: 'blacklist',
|
|
648
|
+
GREYLIST: 'greylist',
|
|
649
|
+
FAKE_F2P: 'fake_f2p'
|
|
650
|
+
};
|
|
643
651
|
const PlayerBuild = {
|
|
644
652
|
MAIN: 'main',
|
|
645
653
|
F2P: 'f2p',
|
|
@@ -1899,6 +1907,7 @@ const SkillProps = mapValues({
|
|
|
1899
1907
|
const BossProps = mapValues({
|
|
1900
1908
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1901
1909
|
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1910
|
+
[Boss.AMOXLIATL]: { name: 'Amoxliatl' },
|
|
1902
1911
|
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
1903
1912
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
1904
1913
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
@@ -1922,6 +1931,7 @@ const BossProps = mapValues({
|
|
|
1922
1931
|
[Boss.GIANT_MOLE]: { name: 'Giant Mole' },
|
|
1923
1932
|
[Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians' },
|
|
1924
1933
|
[Boss.HESPORI]: { name: 'Hespori' },
|
|
1934
|
+
[Boss.THE_HUEYCOATL]: { name: 'The Hueycoatl' },
|
|
1925
1935
|
[Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen' },
|
|
1926
1936
|
[Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon' },
|
|
1927
1937
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
@@ -1975,7 +1985,8 @@ const ActivityProps = mapValues({
|
|
|
1975
1985
|
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1976
1986
|
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1977
1987
|
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 },
|
|
1978
|
-
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 }
|
|
1988
|
+
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 },
|
|
1989
|
+
[Activity.COLLECTIONS_LOGGED]: { name: 'Collection Logs', minimumValue: 500 }
|
|
1979
1990
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.ACTIVITY, measure: MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1980
1991
|
const ComputedMetricProps = mapValues({
|
|
1981
1992
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
|
@@ -2196,6 +2207,7 @@ var EfficiencyAlgorithmType;
|
|
|
2196
2207
|
EfficiencyAlgorithmType["F2P_LVL3"] = "f2p_lvl3";
|
|
2197
2208
|
EfficiencyAlgorithmType["F2P_IRONMAN"] = "f2p_ironman";
|
|
2198
2209
|
EfficiencyAlgorithmType["F2P_LVL3_IRONMAN"] = "f2p_lvl3_ironman";
|
|
2210
|
+
EfficiencyAlgorithmType["DEF1"] = "def1";
|
|
2199
2211
|
})(EfficiencyAlgorithmType || (EfficiencyAlgorithmType = {}));
|
|
2200
2212
|
|
|
2201
2213
|
class EfficiencyClient extends BaseAPIClient {
|
|
@@ -2369,4 +2381,4 @@ class WOMClient extends BaseAPIClient {
|
|
|
2369
2381
|
}
|
|
2370
2382
|
}
|
|
2371
2383
|
|
|
2372
|
-
export { ACTIVITIES, Activity, ActivityType, BOSSES, Boss, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, CompetitionCSVTableType, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, ComputedMetric, Country, CountryProps, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, GroupRole, GroupRoleProps, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, Metric, MetricMeasure, MetricProps, MetricType, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, Period, PeriodProps, PlayerBuild, PlayerBuildProps, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, SKILLS, SKILL_EXP_AT_99, Skill, 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, parsePeriodExpression, round };
|
|
2384
|
+
export { ACTIVITIES, Activity, ActivityType, BOSSES, Boss, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, CompetitionCSVTableType, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, ComputedMetric, Country, CountryProps, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, GroupRole, GroupRoleProps, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, Metric, MetricMeasure, MetricProps, MetricType, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, Period, PeriodProps, PlayerAnnotationType, PlayerBuild, PlayerBuildProps, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, SKILLS, SKILL_EXP_AT_99, Skill, 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, parsePeriodExpression, round };
|
package/dist/index.d.ts
CHANGED
|
@@ -221,6 +221,8 @@ type Prisma_Base_Snapshot = {
|
|
|
221
221
|
abyssal_sireKills: number;
|
|
222
222
|
alchemical_hydraRank: number;
|
|
223
223
|
alchemical_hydraKills: number;
|
|
224
|
+
amoxliatlRank: number;
|
|
225
|
+
amoxliatlKills: number;
|
|
224
226
|
artioRank: number;
|
|
225
227
|
artioKills: number;
|
|
226
228
|
barrows_chestsRank: number;
|
|
@@ -262,8 +264,8 @@ type Prisma_Base_Snapshot = {
|
|
|
262
264
|
grotesque_guardiansRank: number;
|
|
263
265
|
grotesque_guardiansKills: number;
|
|
264
266
|
hesporiRank: number;
|
|
265
|
-
kalphite_queenKills: number;
|
|
266
267
|
hesporiKills: number;
|
|
268
|
+
kalphite_queenKills: number;
|
|
267
269
|
kalphite_queenRank: number;
|
|
268
270
|
king_black_dragonRank: number;
|
|
269
271
|
king_black_dragonKills: number;
|
|
@@ -293,6 +295,8 @@ type Prisma_Base_Snapshot = {
|
|
|
293
295
|
the_gauntletKills: number;
|
|
294
296
|
the_corrupted_gauntletKills: number;
|
|
295
297
|
the_corrupted_gauntletRank: number;
|
|
298
|
+
the_hueycoatlRank: number;
|
|
299
|
+
the_hueycoatlKills: number;
|
|
296
300
|
theatre_of_bloodRank: number;
|
|
297
301
|
theatre_of_bloodKills: number;
|
|
298
302
|
thermonuclear_smoke_devilRank: number;
|
|
@@ -420,11 +424,13 @@ declare const Activity: {
|
|
|
420
424
|
readonly SOUL_WARS_ZEAL: "soul_wars_zeal";
|
|
421
425
|
readonly GUARDIANS_OF_THE_RIFT: "guardians_of_the_rift";
|
|
422
426
|
readonly COLOSSEUM_GLORY: "colosseum_glory";
|
|
427
|
+
readonly COLLECTIONS_LOGGED: "collections_logged";
|
|
423
428
|
};
|
|
424
429
|
type Activity = (typeof Activity)[keyof typeof Activity];
|
|
425
430
|
declare const Boss: {
|
|
426
431
|
readonly ABYSSAL_SIRE: "abyssal_sire";
|
|
427
432
|
readonly ALCHEMICAL_HYDRA: "alchemical_hydra";
|
|
433
|
+
readonly AMOXLIATL: "amoxliatl";
|
|
428
434
|
readonly ARAXXOR: "araxxor";
|
|
429
435
|
readonly ARTIO: "artio";
|
|
430
436
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
@@ -469,6 +475,7 @@ declare const Boss: {
|
|
|
469
475
|
readonly TEMPOROSS: "tempoross";
|
|
470
476
|
readonly THE_GAUNTLET: "the_gauntlet";
|
|
471
477
|
readonly THE_CORRUPTED_GAUNTLET: "the_corrupted_gauntlet";
|
|
478
|
+
readonly THE_HUEYCOATL: "the_hueycoatl";
|
|
472
479
|
readonly THE_LEVIATHAN: "the_leviathan";
|
|
473
480
|
readonly THE_WHISPERER: "the_whisperer";
|
|
474
481
|
readonly THEATRE_OF_BLOOD: "theatre_of_blood";
|
|
@@ -497,6 +504,7 @@ declare const Metric: {
|
|
|
497
504
|
readonly EHB: "ehb";
|
|
498
505
|
readonly ABYSSAL_SIRE: "abyssal_sire";
|
|
499
506
|
readonly ALCHEMICAL_HYDRA: "alchemical_hydra";
|
|
507
|
+
readonly AMOXLIATL: "amoxliatl";
|
|
500
508
|
readonly ARAXXOR: "araxxor";
|
|
501
509
|
readonly ARTIO: "artio";
|
|
502
510
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
@@ -541,6 +549,7 @@ declare const Metric: {
|
|
|
541
549
|
readonly TEMPOROSS: "tempoross";
|
|
542
550
|
readonly THE_GAUNTLET: "the_gauntlet";
|
|
543
551
|
readonly THE_CORRUPTED_GAUNTLET: "the_corrupted_gauntlet";
|
|
552
|
+
readonly THE_HUEYCOATL: "the_hueycoatl";
|
|
544
553
|
readonly THE_LEVIATHAN: "the_leviathan";
|
|
545
554
|
readonly THE_WHISPERER: "the_whisperer";
|
|
546
555
|
readonly THEATRE_OF_BLOOD: "theatre_of_blood";
|
|
@@ -572,6 +581,7 @@ declare const Metric: {
|
|
|
572
581
|
readonly SOUL_WARS_ZEAL: "soul_wars_zeal";
|
|
573
582
|
readonly GUARDIANS_OF_THE_RIFT: "guardians_of_the_rift";
|
|
574
583
|
readonly COLOSSEUM_GLORY: "colosseum_glory";
|
|
584
|
+
readonly COLLECTIONS_LOGGED: "collections_logged";
|
|
575
585
|
readonly OVERALL: "overall";
|
|
576
586
|
readonly ATTACK: "attack";
|
|
577
587
|
readonly DEFENCE: "defence";
|
|
@@ -620,6 +630,12 @@ declare const PlayerType: {
|
|
|
620
630
|
readonly ULTIMATE: "ultimate";
|
|
621
631
|
};
|
|
622
632
|
type PlayerType = (typeof PlayerType)[keyof typeof PlayerType];
|
|
633
|
+
declare const PlayerAnnotationType: {
|
|
634
|
+
readonly BLACKLIST: "blacklist";
|
|
635
|
+
readonly GREYLIST: "greylist";
|
|
636
|
+
readonly FAKE_F2P: "fake_f2p";
|
|
637
|
+
};
|
|
638
|
+
type PlayerAnnotationType = (typeof PlayerAnnotationType)[keyof typeof PlayerAnnotationType];
|
|
623
639
|
declare const PlayerBuild: {
|
|
624
640
|
readonly MAIN: "main";
|
|
625
641
|
readonly F2P: "f2p";
|
|
@@ -1432,7 +1448,8 @@ declare enum EfficiencyAlgorithmType {
|
|
|
1432
1448
|
F2P = "f2p",
|
|
1433
1449
|
F2P_LVL3 = "f2p_lvl3",
|
|
1434
1450
|
F2P_IRONMAN = "f2p_ironman",
|
|
1435
|
-
F2P_LVL3_IRONMAN = "f2p_lvl3_ironman"
|
|
1451
|
+
F2P_LVL3_IRONMAN = "f2p_lvl3_ironman",
|
|
1452
|
+
DEF1 = "def1"
|
|
1436
1453
|
}
|
|
1437
1454
|
interface SkillMetaMethod {
|
|
1438
1455
|
rate: number;
|
|
@@ -1643,8 +1660,10 @@ declare const MetricProps: {
|
|
|
1643
1660
|
readonly soul_wars_zeal: ActivityProperties;
|
|
1644
1661
|
readonly guardians_of_the_rift: ActivityProperties;
|
|
1645
1662
|
readonly colosseum_glory: ActivityProperties;
|
|
1663
|
+
readonly collections_logged: ActivityProperties;
|
|
1646
1664
|
readonly abyssal_sire: BossProperties;
|
|
1647
1665
|
readonly alchemical_hydra: BossProperties;
|
|
1666
|
+
readonly amoxliatl: BossProperties;
|
|
1648
1667
|
readonly araxxor: BossProperties;
|
|
1649
1668
|
readonly artio: BossProperties;
|
|
1650
1669
|
readonly barrows_chests: BossProperties;
|
|
@@ -1689,6 +1708,7 @@ declare const MetricProps: {
|
|
|
1689
1708
|
readonly tempoross: BossProperties;
|
|
1690
1709
|
readonly the_gauntlet: BossProperties;
|
|
1691
1710
|
readonly the_corrupted_gauntlet: BossProperties;
|
|
1711
|
+
readonly the_hueycoatl: BossProperties;
|
|
1692
1712
|
readonly the_leviathan: BossProperties;
|
|
1693
1713
|
readonly the_whisperer: BossProperties;
|
|
1694
1714
|
readonly theatre_of_blood: BossProperties;
|
|
@@ -2251,4 +2271,4 @@ declare class WOMClient extends BaseAPIClient {
|
|
|
2251
2271
|
constructor(options?: WOMClientOptions);
|
|
2252
2272
|
}
|
|
2253
2273
|
|
|
2254
|
-
export { ACTIVITIES, type Achievement, type AchievementDefinition, type AchievementProgress, type AchievementTemplate, Activity, type ActivityDelta, ActivityType, type ActivityValue, type AssertPlayerTypeResponse, BOSSES, type Bonus, Boss, type BossDelta, type BossMetaConfig, type BossValue, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, type ChangeMemberRolePayload, CompetitionCSVTableType, type CompetitionDetails, type CompetitionDetailsCSVParams, type CompetitionListItem, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, type CompetitionWithParticipations, type CompetitionsSearchFilter, ComputedMetric, type ComputedMetricDelta, type ComputedMetricValue, Country, type CountryDetails, CountryProps, type CreateCompetitionPayload, type CreateCompetitionResponse, type CreateGroupPayload, type CreateGroupResponse, type DeltaGroupLeaderboardEntry, type DeltaLeaderboardEntry, type DeltaLeaderboardFilter, type DenyContext, type EditCompetitionPayload, type EditGroupPayload, EfficiencyAlgorithmType, type EfficiencyAlgorithmTypeUnion, type EfficiencyLeaderboardsFilter, type ExtendedAchievement, type ExtendedAchievementWithPlayer, F2P_BOSSES, type FlaggedPlayerReviewContext, type FormattedSnapshot, GROUP_ROLES, type GenericCountMessageResponse, type GenericMessageResponse, type GetGroupGainsFilter, type GetPlayerGainsResponse, type Group, type GroupDetails, type GroupHiscoresActivityItem, type GroupHiscoresBossItem, type GroupHiscoresComputedMetricItem, type GroupHiscoresEntry, type GroupHiscoresSkillItem, type GroupListItem, type GroupMemberFragment, type GroupRecordsFilter, GroupRole, GroupRoleProps, type GroupStatistics, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, type MapOf, type MeasuredDeltaProgress, type MemberActivityWithPlayer, type MemberInput, type MemberJoinedEvent, type MemberLeftEvent, type MemberRoleChangeEvent, type MembershipWithGroup, type MembershipWithPlayer, Metric, type MetricLeaders, MetricMeasure, MetricProps, MetricType, type MetricValueKey, type NameChange, type NameChangeDetails, NameChangeStatus, type NameChangeWithPlayer, type NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, type ParticipationWithCompetition, type ParticipationWithCompetitionAndStandings, type ParticipationWithPlayer, type ParticipationWithPlayerAndProgress, Period, PeriodProps, type Player, type PlayerArchiveWithPlayer, PlayerBuild, PlayerBuildProps, type PlayerCompetitionStandingsFilter, type PlayerCompetitionsFilter, type PlayerDeltasMap, type PlayerDetails, type PlayerRecordsFilter, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, type Record, type RecordLeaderboardEntry, type RecordLeaderboardFilter, SKILLS, SKILL_EXP_AT_99, Skill, type SkillDelta, type SkillMetaConfig, type SkillMetaMethod, type SkillValue, type SkipContext, type Snapshot, type SnapshotFragment, type Team, type TimeRangeFilter, type 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, parsePeriodExpression, round };
|
|
2274
|
+
export { ACTIVITIES, type Achievement, type AchievementDefinition, type AchievementProgress, type AchievementTemplate, Activity, type ActivityDelta, ActivityType, type ActivityValue, type AssertPlayerTypeResponse, BOSSES, type Bonus, Boss, type BossDelta, type BossMetaConfig, type BossValue, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, type ChangeMemberRolePayload, CompetitionCSVTableType, type CompetitionDetails, type CompetitionDetailsCSVParams, type CompetitionListItem, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, type CompetitionWithParticipations, type CompetitionsSearchFilter, ComputedMetric, type ComputedMetricDelta, type ComputedMetricValue, Country, type CountryDetails, CountryProps, type CreateCompetitionPayload, type CreateCompetitionResponse, type CreateGroupPayload, type CreateGroupResponse, type DeltaGroupLeaderboardEntry, type DeltaLeaderboardEntry, type DeltaLeaderboardFilter, type DenyContext, type EditCompetitionPayload, type EditGroupPayload, EfficiencyAlgorithmType, type EfficiencyAlgorithmTypeUnion, type EfficiencyLeaderboardsFilter, type ExtendedAchievement, type ExtendedAchievementWithPlayer, F2P_BOSSES, type FlaggedPlayerReviewContext, type FormattedSnapshot, GROUP_ROLES, type GenericCountMessageResponse, type GenericMessageResponse, type GetGroupGainsFilter, type GetPlayerGainsResponse, type Group, type GroupDetails, type GroupHiscoresActivityItem, type GroupHiscoresBossItem, type GroupHiscoresComputedMetricItem, type GroupHiscoresEntry, type GroupHiscoresSkillItem, type GroupListItem, type GroupMemberFragment, type GroupRecordsFilter, GroupRole, GroupRoleProps, type GroupStatistics, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, type MapOf, type MeasuredDeltaProgress, type MemberActivityWithPlayer, type MemberInput, type MemberJoinedEvent, type MemberLeftEvent, type MemberRoleChangeEvent, type MembershipWithGroup, type MembershipWithPlayer, Metric, type MetricLeaders, MetricMeasure, MetricProps, MetricType, type MetricValueKey, type NameChange, type NameChangeDetails, NameChangeStatus, type NameChangeWithPlayer, type NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, type ParticipationWithCompetition, type ParticipationWithCompetitionAndStandings, type ParticipationWithPlayer, type ParticipationWithPlayerAndProgress, Period, PeriodProps, type Player, PlayerAnnotationType, type PlayerArchiveWithPlayer, PlayerBuild, PlayerBuildProps, type PlayerCompetitionStandingsFilter, type PlayerCompetitionsFilter, type PlayerDeltasMap, type PlayerDetails, type PlayerRecordsFilter, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, type Record, type RecordLeaderboardEntry, type RecordLeaderboardFilter, SKILLS, SKILL_EXP_AT_99, Skill, type SkillDelta, type SkillMetaConfig, type SkillMetaMethod, type SkillValue, type SkipContext, type Snapshot, type SnapshotFragment, type Team, type TimeRangeFilter, type 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, parsePeriodExpression, round };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.7",
|
|
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",
|