@wise-old-man/utils 2.0.0-beta.3 → 2.0.0-beta.4
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 +6 -11
- package/dist/index.js +1 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1558,7 +1558,7 @@ interface FormattedSnapshot {
|
|
|
1558
1558
|
interface GroupListItem extends Omit<Group, 'verificationHash'> {
|
|
1559
1559
|
memberCount: number;
|
|
1560
1560
|
}
|
|
1561
|
-
interface
|
|
1561
|
+
interface GroupDetails extends GroupListItem {
|
|
1562
1562
|
memberships: MembershipWithPlayer[];
|
|
1563
1563
|
}
|
|
1564
1564
|
interface MembershipWithGroup extends Membership {
|
|
@@ -1762,7 +1762,7 @@ interface CreateGroupPayload {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
declare type EditGroupPayload = Partial<CreateGroupPayload>;
|
|
1764
1764
|
interface CreateGroupResponse {
|
|
1765
|
-
group:
|
|
1765
|
+
group: GroupDetails;
|
|
1766
1766
|
verificationCode: string;
|
|
1767
1767
|
}
|
|
1768
1768
|
interface ChangeMemberRolePayload {
|
|
@@ -1874,15 +1874,10 @@ declare class GroupsClient {
|
|
|
1874
1874
|
*/
|
|
1875
1875
|
searchGroups(name: string, pagination?: PaginationOptions): Promise<GroupListItem[]>;
|
|
1876
1876
|
/**
|
|
1877
|
-
* Fetches a group's details.
|
|
1877
|
+
* Fetches a group's details, including a list of membership objects.
|
|
1878
1878
|
* @returns A group details object.
|
|
1879
1879
|
*/
|
|
1880
|
-
getGroupDetails(id: number): Promise<
|
|
1881
|
-
/**
|
|
1882
|
-
* Fetches a group's entire members list.
|
|
1883
|
-
* @returns A list of memberships, with players included.
|
|
1884
|
-
*/
|
|
1885
|
-
getGroupMembers(id: number): Promise<MembershipWithPlayer[]>;
|
|
1880
|
+
getGroupDetails(id: number): Promise<GroupDetails>;
|
|
1886
1881
|
/**
|
|
1887
1882
|
* Creates a new group.
|
|
1888
1883
|
* @returns The newly created group, and the verification code that authorizes future changes to it.
|
|
@@ -1892,7 +1887,7 @@ declare class GroupsClient {
|
|
|
1892
1887
|
* Edits an existing group.
|
|
1893
1888
|
* @returns The updated group.
|
|
1894
1889
|
*/
|
|
1895
|
-
editGroup(id: number, payload: EditGroupPayload, verificationCode: string): Promise<
|
|
1890
|
+
editGroup(id: number, payload: EditGroupPayload, verificationCode: string): Promise<GroupDetails>;
|
|
1896
1891
|
/**
|
|
1897
1892
|
* Deletes an existing group.
|
|
1898
1893
|
* @returns A confirmation message.
|
|
@@ -2138,4 +2133,4 @@ declare class WOMClient {
|
|
|
2138
2133
|
constructor();
|
|
2139
2134
|
}
|
|
2140
2135
|
|
|
2141
|
-
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, GroupHiscoresActivityItem, GroupHiscoresBossItem, GroupHiscoresComputedMetricItem, GroupHiscoresEntry, GroupHiscoresSkillItem, GroupListItem, GroupMemberFragment, GroupRecordsFilter, GroupRole, GroupRoleProps, GroupStatistics,
|
|
2136
|
+
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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -197,19 +197,12 @@ class GroupsClient {
|
|
|
197
197
|
return sendGetRequest('/groups', Object.assign({ name }, pagination));
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
|
-
* Fetches a group's details.
|
|
200
|
+
* Fetches a group's details, including a list of membership objects.
|
|
201
201
|
* @returns A group details object.
|
|
202
202
|
*/
|
|
203
203
|
getGroupDetails(id) {
|
|
204
204
|
return sendGetRequest(`/groups/${id}`);
|
|
205
205
|
}
|
|
206
|
-
/**
|
|
207
|
-
* Fetches a group's entire members list.
|
|
208
|
-
* @returns A list of memberships, with players included.
|
|
209
|
-
*/
|
|
210
|
-
getGroupMembers(id) {
|
|
211
|
-
return sendGetRequest(`/groups/${id}/members`);
|
|
212
|
-
}
|
|
213
206
|
/**
|
|
214
207
|
* Creates a new group.
|
|
215
208
|
* @returns The newly created group, and the verification code that authorizes future changes to it.
|