wenum 1.61.0 → 1.63.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.
- package/dist/index.d.mts +16 -114
- package/dist/index.d.ts +16 -114
- package/dist/index.js +0 -240
- package/dist/index.mjs +0 -223
- package/package.json +1 -1
- package/src/attribute/uoi/sports/tennis.ts +16 -15
- package/src/comment.ts +6 -7
- package/src/common/socialMedia.ts +5 -6
- package/src/connection.ts +12 -41
- package/src/notification.ts +16 -54
- package/src/page/page.ts +6 -3
- package/src/page/post.ts +10 -8
- package/src/page/profile/joining.ts +4 -5
- package/src/page/profile/market/status.ts +4 -5
- package/src/page/profile/profile.ts +14 -9
- package/src/page/profile/user.ts +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,40 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
None = 0,
|
|
3
|
-
Profile = 1,
|
|
4
|
-
Post = 2,
|
|
5
|
-
Loi = 3,
|
|
6
|
-
Location = 4
|
|
7
|
-
}
|
|
1
|
+
type PageType = "none" | "profile" | "post" | "loi" | "location";
|
|
8
2
|
|
|
9
3
|
type ProfileType = "none" | "user" | "uoi" | "market" | "arena" | "collection" | "event" | "team" | "leaderboard" | "game";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Internal = 2
|
|
14
|
-
}
|
|
15
|
-
declare enum ProfilePermission {
|
|
16
|
-
None = 0,
|
|
17
|
-
Admin = 1,
|
|
18
|
-
Member = 2,
|
|
19
|
-
Follower = 3,
|
|
20
|
-
Blocked = 4
|
|
21
|
-
}
|
|
22
|
-
declare enum ProfileStatus {
|
|
23
|
-
None = 0,
|
|
24
|
-
Active = 1,
|
|
25
|
-
Inactive = 2
|
|
26
|
-
}
|
|
4
|
+
type ProfilePrivacy = "public" | "private" | "internal";
|
|
5
|
+
type ProfilePermission = "none" | "admin" | "connected" | "following" | "blocked";
|
|
6
|
+
type ProfileStatus = "none" | "active" | "inactive";
|
|
27
7
|
declare enum ChallengeStatus {
|
|
28
8
|
None = 0,
|
|
29
9
|
Open = 1,
|
|
30
10
|
Closed = 2
|
|
31
11
|
}
|
|
32
12
|
|
|
33
|
-
|
|
34
|
-
None = 0,
|
|
35
|
-
Active = 1,
|
|
36
|
-
Inactive = 2
|
|
37
|
-
}
|
|
13
|
+
type MarketMetaStatus = "none" | "active" | "inactive";
|
|
38
14
|
|
|
39
15
|
type MarketTypeCat = '0_catsitting' | '1_grooming' | '2_dating';
|
|
40
16
|
|
|
@@ -64,11 +40,7 @@ type CollectionTypeSports = CollectionTypeTennis;
|
|
|
64
40
|
|
|
65
41
|
type CollectionType = CollectionTypePets | CollectionTypeSports;
|
|
66
42
|
|
|
67
|
-
|
|
68
|
-
None = 0,
|
|
69
|
-
He = 1,
|
|
70
|
-
She = 2
|
|
71
|
-
}
|
|
43
|
+
type UserPronoun = "none" | "he" | "she";
|
|
72
44
|
|
|
73
45
|
declare enum AttendanceStatus {
|
|
74
46
|
None = 0,
|
|
@@ -104,25 +76,12 @@ declare enum AvatarType {
|
|
|
104
76
|
LargeCrop = 3
|
|
105
77
|
}
|
|
106
78
|
|
|
107
|
-
|
|
108
|
-
GameToLeaderboard = 0,
|
|
109
|
-
PlayerToGame = 1,
|
|
110
|
-
MemberToCircle = 2
|
|
111
|
-
}
|
|
79
|
+
type ProfileJoiningType = "gameToLeaderboard" | "playerToGame" | "memberToCircle";
|
|
112
80
|
|
|
113
81
|
type PlayerType = 'uoi' | 'team' | 'collection';
|
|
114
82
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
Text = 1,
|
|
118
|
-
Image = 2,
|
|
119
|
-
Poll = 3
|
|
120
|
-
}
|
|
121
|
-
declare enum PostPrivacy {
|
|
122
|
-
Public = 0,
|
|
123
|
-
Private = 1,
|
|
124
|
-
Internal = 2
|
|
125
|
-
}
|
|
83
|
+
type PostType = "none" | "text" | "image" | "poll";
|
|
84
|
+
type PostPrivacy = "public" | "private" | "parent" | "internal";
|
|
126
85
|
|
|
127
86
|
type LocationType = "none" | "point" | "street" | "city";
|
|
128
87
|
|
|
@@ -146,20 +105,7 @@ declare enum AdminAccountStatus {
|
|
|
146
105
|
}
|
|
147
106
|
|
|
148
107
|
type BuddyingStatus = "removedByRequestee" | "removedByRequester" | "withdrawn" | "ignored" | "accepted" | "pendingReceived" | "pendingSent" | "none";
|
|
149
|
-
|
|
150
|
-
None = 0,
|
|
151
|
-
Admined = 1,
|
|
152
|
-
Membered = 2,
|
|
153
|
-
PendingApply = 3,
|
|
154
|
-
IgnoredApply = 4,
|
|
155
|
-
WithdrawnApply = 5,
|
|
156
|
-
MemberLeft = 6,
|
|
157
|
-
PendingInvite = 7,
|
|
158
|
-
IgnoredInvite = 8,
|
|
159
|
-
WithdrawnInvite = 9,
|
|
160
|
-
MemberRemoved = 10
|
|
161
|
-
}
|
|
162
|
-
declare const getMemberingStatusName: (status: MemberingStatus) => "Admined" | "Membered" | "Pending Apply" | "Ignored Apply" | "Withdrawn Apply" | "Member Left" | "Pending Invite" | "Ignored Invite" | "Withdrawn Invite" | "Member Removed" | "None";
|
|
108
|
+
type MemberingStatus = "none" | "admined" | "membered" | "pendingApply" | "ignoredApply" | "withdrawnApply" | "memberLeft" | "pendingInvite" | "ignoredInvite" | "withdrawnInvite" | "memberRemoved";
|
|
163
109
|
declare enum FollowingStatus {
|
|
164
110
|
None = 0,
|
|
165
111
|
Pending = 1,
|
|
@@ -172,24 +118,8 @@ declare enum FollowingStatus {
|
|
|
172
118
|
type Handedness = "right" | "left" | "none";
|
|
173
119
|
type Gender = "female" | "male" | "none";
|
|
174
120
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
Single = 1,
|
|
178
|
-
Double = 2,
|
|
179
|
-
Both = 3
|
|
180
|
-
}
|
|
181
|
-
declare enum TennisLevel {
|
|
182
|
-
None = 0,
|
|
183
|
-
TwoBelow = 1,
|
|
184
|
-
TwoFive = 2,
|
|
185
|
-
Three = 3,
|
|
186
|
-
ThreeFive = 4,
|
|
187
|
-
Four = 5,
|
|
188
|
-
FourFive = 6,
|
|
189
|
-
Five = 7,
|
|
190
|
-
FiveFive = 8,
|
|
191
|
-
SixAbove = 9
|
|
192
|
-
}
|
|
121
|
+
type TennisBackhand = "none" | "single" | "double" | "both";
|
|
122
|
+
type TennisLevel = "none" | "twoBelow" | "twoFive" | "three" | "threeFive" | "four" | "fourFive" | "five" | "fiveFive" | "sixAbove";
|
|
193
123
|
|
|
194
124
|
declare enum BasketballPosition {
|
|
195
125
|
None = 0,
|
|
@@ -200,13 +130,7 @@ declare enum BasketballPosition {
|
|
|
200
130
|
PF = 16
|
|
201
131
|
}
|
|
202
132
|
|
|
203
|
-
|
|
204
|
-
None = 0,
|
|
205
|
-
Post = 1,
|
|
206
|
-
Rating = 2,
|
|
207
|
-
Comment = 3,
|
|
208
|
-
Reply = 4
|
|
209
|
-
}
|
|
133
|
+
type SubjectType = "none" | "post" | "rating" | "comment" | "reply";
|
|
210
134
|
|
|
211
135
|
type CategoryType = '1_sports' | '2_pets' | '3_cardgames' | 'boardgames' | 'music' | 'travel' | 'dancing' | 'language' | 'food' | 'drinks' | 'photography' | '';
|
|
212
136
|
|
|
@@ -223,31 +147,9 @@ type InterestType = SportsInterestType | PetsInterestType | MusicInterestType |
|
|
|
223
147
|
type LengthUnit = "cm" | "m" | "inch" | "foot" | "km" | "mi" | "yd";
|
|
224
148
|
type WeightUnit = "kg" | "g" | "lb" | "oz";
|
|
225
149
|
|
|
226
|
-
|
|
227
|
-
None = 0,
|
|
228
|
-
Facebook = 1,
|
|
229
|
-
LinkedIn = 2,
|
|
230
|
-
Instagram = 3
|
|
231
|
-
}
|
|
150
|
+
type SocialMediaType = "none" | "facebook" | "linkedIn" | "instagram";
|
|
232
151
|
|
|
233
|
-
|
|
234
|
-
AddBuddy = 0,
|
|
235
|
-
AcceptBuddy = 1,
|
|
236
|
-
UoiJoinCircle = 2,
|
|
237
|
-
AcceptUoiJoinCircle = 3,
|
|
238
|
-
InviteUoiToCircle = 4,
|
|
239
|
-
AcceptInviteUoiToCircle = 5,
|
|
240
|
-
TeamJoinCircle = 6,
|
|
241
|
-
AcceptTeamJoinCircle = 7,
|
|
242
|
-
InviteTeamToCircle = 8,
|
|
243
|
-
AcceptInviteTeamToCircle = 9,
|
|
244
|
-
AddGameToLeaderboard = 10,
|
|
245
|
-
AcceptAddGameToLeaderboard = 11,
|
|
246
|
-
InviteGameToLeaderboard = 12,
|
|
247
|
-
AcceptInviteGameToLeaderboard = 13,
|
|
248
|
-
CreatePost = 14
|
|
249
|
-
}
|
|
250
|
-
declare const getNotificationTypeName: (type: NotificationType) => "AddBuddy" | "AcceptBuddy" | "UoiJoinCircle" | "AcceptUoiJoinCircle" | "InviteUoiToCircle" | "AcceptInviteUoiToCircle" | "TeamJoinCircle" | "AcceptTeamJoinCircle" | "InviteTeamToCircle" | "AcceptInviteTeamToCircle" | "AddGameToLeaderboard" | "AcceptAddGameToLeaderboard" | "InviteGameToLeaderboard" | "AcceptInviteGameToLeaderboard" | "CreatePost" | "Unknown";
|
|
152
|
+
type NotificationType = "addBuddy" | "acceptBuddy" | "uoiJoinCircle" | "acceptUoiJoinCircle" | "inviteUoiToCircle" | "acceptInviteUoiToCircle" | "teamJoinCircle" | "acceptTeamJoinCircle" | "inviteTeamToCircle" | "acceptInviteTeamToCircle" | "addGameToLeaderboard" | "acceptAddGameToLeaderboard" | "inviteGameToLeaderboard" | "acceptInviteGameToLeaderboard" | "createPost";
|
|
251
153
|
|
|
252
154
|
type AttributeTypeCommon = 'handedness' | 'gender' | 'dob';
|
|
253
155
|
|
|
@@ -288,4 +190,4 @@ declare const getProfileAttributeLabel: ({ profileType, categoryType, interestTy
|
|
|
288
190
|
attributeType: AttributeType;
|
|
289
191
|
}) => any;
|
|
290
192
|
|
|
291
|
-
export { ATTRIBUTE_LABEL, ATTRIBUTE_LABEL_COLLECTION, ATTRIBUTE_LABEL_COLLECTION_PETS, ATTRIBUTE_LABEL_COMMON, ATTRIBUTE_LABEL_UOI, ATTRIBUTE_LABEL_UOI_SPORTS, ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL, ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS, type AccountStatus, AdminAccountStatus, AttendanceStatus, type AttributeType, type AttributeTypeCollection, type AttributeTypeCollectionPets, type AttributeTypeCommon, type AttributeTypeUoi, type AttributeTypeUoiSports, type AttributeTypeUoiSportsBasketball, type AttributeTypeUoiSportsTennis, AvatarType, BasketballPosition, type BroadcastType, type BuddyingStatus, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionMetaStatus, type CollectionType, type DuelGameResultType, FollowingStatus, type GameType, type Gender, type Handedness, type InterestType, type LeaderboardType, type LengthUnit, type LocationType, MarketMetaStatus, type MarketType, MemberingStatus, type MusicInterestType, NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, PageType, type PetsInterestType, type PlayerType, PostPrivacy, PostType, ProfileJoiningType, ProfilePermission, ProfilePrivacy, ProfileStatus, type ProfileType, SocialMediaType, type SportsInterestType, SubjectType, TennisBackhand, TennisLevel, UserPronoun, type WeightUnit,
|
|
193
|
+
export { ATTRIBUTE_LABEL, ATTRIBUTE_LABEL_COLLECTION, ATTRIBUTE_LABEL_COLLECTION_PETS, ATTRIBUTE_LABEL_COMMON, ATTRIBUTE_LABEL_UOI, ATTRIBUTE_LABEL_UOI_SPORTS, ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL, ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS, type AccountStatus, AdminAccountStatus, AttendanceStatus, type AttributeType, type AttributeTypeCollection, type AttributeTypeCollectionPets, type AttributeTypeCommon, type AttributeTypeUoi, type AttributeTypeUoiSports, type AttributeTypeUoiSportsBasketball, type AttributeTypeUoiSportsTennis, AvatarType, BasketballPosition, type BroadcastType, type BuddyingStatus, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionMetaStatus, type CollectionType, type DuelGameResultType, FollowingStatus, type GameType, type Gender, type Handedness, type InterestType, type LeaderboardType, type LengthUnit, type LocationType, type MarketMetaStatus, type MarketType, type MemberingStatus, type MusicInterestType, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type PostType, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, type SocialMediaType, type SportsInterestType, type SubjectType, type TennisBackhand, type TennisLevel, type UserPronoun, type WeightUnit, getPIDPrefixByProfileType, getProfileAttributeLabel, getProfileTypeByPID, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,40 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
None = 0,
|
|
3
|
-
Profile = 1,
|
|
4
|
-
Post = 2,
|
|
5
|
-
Loi = 3,
|
|
6
|
-
Location = 4
|
|
7
|
-
}
|
|
1
|
+
type PageType = "none" | "profile" | "post" | "loi" | "location";
|
|
8
2
|
|
|
9
3
|
type ProfileType = "none" | "user" | "uoi" | "market" | "arena" | "collection" | "event" | "team" | "leaderboard" | "game";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Internal = 2
|
|
14
|
-
}
|
|
15
|
-
declare enum ProfilePermission {
|
|
16
|
-
None = 0,
|
|
17
|
-
Admin = 1,
|
|
18
|
-
Member = 2,
|
|
19
|
-
Follower = 3,
|
|
20
|
-
Blocked = 4
|
|
21
|
-
}
|
|
22
|
-
declare enum ProfileStatus {
|
|
23
|
-
None = 0,
|
|
24
|
-
Active = 1,
|
|
25
|
-
Inactive = 2
|
|
26
|
-
}
|
|
4
|
+
type ProfilePrivacy = "public" | "private" | "internal";
|
|
5
|
+
type ProfilePermission = "none" | "admin" | "connected" | "following" | "blocked";
|
|
6
|
+
type ProfileStatus = "none" | "active" | "inactive";
|
|
27
7
|
declare enum ChallengeStatus {
|
|
28
8
|
None = 0,
|
|
29
9
|
Open = 1,
|
|
30
10
|
Closed = 2
|
|
31
11
|
}
|
|
32
12
|
|
|
33
|
-
|
|
34
|
-
None = 0,
|
|
35
|
-
Active = 1,
|
|
36
|
-
Inactive = 2
|
|
37
|
-
}
|
|
13
|
+
type MarketMetaStatus = "none" | "active" | "inactive";
|
|
38
14
|
|
|
39
15
|
type MarketTypeCat = '0_catsitting' | '1_grooming' | '2_dating';
|
|
40
16
|
|
|
@@ -64,11 +40,7 @@ type CollectionTypeSports = CollectionTypeTennis;
|
|
|
64
40
|
|
|
65
41
|
type CollectionType = CollectionTypePets | CollectionTypeSports;
|
|
66
42
|
|
|
67
|
-
|
|
68
|
-
None = 0,
|
|
69
|
-
He = 1,
|
|
70
|
-
She = 2
|
|
71
|
-
}
|
|
43
|
+
type UserPronoun = "none" | "he" | "she";
|
|
72
44
|
|
|
73
45
|
declare enum AttendanceStatus {
|
|
74
46
|
None = 0,
|
|
@@ -104,25 +76,12 @@ declare enum AvatarType {
|
|
|
104
76
|
LargeCrop = 3
|
|
105
77
|
}
|
|
106
78
|
|
|
107
|
-
|
|
108
|
-
GameToLeaderboard = 0,
|
|
109
|
-
PlayerToGame = 1,
|
|
110
|
-
MemberToCircle = 2
|
|
111
|
-
}
|
|
79
|
+
type ProfileJoiningType = "gameToLeaderboard" | "playerToGame" | "memberToCircle";
|
|
112
80
|
|
|
113
81
|
type PlayerType = 'uoi' | 'team' | 'collection';
|
|
114
82
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
Text = 1,
|
|
118
|
-
Image = 2,
|
|
119
|
-
Poll = 3
|
|
120
|
-
}
|
|
121
|
-
declare enum PostPrivacy {
|
|
122
|
-
Public = 0,
|
|
123
|
-
Private = 1,
|
|
124
|
-
Internal = 2
|
|
125
|
-
}
|
|
83
|
+
type PostType = "none" | "text" | "image" | "poll";
|
|
84
|
+
type PostPrivacy = "public" | "private" | "parent" | "internal";
|
|
126
85
|
|
|
127
86
|
type LocationType = "none" | "point" | "street" | "city";
|
|
128
87
|
|
|
@@ -146,20 +105,7 @@ declare enum AdminAccountStatus {
|
|
|
146
105
|
}
|
|
147
106
|
|
|
148
107
|
type BuddyingStatus = "removedByRequestee" | "removedByRequester" | "withdrawn" | "ignored" | "accepted" | "pendingReceived" | "pendingSent" | "none";
|
|
149
|
-
|
|
150
|
-
None = 0,
|
|
151
|
-
Admined = 1,
|
|
152
|
-
Membered = 2,
|
|
153
|
-
PendingApply = 3,
|
|
154
|
-
IgnoredApply = 4,
|
|
155
|
-
WithdrawnApply = 5,
|
|
156
|
-
MemberLeft = 6,
|
|
157
|
-
PendingInvite = 7,
|
|
158
|
-
IgnoredInvite = 8,
|
|
159
|
-
WithdrawnInvite = 9,
|
|
160
|
-
MemberRemoved = 10
|
|
161
|
-
}
|
|
162
|
-
declare const getMemberingStatusName: (status: MemberingStatus) => "Admined" | "Membered" | "Pending Apply" | "Ignored Apply" | "Withdrawn Apply" | "Member Left" | "Pending Invite" | "Ignored Invite" | "Withdrawn Invite" | "Member Removed" | "None";
|
|
108
|
+
type MemberingStatus = "none" | "admined" | "membered" | "pendingApply" | "ignoredApply" | "withdrawnApply" | "memberLeft" | "pendingInvite" | "ignoredInvite" | "withdrawnInvite" | "memberRemoved";
|
|
163
109
|
declare enum FollowingStatus {
|
|
164
110
|
None = 0,
|
|
165
111
|
Pending = 1,
|
|
@@ -172,24 +118,8 @@ declare enum FollowingStatus {
|
|
|
172
118
|
type Handedness = "right" | "left" | "none";
|
|
173
119
|
type Gender = "female" | "male" | "none";
|
|
174
120
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
Single = 1,
|
|
178
|
-
Double = 2,
|
|
179
|
-
Both = 3
|
|
180
|
-
}
|
|
181
|
-
declare enum TennisLevel {
|
|
182
|
-
None = 0,
|
|
183
|
-
TwoBelow = 1,
|
|
184
|
-
TwoFive = 2,
|
|
185
|
-
Three = 3,
|
|
186
|
-
ThreeFive = 4,
|
|
187
|
-
Four = 5,
|
|
188
|
-
FourFive = 6,
|
|
189
|
-
Five = 7,
|
|
190
|
-
FiveFive = 8,
|
|
191
|
-
SixAbove = 9
|
|
192
|
-
}
|
|
121
|
+
type TennisBackhand = "none" | "single" | "double" | "both";
|
|
122
|
+
type TennisLevel = "none" | "twoBelow" | "twoFive" | "three" | "threeFive" | "four" | "fourFive" | "five" | "fiveFive" | "sixAbove";
|
|
193
123
|
|
|
194
124
|
declare enum BasketballPosition {
|
|
195
125
|
None = 0,
|
|
@@ -200,13 +130,7 @@ declare enum BasketballPosition {
|
|
|
200
130
|
PF = 16
|
|
201
131
|
}
|
|
202
132
|
|
|
203
|
-
|
|
204
|
-
None = 0,
|
|
205
|
-
Post = 1,
|
|
206
|
-
Rating = 2,
|
|
207
|
-
Comment = 3,
|
|
208
|
-
Reply = 4
|
|
209
|
-
}
|
|
133
|
+
type SubjectType = "none" | "post" | "rating" | "comment" | "reply";
|
|
210
134
|
|
|
211
135
|
type CategoryType = '1_sports' | '2_pets' | '3_cardgames' | 'boardgames' | 'music' | 'travel' | 'dancing' | 'language' | 'food' | 'drinks' | 'photography' | '';
|
|
212
136
|
|
|
@@ -223,31 +147,9 @@ type InterestType = SportsInterestType | PetsInterestType | MusicInterestType |
|
|
|
223
147
|
type LengthUnit = "cm" | "m" | "inch" | "foot" | "km" | "mi" | "yd";
|
|
224
148
|
type WeightUnit = "kg" | "g" | "lb" | "oz";
|
|
225
149
|
|
|
226
|
-
|
|
227
|
-
None = 0,
|
|
228
|
-
Facebook = 1,
|
|
229
|
-
LinkedIn = 2,
|
|
230
|
-
Instagram = 3
|
|
231
|
-
}
|
|
150
|
+
type SocialMediaType = "none" | "facebook" | "linkedIn" | "instagram";
|
|
232
151
|
|
|
233
|
-
|
|
234
|
-
AddBuddy = 0,
|
|
235
|
-
AcceptBuddy = 1,
|
|
236
|
-
UoiJoinCircle = 2,
|
|
237
|
-
AcceptUoiJoinCircle = 3,
|
|
238
|
-
InviteUoiToCircle = 4,
|
|
239
|
-
AcceptInviteUoiToCircle = 5,
|
|
240
|
-
TeamJoinCircle = 6,
|
|
241
|
-
AcceptTeamJoinCircle = 7,
|
|
242
|
-
InviteTeamToCircle = 8,
|
|
243
|
-
AcceptInviteTeamToCircle = 9,
|
|
244
|
-
AddGameToLeaderboard = 10,
|
|
245
|
-
AcceptAddGameToLeaderboard = 11,
|
|
246
|
-
InviteGameToLeaderboard = 12,
|
|
247
|
-
AcceptInviteGameToLeaderboard = 13,
|
|
248
|
-
CreatePost = 14
|
|
249
|
-
}
|
|
250
|
-
declare const getNotificationTypeName: (type: NotificationType) => "AddBuddy" | "AcceptBuddy" | "UoiJoinCircle" | "AcceptUoiJoinCircle" | "InviteUoiToCircle" | "AcceptInviteUoiToCircle" | "TeamJoinCircle" | "AcceptTeamJoinCircle" | "InviteTeamToCircle" | "AcceptInviteTeamToCircle" | "AddGameToLeaderboard" | "AcceptAddGameToLeaderboard" | "InviteGameToLeaderboard" | "AcceptInviteGameToLeaderboard" | "CreatePost" | "Unknown";
|
|
152
|
+
type NotificationType = "addBuddy" | "acceptBuddy" | "uoiJoinCircle" | "acceptUoiJoinCircle" | "inviteUoiToCircle" | "acceptInviteUoiToCircle" | "teamJoinCircle" | "acceptTeamJoinCircle" | "inviteTeamToCircle" | "acceptInviteTeamToCircle" | "addGameToLeaderboard" | "acceptAddGameToLeaderboard" | "inviteGameToLeaderboard" | "acceptInviteGameToLeaderboard" | "createPost";
|
|
251
153
|
|
|
252
154
|
type AttributeTypeCommon = 'handedness' | 'gender' | 'dob';
|
|
253
155
|
|
|
@@ -288,4 +190,4 @@ declare const getProfileAttributeLabel: ({ profileType, categoryType, interestTy
|
|
|
288
190
|
attributeType: AttributeType;
|
|
289
191
|
}) => any;
|
|
290
192
|
|
|
291
|
-
export { ATTRIBUTE_LABEL, ATTRIBUTE_LABEL_COLLECTION, ATTRIBUTE_LABEL_COLLECTION_PETS, ATTRIBUTE_LABEL_COMMON, ATTRIBUTE_LABEL_UOI, ATTRIBUTE_LABEL_UOI_SPORTS, ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL, ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS, type AccountStatus, AdminAccountStatus, AttendanceStatus, type AttributeType, type AttributeTypeCollection, type AttributeTypeCollectionPets, type AttributeTypeCommon, type AttributeTypeUoi, type AttributeTypeUoiSports, type AttributeTypeUoiSportsBasketball, type AttributeTypeUoiSportsTennis, AvatarType, BasketballPosition, type BroadcastType, type BuddyingStatus, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionMetaStatus, type CollectionType, type DuelGameResultType, FollowingStatus, type GameType, type Gender, type Handedness, type InterestType, type LeaderboardType, type LengthUnit, type LocationType, MarketMetaStatus, type MarketType, MemberingStatus, type MusicInterestType, NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, PageType, type PetsInterestType, type PlayerType, PostPrivacy, PostType, ProfileJoiningType, ProfilePermission, ProfilePrivacy, ProfileStatus, type ProfileType, SocialMediaType, type SportsInterestType, SubjectType, TennisBackhand, TennisLevel, UserPronoun, type WeightUnit,
|
|
193
|
+
export { ATTRIBUTE_LABEL, ATTRIBUTE_LABEL_COLLECTION, ATTRIBUTE_LABEL_COLLECTION_PETS, ATTRIBUTE_LABEL_COMMON, ATTRIBUTE_LABEL_UOI, ATTRIBUTE_LABEL_UOI_SPORTS, ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL, ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS, type AccountStatus, AdminAccountStatus, AttendanceStatus, type AttributeType, type AttributeTypeCollection, type AttributeTypeCollectionPets, type AttributeTypeCommon, type AttributeTypeUoi, type AttributeTypeUoiSports, type AttributeTypeUoiSportsBasketball, type AttributeTypeUoiSportsTennis, AvatarType, BasketballPosition, type BroadcastType, type BuddyingStatus, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionMetaStatus, type CollectionType, type DuelGameResultType, FollowingStatus, type GameType, type Gender, type Handedness, type InterestType, type LeaderboardType, type LengthUnit, type LocationType, type MarketMetaStatus, type MarketType, type MemberingStatus, type MusicInterestType, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type PostType, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, type SocialMediaType, type SportsInterestType, type SubjectType, type TennisBackhand, type TennisLevel, type UserPronoun, type WeightUnit, getPIDPrefixByProfileType, getProfileAttributeLabel, getProfileTypeByPID, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/dist/index.js
CHANGED
|
@@ -34,25 +34,8 @@ __export(index_exports, {
|
|
|
34
34
|
BasketballPosition: () => BasketballPosition,
|
|
35
35
|
ChallengeStatus: () => ChallengeStatus,
|
|
36
36
|
FollowingStatus: () => FollowingStatus,
|
|
37
|
-
MarketMetaStatus: () => MarketMetaStatus,
|
|
38
|
-
MemberingStatus: () => MemberingStatus,
|
|
39
|
-
NotificationType: () => NotificationType,
|
|
40
37
|
PID_LENGTH: () => PID_LENGTH,
|
|
41
38
|
PID_PREFIX_LENGTH: () => PID_PREFIX_LENGTH,
|
|
42
|
-
PageType: () => PageType,
|
|
43
|
-
PostPrivacy: () => PostPrivacy,
|
|
44
|
-
PostType: () => PostType,
|
|
45
|
-
ProfileJoiningType: () => ProfileJoiningType,
|
|
46
|
-
ProfilePermission: () => ProfilePermission,
|
|
47
|
-
ProfilePrivacy: () => ProfilePrivacy,
|
|
48
|
-
ProfileStatus: () => ProfileStatus,
|
|
49
|
-
SocialMediaType: () => SocialMediaType,
|
|
50
|
-
SubjectType: () => SubjectType,
|
|
51
|
-
TennisBackhand: () => TennisBackhand,
|
|
52
|
-
TennisLevel: () => TennisLevel,
|
|
53
|
-
UserPronoun: () => UserPronoun,
|
|
54
|
-
getMemberingStatusName: () => getMemberingStatusName,
|
|
55
|
-
getNotificationTypeName: () => getNotificationTypeName,
|
|
56
39
|
getPIDPrefixByProfileType: () => getPIDPrefixByProfileType,
|
|
57
40
|
getProfileAttributeLabel: () => getProfileAttributeLabel,
|
|
58
41
|
getProfileTypeByPID: () => getProfileTypeByPID,
|
|
@@ -63,37 +46,7 @@ __export(index_exports, {
|
|
|
63
46
|
});
|
|
64
47
|
module.exports = __toCommonJS(index_exports);
|
|
65
48
|
|
|
66
|
-
// src/page/page.ts
|
|
67
|
-
var PageType = /* @__PURE__ */ ((PageType2) => {
|
|
68
|
-
PageType2[PageType2["None"] = 0] = "None";
|
|
69
|
-
PageType2[PageType2["Profile"] = 1] = "Profile";
|
|
70
|
-
PageType2[PageType2["Post"] = 2] = "Post";
|
|
71
|
-
PageType2[PageType2["Loi"] = 3] = "Loi";
|
|
72
|
-
PageType2[PageType2["Location"] = 4] = "Location";
|
|
73
|
-
return PageType2;
|
|
74
|
-
})(PageType || {});
|
|
75
|
-
|
|
76
49
|
// src/page/profile/profile.ts
|
|
77
|
-
var ProfilePrivacy = /* @__PURE__ */ ((ProfilePrivacy2) => {
|
|
78
|
-
ProfilePrivacy2[ProfilePrivacy2["Public"] = 0] = "Public";
|
|
79
|
-
ProfilePrivacy2[ProfilePrivacy2["Private"] = 1] = "Private";
|
|
80
|
-
ProfilePrivacy2[ProfilePrivacy2["Internal"] = 2] = "Internal";
|
|
81
|
-
return ProfilePrivacy2;
|
|
82
|
-
})(ProfilePrivacy || {});
|
|
83
|
-
var ProfilePermission = /* @__PURE__ */ ((ProfilePermission2) => {
|
|
84
|
-
ProfilePermission2[ProfilePermission2["None"] = 0] = "None";
|
|
85
|
-
ProfilePermission2[ProfilePermission2["Admin"] = 1] = "Admin";
|
|
86
|
-
ProfilePermission2[ProfilePermission2["Member"] = 2] = "Member";
|
|
87
|
-
ProfilePermission2[ProfilePermission2["Follower"] = 3] = "Follower";
|
|
88
|
-
ProfilePermission2[ProfilePermission2["Blocked"] = 4] = "Blocked";
|
|
89
|
-
return ProfilePermission2;
|
|
90
|
-
})(ProfilePermission || {});
|
|
91
|
-
var ProfileStatus = /* @__PURE__ */ ((ProfileStatus2) => {
|
|
92
|
-
ProfileStatus2[ProfileStatus2["None"] = 0] = "None";
|
|
93
|
-
ProfileStatus2[ProfileStatus2["Active"] = 1] = "Active";
|
|
94
|
-
ProfileStatus2[ProfileStatus2["Inactive"] = 2] = "Inactive";
|
|
95
|
-
return ProfileStatus2;
|
|
96
|
-
})(ProfileStatus || {});
|
|
97
50
|
var ChallengeStatus = /* @__PURE__ */ ((ChallengeStatus2) => {
|
|
98
51
|
ChallengeStatus2[ChallengeStatus2["None"] = 0] = "None";
|
|
99
52
|
ChallengeStatus2[ChallengeStatus2["Open"] = 1] = "Open";
|
|
@@ -101,22 +54,6 @@ var ChallengeStatus = /* @__PURE__ */ ((ChallengeStatus2) => {
|
|
|
101
54
|
return ChallengeStatus2;
|
|
102
55
|
})(ChallengeStatus || {});
|
|
103
56
|
|
|
104
|
-
// src/page/profile/market/status.ts
|
|
105
|
-
var MarketMetaStatus = /* @__PURE__ */ ((MarketMetaStatus2) => {
|
|
106
|
-
MarketMetaStatus2[MarketMetaStatus2["None"] = 0] = "None";
|
|
107
|
-
MarketMetaStatus2[MarketMetaStatus2["Active"] = 1] = "Active";
|
|
108
|
-
MarketMetaStatus2[MarketMetaStatus2["Inactive"] = 2] = "Inactive";
|
|
109
|
-
return MarketMetaStatus2;
|
|
110
|
-
})(MarketMetaStatus || {});
|
|
111
|
-
|
|
112
|
-
// src/page/profile/user.ts
|
|
113
|
-
var UserPronoun = /* @__PURE__ */ ((UserPronoun2) => {
|
|
114
|
-
UserPronoun2[UserPronoun2["None"] = 0] = "None";
|
|
115
|
-
UserPronoun2[UserPronoun2["He"] = 1] = "He";
|
|
116
|
-
UserPronoun2[UserPronoun2["She"] = 2] = "She";
|
|
117
|
-
return UserPronoun2;
|
|
118
|
-
})(UserPronoun || {});
|
|
119
|
-
|
|
120
57
|
// src/page/profile/event.ts
|
|
121
58
|
var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
|
|
122
59
|
AttendanceStatus2[AttendanceStatus2["None"] = 0] = "None";
|
|
@@ -137,29 +74,6 @@ var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
|
|
|
137
74
|
return AvatarType2;
|
|
138
75
|
})(AvatarType || {});
|
|
139
76
|
|
|
140
|
-
// src/page/profile/joining.ts
|
|
141
|
-
var ProfileJoiningType = /* @__PURE__ */ ((ProfileJoiningType2) => {
|
|
142
|
-
ProfileJoiningType2[ProfileJoiningType2["GameToLeaderboard"] = 0] = "GameToLeaderboard";
|
|
143
|
-
ProfileJoiningType2[ProfileJoiningType2["PlayerToGame"] = 1] = "PlayerToGame";
|
|
144
|
-
ProfileJoiningType2[ProfileJoiningType2["MemberToCircle"] = 2] = "MemberToCircle";
|
|
145
|
-
return ProfileJoiningType2;
|
|
146
|
-
})(ProfileJoiningType || {});
|
|
147
|
-
|
|
148
|
-
// src/page/post.ts
|
|
149
|
-
var PostType = /* @__PURE__ */ ((PostType2) => {
|
|
150
|
-
PostType2[PostType2["None"] = 0] = "None";
|
|
151
|
-
PostType2[PostType2["Text"] = 1] = "Text";
|
|
152
|
-
PostType2[PostType2["Image"] = 2] = "Image";
|
|
153
|
-
PostType2[PostType2["Poll"] = 3] = "Poll";
|
|
154
|
-
return PostType2;
|
|
155
|
-
})(PostType || {});
|
|
156
|
-
var PostPrivacy = /* @__PURE__ */ ((PostPrivacy2) => {
|
|
157
|
-
PostPrivacy2[PostPrivacy2["Public"] = 0] = "Public";
|
|
158
|
-
PostPrivacy2[PostPrivacy2["Private"] = 1] = "Private";
|
|
159
|
-
PostPrivacy2[PostPrivacy2["Internal"] = 2] = "Internal";
|
|
160
|
-
return PostPrivacy2;
|
|
161
|
-
})(PostPrivacy || {});
|
|
162
|
-
|
|
163
77
|
// src/page/pid.ts
|
|
164
78
|
var PID_LENGTH = 9;
|
|
165
79
|
var PID_PREFIX_LENGTH = 3;
|
|
@@ -245,46 +159,6 @@ var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
|
|
|
245
159
|
})(AdminAccountStatus || {});
|
|
246
160
|
|
|
247
161
|
// src/connection.ts
|
|
248
|
-
var MemberingStatus = /* @__PURE__ */ ((MemberingStatus2) => {
|
|
249
|
-
MemberingStatus2[MemberingStatus2["None"] = 0] = "None";
|
|
250
|
-
MemberingStatus2[MemberingStatus2["Admined"] = 1] = "Admined";
|
|
251
|
-
MemberingStatus2[MemberingStatus2["Membered"] = 2] = "Membered";
|
|
252
|
-
MemberingStatus2[MemberingStatus2["PendingApply"] = 3] = "PendingApply";
|
|
253
|
-
MemberingStatus2[MemberingStatus2["IgnoredApply"] = 4] = "IgnoredApply";
|
|
254
|
-
MemberingStatus2[MemberingStatus2["WithdrawnApply"] = 5] = "WithdrawnApply";
|
|
255
|
-
MemberingStatus2[MemberingStatus2["MemberLeft"] = 6] = "MemberLeft";
|
|
256
|
-
MemberingStatus2[MemberingStatus2["PendingInvite"] = 7] = "PendingInvite";
|
|
257
|
-
MemberingStatus2[MemberingStatus2["IgnoredInvite"] = 8] = "IgnoredInvite";
|
|
258
|
-
MemberingStatus2[MemberingStatus2["WithdrawnInvite"] = 9] = "WithdrawnInvite";
|
|
259
|
-
MemberingStatus2[MemberingStatus2["MemberRemoved"] = 10] = "MemberRemoved";
|
|
260
|
-
return MemberingStatus2;
|
|
261
|
-
})(MemberingStatus || {});
|
|
262
|
-
var getMemberingStatusName = (status) => {
|
|
263
|
-
switch (status) {
|
|
264
|
-
case 1 /* Admined */:
|
|
265
|
-
return "Admined";
|
|
266
|
-
case 2 /* Membered */:
|
|
267
|
-
return "Membered";
|
|
268
|
-
case 3 /* PendingApply */:
|
|
269
|
-
return "Pending Apply";
|
|
270
|
-
case 4 /* IgnoredApply */:
|
|
271
|
-
return "Ignored Apply";
|
|
272
|
-
case 5 /* WithdrawnApply */:
|
|
273
|
-
return "Withdrawn Apply";
|
|
274
|
-
case 6 /* MemberLeft */:
|
|
275
|
-
return "Member Left";
|
|
276
|
-
case 7 /* PendingInvite */:
|
|
277
|
-
return "Pending Invite";
|
|
278
|
-
case 8 /* IgnoredInvite */:
|
|
279
|
-
return "Ignored Invite";
|
|
280
|
-
case 9 /* WithdrawnInvite */:
|
|
281
|
-
return "Withdrawn Invite";
|
|
282
|
-
case 10 /* MemberRemoved */:
|
|
283
|
-
return "Member Removed";
|
|
284
|
-
default:
|
|
285
|
-
return "None";
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
162
|
var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
|
|
289
163
|
FollowingStatus2[FollowingStatus2["None"] = 0] = "None";
|
|
290
164
|
FollowingStatus2[FollowingStatus2["Pending"] = 1] = "Pending";
|
|
@@ -295,28 +169,6 @@ var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
|
|
|
295
169
|
return FollowingStatus2;
|
|
296
170
|
})(FollowingStatus || {});
|
|
297
171
|
|
|
298
|
-
// src/attribute/uoi/sports/tennis.ts
|
|
299
|
-
var TennisBackhand = /* @__PURE__ */ ((TennisBackhand2) => {
|
|
300
|
-
TennisBackhand2[TennisBackhand2["None"] = 0] = "None";
|
|
301
|
-
TennisBackhand2[TennisBackhand2["Single"] = 1] = "Single";
|
|
302
|
-
TennisBackhand2[TennisBackhand2["Double"] = 2] = "Double";
|
|
303
|
-
TennisBackhand2[TennisBackhand2["Both"] = 3] = "Both";
|
|
304
|
-
return TennisBackhand2;
|
|
305
|
-
})(TennisBackhand || {});
|
|
306
|
-
var TennisLevel = /* @__PURE__ */ ((TennisLevel2) => {
|
|
307
|
-
TennisLevel2[TennisLevel2["None"] = 0] = "None";
|
|
308
|
-
TennisLevel2[TennisLevel2["TwoBelow"] = 1] = "TwoBelow";
|
|
309
|
-
TennisLevel2[TennisLevel2["TwoFive"] = 2] = "TwoFive";
|
|
310
|
-
TennisLevel2[TennisLevel2["Three"] = 3] = "Three";
|
|
311
|
-
TennisLevel2[TennisLevel2["ThreeFive"] = 4] = "ThreeFive";
|
|
312
|
-
TennisLevel2[TennisLevel2["Four"] = 5] = "Four";
|
|
313
|
-
TennisLevel2[TennisLevel2["FourFive"] = 6] = "FourFive";
|
|
314
|
-
TennisLevel2[TennisLevel2["Five"] = 7] = "Five";
|
|
315
|
-
TennisLevel2[TennisLevel2["FiveFive"] = 8] = "FiveFive";
|
|
316
|
-
TennisLevel2[TennisLevel2["SixAbove"] = 9] = "SixAbove";
|
|
317
|
-
return TennisLevel2;
|
|
318
|
-
})(TennisLevel || {});
|
|
319
|
-
|
|
320
172
|
// src/attribute/uoi/sports/basketball.ts
|
|
321
173
|
var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
|
|
322
174
|
BasketballPosition2[BasketballPosition2["None"] = 0] = "None";
|
|
@@ -328,81 +180,6 @@ var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
|
|
|
328
180
|
return BasketballPosition2;
|
|
329
181
|
})(BasketballPosition || {});
|
|
330
182
|
|
|
331
|
-
// src/comment.ts
|
|
332
|
-
var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
|
|
333
|
-
SubjectType2[SubjectType2["None"] = 0] = "None";
|
|
334
|
-
SubjectType2[SubjectType2["Post"] = 1] = "Post";
|
|
335
|
-
SubjectType2[SubjectType2["Rating"] = 2] = "Rating";
|
|
336
|
-
SubjectType2[SubjectType2["Comment"] = 3] = "Comment";
|
|
337
|
-
SubjectType2[SubjectType2["Reply"] = 4] = "Reply";
|
|
338
|
-
return SubjectType2;
|
|
339
|
-
})(SubjectType || {});
|
|
340
|
-
|
|
341
|
-
// src/common/socialMedia.ts
|
|
342
|
-
var SocialMediaType = /* @__PURE__ */ ((SocialMediaType2) => {
|
|
343
|
-
SocialMediaType2[SocialMediaType2["None"] = 0] = "None";
|
|
344
|
-
SocialMediaType2[SocialMediaType2["Facebook"] = 1] = "Facebook";
|
|
345
|
-
SocialMediaType2[SocialMediaType2["LinkedIn"] = 2] = "LinkedIn";
|
|
346
|
-
SocialMediaType2[SocialMediaType2["Instagram"] = 3] = "Instagram";
|
|
347
|
-
return SocialMediaType2;
|
|
348
|
-
})(SocialMediaType || {});
|
|
349
|
-
|
|
350
|
-
// src/notification.ts
|
|
351
|
-
var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
352
|
-
NotificationType2[NotificationType2["AddBuddy"] = 0] = "AddBuddy";
|
|
353
|
-
NotificationType2[NotificationType2["AcceptBuddy"] = 1] = "AcceptBuddy";
|
|
354
|
-
NotificationType2[NotificationType2["UoiJoinCircle"] = 2] = "UoiJoinCircle";
|
|
355
|
-
NotificationType2[NotificationType2["AcceptUoiJoinCircle"] = 3] = "AcceptUoiJoinCircle";
|
|
356
|
-
NotificationType2[NotificationType2["InviteUoiToCircle"] = 4] = "InviteUoiToCircle";
|
|
357
|
-
NotificationType2[NotificationType2["AcceptInviteUoiToCircle"] = 5] = "AcceptInviteUoiToCircle";
|
|
358
|
-
NotificationType2[NotificationType2["TeamJoinCircle"] = 6] = "TeamJoinCircle";
|
|
359
|
-
NotificationType2[NotificationType2["AcceptTeamJoinCircle"] = 7] = "AcceptTeamJoinCircle";
|
|
360
|
-
NotificationType2[NotificationType2["InviteTeamToCircle"] = 8] = "InviteTeamToCircle";
|
|
361
|
-
NotificationType2[NotificationType2["AcceptInviteTeamToCircle"] = 9] = "AcceptInviteTeamToCircle";
|
|
362
|
-
NotificationType2[NotificationType2["AddGameToLeaderboard"] = 10] = "AddGameToLeaderboard";
|
|
363
|
-
NotificationType2[NotificationType2["AcceptAddGameToLeaderboard"] = 11] = "AcceptAddGameToLeaderboard";
|
|
364
|
-
NotificationType2[NotificationType2["InviteGameToLeaderboard"] = 12] = "InviteGameToLeaderboard";
|
|
365
|
-
NotificationType2[NotificationType2["AcceptInviteGameToLeaderboard"] = 13] = "AcceptInviteGameToLeaderboard";
|
|
366
|
-
NotificationType2[NotificationType2["CreatePost"] = 14] = "CreatePost";
|
|
367
|
-
return NotificationType2;
|
|
368
|
-
})(NotificationType || {});
|
|
369
|
-
var getNotificationTypeName = (type) => {
|
|
370
|
-
switch (type) {
|
|
371
|
-
case 0 /* AddBuddy */:
|
|
372
|
-
return "AddBuddy";
|
|
373
|
-
case 1 /* AcceptBuddy */:
|
|
374
|
-
return "AcceptBuddy";
|
|
375
|
-
case 2 /* UoiJoinCircle */:
|
|
376
|
-
return "UoiJoinCircle";
|
|
377
|
-
case 3 /* AcceptUoiJoinCircle */:
|
|
378
|
-
return "AcceptUoiJoinCircle";
|
|
379
|
-
case 4 /* InviteUoiToCircle */:
|
|
380
|
-
return "InviteUoiToCircle";
|
|
381
|
-
case 5 /* AcceptInviteUoiToCircle */:
|
|
382
|
-
return "AcceptInviteUoiToCircle";
|
|
383
|
-
case 6 /* TeamJoinCircle */:
|
|
384
|
-
return "TeamJoinCircle";
|
|
385
|
-
case 7 /* AcceptTeamJoinCircle */:
|
|
386
|
-
return "AcceptTeamJoinCircle";
|
|
387
|
-
case 8 /* InviteTeamToCircle */:
|
|
388
|
-
return "InviteTeamToCircle";
|
|
389
|
-
case 9 /* AcceptInviteTeamToCircle */:
|
|
390
|
-
return "AcceptInviteTeamToCircle";
|
|
391
|
-
case 10 /* AddGameToLeaderboard */:
|
|
392
|
-
return "AddGameToLeaderboard";
|
|
393
|
-
case 11 /* AcceptAddGameToLeaderboard */:
|
|
394
|
-
return "AcceptAddGameToLeaderboard";
|
|
395
|
-
case 12 /* InviteGameToLeaderboard */:
|
|
396
|
-
return "InviteGameToLeaderboard";
|
|
397
|
-
case 13 /* AcceptInviteGameToLeaderboard */:
|
|
398
|
-
return "AcceptInviteGameToLeaderboard";
|
|
399
|
-
case 14 /* CreatePost */:
|
|
400
|
-
return "CreatePost";
|
|
401
|
-
default:
|
|
402
|
-
return "Unknown";
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
|
-
|
|
406
183
|
// src/meta/common/label.ts
|
|
407
184
|
var ATTRIBUTE_LABEL_COMMON = {
|
|
408
185
|
handedness: "Handedness",
|
|
@@ -489,25 +266,8 @@ var getProfileAttributeLabel = ({
|
|
|
489
266
|
BasketballPosition,
|
|
490
267
|
ChallengeStatus,
|
|
491
268
|
FollowingStatus,
|
|
492
|
-
MarketMetaStatus,
|
|
493
|
-
MemberingStatus,
|
|
494
|
-
NotificationType,
|
|
495
269
|
PID_LENGTH,
|
|
496
270
|
PID_PREFIX_LENGTH,
|
|
497
|
-
PageType,
|
|
498
|
-
PostPrivacy,
|
|
499
|
-
PostType,
|
|
500
|
-
ProfileJoiningType,
|
|
501
|
-
ProfilePermission,
|
|
502
|
-
ProfilePrivacy,
|
|
503
|
-
ProfileStatus,
|
|
504
|
-
SocialMediaType,
|
|
505
|
-
SubjectType,
|
|
506
|
-
TennisBackhand,
|
|
507
|
-
TennisLevel,
|
|
508
|
-
UserPronoun,
|
|
509
|
-
getMemberingStatusName,
|
|
510
|
-
getNotificationTypeName,
|
|
511
271
|
getPIDPrefixByProfileType,
|
|
512
272
|
getProfileAttributeLabel,
|
|
513
273
|
getProfileTypeByPID,
|
package/dist/index.mjs
CHANGED
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
// src/page/page.ts
|
|
2
|
-
var PageType = /* @__PURE__ */ ((PageType2) => {
|
|
3
|
-
PageType2[PageType2["None"] = 0] = "None";
|
|
4
|
-
PageType2[PageType2["Profile"] = 1] = "Profile";
|
|
5
|
-
PageType2[PageType2["Post"] = 2] = "Post";
|
|
6
|
-
PageType2[PageType2["Loi"] = 3] = "Loi";
|
|
7
|
-
PageType2[PageType2["Location"] = 4] = "Location";
|
|
8
|
-
return PageType2;
|
|
9
|
-
})(PageType || {});
|
|
10
|
-
|
|
11
1
|
// src/page/profile/profile.ts
|
|
12
|
-
var ProfilePrivacy = /* @__PURE__ */ ((ProfilePrivacy2) => {
|
|
13
|
-
ProfilePrivacy2[ProfilePrivacy2["Public"] = 0] = "Public";
|
|
14
|
-
ProfilePrivacy2[ProfilePrivacy2["Private"] = 1] = "Private";
|
|
15
|
-
ProfilePrivacy2[ProfilePrivacy2["Internal"] = 2] = "Internal";
|
|
16
|
-
return ProfilePrivacy2;
|
|
17
|
-
})(ProfilePrivacy || {});
|
|
18
|
-
var ProfilePermission = /* @__PURE__ */ ((ProfilePermission2) => {
|
|
19
|
-
ProfilePermission2[ProfilePermission2["None"] = 0] = "None";
|
|
20
|
-
ProfilePermission2[ProfilePermission2["Admin"] = 1] = "Admin";
|
|
21
|
-
ProfilePermission2[ProfilePermission2["Member"] = 2] = "Member";
|
|
22
|
-
ProfilePermission2[ProfilePermission2["Follower"] = 3] = "Follower";
|
|
23
|
-
ProfilePermission2[ProfilePermission2["Blocked"] = 4] = "Blocked";
|
|
24
|
-
return ProfilePermission2;
|
|
25
|
-
})(ProfilePermission || {});
|
|
26
|
-
var ProfileStatus = /* @__PURE__ */ ((ProfileStatus2) => {
|
|
27
|
-
ProfileStatus2[ProfileStatus2["None"] = 0] = "None";
|
|
28
|
-
ProfileStatus2[ProfileStatus2["Active"] = 1] = "Active";
|
|
29
|
-
ProfileStatus2[ProfileStatus2["Inactive"] = 2] = "Inactive";
|
|
30
|
-
return ProfileStatus2;
|
|
31
|
-
})(ProfileStatus || {});
|
|
32
2
|
var ChallengeStatus = /* @__PURE__ */ ((ChallengeStatus2) => {
|
|
33
3
|
ChallengeStatus2[ChallengeStatus2["None"] = 0] = "None";
|
|
34
4
|
ChallengeStatus2[ChallengeStatus2["Open"] = 1] = "Open";
|
|
@@ -36,22 +6,6 @@ var ChallengeStatus = /* @__PURE__ */ ((ChallengeStatus2) => {
|
|
|
36
6
|
return ChallengeStatus2;
|
|
37
7
|
})(ChallengeStatus || {});
|
|
38
8
|
|
|
39
|
-
// src/page/profile/market/status.ts
|
|
40
|
-
var MarketMetaStatus = /* @__PURE__ */ ((MarketMetaStatus2) => {
|
|
41
|
-
MarketMetaStatus2[MarketMetaStatus2["None"] = 0] = "None";
|
|
42
|
-
MarketMetaStatus2[MarketMetaStatus2["Active"] = 1] = "Active";
|
|
43
|
-
MarketMetaStatus2[MarketMetaStatus2["Inactive"] = 2] = "Inactive";
|
|
44
|
-
return MarketMetaStatus2;
|
|
45
|
-
})(MarketMetaStatus || {});
|
|
46
|
-
|
|
47
|
-
// src/page/profile/user.ts
|
|
48
|
-
var UserPronoun = /* @__PURE__ */ ((UserPronoun2) => {
|
|
49
|
-
UserPronoun2[UserPronoun2["None"] = 0] = "None";
|
|
50
|
-
UserPronoun2[UserPronoun2["He"] = 1] = "He";
|
|
51
|
-
UserPronoun2[UserPronoun2["She"] = 2] = "She";
|
|
52
|
-
return UserPronoun2;
|
|
53
|
-
})(UserPronoun || {});
|
|
54
|
-
|
|
55
9
|
// src/page/profile/event.ts
|
|
56
10
|
var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
|
|
57
11
|
AttendanceStatus2[AttendanceStatus2["None"] = 0] = "None";
|
|
@@ -72,29 +26,6 @@ var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
|
|
|
72
26
|
return AvatarType2;
|
|
73
27
|
})(AvatarType || {});
|
|
74
28
|
|
|
75
|
-
// src/page/profile/joining.ts
|
|
76
|
-
var ProfileJoiningType = /* @__PURE__ */ ((ProfileJoiningType2) => {
|
|
77
|
-
ProfileJoiningType2[ProfileJoiningType2["GameToLeaderboard"] = 0] = "GameToLeaderboard";
|
|
78
|
-
ProfileJoiningType2[ProfileJoiningType2["PlayerToGame"] = 1] = "PlayerToGame";
|
|
79
|
-
ProfileJoiningType2[ProfileJoiningType2["MemberToCircle"] = 2] = "MemberToCircle";
|
|
80
|
-
return ProfileJoiningType2;
|
|
81
|
-
})(ProfileJoiningType || {});
|
|
82
|
-
|
|
83
|
-
// src/page/post.ts
|
|
84
|
-
var PostType = /* @__PURE__ */ ((PostType2) => {
|
|
85
|
-
PostType2[PostType2["None"] = 0] = "None";
|
|
86
|
-
PostType2[PostType2["Text"] = 1] = "Text";
|
|
87
|
-
PostType2[PostType2["Image"] = 2] = "Image";
|
|
88
|
-
PostType2[PostType2["Poll"] = 3] = "Poll";
|
|
89
|
-
return PostType2;
|
|
90
|
-
})(PostType || {});
|
|
91
|
-
var PostPrivacy = /* @__PURE__ */ ((PostPrivacy2) => {
|
|
92
|
-
PostPrivacy2[PostPrivacy2["Public"] = 0] = "Public";
|
|
93
|
-
PostPrivacy2[PostPrivacy2["Private"] = 1] = "Private";
|
|
94
|
-
PostPrivacy2[PostPrivacy2["Internal"] = 2] = "Internal";
|
|
95
|
-
return PostPrivacy2;
|
|
96
|
-
})(PostPrivacy || {});
|
|
97
|
-
|
|
98
29
|
// src/page/pid.ts
|
|
99
30
|
var PID_LENGTH = 9;
|
|
100
31
|
var PID_PREFIX_LENGTH = 3;
|
|
@@ -180,46 +111,6 @@ var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
|
|
|
180
111
|
})(AdminAccountStatus || {});
|
|
181
112
|
|
|
182
113
|
// src/connection.ts
|
|
183
|
-
var MemberingStatus = /* @__PURE__ */ ((MemberingStatus2) => {
|
|
184
|
-
MemberingStatus2[MemberingStatus2["None"] = 0] = "None";
|
|
185
|
-
MemberingStatus2[MemberingStatus2["Admined"] = 1] = "Admined";
|
|
186
|
-
MemberingStatus2[MemberingStatus2["Membered"] = 2] = "Membered";
|
|
187
|
-
MemberingStatus2[MemberingStatus2["PendingApply"] = 3] = "PendingApply";
|
|
188
|
-
MemberingStatus2[MemberingStatus2["IgnoredApply"] = 4] = "IgnoredApply";
|
|
189
|
-
MemberingStatus2[MemberingStatus2["WithdrawnApply"] = 5] = "WithdrawnApply";
|
|
190
|
-
MemberingStatus2[MemberingStatus2["MemberLeft"] = 6] = "MemberLeft";
|
|
191
|
-
MemberingStatus2[MemberingStatus2["PendingInvite"] = 7] = "PendingInvite";
|
|
192
|
-
MemberingStatus2[MemberingStatus2["IgnoredInvite"] = 8] = "IgnoredInvite";
|
|
193
|
-
MemberingStatus2[MemberingStatus2["WithdrawnInvite"] = 9] = "WithdrawnInvite";
|
|
194
|
-
MemberingStatus2[MemberingStatus2["MemberRemoved"] = 10] = "MemberRemoved";
|
|
195
|
-
return MemberingStatus2;
|
|
196
|
-
})(MemberingStatus || {});
|
|
197
|
-
var getMemberingStatusName = (status) => {
|
|
198
|
-
switch (status) {
|
|
199
|
-
case 1 /* Admined */:
|
|
200
|
-
return "Admined";
|
|
201
|
-
case 2 /* Membered */:
|
|
202
|
-
return "Membered";
|
|
203
|
-
case 3 /* PendingApply */:
|
|
204
|
-
return "Pending Apply";
|
|
205
|
-
case 4 /* IgnoredApply */:
|
|
206
|
-
return "Ignored Apply";
|
|
207
|
-
case 5 /* WithdrawnApply */:
|
|
208
|
-
return "Withdrawn Apply";
|
|
209
|
-
case 6 /* MemberLeft */:
|
|
210
|
-
return "Member Left";
|
|
211
|
-
case 7 /* PendingInvite */:
|
|
212
|
-
return "Pending Invite";
|
|
213
|
-
case 8 /* IgnoredInvite */:
|
|
214
|
-
return "Ignored Invite";
|
|
215
|
-
case 9 /* WithdrawnInvite */:
|
|
216
|
-
return "Withdrawn Invite";
|
|
217
|
-
case 10 /* MemberRemoved */:
|
|
218
|
-
return "Member Removed";
|
|
219
|
-
default:
|
|
220
|
-
return "None";
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
114
|
var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
|
|
224
115
|
FollowingStatus2[FollowingStatus2["None"] = 0] = "None";
|
|
225
116
|
FollowingStatus2[FollowingStatus2["Pending"] = 1] = "Pending";
|
|
@@ -230,28 +121,6 @@ var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
|
|
|
230
121
|
return FollowingStatus2;
|
|
231
122
|
})(FollowingStatus || {});
|
|
232
123
|
|
|
233
|
-
// src/attribute/uoi/sports/tennis.ts
|
|
234
|
-
var TennisBackhand = /* @__PURE__ */ ((TennisBackhand2) => {
|
|
235
|
-
TennisBackhand2[TennisBackhand2["None"] = 0] = "None";
|
|
236
|
-
TennisBackhand2[TennisBackhand2["Single"] = 1] = "Single";
|
|
237
|
-
TennisBackhand2[TennisBackhand2["Double"] = 2] = "Double";
|
|
238
|
-
TennisBackhand2[TennisBackhand2["Both"] = 3] = "Both";
|
|
239
|
-
return TennisBackhand2;
|
|
240
|
-
})(TennisBackhand || {});
|
|
241
|
-
var TennisLevel = /* @__PURE__ */ ((TennisLevel2) => {
|
|
242
|
-
TennisLevel2[TennisLevel2["None"] = 0] = "None";
|
|
243
|
-
TennisLevel2[TennisLevel2["TwoBelow"] = 1] = "TwoBelow";
|
|
244
|
-
TennisLevel2[TennisLevel2["TwoFive"] = 2] = "TwoFive";
|
|
245
|
-
TennisLevel2[TennisLevel2["Three"] = 3] = "Three";
|
|
246
|
-
TennisLevel2[TennisLevel2["ThreeFive"] = 4] = "ThreeFive";
|
|
247
|
-
TennisLevel2[TennisLevel2["Four"] = 5] = "Four";
|
|
248
|
-
TennisLevel2[TennisLevel2["FourFive"] = 6] = "FourFive";
|
|
249
|
-
TennisLevel2[TennisLevel2["Five"] = 7] = "Five";
|
|
250
|
-
TennisLevel2[TennisLevel2["FiveFive"] = 8] = "FiveFive";
|
|
251
|
-
TennisLevel2[TennisLevel2["SixAbove"] = 9] = "SixAbove";
|
|
252
|
-
return TennisLevel2;
|
|
253
|
-
})(TennisLevel || {});
|
|
254
|
-
|
|
255
124
|
// src/attribute/uoi/sports/basketball.ts
|
|
256
125
|
var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
|
|
257
126
|
BasketballPosition2[BasketballPosition2["None"] = 0] = "None";
|
|
@@ -263,81 +132,6 @@ var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
|
|
|
263
132
|
return BasketballPosition2;
|
|
264
133
|
})(BasketballPosition || {});
|
|
265
134
|
|
|
266
|
-
// src/comment.ts
|
|
267
|
-
var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
|
|
268
|
-
SubjectType2[SubjectType2["None"] = 0] = "None";
|
|
269
|
-
SubjectType2[SubjectType2["Post"] = 1] = "Post";
|
|
270
|
-
SubjectType2[SubjectType2["Rating"] = 2] = "Rating";
|
|
271
|
-
SubjectType2[SubjectType2["Comment"] = 3] = "Comment";
|
|
272
|
-
SubjectType2[SubjectType2["Reply"] = 4] = "Reply";
|
|
273
|
-
return SubjectType2;
|
|
274
|
-
})(SubjectType || {});
|
|
275
|
-
|
|
276
|
-
// src/common/socialMedia.ts
|
|
277
|
-
var SocialMediaType = /* @__PURE__ */ ((SocialMediaType2) => {
|
|
278
|
-
SocialMediaType2[SocialMediaType2["None"] = 0] = "None";
|
|
279
|
-
SocialMediaType2[SocialMediaType2["Facebook"] = 1] = "Facebook";
|
|
280
|
-
SocialMediaType2[SocialMediaType2["LinkedIn"] = 2] = "LinkedIn";
|
|
281
|
-
SocialMediaType2[SocialMediaType2["Instagram"] = 3] = "Instagram";
|
|
282
|
-
return SocialMediaType2;
|
|
283
|
-
})(SocialMediaType || {});
|
|
284
|
-
|
|
285
|
-
// src/notification.ts
|
|
286
|
-
var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
287
|
-
NotificationType2[NotificationType2["AddBuddy"] = 0] = "AddBuddy";
|
|
288
|
-
NotificationType2[NotificationType2["AcceptBuddy"] = 1] = "AcceptBuddy";
|
|
289
|
-
NotificationType2[NotificationType2["UoiJoinCircle"] = 2] = "UoiJoinCircle";
|
|
290
|
-
NotificationType2[NotificationType2["AcceptUoiJoinCircle"] = 3] = "AcceptUoiJoinCircle";
|
|
291
|
-
NotificationType2[NotificationType2["InviteUoiToCircle"] = 4] = "InviteUoiToCircle";
|
|
292
|
-
NotificationType2[NotificationType2["AcceptInviteUoiToCircle"] = 5] = "AcceptInviteUoiToCircle";
|
|
293
|
-
NotificationType2[NotificationType2["TeamJoinCircle"] = 6] = "TeamJoinCircle";
|
|
294
|
-
NotificationType2[NotificationType2["AcceptTeamJoinCircle"] = 7] = "AcceptTeamJoinCircle";
|
|
295
|
-
NotificationType2[NotificationType2["InviteTeamToCircle"] = 8] = "InviteTeamToCircle";
|
|
296
|
-
NotificationType2[NotificationType2["AcceptInviteTeamToCircle"] = 9] = "AcceptInviteTeamToCircle";
|
|
297
|
-
NotificationType2[NotificationType2["AddGameToLeaderboard"] = 10] = "AddGameToLeaderboard";
|
|
298
|
-
NotificationType2[NotificationType2["AcceptAddGameToLeaderboard"] = 11] = "AcceptAddGameToLeaderboard";
|
|
299
|
-
NotificationType2[NotificationType2["InviteGameToLeaderboard"] = 12] = "InviteGameToLeaderboard";
|
|
300
|
-
NotificationType2[NotificationType2["AcceptInviteGameToLeaderboard"] = 13] = "AcceptInviteGameToLeaderboard";
|
|
301
|
-
NotificationType2[NotificationType2["CreatePost"] = 14] = "CreatePost";
|
|
302
|
-
return NotificationType2;
|
|
303
|
-
})(NotificationType || {});
|
|
304
|
-
var getNotificationTypeName = (type) => {
|
|
305
|
-
switch (type) {
|
|
306
|
-
case 0 /* AddBuddy */:
|
|
307
|
-
return "AddBuddy";
|
|
308
|
-
case 1 /* AcceptBuddy */:
|
|
309
|
-
return "AcceptBuddy";
|
|
310
|
-
case 2 /* UoiJoinCircle */:
|
|
311
|
-
return "UoiJoinCircle";
|
|
312
|
-
case 3 /* AcceptUoiJoinCircle */:
|
|
313
|
-
return "AcceptUoiJoinCircle";
|
|
314
|
-
case 4 /* InviteUoiToCircle */:
|
|
315
|
-
return "InviteUoiToCircle";
|
|
316
|
-
case 5 /* AcceptInviteUoiToCircle */:
|
|
317
|
-
return "AcceptInviteUoiToCircle";
|
|
318
|
-
case 6 /* TeamJoinCircle */:
|
|
319
|
-
return "TeamJoinCircle";
|
|
320
|
-
case 7 /* AcceptTeamJoinCircle */:
|
|
321
|
-
return "AcceptTeamJoinCircle";
|
|
322
|
-
case 8 /* InviteTeamToCircle */:
|
|
323
|
-
return "InviteTeamToCircle";
|
|
324
|
-
case 9 /* AcceptInviteTeamToCircle */:
|
|
325
|
-
return "AcceptInviteTeamToCircle";
|
|
326
|
-
case 10 /* AddGameToLeaderboard */:
|
|
327
|
-
return "AddGameToLeaderboard";
|
|
328
|
-
case 11 /* AcceptAddGameToLeaderboard */:
|
|
329
|
-
return "AcceptAddGameToLeaderboard";
|
|
330
|
-
case 12 /* InviteGameToLeaderboard */:
|
|
331
|
-
return "InviteGameToLeaderboard";
|
|
332
|
-
case 13 /* AcceptInviteGameToLeaderboard */:
|
|
333
|
-
return "AcceptInviteGameToLeaderboard";
|
|
334
|
-
case 14 /* CreatePost */:
|
|
335
|
-
return "CreatePost";
|
|
336
|
-
default:
|
|
337
|
-
return "Unknown";
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
|
|
341
135
|
// src/meta/common/label.ts
|
|
342
136
|
var ATTRIBUTE_LABEL_COMMON = {
|
|
343
137
|
handedness: "Handedness",
|
|
@@ -423,25 +217,8 @@ export {
|
|
|
423
217
|
BasketballPosition,
|
|
424
218
|
ChallengeStatus,
|
|
425
219
|
FollowingStatus,
|
|
426
|
-
MarketMetaStatus,
|
|
427
|
-
MemberingStatus,
|
|
428
|
-
NotificationType,
|
|
429
220
|
PID_LENGTH,
|
|
430
221
|
PID_PREFIX_LENGTH,
|
|
431
|
-
PageType,
|
|
432
|
-
PostPrivacy,
|
|
433
|
-
PostType,
|
|
434
|
-
ProfileJoiningType,
|
|
435
|
-
ProfilePermission,
|
|
436
|
-
ProfilePrivacy,
|
|
437
|
-
ProfileStatus,
|
|
438
|
-
SocialMediaType,
|
|
439
|
-
SubjectType,
|
|
440
|
-
TennisBackhand,
|
|
441
|
-
TennisLevel,
|
|
442
|
-
UserPronoun,
|
|
443
|
-
getMemberingStatusName,
|
|
444
|
-
getNotificationTypeName,
|
|
445
222
|
getPIDPrefixByProfileType,
|
|
446
223
|
getProfileAttributeLabel,
|
|
447
224
|
getProfileTypeByPID,
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type TennisBackhand =
|
|
2
|
+
"none" |
|
|
3
|
+
"single" |
|
|
4
|
+
"double" |
|
|
5
|
+
"both";
|
|
4
6
|
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
7
|
+
export type TennisLevel =
|
|
8
|
+
"none" |
|
|
9
|
+
"twoBelow" |
|
|
10
|
+
"twoFive" |
|
|
11
|
+
"three" |
|
|
12
|
+
"threeFive" |
|
|
13
|
+
"four" |
|
|
14
|
+
"fourFive" |
|
|
15
|
+
"five" |
|
|
16
|
+
"fiveFive" |
|
|
17
|
+
"sixAbove";
|
package/src/comment.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
export type SubjectType =
|
|
2
|
+
"none" |
|
|
3
|
+
"post" |
|
|
4
|
+
"rating" |
|
|
5
|
+
"comment" |
|
|
6
|
+
"reply";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export type SocialMediaType =
|
|
2
|
+
"none" |
|
|
3
|
+
"facebook" |
|
|
4
|
+
"linkedIn" |
|
|
5
|
+
"instagram";
|
package/src/connection.ts
CHANGED
|
@@ -8,47 +8,18 @@ export type BuddyingStatus =
|
|
|
8
8
|
"pendingSent" |
|
|
9
9
|
"none";
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
MemberRemoved,
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const getMemberingStatusName = (status: MemberingStatus) => {
|
|
27
|
-
switch (status) {
|
|
28
|
-
case MemberingStatus.Admined:
|
|
29
|
-
return 'Admined';
|
|
30
|
-
case MemberingStatus.Membered:
|
|
31
|
-
return 'Membered';
|
|
32
|
-
case MemberingStatus.PendingApply:
|
|
33
|
-
return 'Pending Apply';
|
|
34
|
-
case MemberingStatus.IgnoredApply:
|
|
35
|
-
return 'Ignored Apply';
|
|
36
|
-
case MemberingStatus.WithdrawnApply:
|
|
37
|
-
return 'Withdrawn Apply';
|
|
38
|
-
case MemberingStatus.MemberLeft:
|
|
39
|
-
return 'Member Left';
|
|
40
|
-
case MemberingStatus.PendingInvite:
|
|
41
|
-
return 'Pending Invite';
|
|
42
|
-
case MemberingStatus.IgnoredInvite:
|
|
43
|
-
return 'Ignored Invite';
|
|
44
|
-
case MemberingStatus.WithdrawnInvite:
|
|
45
|
-
return 'Withdrawn Invite';
|
|
46
|
-
case MemberingStatus.MemberRemoved:
|
|
47
|
-
return 'Member Removed';
|
|
48
|
-
default:
|
|
49
|
-
return 'None';
|
|
50
|
-
}
|
|
51
|
-
}
|
|
11
|
+
export type MemberingStatus =
|
|
12
|
+
"none" |
|
|
13
|
+
"admined" |
|
|
14
|
+
"membered" |
|
|
15
|
+
"pendingApply" |
|
|
16
|
+
"ignoredApply" |
|
|
17
|
+
"withdrawnApply" |
|
|
18
|
+
"memberLeft" |
|
|
19
|
+
"pendingInvite" |
|
|
20
|
+
"ignoredInvite" |
|
|
21
|
+
"withdrawnInvite" |
|
|
22
|
+
"memberRemoved";
|
|
52
23
|
|
|
53
24
|
export enum FollowingStatus {
|
|
54
25
|
None,
|
package/src/notification.ts
CHANGED
|
@@ -1,54 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const getNotificationTypeName = (type: NotificationType) => {
|
|
20
|
-
switch (type) {
|
|
21
|
-
case NotificationType.AddBuddy:
|
|
22
|
-
return 'AddBuddy';
|
|
23
|
-
case NotificationType.AcceptBuddy:
|
|
24
|
-
return 'AcceptBuddy';
|
|
25
|
-
case NotificationType.UoiJoinCircle:
|
|
26
|
-
return 'UoiJoinCircle';
|
|
27
|
-
case NotificationType.AcceptUoiJoinCircle:
|
|
28
|
-
return 'AcceptUoiJoinCircle';
|
|
29
|
-
case NotificationType.InviteUoiToCircle:
|
|
30
|
-
return 'InviteUoiToCircle';
|
|
31
|
-
case NotificationType.AcceptInviteUoiToCircle:
|
|
32
|
-
return 'AcceptInviteUoiToCircle';
|
|
33
|
-
case NotificationType.TeamJoinCircle:
|
|
34
|
-
return 'TeamJoinCircle';
|
|
35
|
-
case NotificationType.AcceptTeamJoinCircle:
|
|
36
|
-
return 'AcceptTeamJoinCircle';
|
|
37
|
-
case NotificationType.InviteTeamToCircle:
|
|
38
|
-
return 'InviteTeamToCircle';
|
|
39
|
-
case NotificationType.AcceptInviteTeamToCircle:
|
|
40
|
-
return 'AcceptInviteTeamToCircle';
|
|
41
|
-
case NotificationType.AddGameToLeaderboard:
|
|
42
|
-
return 'AddGameToLeaderboard';
|
|
43
|
-
case NotificationType.AcceptAddGameToLeaderboard:
|
|
44
|
-
return 'AcceptAddGameToLeaderboard';
|
|
45
|
-
case NotificationType.InviteGameToLeaderboard:
|
|
46
|
-
return 'InviteGameToLeaderboard';
|
|
47
|
-
case NotificationType.AcceptInviteGameToLeaderboard:
|
|
48
|
-
return 'AcceptInviteGameToLeaderboard';
|
|
49
|
-
case NotificationType.CreatePost:
|
|
50
|
-
return 'CreatePost';
|
|
51
|
-
default:
|
|
52
|
-
return 'Unknown';
|
|
53
|
-
}
|
|
54
|
-
};
|
|
1
|
+
export type NotificationType =
|
|
2
|
+
"addBuddy" |
|
|
3
|
+
"acceptBuddy" |
|
|
4
|
+
"uoiJoinCircle" |
|
|
5
|
+
"acceptUoiJoinCircle" |
|
|
6
|
+
"inviteUoiToCircle" |
|
|
7
|
+
"acceptInviteUoiToCircle" |
|
|
8
|
+
"teamJoinCircle" |
|
|
9
|
+
"acceptTeamJoinCircle" |
|
|
10
|
+
"inviteTeamToCircle" |
|
|
11
|
+
"acceptInviteTeamToCircle" |
|
|
12
|
+
"addGameToLeaderboard" |
|
|
13
|
+
"acceptAddGameToLeaderboard" |
|
|
14
|
+
"inviteGameToLeaderboard" |
|
|
15
|
+
"acceptInviteGameToLeaderboard" |
|
|
16
|
+
"createPost"
|
package/src/page/page.ts
CHANGED
package/src/page/post.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type PostType =
|
|
2
|
+
"none" |
|
|
3
|
+
"text" |
|
|
4
|
+
"image" |
|
|
5
|
+
"poll";
|
|
4
6
|
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export type PostPrivacy =
|
|
8
|
+
"public" |
|
|
9
|
+
"private" |
|
|
10
|
+
"parent" |
|
|
11
|
+
"internal";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export type ProfileJoiningType =
|
|
2
|
+
"gameToLeaderboard" |
|
|
3
|
+
"playerToGame" |
|
|
4
|
+
"memberToCircle";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export type MarketMetaStatus =
|
|
2
|
+
"none" |
|
|
3
|
+
"active" |
|
|
4
|
+
"inactive";
|
|
@@ -13,17 +13,22 @@ export type ProfileType =
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
export type ProfilePrivacy =
|
|
17
|
+
"public" |
|
|
18
|
+
"private" |
|
|
19
|
+
"internal";
|
|
19
20
|
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
export type ProfilePermission =
|
|
22
|
+
"none" |
|
|
23
|
+
"admin" |
|
|
24
|
+
"connected" |
|
|
25
|
+
"following" |
|
|
26
|
+
"blocked";
|
|
23
27
|
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
export type ProfileStatus =
|
|
29
|
+
"none" |
|
|
30
|
+
"active" |
|
|
31
|
+
"inactive";
|
|
27
32
|
|
|
28
33
|
export enum ChallengeStatus {
|
|
29
34
|
None, Open, Closed,
|
package/src/page/profile/user.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type UserPronoun =
|
|
2
|
+
"none" |
|
|
3
|
+
"he" |
|
|
4
|
+
"she";
|