wenum 1.59.0 → 1.61.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 +11 -60
- package/dist/index.d.ts +11 -60
- package/dist/index.js +21 -158
- package/dist/index.mjs +21 -148
- package/package.json +2 -1
- package/src/attribute/common.ts +8 -6
- package/src/common/measure.ts +7 -7
- package/src/connection.ts +9 -30
- package/src/meta/label.ts +3 -3
- package/src/page/location.ts +5 -6
- package/src/page/pid.ts +18 -18
- package/src/page/profile/collection/status.ts +4 -5
- package/src/page/profile/game/duel.ts +4 -5
- package/src/page/profile/leaderboard.ts +6 -7
- package/src/page/profile/profile.ts +13 -36
package/dist/index.d.mts
CHANGED
|
@@ -6,19 +6,7 @@ declare enum PageType {
|
|
|
6
6
|
Location = 4
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
None = 0,
|
|
11
|
-
User = 1,
|
|
12
|
-
Uoi = 2,
|
|
13
|
-
Market = 3,
|
|
14
|
-
Arena = 4,
|
|
15
|
-
Collection = 5,
|
|
16
|
-
Event = 6,
|
|
17
|
-
Team = 7,
|
|
18
|
-
Leaderboard = 8,
|
|
19
|
-
Game = 9
|
|
20
|
-
}
|
|
21
|
-
declare const getProfileTypeName: (type: ProfileType) => string;
|
|
9
|
+
type ProfileType = "none" | "user" | "uoi" | "market" | "arena" | "collection" | "event" | "team" | "leaderboard" | "game";
|
|
22
10
|
declare enum ProfilePrivacy {
|
|
23
11
|
Public = 0,
|
|
24
12
|
Private = 1,
|
|
@@ -60,11 +48,7 @@ type MarketTypeSports = MarketTypeTennis;
|
|
|
60
48
|
|
|
61
49
|
type MarketType = MarketTypePets | MarketTypeSports;
|
|
62
50
|
|
|
63
|
-
|
|
64
|
-
None = 0,
|
|
65
|
-
Active = 1,
|
|
66
|
-
Inactive = 2
|
|
67
|
-
}
|
|
51
|
+
type CollectionMetaStatus = "inactive" | "active" | "none";
|
|
68
52
|
|
|
69
53
|
type CollectionTypeOther = 'zzzother';
|
|
70
54
|
|
|
@@ -95,11 +79,7 @@ declare enum AttendanceStatus {
|
|
|
95
79
|
Left = 5
|
|
96
80
|
}
|
|
97
81
|
|
|
98
|
-
|
|
99
|
-
Loss = -1,
|
|
100
|
-
Tie = 0,
|
|
101
|
-
Win = 1
|
|
102
|
-
}
|
|
82
|
+
type DuelGameResultType = "loss" | "tie" | "win";
|
|
103
83
|
|
|
104
84
|
type GameTypeOther = 'other';
|
|
105
85
|
|
|
@@ -115,13 +95,7 @@ type GameTypeSports = GameTypeBasketball | GameTypeRunning | GameTypeTennis | Ga
|
|
|
115
95
|
|
|
116
96
|
type GameType = GameTypeSports;
|
|
117
97
|
|
|
118
|
-
|
|
119
|
-
Score = 0,
|
|
120
|
-
Duel = 1,
|
|
121
|
-
Time = 2,
|
|
122
|
-
Distance = 3,
|
|
123
|
-
Weight = 4
|
|
124
|
-
}
|
|
98
|
+
type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
|
|
125
99
|
|
|
126
100
|
declare enum AvatarType {
|
|
127
101
|
None = 0,
|
|
@@ -150,12 +124,7 @@ declare enum PostPrivacy {
|
|
|
150
124
|
Internal = 2
|
|
151
125
|
}
|
|
152
126
|
|
|
153
|
-
|
|
154
|
-
None = 0,
|
|
155
|
-
Point = 1,
|
|
156
|
-
Street = 2,
|
|
157
|
-
City = 3
|
|
158
|
-
}
|
|
127
|
+
type LocationType = "none" | "point" | "street" | "city";
|
|
159
128
|
|
|
160
129
|
type PIDPrefixType = 'usr' | 'uoi' | 'tms' | 'arn' | 'evt' | 'col' | 'lbd' | 'gme' | 'mkt' | 'lcp' | 'lcs' | 'lcc' | 'lip' | 'lis' | 'lic' | 'tpo' | '';
|
|
161
130
|
declare const PID_LENGTH = 9;
|
|
@@ -176,17 +145,7 @@ declare enum AdminAccountStatus {
|
|
|
176
145
|
Inactive = 2
|
|
177
146
|
}
|
|
178
147
|
|
|
179
|
-
|
|
180
|
-
None = 0,
|
|
181
|
-
PendingSent = 1,
|
|
182
|
-
PendingReceived = 2,
|
|
183
|
-
Accepted = 3,
|
|
184
|
-
Ignored = 4,
|
|
185
|
-
Withdrawn = 5,
|
|
186
|
-
RemovedByRequester = 6,
|
|
187
|
-
RemovedByRequestee = 7
|
|
188
|
-
}
|
|
189
|
-
declare const getBuddyingStatusName: (status: BuddyingStatus) => "Pending Sent" | "Pending Received" | "Accepted" | "Ignored" | "Withdrawn" | "Removed By Requester" | "Removed By Requestee" | "None";
|
|
148
|
+
type BuddyingStatus = "removedByRequestee" | "removedByRequester" | "withdrawn" | "ignored" | "accepted" | "pendingReceived" | "pendingSent" | "none";
|
|
190
149
|
declare enum MemberingStatus {
|
|
191
150
|
None = 0,
|
|
192
151
|
Admined = 1,
|
|
@@ -200,7 +159,7 @@ declare enum MemberingStatus {
|
|
|
200
159
|
WithdrawnInvite = 9,
|
|
201
160
|
MemberRemoved = 10
|
|
202
161
|
}
|
|
203
|
-
declare const getMemberingStatusName: (status: MemberingStatus) => "
|
|
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";
|
|
204
163
|
declare enum FollowingStatus {
|
|
205
164
|
None = 0,
|
|
206
165
|
Pending = 1,
|
|
@@ -210,16 +169,8 @@ declare enum FollowingStatus {
|
|
|
210
169
|
Unfollowed = 5
|
|
211
170
|
}
|
|
212
171
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
Left = 1,
|
|
216
|
-
Right = 2
|
|
217
|
-
}
|
|
218
|
-
declare enum Gender {
|
|
219
|
-
None = 0,
|
|
220
|
-
Male = 1,
|
|
221
|
-
Female = 2
|
|
222
|
-
}
|
|
172
|
+
type Handedness = "right" | "left" | "none";
|
|
173
|
+
type Gender = "female" | "male" | "none";
|
|
223
174
|
|
|
224
175
|
declare enum TennisBackhand {
|
|
225
176
|
None = 0,
|
|
@@ -269,7 +220,7 @@ type SportsInterestType = 'tennis' | 'pickleball' | 'basketball' | 'golf' | 'hik
|
|
|
269
220
|
|
|
270
221
|
type InterestType = SportsInterestType | PetsInterestType | MusicInterestType | CardGamesInterestType | '';
|
|
271
222
|
|
|
272
|
-
type LengthUnit = "
|
|
223
|
+
type LengthUnit = "cm" | "m" | "inch" | "foot" | "km" | "mi" | "yd";
|
|
273
224
|
type WeightUnit = "kg" | "g" | "lb" | "oz";
|
|
274
225
|
|
|
275
226
|
declare enum SocialMediaType {
|
|
@@ -337,4 +288,4 @@ declare const getProfileAttributeLabel: ({ profileType, categoryType, interestTy
|
|
|
337
288
|
attributeType: AttributeType;
|
|
338
289
|
}) => any;
|
|
339
290
|
|
|
340
|
-
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, BuddyingStatus, type CardGamesInterestType, type CategoryType, ChallengeStatus, CollectionMetaStatus, type CollectionType, DuelGameResultType, FollowingStatus, type GameType, Gender, Handedness, type InterestType, LeaderboardType, type LengthUnit, 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, ProfileType, SocialMediaType, type SportsInterestType, SubjectType, TennisBackhand, TennisLevel, UserPronoun, type WeightUnit,
|
|
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, getMemberingStatusName, getNotificationTypeName, getPIDPrefixByProfileType, getProfileAttributeLabel, getProfileTypeByPID, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,19 +6,7 @@ declare enum PageType {
|
|
|
6
6
|
Location = 4
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
None = 0,
|
|
11
|
-
User = 1,
|
|
12
|
-
Uoi = 2,
|
|
13
|
-
Market = 3,
|
|
14
|
-
Arena = 4,
|
|
15
|
-
Collection = 5,
|
|
16
|
-
Event = 6,
|
|
17
|
-
Team = 7,
|
|
18
|
-
Leaderboard = 8,
|
|
19
|
-
Game = 9
|
|
20
|
-
}
|
|
21
|
-
declare const getProfileTypeName: (type: ProfileType) => string;
|
|
9
|
+
type ProfileType = "none" | "user" | "uoi" | "market" | "arena" | "collection" | "event" | "team" | "leaderboard" | "game";
|
|
22
10
|
declare enum ProfilePrivacy {
|
|
23
11
|
Public = 0,
|
|
24
12
|
Private = 1,
|
|
@@ -60,11 +48,7 @@ type MarketTypeSports = MarketTypeTennis;
|
|
|
60
48
|
|
|
61
49
|
type MarketType = MarketTypePets | MarketTypeSports;
|
|
62
50
|
|
|
63
|
-
|
|
64
|
-
None = 0,
|
|
65
|
-
Active = 1,
|
|
66
|
-
Inactive = 2
|
|
67
|
-
}
|
|
51
|
+
type CollectionMetaStatus = "inactive" | "active" | "none";
|
|
68
52
|
|
|
69
53
|
type CollectionTypeOther = 'zzzother';
|
|
70
54
|
|
|
@@ -95,11 +79,7 @@ declare enum AttendanceStatus {
|
|
|
95
79
|
Left = 5
|
|
96
80
|
}
|
|
97
81
|
|
|
98
|
-
|
|
99
|
-
Loss = -1,
|
|
100
|
-
Tie = 0,
|
|
101
|
-
Win = 1
|
|
102
|
-
}
|
|
82
|
+
type DuelGameResultType = "loss" | "tie" | "win";
|
|
103
83
|
|
|
104
84
|
type GameTypeOther = 'other';
|
|
105
85
|
|
|
@@ -115,13 +95,7 @@ type GameTypeSports = GameTypeBasketball | GameTypeRunning | GameTypeTennis | Ga
|
|
|
115
95
|
|
|
116
96
|
type GameType = GameTypeSports;
|
|
117
97
|
|
|
118
|
-
|
|
119
|
-
Score = 0,
|
|
120
|
-
Duel = 1,
|
|
121
|
-
Time = 2,
|
|
122
|
-
Distance = 3,
|
|
123
|
-
Weight = 4
|
|
124
|
-
}
|
|
98
|
+
type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
|
|
125
99
|
|
|
126
100
|
declare enum AvatarType {
|
|
127
101
|
None = 0,
|
|
@@ -150,12 +124,7 @@ declare enum PostPrivacy {
|
|
|
150
124
|
Internal = 2
|
|
151
125
|
}
|
|
152
126
|
|
|
153
|
-
|
|
154
|
-
None = 0,
|
|
155
|
-
Point = 1,
|
|
156
|
-
Street = 2,
|
|
157
|
-
City = 3
|
|
158
|
-
}
|
|
127
|
+
type LocationType = "none" | "point" | "street" | "city";
|
|
159
128
|
|
|
160
129
|
type PIDPrefixType = 'usr' | 'uoi' | 'tms' | 'arn' | 'evt' | 'col' | 'lbd' | 'gme' | 'mkt' | 'lcp' | 'lcs' | 'lcc' | 'lip' | 'lis' | 'lic' | 'tpo' | '';
|
|
161
130
|
declare const PID_LENGTH = 9;
|
|
@@ -176,17 +145,7 @@ declare enum AdminAccountStatus {
|
|
|
176
145
|
Inactive = 2
|
|
177
146
|
}
|
|
178
147
|
|
|
179
|
-
|
|
180
|
-
None = 0,
|
|
181
|
-
PendingSent = 1,
|
|
182
|
-
PendingReceived = 2,
|
|
183
|
-
Accepted = 3,
|
|
184
|
-
Ignored = 4,
|
|
185
|
-
Withdrawn = 5,
|
|
186
|
-
RemovedByRequester = 6,
|
|
187
|
-
RemovedByRequestee = 7
|
|
188
|
-
}
|
|
189
|
-
declare const getBuddyingStatusName: (status: BuddyingStatus) => "Pending Sent" | "Pending Received" | "Accepted" | "Ignored" | "Withdrawn" | "Removed By Requester" | "Removed By Requestee" | "None";
|
|
148
|
+
type BuddyingStatus = "removedByRequestee" | "removedByRequester" | "withdrawn" | "ignored" | "accepted" | "pendingReceived" | "pendingSent" | "none";
|
|
190
149
|
declare enum MemberingStatus {
|
|
191
150
|
None = 0,
|
|
192
151
|
Admined = 1,
|
|
@@ -200,7 +159,7 @@ declare enum MemberingStatus {
|
|
|
200
159
|
WithdrawnInvite = 9,
|
|
201
160
|
MemberRemoved = 10
|
|
202
161
|
}
|
|
203
|
-
declare const getMemberingStatusName: (status: MemberingStatus) => "
|
|
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";
|
|
204
163
|
declare enum FollowingStatus {
|
|
205
164
|
None = 0,
|
|
206
165
|
Pending = 1,
|
|
@@ -210,16 +169,8 @@ declare enum FollowingStatus {
|
|
|
210
169
|
Unfollowed = 5
|
|
211
170
|
}
|
|
212
171
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
Left = 1,
|
|
216
|
-
Right = 2
|
|
217
|
-
}
|
|
218
|
-
declare enum Gender {
|
|
219
|
-
None = 0,
|
|
220
|
-
Male = 1,
|
|
221
|
-
Female = 2
|
|
222
|
-
}
|
|
172
|
+
type Handedness = "right" | "left" | "none";
|
|
173
|
+
type Gender = "female" | "male" | "none";
|
|
223
174
|
|
|
224
175
|
declare enum TennisBackhand {
|
|
225
176
|
None = 0,
|
|
@@ -269,7 +220,7 @@ type SportsInterestType = 'tennis' | 'pickleball' | 'basketball' | 'golf' | 'hik
|
|
|
269
220
|
|
|
270
221
|
type InterestType = SportsInterestType | PetsInterestType | MusicInterestType | CardGamesInterestType | '';
|
|
271
222
|
|
|
272
|
-
type LengthUnit = "
|
|
223
|
+
type LengthUnit = "cm" | "m" | "inch" | "foot" | "km" | "mi" | "yd";
|
|
273
224
|
type WeightUnit = "kg" | "g" | "lb" | "oz";
|
|
274
225
|
|
|
275
226
|
declare enum SocialMediaType {
|
|
@@ -337,4 +288,4 @@ declare const getProfileAttributeLabel: ({ profileType, categoryType, interestTy
|
|
|
337
288
|
attributeType: AttributeType;
|
|
338
289
|
}) => any;
|
|
339
290
|
|
|
340
|
-
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, BuddyingStatus, type CardGamesInterestType, type CategoryType, ChallengeStatus, CollectionMetaStatus, type CollectionType, DuelGameResultType, FollowingStatus, type GameType, Gender, Handedness, type InterestType, LeaderboardType, type LengthUnit, 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, ProfileType, SocialMediaType, type SportsInterestType, SubjectType, TennisBackhand, TennisLevel, UserPronoun, type WeightUnit,
|
|
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, getMemberingStatusName, getNotificationTypeName, getPIDPrefixByProfileType, getProfileAttributeLabel, getProfileTypeByPID, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/dist/index.js
CHANGED
|
@@ -32,15 +32,8 @@ __export(index_exports, {
|
|
|
32
32
|
AttendanceStatus: () => AttendanceStatus,
|
|
33
33
|
AvatarType: () => AvatarType,
|
|
34
34
|
BasketballPosition: () => BasketballPosition,
|
|
35
|
-
BuddyingStatus: () => BuddyingStatus,
|
|
36
35
|
ChallengeStatus: () => ChallengeStatus,
|
|
37
|
-
CollectionMetaStatus: () => CollectionMetaStatus,
|
|
38
|
-
DuelGameResultType: () => DuelGameResultType,
|
|
39
36
|
FollowingStatus: () => FollowingStatus,
|
|
40
|
-
Gender: () => Gender,
|
|
41
|
-
Handedness: () => Handedness,
|
|
42
|
-
LeaderboardType: () => LeaderboardType,
|
|
43
|
-
LocationType: () => LocationType,
|
|
44
37
|
MarketMetaStatus: () => MarketMetaStatus,
|
|
45
38
|
MemberingStatus: () => MemberingStatus,
|
|
46
39
|
NotificationType: () => NotificationType,
|
|
@@ -53,19 +46,16 @@ __export(index_exports, {
|
|
|
53
46
|
ProfilePermission: () => ProfilePermission,
|
|
54
47
|
ProfilePrivacy: () => ProfilePrivacy,
|
|
55
48
|
ProfileStatus: () => ProfileStatus,
|
|
56
|
-
ProfileType: () => ProfileType,
|
|
57
49
|
SocialMediaType: () => SocialMediaType,
|
|
58
50
|
SubjectType: () => SubjectType,
|
|
59
51
|
TennisBackhand: () => TennisBackhand,
|
|
60
52
|
TennisLevel: () => TennisLevel,
|
|
61
53
|
UserPronoun: () => UserPronoun,
|
|
62
|
-
getBuddyingStatusName: () => getBuddyingStatusName,
|
|
63
54
|
getMemberingStatusName: () => getMemberingStatusName,
|
|
64
55
|
getNotificationTypeName: () => getNotificationTypeName,
|
|
65
56
|
getPIDPrefixByProfileType: () => getPIDPrefixByProfileType,
|
|
66
57
|
getProfileAttributeLabel: () => getProfileAttributeLabel,
|
|
67
58
|
getProfileTypeByPID: () => getProfileTypeByPID,
|
|
68
|
-
getProfileTypeName: () => getProfileTypeName,
|
|
69
59
|
isGamePID: () => isGamePID,
|
|
70
60
|
isLeaderboardPID: () => isLeaderboardPID,
|
|
71
61
|
isTeamPID: () => isTeamPID,
|
|
@@ -84,43 +74,6 @@ var PageType = /* @__PURE__ */ ((PageType2) => {
|
|
|
84
74
|
})(PageType || {});
|
|
85
75
|
|
|
86
76
|
// src/page/profile/profile.ts
|
|
87
|
-
var ProfileType = /* @__PURE__ */ ((ProfileType2) => {
|
|
88
|
-
ProfileType2[ProfileType2["None"] = 0] = "None";
|
|
89
|
-
ProfileType2[ProfileType2["User"] = 1] = "User";
|
|
90
|
-
ProfileType2[ProfileType2["Uoi"] = 2] = "Uoi";
|
|
91
|
-
ProfileType2[ProfileType2["Market"] = 3] = "Market";
|
|
92
|
-
ProfileType2[ProfileType2["Arena"] = 4] = "Arena";
|
|
93
|
-
ProfileType2[ProfileType2["Collection"] = 5] = "Collection";
|
|
94
|
-
ProfileType2[ProfileType2["Event"] = 6] = "Event";
|
|
95
|
-
ProfileType2[ProfileType2["Team"] = 7] = "Team";
|
|
96
|
-
ProfileType2[ProfileType2["Leaderboard"] = 8] = "Leaderboard";
|
|
97
|
-
ProfileType2[ProfileType2["Game"] = 9] = "Game";
|
|
98
|
-
return ProfileType2;
|
|
99
|
-
})(ProfileType || {});
|
|
100
|
-
var getProfileTypeName = (type) => {
|
|
101
|
-
switch (type) {
|
|
102
|
-
case 1 /* User */:
|
|
103
|
-
return "User";
|
|
104
|
-
case 2 /* Uoi */:
|
|
105
|
-
return "UOI";
|
|
106
|
-
case 3 /* Market */:
|
|
107
|
-
return "Market";
|
|
108
|
-
case 4 /* Arena */:
|
|
109
|
-
return "Arena";
|
|
110
|
-
case 5 /* Collection */:
|
|
111
|
-
return "Collection";
|
|
112
|
-
case 6 /* Event */:
|
|
113
|
-
return "Event";
|
|
114
|
-
case 7 /* Team */:
|
|
115
|
-
return "Team";
|
|
116
|
-
case 8 /* Leaderboard */:
|
|
117
|
-
return "Leaderboard";
|
|
118
|
-
case 9 /* Game */:
|
|
119
|
-
return "Game";
|
|
120
|
-
default:
|
|
121
|
-
return "Invalid profile type";
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
77
|
var ProfilePrivacy = /* @__PURE__ */ ((ProfilePrivacy2) => {
|
|
125
78
|
ProfilePrivacy2[ProfilePrivacy2["Public"] = 0] = "Public";
|
|
126
79
|
ProfilePrivacy2[ProfilePrivacy2["Private"] = 1] = "Private";
|
|
@@ -156,14 +109,6 @@ var MarketMetaStatus = /* @__PURE__ */ ((MarketMetaStatus2) => {
|
|
|
156
109
|
return MarketMetaStatus2;
|
|
157
110
|
})(MarketMetaStatus || {});
|
|
158
111
|
|
|
159
|
-
// src/page/profile/collection/status.ts
|
|
160
|
-
var CollectionMetaStatus = /* @__PURE__ */ ((CollectionMetaStatus2) => {
|
|
161
|
-
CollectionMetaStatus2[CollectionMetaStatus2["None"] = 0] = "None";
|
|
162
|
-
CollectionMetaStatus2[CollectionMetaStatus2["Active"] = 1] = "Active";
|
|
163
|
-
CollectionMetaStatus2[CollectionMetaStatus2["Inactive"] = 2] = "Inactive";
|
|
164
|
-
return CollectionMetaStatus2;
|
|
165
|
-
})(CollectionMetaStatus || {});
|
|
166
|
-
|
|
167
112
|
// src/page/profile/user.ts
|
|
168
113
|
var UserPronoun = /* @__PURE__ */ ((UserPronoun2) => {
|
|
169
114
|
UserPronoun2[UserPronoun2["None"] = 0] = "None";
|
|
@@ -183,24 +128,6 @@ var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
|
|
|
183
128
|
return AttendanceStatus2;
|
|
184
129
|
})(AttendanceStatus || {});
|
|
185
130
|
|
|
186
|
-
// src/page/profile/game/duel.ts
|
|
187
|
-
var DuelGameResultType = /* @__PURE__ */ ((DuelGameResultType2) => {
|
|
188
|
-
DuelGameResultType2[DuelGameResultType2["Loss"] = -1] = "Loss";
|
|
189
|
-
DuelGameResultType2[DuelGameResultType2["Tie"] = 0] = "Tie";
|
|
190
|
-
DuelGameResultType2[DuelGameResultType2["Win"] = 1] = "Win";
|
|
191
|
-
return DuelGameResultType2;
|
|
192
|
-
})(DuelGameResultType || {});
|
|
193
|
-
|
|
194
|
-
// src/page/profile/leaderboard.ts
|
|
195
|
-
var LeaderboardType = /* @__PURE__ */ ((LeaderboardType2) => {
|
|
196
|
-
LeaderboardType2[LeaderboardType2["Score"] = 0] = "Score";
|
|
197
|
-
LeaderboardType2[LeaderboardType2["Duel"] = 1] = "Duel";
|
|
198
|
-
LeaderboardType2[LeaderboardType2["Time"] = 2] = "Time";
|
|
199
|
-
LeaderboardType2[LeaderboardType2["Distance"] = 3] = "Distance";
|
|
200
|
-
LeaderboardType2[LeaderboardType2["Weight"] = 4] = "Weight";
|
|
201
|
-
return LeaderboardType2;
|
|
202
|
-
})(LeaderboardType || {});
|
|
203
|
-
|
|
204
131
|
// src/page/profile/avatar.ts
|
|
205
132
|
var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
|
|
206
133
|
AvatarType2[AvatarType2["None"] = 0] = "None";
|
|
@@ -233,15 +160,6 @@ var PostPrivacy = /* @__PURE__ */ ((PostPrivacy2) => {
|
|
|
233
160
|
return PostPrivacy2;
|
|
234
161
|
})(PostPrivacy || {});
|
|
235
162
|
|
|
236
|
-
// src/page/location.ts
|
|
237
|
-
var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
238
|
-
LocationType2[LocationType2["None"] = 0] = "None";
|
|
239
|
-
LocationType2[LocationType2["Point"] = 1] = "Point";
|
|
240
|
-
LocationType2[LocationType2["Street"] = 2] = "Street";
|
|
241
|
-
LocationType2[LocationType2["City"] = 3] = "City";
|
|
242
|
-
return LocationType2;
|
|
243
|
-
})(LocationType || {});
|
|
244
|
-
|
|
245
163
|
// src/page/pid.ts
|
|
246
164
|
var PID_LENGTH = 9;
|
|
247
165
|
var PID_PREFIX_LENGTH = 3;
|
|
@@ -262,44 +180,44 @@ function getProfileTypeByPID(pid) {
|
|
|
262
180
|
const prefix = getPIDPrefix(pid);
|
|
263
181
|
switch (prefix) {
|
|
264
182
|
case "usr":
|
|
265
|
-
return
|
|
183
|
+
return "user";
|
|
266
184
|
case "uoi":
|
|
267
|
-
return
|
|
185
|
+
return "uoi";
|
|
268
186
|
case "tms":
|
|
269
|
-
return
|
|
187
|
+
return "team";
|
|
270
188
|
case "arn":
|
|
271
|
-
return
|
|
189
|
+
return "arena";
|
|
272
190
|
case "evt":
|
|
273
|
-
return
|
|
191
|
+
return "event";
|
|
274
192
|
case "col":
|
|
275
|
-
return
|
|
193
|
+
return "collection";
|
|
276
194
|
case "lbd":
|
|
277
|
-
return
|
|
195
|
+
return "leaderboard";
|
|
278
196
|
case "gme":
|
|
279
|
-
return
|
|
197
|
+
return "game";
|
|
280
198
|
case "mkt":
|
|
281
|
-
return
|
|
199
|
+
return "market";
|
|
282
200
|
default:
|
|
283
|
-
return
|
|
201
|
+
return "none";
|
|
284
202
|
}
|
|
285
203
|
}
|
|
286
204
|
var getPIDPrefixByProfileType = (profileType) => {
|
|
287
205
|
switch (profileType) {
|
|
288
|
-
case
|
|
206
|
+
case "user":
|
|
289
207
|
return "usr";
|
|
290
|
-
case
|
|
208
|
+
case "uoi":
|
|
291
209
|
return "uoi";
|
|
292
|
-
case
|
|
210
|
+
case "team":
|
|
293
211
|
return "tms";
|
|
294
|
-
case
|
|
212
|
+
case "arena":
|
|
295
213
|
return "arn";
|
|
296
|
-
case
|
|
214
|
+
case "event":
|
|
297
215
|
return "evt";
|
|
298
|
-
case
|
|
216
|
+
case "collection":
|
|
299
217
|
return "col";
|
|
300
|
-
case
|
|
218
|
+
case "leaderboard":
|
|
301
219
|
return "lbd";
|
|
302
|
-
case
|
|
220
|
+
case "game":
|
|
303
221
|
return "gme";
|
|
304
222
|
default:
|
|
305
223
|
return "";
|
|
@@ -327,37 +245,6 @@ var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
|
|
|
327
245
|
})(AdminAccountStatus || {});
|
|
328
246
|
|
|
329
247
|
// src/connection.ts
|
|
330
|
-
var BuddyingStatus = /* @__PURE__ */ ((BuddyingStatus2) => {
|
|
331
|
-
BuddyingStatus2[BuddyingStatus2["None"] = 0] = "None";
|
|
332
|
-
BuddyingStatus2[BuddyingStatus2["PendingSent"] = 1] = "PendingSent";
|
|
333
|
-
BuddyingStatus2[BuddyingStatus2["PendingReceived"] = 2] = "PendingReceived";
|
|
334
|
-
BuddyingStatus2[BuddyingStatus2["Accepted"] = 3] = "Accepted";
|
|
335
|
-
BuddyingStatus2[BuddyingStatus2["Ignored"] = 4] = "Ignored";
|
|
336
|
-
BuddyingStatus2[BuddyingStatus2["Withdrawn"] = 5] = "Withdrawn";
|
|
337
|
-
BuddyingStatus2[BuddyingStatus2["RemovedByRequester"] = 6] = "RemovedByRequester";
|
|
338
|
-
BuddyingStatus2[BuddyingStatus2["RemovedByRequestee"] = 7] = "RemovedByRequestee";
|
|
339
|
-
return BuddyingStatus2;
|
|
340
|
-
})(BuddyingStatus || {});
|
|
341
|
-
var getBuddyingStatusName = (status) => {
|
|
342
|
-
switch (status) {
|
|
343
|
-
case 1 /* PendingSent */:
|
|
344
|
-
return "Pending Sent";
|
|
345
|
-
case 2 /* PendingReceived */:
|
|
346
|
-
return "Pending Received";
|
|
347
|
-
case 3 /* Accepted */:
|
|
348
|
-
return "Accepted";
|
|
349
|
-
case 4 /* Ignored */:
|
|
350
|
-
return "Ignored";
|
|
351
|
-
case 5 /* Withdrawn */:
|
|
352
|
-
return "Withdrawn";
|
|
353
|
-
case 6 /* RemovedByRequester */:
|
|
354
|
-
return "Removed By Requester";
|
|
355
|
-
case 7 /* RemovedByRequestee */:
|
|
356
|
-
return "Removed By Requestee";
|
|
357
|
-
default:
|
|
358
|
-
return "None";
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
248
|
var MemberingStatus = /* @__PURE__ */ ((MemberingStatus2) => {
|
|
362
249
|
MemberingStatus2[MemberingStatus2["None"] = 0] = "None";
|
|
363
250
|
MemberingStatus2[MemberingStatus2["Admined"] = 1] = "Admined";
|
|
@@ -408,20 +295,6 @@ var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
|
|
|
408
295
|
return FollowingStatus2;
|
|
409
296
|
})(FollowingStatus || {});
|
|
410
297
|
|
|
411
|
-
// src/attribute/common.ts
|
|
412
|
-
var Handedness = /* @__PURE__ */ ((Handedness2) => {
|
|
413
|
-
Handedness2[Handedness2["None"] = 0] = "None";
|
|
414
|
-
Handedness2[Handedness2["Left"] = 1] = "Left";
|
|
415
|
-
Handedness2[Handedness2["Right"] = 2] = "Right";
|
|
416
|
-
return Handedness2;
|
|
417
|
-
})(Handedness || {});
|
|
418
|
-
var Gender = /* @__PURE__ */ ((Gender2) => {
|
|
419
|
-
Gender2[Gender2["None"] = 0] = "None";
|
|
420
|
-
Gender2[Gender2["Male"] = 1] = "Male";
|
|
421
|
-
Gender2[Gender2["Female"] = 2] = "Female";
|
|
422
|
-
return Gender2;
|
|
423
|
-
})(Gender || {});
|
|
424
|
-
|
|
425
298
|
// src/attribute/uoi/sports/tennis.ts
|
|
426
299
|
var TennisBackhand = /* @__PURE__ */ ((TennisBackhand2) => {
|
|
427
300
|
TennisBackhand2[TennisBackhand2["None"] = 0] = "None";
|
|
@@ -579,9 +452,9 @@ var ATTRIBUTE_LABEL_COLLECTION = {
|
|
|
579
452
|
|
|
580
453
|
// src/meta/label.ts
|
|
581
454
|
var ATTRIBUTE_LABEL = {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
455
|
+
uoi: ATTRIBUTE_LABEL_UOI,
|
|
456
|
+
collection: ATTRIBUTE_LABEL_COLLECTION,
|
|
457
|
+
none: ATTRIBUTE_LABEL_COMMON
|
|
585
458
|
};
|
|
586
459
|
|
|
587
460
|
// src/meta/util.ts
|
|
@@ -614,15 +487,8 @@ var getProfileAttributeLabel = ({
|
|
|
614
487
|
AttendanceStatus,
|
|
615
488
|
AvatarType,
|
|
616
489
|
BasketballPosition,
|
|
617
|
-
BuddyingStatus,
|
|
618
490
|
ChallengeStatus,
|
|
619
|
-
CollectionMetaStatus,
|
|
620
|
-
DuelGameResultType,
|
|
621
491
|
FollowingStatus,
|
|
622
|
-
Gender,
|
|
623
|
-
Handedness,
|
|
624
|
-
LeaderboardType,
|
|
625
|
-
LocationType,
|
|
626
492
|
MarketMetaStatus,
|
|
627
493
|
MemberingStatus,
|
|
628
494
|
NotificationType,
|
|
@@ -635,19 +501,16 @@ var getProfileAttributeLabel = ({
|
|
|
635
501
|
ProfilePermission,
|
|
636
502
|
ProfilePrivacy,
|
|
637
503
|
ProfileStatus,
|
|
638
|
-
ProfileType,
|
|
639
504
|
SocialMediaType,
|
|
640
505
|
SubjectType,
|
|
641
506
|
TennisBackhand,
|
|
642
507
|
TennisLevel,
|
|
643
508
|
UserPronoun,
|
|
644
|
-
getBuddyingStatusName,
|
|
645
509
|
getMemberingStatusName,
|
|
646
510
|
getNotificationTypeName,
|
|
647
511
|
getPIDPrefixByProfileType,
|
|
648
512
|
getProfileAttributeLabel,
|
|
649
513
|
getProfileTypeByPID,
|
|
650
|
-
getProfileTypeName,
|
|
651
514
|
isGamePID,
|
|
652
515
|
isLeaderboardPID,
|
|
653
516
|
isTeamPID,
|
package/dist/index.mjs
CHANGED
|
@@ -9,43 +9,6 @@ var PageType = /* @__PURE__ */ ((PageType2) => {
|
|
|
9
9
|
})(PageType || {});
|
|
10
10
|
|
|
11
11
|
// src/page/profile/profile.ts
|
|
12
|
-
var ProfileType = /* @__PURE__ */ ((ProfileType2) => {
|
|
13
|
-
ProfileType2[ProfileType2["None"] = 0] = "None";
|
|
14
|
-
ProfileType2[ProfileType2["User"] = 1] = "User";
|
|
15
|
-
ProfileType2[ProfileType2["Uoi"] = 2] = "Uoi";
|
|
16
|
-
ProfileType2[ProfileType2["Market"] = 3] = "Market";
|
|
17
|
-
ProfileType2[ProfileType2["Arena"] = 4] = "Arena";
|
|
18
|
-
ProfileType2[ProfileType2["Collection"] = 5] = "Collection";
|
|
19
|
-
ProfileType2[ProfileType2["Event"] = 6] = "Event";
|
|
20
|
-
ProfileType2[ProfileType2["Team"] = 7] = "Team";
|
|
21
|
-
ProfileType2[ProfileType2["Leaderboard"] = 8] = "Leaderboard";
|
|
22
|
-
ProfileType2[ProfileType2["Game"] = 9] = "Game";
|
|
23
|
-
return ProfileType2;
|
|
24
|
-
})(ProfileType || {});
|
|
25
|
-
var getProfileTypeName = (type) => {
|
|
26
|
-
switch (type) {
|
|
27
|
-
case 1 /* User */:
|
|
28
|
-
return "User";
|
|
29
|
-
case 2 /* Uoi */:
|
|
30
|
-
return "UOI";
|
|
31
|
-
case 3 /* Market */:
|
|
32
|
-
return "Market";
|
|
33
|
-
case 4 /* Arena */:
|
|
34
|
-
return "Arena";
|
|
35
|
-
case 5 /* Collection */:
|
|
36
|
-
return "Collection";
|
|
37
|
-
case 6 /* Event */:
|
|
38
|
-
return "Event";
|
|
39
|
-
case 7 /* Team */:
|
|
40
|
-
return "Team";
|
|
41
|
-
case 8 /* Leaderboard */:
|
|
42
|
-
return "Leaderboard";
|
|
43
|
-
case 9 /* Game */:
|
|
44
|
-
return "Game";
|
|
45
|
-
default:
|
|
46
|
-
return "Invalid profile type";
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
12
|
var ProfilePrivacy = /* @__PURE__ */ ((ProfilePrivacy2) => {
|
|
50
13
|
ProfilePrivacy2[ProfilePrivacy2["Public"] = 0] = "Public";
|
|
51
14
|
ProfilePrivacy2[ProfilePrivacy2["Private"] = 1] = "Private";
|
|
@@ -81,14 +44,6 @@ var MarketMetaStatus = /* @__PURE__ */ ((MarketMetaStatus2) => {
|
|
|
81
44
|
return MarketMetaStatus2;
|
|
82
45
|
})(MarketMetaStatus || {});
|
|
83
46
|
|
|
84
|
-
// src/page/profile/collection/status.ts
|
|
85
|
-
var CollectionMetaStatus = /* @__PURE__ */ ((CollectionMetaStatus2) => {
|
|
86
|
-
CollectionMetaStatus2[CollectionMetaStatus2["None"] = 0] = "None";
|
|
87
|
-
CollectionMetaStatus2[CollectionMetaStatus2["Active"] = 1] = "Active";
|
|
88
|
-
CollectionMetaStatus2[CollectionMetaStatus2["Inactive"] = 2] = "Inactive";
|
|
89
|
-
return CollectionMetaStatus2;
|
|
90
|
-
})(CollectionMetaStatus || {});
|
|
91
|
-
|
|
92
47
|
// src/page/profile/user.ts
|
|
93
48
|
var UserPronoun = /* @__PURE__ */ ((UserPronoun2) => {
|
|
94
49
|
UserPronoun2[UserPronoun2["None"] = 0] = "None";
|
|
@@ -108,24 +63,6 @@ var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
|
|
|
108
63
|
return AttendanceStatus2;
|
|
109
64
|
})(AttendanceStatus || {});
|
|
110
65
|
|
|
111
|
-
// src/page/profile/game/duel.ts
|
|
112
|
-
var DuelGameResultType = /* @__PURE__ */ ((DuelGameResultType2) => {
|
|
113
|
-
DuelGameResultType2[DuelGameResultType2["Loss"] = -1] = "Loss";
|
|
114
|
-
DuelGameResultType2[DuelGameResultType2["Tie"] = 0] = "Tie";
|
|
115
|
-
DuelGameResultType2[DuelGameResultType2["Win"] = 1] = "Win";
|
|
116
|
-
return DuelGameResultType2;
|
|
117
|
-
})(DuelGameResultType || {});
|
|
118
|
-
|
|
119
|
-
// src/page/profile/leaderboard.ts
|
|
120
|
-
var LeaderboardType = /* @__PURE__ */ ((LeaderboardType2) => {
|
|
121
|
-
LeaderboardType2[LeaderboardType2["Score"] = 0] = "Score";
|
|
122
|
-
LeaderboardType2[LeaderboardType2["Duel"] = 1] = "Duel";
|
|
123
|
-
LeaderboardType2[LeaderboardType2["Time"] = 2] = "Time";
|
|
124
|
-
LeaderboardType2[LeaderboardType2["Distance"] = 3] = "Distance";
|
|
125
|
-
LeaderboardType2[LeaderboardType2["Weight"] = 4] = "Weight";
|
|
126
|
-
return LeaderboardType2;
|
|
127
|
-
})(LeaderboardType || {});
|
|
128
|
-
|
|
129
66
|
// src/page/profile/avatar.ts
|
|
130
67
|
var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
|
|
131
68
|
AvatarType2[AvatarType2["None"] = 0] = "None";
|
|
@@ -158,15 +95,6 @@ var PostPrivacy = /* @__PURE__ */ ((PostPrivacy2) => {
|
|
|
158
95
|
return PostPrivacy2;
|
|
159
96
|
})(PostPrivacy || {});
|
|
160
97
|
|
|
161
|
-
// src/page/location.ts
|
|
162
|
-
var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
163
|
-
LocationType2[LocationType2["None"] = 0] = "None";
|
|
164
|
-
LocationType2[LocationType2["Point"] = 1] = "Point";
|
|
165
|
-
LocationType2[LocationType2["Street"] = 2] = "Street";
|
|
166
|
-
LocationType2[LocationType2["City"] = 3] = "City";
|
|
167
|
-
return LocationType2;
|
|
168
|
-
})(LocationType || {});
|
|
169
|
-
|
|
170
98
|
// src/page/pid.ts
|
|
171
99
|
var PID_LENGTH = 9;
|
|
172
100
|
var PID_PREFIX_LENGTH = 3;
|
|
@@ -187,44 +115,44 @@ function getProfileTypeByPID(pid) {
|
|
|
187
115
|
const prefix = getPIDPrefix(pid);
|
|
188
116
|
switch (prefix) {
|
|
189
117
|
case "usr":
|
|
190
|
-
return
|
|
118
|
+
return "user";
|
|
191
119
|
case "uoi":
|
|
192
|
-
return
|
|
120
|
+
return "uoi";
|
|
193
121
|
case "tms":
|
|
194
|
-
return
|
|
122
|
+
return "team";
|
|
195
123
|
case "arn":
|
|
196
|
-
return
|
|
124
|
+
return "arena";
|
|
197
125
|
case "evt":
|
|
198
|
-
return
|
|
126
|
+
return "event";
|
|
199
127
|
case "col":
|
|
200
|
-
return
|
|
128
|
+
return "collection";
|
|
201
129
|
case "lbd":
|
|
202
|
-
return
|
|
130
|
+
return "leaderboard";
|
|
203
131
|
case "gme":
|
|
204
|
-
return
|
|
132
|
+
return "game";
|
|
205
133
|
case "mkt":
|
|
206
|
-
return
|
|
134
|
+
return "market";
|
|
207
135
|
default:
|
|
208
|
-
return
|
|
136
|
+
return "none";
|
|
209
137
|
}
|
|
210
138
|
}
|
|
211
139
|
var getPIDPrefixByProfileType = (profileType) => {
|
|
212
140
|
switch (profileType) {
|
|
213
|
-
case
|
|
141
|
+
case "user":
|
|
214
142
|
return "usr";
|
|
215
|
-
case
|
|
143
|
+
case "uoi":
|
|
216
144
|
return "uoi";
|
|
217
|
-
case
|
|
145
|
+
case "team":
|
|
218
146
|
return "tms";
|
|
219
|
-
case
|
|
147
|
+
case "arena":
|
|
220
148
|
return "arn";
|
|
221
|
-
case
|
|
149
|
+
case "event":
|
|
222
150
|
return "evt";
|
|
223
|
-
case
|
|
151
|
+
case "collection":
|
|
224
152
|
return "col";
|
|
225
|
-
case
|
|
153
|
+
case "leaderboard":
|
|
226
154
|
return "lbd";
|
|
227
|
-
case
|
|
155
|
+
case "game":
|
|
228
156
|
return "gme";
|
|
229
157
|
default:
|
|
230
158
|
return "";
|
|
@@ -252,37 +180,6 @@ var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
|
|
|
252
180
|
})(AdminAccountStatus || {});
|
|
253
181
|
|
|
254
182
|
// src/connection.ts
|
|
255
|
-
var BuddyingStatus = /* @__PURE__ */ ((BuddyingStatus2) => {
|
|
256
|
-
BuddyingStatus2[BuddyingStatus2["None"] = 0] = "None";
|
|
257
|
-
BuddyingStatus2[BuddyingStatus2["PendingSent"] = 1] = "PendingSent";
|
|
258
|
-
BuddyingStatus2[BuddyingStatus2["PendingReceived"] = 2] = "PendingReceived";
|
|
259
|
-
BuddyingStatus2[BuddyingStatus2["Accepted"] = 3] = "Accepted";
|
|
260
|
-
BuddyingStatus2[BuddyingStatus2["Ignored"] = 4] = "Ignored";
|
|
261
|
-
BuddyingStatus2[BuddyingStatus2["Withdrawn"] = 5] = "Withdrawn";
|
|
262
|
-
BuddyingStatus2[BuddyingStatus2["RemovedByRequester"] = 6] = "RemovedByRequester";
|
|
263
|
-
BuddyingStatus2[BuddyingStatus2["RemovedByRequestee"] = 7] = "RemovedByRequestee";
|
|
264
|
-
return BuddyingStatus2;
|
|
265
|
-
})(BuddyingStatus || {});
|
|
266
|
-
var getBuddyingStatusName = (status) => {
|
|
267
|
-
switch (status) {
|
|
268
|
-
case 1 /* PendingSent */:
|
|
269
|
-
return "Pending Sent";
|
|
270
|
-
case 2 /* PendingReceived */:
|
|
271
|
-
return "Pending Received";
|
|
272
|
-
case 3 /* Accepted */:
|
|
273
|
-
return "Accepted";
|
|
274
|
-
case 4 /* Ignored */:
|
|
275
|
-
return "Ignored";
|
|
276
|
-
case 5 /* Withdrawn */:
|
|
277
|
-
return "Withdrawn";
|
|
278
|
-
case 6 /* RemovedByRequester */:
|
|
279
|
-
return "Removed By Requester";
|
|
280
|
-
case 7 /* RemovedByRequestee */:
|
|
281
|
-
return "Removed By Requestee";
|
|
282
|
-
default:
|
|
283
|
-
return "None";
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
183
|
var MemberingStatus = /* @__PURE__ */ ((MemberingStatus2) => {
|
|
287
184
|
MemberingStatus2[MemberingStatus2["None"] = 0] = "None";
|
|
288
185
|
MemberingStatus2[MemberingStatus2["Admined"] = 1] = "Admined";
|
|
@@ -333,20 +230,6 @@ var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
|
|
|
333
230
|
return FollowingStatus2;
|
|
334
231
|
})(FollowingStatus || {});
|
|
335
232
|
|
|
336
|
-
// src/attribute/common.ts
|
|
337
|
-
var Handedness = /* @__PURE__ */ ((Handedness2) => {
|
|
338
|
-
Handedness2[Handedness2["None"] = 0] = "None";
|
|
339
|
-
Handedness2[Handedness2["Left"] = 1] = "Left";
|
|
340
|
-
Handedness2[Handedness2["Right"] = 2] = "Right";
|
|
341
|
-
return Handedness2;
|
|
342
|
-
})(Handedness || {});
|
|
343
|
-
var Gender = /* @__PURE__ */ ((Gender2) => {
|
|
344
|
-
Gender2[Gender2["None"] = 0] = "None";
|
|
345
|
-
Gender2[Gender2["Male"] = 1] = "Male";
|
|
346
|
-
Gender2[Gender2["Female"] = 2] = "Female";
|
|
347
|
-
return Gender2;
|
|
348
|
-
})(Gender || {});
|
|
349
|
-
|
|
350
233
|
// src/attribute/uoi/sports/tennis.ts
|
|
351
234
|
var TennisBackhand = /* @__PURE__ */ ((TennisBackhand2) => {
|
|
352
235
|
TennisBackhand2[TennisBackhand2["None"] = 0] = "None";
|
|
@@ -504,9 +387,9 @@ var ATTRIBUTE_LABEL_COLLECTION = {
|
|
|
504
387
|
|
|
505
388
|
// src/meta/label.ts
|
|
506
389
|
var ATTRIBUTE_LABEL = {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
390
|
+
uoi: ATTRIBUTE_LABEL_UOI,
|
|
391
|
+
collection: ATTRIBUTE_LABEL_COLLECTION,
|
|
392
|
+
none: ATTRIBUTE_LABEL_COMMON
|
|
510
393
|
};
|
|
511
394
|
|
|
512
395
|
// src/meta/util.ts
|
|
@@ -538,15 +421,8 @@ export {
|
|
|
538
421
|
AttendanceStatus,
|
|
539
422
|
AvatarType,
|
|
540
423
|
BasketballPosition,
|
|
541
|
-
BuddyingStatus,
|
|
542
424
|
ChallengeStatus,
|
|
543
|
-
CollectionMetaStatus,
|
|
544
|
-
DuelGameResultType,
|
|
545
425
|
FollowingStatus,
|
|
546
|
-
Gender,
|
|
547
|
-
Handedness,
|
|
548
|
-
LeaderboardType,
|
|
549
|
-
LocationType,
|
|
550
426
|
MarketMetaStatus,
|
|
551
427
|
MemberingStatus,
|
|
552
428
|
NotificationType,
|
|
@@ -559,19 +435,16 @@ export {
|
|
|
559
435
|
ProfilePermission,
|
|
560
436
|
ProfilePrivacy,
|
|
561
437
|
ProfileStatus,
|
|
562
|
-
ProfileType,
|
|
563
438
|
SocialMediaType,
|
|
564
439
|
SubjectType,
|
|
565
440
|
TennisBackhand,
|
|
566
441
|
TennisLevel,
|
|
567
442
|
UserPronoun,
|
|
568
|
-
getBuddyingStatusName,
|
|
569
443
|
getMemberingStatusName,
|
|
570
444
|
getNotificationTypeName,
|
|
571
445
|
getPIDPrefixByProfileType,
|
|
572
446
|
getProfileAttributeLabel,
|
|
573
447
|
getProfileTypeByPID,
|
|
574
|
-
getProfileTypeName,
|
|
575
448
|
isGamePID,
|
|
576
449
|
isLeaderboardPID,
|
|
577
450
|
isTeamPID,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wenum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.61.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/jest": "^29.5.14",
|
|
25
25
|
"eslint": "^9.27.0",
|
|
26
|
+
"eslint-config-prettier": "^10.1.8",
|
|
26
27
|
"jest": "^29.7.0",
|
|
27
28
|
"prettier": "^3.5.3",
|
|
28
29
|
"tsup": "^8.5.0",
|
package/src/attribute/common.ts
CHANGED
package/src/common/measure.ts
CHANGED
package/src/connection.ts
CHANGED
|
@@ -1,34 +1,13 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
export type BuddyingStatus =
|
|
2
|
+
"removedByRequestee" |
|
|
3
|
+
"removedByRequester" |
|
|
4
|
+
"withdrawn" |
|
|
5
|
+
"ignored" |
|
|
6
|
+
"accepted" |
|
|
7
|
+
"pendingReceived" |
|
|
8
|
+
"pendingSent" |
|
|
9
|
+
"none";
|
|
11
10
|
|
|
12
|
-
export const getBuddyingStatusName = (status: BuddyingStatus) => {
|
|
13
|
-
switch (status) {
|
|
14
|
-
case BuddyingStatus.PendingSent:
|
|
15
|
-
return 'Pending Sent';
|
|
16
|
-
case BuddyingStatus.PendingReceived:
|
|
17
|
-
return 'Pending Received';
|
|
18
|
-
case BuddyingStatus.Accepted:
|
|
19
|
-
return 'Accepted';
|
|
20
|
-
case BuddyingStatus.Ignored:
|
|
21
|
-
return 'Ignored';
|
|
22
|
-
case BuddyingStatus.Withdrawn:
|
|
23
|
-
return 'Withdrawn';
|
|
24
|
-
case BuddyingStatus.RemovedByRequester:
|
|
25
|
-
return 'Removed By Requester';
|
|
26
|
-
case BuddyingStatus.RemovedByRequestee:
|
|
27
|
-
return 'Removed By Requestee';
|
|
28
|
-
default:
|
|
29
|
-
return 'None';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
11
|
|
|
33
12
|
export enum MemberingStatus {
|
|
34
13
|
None,
|
package/src/meta/label.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ATTRIBUTE_LABEL_COMMON } from './common';
|
|
|
5
5
|
import { ATTRIBUTE_LABEL_UOI } from './uoi';
|
|
6
6
|
|
|
7
7
|
export const ATTRIBUTE_LABEL:Partial<Record<ProfileType, any>> = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
uoi: ATTRIBUTE_LABEL_UOI,
|
|
9
|
+
collection: ATTRIBUTE_LABEL_COLLECTION,
|
|
10
|
+
none: ATTRIBUTE_LABEL_COMMON,
|
|
11
11
|
};
|
package/src/page/location.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export type LocationType =
|
|
2
|
+
"none" |
|
|
3
|
+
"point" |
|
|
4
|
+
"street" |
|
|
5
|
+
"city";
|
package/src/page/pid.ts
CHANGED
|
@@ -29,45 +29,45 @@ export function getProfileTypeByPID(pid: string): ProfileType {
|
|
|
29
29
|
const prefix = getPIDPrefix(pid);
|
|
30
30
|
switch (prefix) {
|
|
31
31
|
case 'usr':
|
|
32
|
-
return
|
|
32
|
+
return 'user';
|
|
33
33
|
case 'uoi':
|
|
34
|
-
return
|
|
34
|
+
return 'uoi';
|
|
35
35
|
case 'tms':
|
|
36
|
-
return
|
|
36
|
+
return 'team';
|
|
37
37
|
case 'arn':
|
|
38
|
-
return
|
|
38
|
+
return 'arena';
|
|
39
39
|
case 'evt':
|
|
40
|
-
return
|
|
40
|
+
return 'event';
|
|
41
41
|
case 'col':
|
|
42
|
-
return
|
|
42
|
+
return 'collection';
|
|
43
43
|
case 'lbd':
|
|
44
|
-
return
|
|
44
|
+
return 'leaderboard';
|
|
45
45
|
case 'gme':
|
|
46
|
-
return
|
|
46
|
+
return 'game';
|
|
47
47
|
case 'mkt':
|
|
48
|
-
return
|
|
48
|
+
return 'market';
|
|
49
49
|
default:
|
|
50
|
-
return
|
|
50
|
+
return 'none';
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
export const getPIDPrefixByProfileType = (profileType: ProfileType): PIDPrefixType => {
|
|
55
55
|
switch (profileType) {
|
|
56
|
-
case
|
|
56
|
+
case 'user':
|
|
57
57
|
return 'usr';
|
|
58
|
-
case
|
|
58
|
+
case 'uoi':
|
|
59
59
|
return 'uoi';
|
|
60
|
-
case
|
|
60
|
+
case 'team':
|
|
61
61
|
return 'tms';
|
|
62
|
-
case
|
|
62
|
+
case 'arena':
|
|
63
63
|
return 'arn';
|
|
64
|
-
case
|
|
64
|
+
case 'event':
|
|
65
65
|
return 'evt';
|
|
66
|
-
case
|
|
66
|
+
case 'collection':
|
|
67
67
|
return 'col';
|
|
68
|
-
case
|
|
68
|
+
case 'leaderboard':
|
|
69
69
|
return 'lbd';
|
|
70
|
-
case
|
|
70
|
+
case 'game':
|
|
71
71
|
return 'gme';
|
|
72
72
|
default:
|
|
73
73
|
return '';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export type CollectionMetaStatus =
|
|
2
|
+
"inactive" |
|
|
3
|
+
"active" |
|
|
4
|
+
"none";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export type DuelGameResultType =
|
|
2
|
+
"loss" |
|
|
3
|
+
"tie" |
|
|
4
|
+
"win";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
export type LeaderboardType =
|
|
2
|
+
"score" |
|
|
3
|
+
"duel" |
|
|
4
|
+
"time" |
|
|
5
|
+
"distance" |
|
|
6
|
+
"weight";
|
|
@@ -1,40 +1,17 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
export type ProfileType =
|
|
2
|
+
"none" |
|
|
3
|
+
"user" |
|
|
4
|
+
"uoi" |
|
|
5
|
+
"market"|
|
|
6
|
+
"arena"|
|
|
7
|
+
"collection"|
|
|
8
|
+
"event"|
|
|
9
|
+
"team"|
|
|
10
|
+
"leaderboard" |
|
|
11
|
+
"game"
|
|
12
|
+
|
|
13
|
+
|
|
13
14
|
|
|
14
|
-
export const getProfileTypeName = (type: ProfileType): string => {
|
|
15
|
-
switch (type) {
|
|
16
|
-
case ProfileType.User:
|
|
17
|
-
return 'User';
|
|
18
|
-
case ProfileType.Uoi:
|
|
19
|
-
return 'UOI';
|
|
20
|
-
case ProfileType.Market:
|
|
21
|
-
return 'Market';
|
|
22
|
-
case ProfileType.Arena:
|
|
23
|
-
return 'Arena';
|
|
24
|
-
case ProfileType.Collection:
|
|
25
|
-
return 'Collection';
|
|
26
|
-
case ProfileType.Event:
|
|
27
|
-
return 'Event';
|
|
28
|
-
case ProfileType.Team:
|
|
29
|
-
return 'Team';
|
|
30
|
-
case ProfileType.Leaderboard:
|
|
31
|
-
return 'Leaderboard';
|
|
32
|
-
case ProfileType.Game:
|
|
33
|
-
return 'Game';
|
|
34
|
-
default:
|
|
35
|
-
return 'Invalid profile type';
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
15
|
|
|
39
16
|
export enum ProfilePrivacy {
|
|
40
17
|
Public, Private, Internal,
|