@wise-old-man/utils 3.2.4 → 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 +8 -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;
@@ -1827,6 +1833,7 @@ type EditGroupPayload = Partial<CreateGroupPayload> & {
1827
1833
  bannerImage?: string;
1828
1834
  profileImage?: string;
1829
1835
  socialLinks?: Partial<GroupSocialLinks>;
1836
+ roleOrders?: Array<GroupRoleOrder>;
1830
1837
  };
1831
1838
  interface CreateGroupResponse {
1832
1839
  group: GroupDetails;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise-old-man/utils",
3
- "version": "3.2.4",
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",