@wise-old-man/utils 3.2.3 → 3.3.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -65,6 +65,11 @@ export type Group = {
65
65
  updatedAt: Date;
66
66
  };
67
67
 
68
+ export type GroupRoleOrder = {
69
+ role: GroupRole;
70
+ index: number;
71
+ };
72
+
68
73
  type Participation = {
69
74
  playerId: number;
70
75
  competitionId: number;
@@ -1322,8 +1327,9 @@ interface GroupListItem extends Omit<Group, 'verificationHash'> {
1322
1327
  memberCount: number;
1323
1328
  }
1324
1329
  interface GroupDetails extends GroupListItem {
1325
- socialLinks?: GroupSocialLinks;
1330
+ socialLinks: GroupSocialLinks;
1326
1331
  memberships: MembershipWithPlayer[];
1332
+ roleOrders: GroupRoleOrder[];
1327
1333
  }
1328
1334
  interface MembershipWithGroup extends Membership {
1329
1335
  group: GroupListItem;
@@ -1336,19 +1342,23 @@ interface MemberInput {
1336
1342
  role: string | GroupRole;
1337
1343
  }
1338
1344
  interface GroupHiscoresSkillItem {
1345
+ type: 'skill';
1339
1346
  rank: number;
1340
1347
  level: number;
1341
1348
  experience: number;
1342
1349
  }
1343
1350
  interface GroupHiscoresBossItem {
1351
+ type: 'boss';
1344
1352
  rank: number;
1345
1353
  kills: number;
1346
1354
  }
1347
1355
  interface GroupHiscoresActivityItem {
1356
+ type: 'activity';
1348
1357
  rank: number;
1349
1358
  score: number;
1350
1359
  }
1351
1360
  interface GroupHiscoresComputedMetricItem {
1361
+ type: 'computed';
1352
1362
  rank: number;
1353
1363
  value: number;
1354
1364
  }
@@ -1823,6 +1833,7 @@ type EditGroupPayload = Partial<CreateGroupPayload> & {
1823
1833
  bannerImage?: string;
1824
1834
  profileImage?: string;
1825
1835
  socialLinks?: Partial<GroupSocialLinks>;
1836
+ roleOrders?: Array<GroupRoleOrder>;
1826
1837
  };
1827
1838
  interface CreateGroupResponse {
1828
1839
  group: GroupDetails;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise-old-man/utils",
3
- "version": "3.2.3",
3
+ "version": "3.3.0",
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",