@wise-old-man/utils 3.1.4 → 3.1.6
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 +15 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,17 @@ export type MemberActivity = {
|
|
|
19
19
|
createdAt: Date;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
type Prisma_Base_GroupSocialLinks = {
|
|
23
|
+
id: number;
|
|
24
|
+
groupId: number;
|
|
25
|
+
discord: string | null;
|
|
26
|
+
twitter: string | null;
|
|
27
|
+
youtube: string | null;
|
|
28
|
+
twitch: string | null;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
};
|
|
32
|
+
|
|
22
33
|
export type Membership = {
|
|
23
34
|
playerId: number;
|
|
24
35
|
groupId: number;
|
|
@@ -35,6 +46,8 @@ export type Group = {
|
|
|
35
46
|
homeworld: number | null;
|
|
36
47
|
verified: boolean;
|
|
37
48
|
patron: boolean;
|
|
49
|
+
profileImage: string | null;
|
|
50
|
+
bannerImage: string | null;
|
|
38
51
|
score: number;
|
|
39
52
|
verificationHash: string;
|
|
40
53
|
createdAt: Date;
|
|
@@ -1147,6 +1160,7 @@ declare type Player = Omit<Prisma_Base_Player, 'exp' | 'latestSnapshotId'> & {
|
|
|
1147
1160
|
declare type NameChange = Omit<Prisma_Base_NameChange, 'reviewContext'> & {
|
|
1148
1161
|
reviewContext: SkipContext | DenyContext | null;
|
|
1149
1162
|
};
|
|
1163
|
+
declare type GroupSocialLinks = Omit<Prisma_Base_GroupSocialLinks, 'id' | 'groupId' | 'createdAt' | 'updatedAt'>;
|
|
1150
1164
|
|
|
1151
1165
|
interface AchievementTemplate {
|
|
1152
1166
|
name: string;
|
|
@@ -1296,6 +1310,7 @@ interface GroupListItem extends Omit<Group, 'verificationHash'> {
|
|
|
1296
1310
|
memberCount: number;
|
|
1297
1311
|
}
|
|
1298
1312
|
interface GroupDetails extends GroupListItem {
|
|
1313
|
+
socialLinks?: GroupSocialLinks;
|
|
1299
1314
|
memberships: MembershipWithPlayer[];
|
|
1300
1315
|
}
|
|
1301
1316
|
interface MembershipWithGroup extends Membership {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
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",
|