@wise-old-man/utils 4.0.4 → 4.0.5
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 +31 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -259,6 +259,7 @@ interface Snapshot {
|
|
|
259
259
|
createdAt: Date;
|
|
260
260
|
overallRank: number;
|
|
261
261
|
overallExperience: number;
|
|
262
|
+
overallLevel: number;
|
|
262
263
|
attackRank: number;
|
|
263
264
|
attackExperience: number;
|
|
264
265
|
defenceRank: number;
|
|
@@ -509,12 +510,39 @@ interface BossMetaConfig {
|
|
|
509
510
|
rate: number;
|
|
510
511
|
}
|
|
511
512
|
|
|
513
|
+
declare const Period: {
|
|
514
|
+
readonly FIVE_MIN: "five_min";
|
|
515
|
+
readonly DAY: "day";
|
|
516
|
+
readonly WEEK: "week";
|
|
517
|
+
readonly MONTH: "month";
|
|
518
|
+
readonly YEAR: "year";
|
|
519
|
+
};
|
|
520
|
+
type Period = (typeof Period)[keyof typeof Period];
|
|
521
|
+
declare const PERIODS: ("five_min" | "day" | "week" | "month" | "year")[];
|
|
522
|
+
|
|
523
|
+
interface CachedDelta {
|
|
524
|
+
playerId: number;
|
|
525
|
+
period: Period;
|
|
526
|
+
metric: Metric;
|
|
527
|
+
value: number;
|
|
528
|
+
startedAt: Date;
|
|
529
|
+
endedAt: Date;
|
|
530
|
+
updatedAt: Date;
|
|
531
|
+
}
|
|
532
|
+
|
|
512
533
|
declare enum CompetitionCSVTableType {
|
|
513
534
|
TEAM = "team",
|
|
514
535
|
TEAMS = "teams",
|
|
515
536
|
PARTICIPANTS = "participants"
|
|
516
537
|
}
|
|
517
538
|
|
|
539
|
+
interface CompetitionMetric {
|
|
540
|
+
competitionId: number;
|
|
541
|
+
metric: Metric;
|
|
542
|
+
createdAt: Date;
|
|
543
|
+
deletedAt: Date | null;
|
|
544
|
+
}
|
|
545
|
+
|
|
518
546
|
declare enum CompetitionStatus {
|
|
519
547
|
UPCOMING = "upcoming",
|
|
520
548
|
ONGOING = "ongoing",
|
|
@@ -537,7 +565,6 @@ declare const COMPETITION_TYPES: CompetitionType[];
|
|
|
537
565
|
interface Competition {
|
|
538
566
|
id: number;
|
|
539
567
|
title: string;
|
|
540
|
-
metric: Metric;
|
|
541
568
|
type: CompetitionType;
|
|
542
569
|
startsAt: Date;
|
|
543
570
|
endsAt: Date;
|
|
@@ -807,16 +834,6 @@ declare const Country: {
|
|
|
807
834
|
type Country = (typeof Country)[keyof typeof Country];
|
|
808
835
|
declare const COUNTRY_CODES: Country[];
|
|
809
836
|
|
|
810
|
-
declare const Period: {
|
|
811
|
-
readonly FIVE_MIN: "five_min";
|
|
812
|
-
readonly DAY: "day";
|
|
813
|
-
readonly WEEK: "week";
|
|
814
|
-
readonly MONTH: "month";
|
|
815
|
-
readonly YEAR: "year";
|
|
816
|
-
};
|
|
817
|
-
type Period = (typeof Period)[keyof typeof Period];
|
|
818
|
-
declare const PERIODS: ("five_min" | "day" | "week" | "month" | "year")[];
|
|
819
|
-
|
|
820
837
|
interface Delta {
|
|
821
838
|
playerId: number;
|
|
822
839
|
period: Period;
|
|
@@ -1511,6 +1528,8 @@ interface GroupResponse extends Omit<Group, 'verificationHash' | 'creatorIpHash'
|
|
|
1511
1528
|
*/
|
|
1512
1529
|
|
|
1513
1530
|
interface CompetitionResponse extends Omit<Competition, 'verificationHash' | 'creatorIpHash'> {
|
|
1531
|
+
metric: Metric;
|
|
1532
|
+
metrics: Metric[];
|
|
1514
1533
|
participantCount: number;
|
|
1515
1534
|
group?: GroupResponse;
|
|
1516
1535
|
}
|
|
@@ -3963,4 +3982,4 @@ declare function isPlayerType(typeString: string): typeString is PlayerType;
|
|
|
3963
3982
|
|
|
3964
3983
|
declare function roundNumber(num: number, cases: number): number;
|
|
3965
3984
|
|
|
3966
|
-
export { ACTIVITIES, type Achievement, type AchievementDefinition, type AchievementMeasure, type AchievementProgressResponse, type AchievementResponse, Activity, ActivityProps, BOSSES, Boss, type BossMetaConfig, BossProps, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, type Competition, CompetitionCSVTableType, type CompetitionDetailsResponse, type CompetitionResponse, CompetitionStatus, CompetitionStatusProps, type CompetitionTeam, CompetitionType, CompetitionTypeProps, ComputedMetric, ComputedMetricProps, Country, CountryProps, type CreateCompetitionPayload, type CreateGroupPayload, type Delta, type EditCompetitionPayload, type EditGroupPayload, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, type GenericCountMessageResponse, type GenericMessageResponse, type Group, type GroupDetailsResponse, type GroupHiscoresEntryResponse, type GroupResponse, GroupRole, type GroupRoleOrder, GroupRoleProps, type GroupSocialLinks, type GroupStatisticsResponse, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, type MemberActivity, type MemberActivityResponse, MemberActivityType, type Membership, type MembershipResponse, Metric, type MetricDelta, MetricMeasure, MetricProps, MetricType, type NameChange, type NameChangeDenyContext, type NameChangeDetailsResponse, type NameChangeResponse, type NameChangeReviewContext, type NameChangeSkipContext, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVILEGED_GROUP_ROLES, type ParticipantHistoryResponse, type Participation, type ParticipationResponse, type Patron, Period, PeriodProps, type Player, type PlayerAnnotation, PlayerAnnotationType, type PlayerArchive, type PlayerArchiveResponse, PlayerBuild, PlayerBuildProps, type PlayerCompetitionStandingResponse, type PlayerDeltasMapResponse, type PlayerDetailsResponse, type PlayerResponse, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, type Record$1 as Record, type RecordResponse, SKILLS, SKILL_EXP_AT_99, Skill, type SkillMetaBonus, type SkillMetaConfig, type SkillMetaMethod, SkillProps, type Snapshot, type SnapshotResponse, type TimeRangeFilter, WOMClient, findCountry, findCountryByCode, findCountryByName, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMinimumValue, getParentEfficiencyMetric, isActivity, isBoss, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerStatus, isPlayerType, isSkill, padNumber, parsePeriodExpression, roundNumber };
|
|
3985
|
+
export { ACTIVITIES, type Achievement, type AchievementDefinition, type AchievementMeasure, type AchievementProgressResponse, type AchievementResponse, Activity, ActivityProps, BOSSES, Boss, type BossMetaConfig, BossProps, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, type CachedDelta, type Competition, CompetitionCSVTableType, type CompetitionDetailsResponse, type CompetitionMetric, type CompetitionResponse, CompetitionStatus, CompetitionStatusProps, type CompetitionTeam, CompetitionType, CompetitionTypeProps, ComputedMetric, ComputedMetricProps, Country, CountryProps, type CreateCompetitionPayload, type CreateGroupPayload, type Delta, type EditCompetitionPayload, type EditGroupPayload, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, type GenericCountMessageResponse, type GenericMessageResponse, type Group, type GroupDetailsResponse, type GroupHiscoresEntryResponse, type GroupResponse, GroupRole, type GroupRoleOrder, GroupRoleProps, type GroupSocialLinks, type GroupStatisticsResponse, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, type MemberActivity, type MemberActivityResponse, MemberActivityType, type Membership, type MembershipResponse, Metric, type MetricDelta, MetricMeasure, MetricProps, MetricType, type NameChange, type NameChangeDenyContext, type NameChangeDetailsResponse, type NameChangeResponse, type NameChangeReviewContext, type NameChangeSkipContext, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVILEGED_GROUP_ROLES, type ParticipantHistoryResponse, type Participation, type ParticipationResponse, type Patron, Period, PeriodProps, type Player, type PlayerAnnotation, PlayerAnnotationType, type PlayerArchive, type PlayerArchiveResponse, PlayerBuild, PlayerBuildProps, type PlayerCompetitionStandingResponse, type PlayerDeltasMapResponse, type PlayerDetailsResponse, type PlayerResponse, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, type Record$1 as Record, type RecordResponse, SKILLS, SKILL_EXP_AT_99, Skill, type SkillMetaBonus, type SkillMetaConfig, type SkillMetaMethod, SkillProps, type Snapshot, type SnapshotResponse, type TimeRangeFilter, WOMClient, findCountry, findCountryByCode, findCountryByName, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMinimumValue, getParentEfficiencyMetric, isActivity, isBoss, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerStatus, isPlayerType, isSkill, padNumber, parsePeriodExpression, roundNumber };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
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",
|