wenum 1.60.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 +10 -47
- package/dist/index.d.ts +10 -47
- package/dist/index.js +0 -96
- package/dist/index.mjs +0 -88
- package/package.json +1 -1
- package/src/attribute/common.ts +8 -6
- package/src/common/measure.ts +7 -7
- package/src/connection.ts +9 -30
- package/src/page/location.ts +5 -6
- 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/dist/index.d.mts
CHANGED
|
@@ -48,11 +48,7 @@ type MarketTypeSports = MarketTypeTennis;
|
|
|
48
48
|
|
|
49
49
|
type MarketType = MarketTypePets | MarketTypeSports;
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
None = 0,
|
|
53
|
-
Active = 1,
|
|
54
|
-
Inactive = 2
|
|
55
|
-
}
|
|
51
|
+
type CollectionMetaStatus = "inactive" | "active" | "none";
|
|
56
52
|
|
|
57
53
|
type CollectionTypeOther = 'zzzother';
|
|
58
54
|
|
|
@@ -83,11 +79,7 @@ declare enum AttendanceStatus {
|
|
|
83
79
|
Left = 5
|
|
84
80
|
}
|
|
85
81
|
|
|
86
|
-
|
|
87
|
-
Loss = -1,
|
|
88
|
-
Tie = 0,
|
|
89
|
-
Win = 1
|
|
90
|
-
}
|
|
82
|
+
type DuelGameResultType = "loss" | "tie" | "win";
|
|
91
83
|
|
|
92
84
|
type GameTypeOther = 'other';
|
|
93
85
|
|
|
@@ -103,13 +95,7 @@ type GameTypeSports = GameTypeBasketball | GameTypeRunning | GameTypeTennis | Ga
|
|
|
103
95
|
|
|
104
96
|
type GameType = GameTypeSports;
|
|
105
97
|
|
|
106
|
-
|
|
107
|
-
Score = 0,
|
|
108
|
-
Duel = 1,
|
|
109
|
-
Time = 2,
|
|
110
|
-
Distance = 3,
|
|
111
|
-
Weight = 4
|
|
112
|
-
}
|
|
98
|
+
type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
|
|
113
99
|
|
|
114
100
|
declare enum AvatarType {
|
|
115
101
|
None = 0,
|
|
@@ -138,12 +124,7 @@ declare enum PostPrivacy {
|
|
|
138
124
|
Internal = 2
|
|
139
125
|
}
|
|
140
126
|
|
|
141
|
-
|
|
142
|
-
None = 0,
|
|
143
|
-
Point = 1,
|
|
144
|
-
Street = 2,
|
|
145
|
-
City = 3
|
|
146
|
-
}
|
|
127
|
+
type LocationType = "none" | "point" | "street" | "city";
|
|
147
128
|
|
|
148
129
|
type PIDPrefixType = 'usr' | 'uoi' | 'tms' | 'arn' | 'evt' | 'col' | 'lbd' | 'gme' | 'mkt' | 'lcp' | 'lcs' | 'lcc' | 'lip' | 'lis' | 'lic' | 'tpo' | '';
|
|
149
130
|
declare const PID_LENGTH = 9;
|
|
@@ -164,17 +145,7 @@ declare enum AdminAccountStatus {
|
|
|
164
145
|
Inactive = 2
|
|
165
146
|
}
|
|
166
147
|
|
|
167
|
-
|
|
168
|
-
None = 0,
|
|
169
|
-
PendingSent = 1,
|
|
170
|
-
PendingReceived = 2,
|
|
171
|
-
Accepted = 3,
|
|
172
|
-
Ignored = 4,
|
|
173
|
-
Withdrawn = 5,
|
|
174
|
-
RemovedByRequester = 6,
|
|
175
|
-
RemovedByRequestee = 7
|
|
176
|
-
}
|
|
177
|
-
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";
|
|
178
149
|
declare enum MemberingStatus {
|
|
179
150
|
None = 0,
|
|
180
151
|
Admined = 1,
|
|
@@ -188,7 +159,7 @@ declare enum MemberingStatus {
|
|
|
188
159
|
WithdrawnInvite = 9,
|
|
189
160
|
MemberRemoved = 10
|
|
190
161
|
}
|
|
191
|
-
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";
|
|
192
163
|
declare enum FollowingStatus {
|
|
193
164
|
None = 0,
|
|
194
165
|
Pending = 1,
|
|
@@ -198,16 +169,8 @@ declare enum FollowingStatus {
|
|
|
198
169
|
Unfollowed = 5
|
|
199
170
|
}
|
|
200
171
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
Left = 1,
|
|
204
|
-
Right = 2
|
|
205
|
-
}
|
|
206
|
-
declare enum Gender {
|
|
207
|
-
None = 0,
|
|
208
|
-
Male = 1,
|
|
209
|
-
Female = 2
|
|
210
|
-
}
|
|
172
|
+
type Handedness = "right" | "left" | "none";
|
|
173
|
+
type Gender = "female" | "male" | "none";
|
|
211
174
|
|
|
212
175
|
declare enum TennisBackhand {
|
|
213
176
|
None = 0,
|
|
@@ -257,7 +220,7 @@ type SportsInterestType = 'tennis' | 'pickleball' | 'basketball' | 'golf' | 'hik
|
|
|
257
220
|
|
|
258
221
|
type InterestType = SportsInterestType | PetsInterestType | MusicInterestType | CardGamesInterestType | '';
|
|
259
222
|
|
|
260
|
-
type LengthUnit = "
|
|
223
|
+
type LengthUnit = "cm" | "m" | "inch" | "foot" | "km" | "mi" | "yd";
|
|
261
224
|
type WeightUnit = "kg" | "g" | "lb" | "oz";
|
|
262
225
|
|
|
263
226
|
declare enum SocialMediaType {
|
|
@@ -325,4 +288,4 @@ declare const getProfileAttributeLabel: ({ profileType, categoryType, interestTy
|
|
|
325
288
|
attributeType: AttributeType;
|
|
326
289
|
}) => any;
|
|
327
290
|
|
|
328
|
-
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, type 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
|
@@ -48,11 +48,7 @@ type MarketTypeSports = MarketTypeTennis;
|
|
|
48
48
|
|
|
49
49
|
type MarketType = MarketTypePets | MarketTypeSports;
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
None = 0,
|
|
53
|
-
Active = 1,
|
|
54
|
-
Inactive = 2
|
|
55
|
-
}
|
|
51
|
+
type CollectionMetaStatus = "inactive" | "active" | "none";
|
|
56
52
|
|
|
57
53
|
type CollectionTypeOther = 'zzzother';
|
|
58
54
|
|
|
@@ -83,11 +79,7 @@ declare enum AttendanceStatus {
|
|
|
83
79
|
Left = 5
|
|
84
80
|
}
|
|
85
81
|
|
|
86
|
-
|
|
87
|
-
Loss = -1,
|
|
88
|
-
Tie = 0,
|
|
89
|
-
Win = 1
|
|
90
|
-
}
|
|
82
|
+
type DuelGameResultType = "loss" | "tie" | "win";
|
|
91
83
|
|
|
92
84
|
type GameTypeOther = 'other';
|
|
93
85
|
|
|
@@ -103,13 +95,7 @@ type GameTypeSports = GameTypeBasketball | GameTypeRunning | GameTypeTennis | Ga
|
|
|
103
95
|
|
|
104
96
|
type GameType = GameTypeSports;
|
|
105
97
|
|
|
106
|
-
|
|
107
|
-
Score = 0,
|
|
108
|
-
Duel = 1,
|
|
109
|
-
Time = 2,
|
|
110
|
-
Distance = 3,
|
|
111
|
-
Weight = 4
|
|
112
|
-
}
|
|
98
|
+
type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
|
|
113
99
|
|
|
114
100
|
declare enum AvatarType {
|
|
115
101
|
None = 0,
|
|
@@ -138,12 +124,7 @@ declare enum PostPrivacy {
|
|
|
138
124
|
Internal = 2
|
|
139
125
|
}
|
|
140
126
|
|
|
141
|
-
|
|
142
|
-
None = 0,
|
|
143
|
-
Point = 1,
|
|
144
|
-
Street = 2,
|
|
145
|
-
City = 3
|
|
146
|
-
}
|
|
127
|
+
type LocationType = "none" | "point" | "street" | "city";
|
|
147
128
|
|
|
148
129
|
type PIDPrefixType = 'usr' | 'uoi' | 'tms' | 'arn' | 'evt' | 'col' | 'lbd' | 'gme' | 'mkt' | 'lcp' | 'lcs' | 'lcc' | 'lip' | 'lis' | 'lic' | 'tpo' | '';
|
|
149
130
|
declare const PID_LENGTH = 9;
|
|
@@ -164,17 +145,7 @@ declare enum AdminAccountStatus {
|
|
|
164
145
|
Inactive = 2
|
|
165
146
|
}
|
|
166
147
|
|
|
167
|
-
|
|
168
|
-
None = 0,
|
|
169
|
-
PendingSent = 1,
|
|
170
|
-
PendingReceived = 2,
|
|
171
|
-
Accepted = 3,
|
|
172
|
-
Ignored = 4,
|
|
173
|
-
Withdrawn = 5,
|
|
174
|
-
RemovedByRequester = 6,
|
|
175
|
-
RemovedByRequestee = 7
|
|
176
|
-
}
|
|
177
|
-
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";
|
|
178
149
|
declare enum MemberingStatus {
|
|
179
150
|
None = 0,
|
|
180
151
|
Admined = 1,
|
|
@@ -188,7 +159,7 @@ declare enum MemberingStatus {
|
|
|
188
159
|
WithdrawnInvite = 9,
|
|
189
160
|
MemberRemoved = 10
|
|
190
161
|
}
|
|
191
|
-
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";
|
|
192
163
|
declare enum FollowingStatus {
|
|
193
164
|
None = 0,
|
|
194
165
|
Pending = 1,
|
|
@@ -198,16 +169,8 @@ declare enum FollowingStatus {
|
|
|
198
169
|
Unfollowed = 5
|
|
199
170
|
}
|
|
200
171
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
Left = 1,
|
|
204
|
-
Right = 2
|
|
205
|
-
}
|
|
206
|
-
declare enum Gender {
|
|
207
|
-
None = 0,
|
|
208
|
-
Male = 1,
|
|
209
|
-
Female = 2
|
|
210
|
-
}
|
|
172
|
+
type Handedness = "right" | "left" | "none";
|
|
173
|
+
type Gender = "female" | "male" | "none";
|
|
211
174
|
|
|
212
175
|
declare enum TennisBackhand {
|
|
213
176
|
None = 0,
|
|
@@ -257,7 +220,7 @@ type SportsInterestType = 'tennis' | 'pickleball' | 'basketball' | 'golf' | 'hik
|
|
|
257
220
|
|
|
258
221
|
type InterestType = SportsInterestType | PetsInterestType | MusicInterestType | CardGamesInterestType | '';
|
|
259
222
|
|
|
260
|
-
type LengthUnit = "
|
|
223
|
+
type LengthUnit = "cm" | "m" | "inch" | "foot" | "km" | "mi" | "yd";
|
|
261
224
|
type WeightUnit = "kg" | "g" | "lb" | "oz";
|
|
262
225
|
|
|
263
226
|
declare enum SocialMediaType {
|
|
@@ -325,4 +288,4 @@ declare const getProfileAttributeLabel: ({ profileType, categoryType, interestTy
|
|
|
325
288
|
attributeType: AttributeType;
|
|
326
289
|
}) => any;
|
|
327
290
|
|
|
328
|
-
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, type 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,
|
|
@@ -58,7 +51,6 @@ __export(index_exports, {
|
|
|
58
51
|
TennisBackhand: () => TennisBackhand,
|
|
59
52
|
TennisLevel: () => TennisLevel,
|
|
60
53
|
UserPronoun: () => UserPronoun,
|
|
61
|
-
getBuddyingStatusName: () => getBuddyingStatusName,
|
|
62
54
|
getMemberingStatusName: () => getMemberingStatusName,
|
|
63
55
|
getNotificationTypeName: () => getNotificationTypeName,
|
|
64
56
|
getPIDPrefixByProfileType: () => getPIDPrefixByProfileType,
|
|
@@ -117,14 +109,6 @@ var MarketMetaStatus = /* @__PURE__ */ ((MarketMetaStatus2) => {
|
|
|
117
109
|
return MarketMetaStatus2;
|
|
118
110
|
})(MarketMetaStatus || {});
|
|
119
111
|
|
|
120
|
-
// src/page/profile/collection/status.ts
|
|
121
|
-
var CollectionMetaStatus = /* @__PURE__ */ ((CollectionMetaStatus2) => {
|
|
122
|
-
CollectionMetaStatus2[CollectionMetaStatus2["None"] = 0] = "None";
|
|
123
|
-
CollectionMetaStatus2[CollectionMetaStatus2["Active"] = 1] = "Active";
|
|
124
|
-
CollectionMetaStatus2[CollectionMetaStatus2["Inactive"] = 2] = "Inactive";
|
|
125
|
-
return CollectionMetaStatus2;
|
|
126
|
-
})(CollectionMetaStatus || {});
|
|
127
|
-
|
|
128
112
|
// src/page/profile/user.ts
|
|
129
113
|
var UserPronoun = /* @__PURE__ */ ((UserPronoun2) => {
|
|
130
114
|
UserPronoun2[UserPronoun2["None"] = 0] = "None";
|
|
@@ -144,24 +128,6 @@ var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
|
|
|
144
128
|
return AttendanceStatus2;
|
|
145
129
|
})(AttendanceStatus || {});
|
|
146
130
|
|
|
147
|
-
// src/page/profile/game/duel.ts
|
|
148
|
-
var DuelGameResultType = /* @__PURE__ */ ((DuelGameResultType2) => {
|
|
149
|
-
DuelGameResultType2[DuelGameResultType2["Loss"] = -1] = "Loss";
|
|
150
|
-
DuelGameResultType2[DuelGameResultType2["Tie"] = 0] = "Tie";
|
|
151
|
-
DuelGameResultType2[DuelGameResultType2["Win"] = 1] = "Win";
|
|
152
|
-
return DuelGameResultType2;
|
|
153
|
-
})(DuelGameResultType || {});
|
|
154
|
-
|
|
155
|
-
// src/page/profile/leaderboard.ts
|
|
156
|
-
var LeaderboardType = /* @__PURE__ */ ((LeaderboardType2) => {
|
|
157
|
-
LeaderboardType2[LeaderboardType2["Score"] = 0] = "Score";
|
|
158
|
-
LeaderboardType2[LeaderboardType2["Duel"] = 1] = "Duel";
|
|
159
|
-
LeaderboardType2[LeaderboardType2["Time"] = 2] = "Time";
|
|
160
|
-
LeaderboardType2[LeaderboardType2["Distance"] = 3] = "Distance";
|
|
161
|
-
LeaderboardType2[LeaderboardType2["Weight"] = 4] = "Weight";
|
|
162
|
-
return LeaderboardType2;
|
|
163
|
-
})(LeaderboardType || {});
|
|
164
|
-
|
|
165
131
|
// src/page/profile/avatar.ts
|
|
166
132
|
var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
|
|
167
133
|
AvatarType2[AvatarType2["None"] = 0] = "None";
|
|
@@ -194,15 +160,6 @@ var PostPrivacy = /* @__PURE__ */ ((PostPrivacy2) => {
|
|
|
194
160
|
return PostPrivacy2;
|
|
195
161
|
})(PostPrivacy || {});
|
|
196
162
|
|
|
197
|
-
// src/page/location.ts
|
|
198
|
-
var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
199
|
-
LocationType2[LocationType2["None"] = 0] = "None";
|
|
200
|
-
LocationType2[LocationType2["Point"] = 1] = "Point";
|
|
201
|
-
LocationType2[LocationType2["Street"] = 2] = "Street";
|
|
202
|
-
LocationType2[LocationType2["City"] = 3] = "City";
|
|
203
|
-
return LocationType2;
|
|
204
|
-
})(LocationType || {});
|
|
205
|
-
|
|
206
163
|
// src/page/pid.ts
|
|
207
164
|
var PID_LENGTH = 9;
|
|
208
165
|
var PID_PREFIX_LENGTH = 3;
|
|
@@ -288,37 +245,6 @@ var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
|
|
|
288
245
|
})(AdminAccountStatus || {});
|
|
289
246
|
|
|
290
247
|
// src/connection.ts
|
|
291
|
-
var BuddyingStatus = /* @__PURE__ */ ((BuddyingStatus2) => {
|
|
292
|
-
BuddyingStatus2[BuddyingStatus2["None"] = 0] = "None";
|
|
293
|
-
BuddyingStatus2[BuddyingStatus2["PendingSent"] = 1] = "PendingSent";
|
|
294
|
-
BuddyingStatus2[BuddyingStatus2["PendingReceived"] = 2] = "PendingReceived";
|
|
295
|
-
BuddyingStatus2[BuddyingStatus2["Accepted"] = 3] = "Accepted";
|
|
296
|
-
BuddyingStatus2[BuddyingStatus2["Ignored"] = 4] = "Ignored";
|
|
297
|
-
BuddyingStatus2[BuddyingStatus2["Withdrawn"] = 5] = "Withdrawn";
|
|
298
|
-
BuddyingStatus2[BuddyingStatus2["RemovedByRequester"] = 6] = "RemovedByRequester";
|
|
299
|
-
BuddyingStatus2[BuddyingStatus2["RemovedByRequestee"] = 7] = "RemovedByRequestee";
|
|
300
|
-
return BuddyingStatus2;
|
|
301
|
-
})(BuddyingStatus || {});
|
|
302
|
-
var getBuddyingStatusName = (status) => {
|
|
303
|
-
switch (status) {
|
|
304
|
-
case 1 /* PendingSent */:
|
|
305
|
-
return "Pending Sent";
|
|
306
|
-
case 2 /* PendingReceived */:
|
|
307
|
-
return "Pending Received";
|
|
308
|
-
case 3 /* Accepted */:
|
|
309
|
-
return "Accepted";
|
|
310
|
-
case 4 /* Ignored */:
|
|
311
|
-
return "Ignored";
|
|
312
|
-
case 5 /* Withdrawn */:
|
|
313
|
-
return "Withdrawn";
|
|
314
|
-
case 6 /* RemovedByRequester */:
|
|
315
|
-
return "Removed By Requester";
|
|
316
|
-
case 7 /* RemovedByRequestee */:
|
|
317
|
-
return "Removed By Requestee";
|
|
318
|
-
default:
|
|
319
|
-
return "None";
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
248
|
var MemberingStatus = /* @__PURE__ */ ((MemberingStatus2) => {
|
|
323
249
|
MemberingStatus2[MemberingStatus2["None"] = 0] = "None";
|
|
324
250
|
MemberingStatus2[MemberingStatus2["Admined"] = 1] = "Admined";
|
|
@@ -369,20 +295,6 @@ var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
|
|
|
369
295
|
return FollowingStatus2;
|
|
370
296
|
})(FollowingStatus || {});
|
|
371
297
|
|
|
372
|
-
// src/attribute/common.ts
|
|
373
|
-
var Handedness = /* @__PURE__ */ ((Handedness2) => {
|
|
374
|
-
Handedness2[Handedness2["None"] = 0] = "None";
|
|
375
|
-
Handedness2[Handedness2["Left"] = 1] = "Left";
|
|
376
|
-
Handedness2[Handedness2["Right"] = 2] = "Right";
|
|
377
|
-
return Handedness2;
|
|
378
|
-
})(Handedness || {});
|
|
379
|
-
var Gender = /* @__PURE__ */ ((Gender2) => {
|
|
380
|
-
Gender2[Gender2["None"] = 0] = "None";
|
|
381
|
-
Gender2[Gender2["Male"] = 1] = "Male";
|
|
382
|
-
Gender2[Gender2["Female"] = 2] = "Female";
|
|
383
|
-
return Gender2;
|
|
384
|
-
})(Gender || {});
|
|
385
|
-
|
|
386
298
|
// src/attribute/uoi/sports/tennis.ts
|
|
387
299
|
var TennisBackhand = /* @__PURE__ */ ((TennisBackhand2) => {
|
|
388
300
|
TennisBackhand2[TennisBackhand2["None"] = 0] = "None";
|
|
@@ -575,15 +487,8 @@ var getProfileAttributeLabel = ({
|
|
|
575
487
|
AttendanceStatus,
|
|
576
488
|
AvatarType,
|
|
577
489
|
BasketballPosition,
|
|
578
|
-
BuddyingStatus,
|
|
579
490
|
ChallengeStatus,
|
|
580
|
-
CollectionMetaStatus,
|
|
581
|
-
DuelGameResultType,
|
|
582
491
|
FollowingStatus,
|
|
583
|
-
Gender,
|
|
584
|
-
Handedness,
|
|
585
|
-
LeaderboardType,
|
|
586
|
-
LocationType,
|
|
587
492
|
MarketMetaStatus,
|
|
588
493
|
MemberingStatus,
|
|
589
494
|
NotificationType,
|
|
@@ -601,7 +506,6 @@ var getProfileAttributeLabel = ({
|
|
|
601
506
|
TennisBackhand,
|
|
602
507
|
TennisLevel,
|
|
603
508
|
UserPronoun,
|
|
604
|
-
getBuddyingStatusName,
|
|
605
509
|
getMemberingStatusName,
|
|
606
510
|
getNotificationTypeName,
|
|
607
511
|
getPIDPrefixByProfileType,
|
package/dist/index.mjs
CHANGED
|
@@ -44,14 +44,6 @@ var MarketMetaStatus = /* @__PURE__ */ ((MarketMetaStatus2) => {
|
|
|
44
44
|
return MarketMetaStatus2;
|
|
45
45
|
})(MarketMetaStatus || {});
|
|
46
46
|
|
|
47
|
-
// src/page/profile/collection/status.ts
|
|
48
|
-
var CollectionMetaStatus = /* @__PURE__ */ ((CollectionMetaStatus2) => {
|
|
49
|
-
CollectionMetaStatus2[CollectionMetaStatus2["None"] = 0] = "None";
|
|
50
|
-
CollectionMetaStatus2[CollectionMetaStatus2["Active"] = 1] = "Active";
|
|
51
|
-
CollectionMetaStatus2[CollectionMetaStatus2["Inactive"] = 2] = "Inactive";
|
|
52
|
-
return CollectionMetaStatus2;
|
|
53
|
-
})(CollectionMetaStatus || {});
|
|
54
|
-
|
|
55
47
|
// src/page/profile/user.ts
|
|
56
48
|
var UserPronoun = /* @__PURE__ */ ((UserPronoun2) => {
|
|
57
49
|
UserPronoun2[UserPronoun2["None"] = 0] = "None";
|
|
@@ -71,24 +63,6 @@ var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
|
|
|
71
63
|
return AttendanceStatus2;
|
|
72
64
|
})(AttendanceStatus || {});
|
|
73
65
|
|
|
74
|
-
// src/page/profile/game/duel.ts
|
|
75
|
-
var DuelGameResultType = /* @__PURE__ */ ((DuelGameResultType2) => {
|
|
76
|
-
DuelGameResultType2[DuelGameResultType2["Loss"] = -1] = "Loss";
|
|
77
|
-
DuelGameResultType2[DuelGameResultType2["Tie"] = 0] = "Tie";
|
|
78
|
-
DuelGameResultType2[DuelGameResultType2["Win"] = 1] = "Win";
|
|
79
|
-
return DuelGameResultType2;
|
|
80
|
-
})(DuelGameResultType || {});
|
|
81
|
-
|
|
82
|
-
// src/page/profile/leaderboard.ts
|
|
83
|
-
var LeaderboardType = /* @__PURE__ */ ((LeaderboardType2) => {
|
|
84
|
-
LeaderboardType2[LeaderboardType2["Score"] = 0] = "Score";
|
|
85
|
-
LeaderboardType2[LeaderboardType2["Duel"] = 1] = "Duel";
|
|
86
|
-
LeaderboardType2[LeaderboardType2["Time"] = 2] = "Time";
|
|
87
|
-
LeaderboardType2[LeaderboardType2["Distance"] = 3] = "Distance";
|
|
88
|
-
LeaderboardType2[LeaderboardType2["Weight"] = 4] = "Weight";
|
|
89
|
-
return LeaderboardType2;
|
|
90
|
-
})(LeaderboardType || {});
|
|
91
|
-
|
|
92
66
|
// src/page/profile/avatar.ts
|
|
93
67
|
var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
|
|
94
68
|
AvatarType2[AvatarType2["None"] = 0] = "None";
|
|
@@ -121,15 +95,6 @@ var PostPrivacy = /* @__PURE__ */ ((PostPrivacy2) => {
|
|
|
121
95
|
return PostPrivacy2;
|
|
122
96
|
})(PostPrivacy || {});
|
|
123
97
|
|
|
124
|
-
// src/page/location.ts
|
|
125
|
-
var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
126
|
-
LocationType2[LocationType2["None"] = 0] = "None";
|
|
127
|
-
LocationType2[LocationType2["Point"] = 1] = "Point";
|
|
128
|
-
LocationType2[LocationType2["Street"] = 2] = "Street";
|
|
129
|
-
LocationType2[LocationType2["City"] = 3] = "City";
|
|
130
|
-
return LocationType2;
|
|
131
|
-
})(LocationType || {});
|
|
132
|
-
|
|
133
98
|
// src/page/pid.ts
|
|
134
99
|
var PID_LENGTH = 9;
|
|
135
100
|
var PID_PREFIX_LENGTH = 3;
|
|
@@ -215,37 +180,6 @@ var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
|
|
|
215
180
|
})(AdminAccountStatus || {});
|
|
216
181
|
|
|
217
182
|
// src/connection.ts
|
|
218
|
-
var BuddyingStatus = /* @__PURE__ */ ((BuddyingStatus2) => {
|
|
219
|
-
BuddyingStatus2[BuddyingStatus2["None"] = 0] = "None";
|
|
220
|
-
BuddyingStatus2[BuddyingStatus2["PendingSent"] = 1] = "PendingSent";
|
|
221
|
-
BuddyingStatus2[BuddyingStatus2["PendingReceived"] = 2] = "PendingReceived";
|
|
222
|
-
BuddyingStatus2[BuddyingStatus2["Accepted"] = 3] = "Accepted";
|
|
223
|
-
BuddyingStatus2[BuddyingStatus2["Ignored"] = 4] = "Ignored";
|
|
224
|
-
BuddyingStatus2[BuddyingStatus2["Withdrawn"] = 5] = "Withdrawn";
|
|
225
|
-
BuddyingStatus2[BuddyingStatus2["RemovedByRequester"] = 6] = "RemovedByRequester";
|
|
226
|
-
BuddyingStatus2[BuddyingStatus2["RemovedByRequestee"] = 7] = "RemovedByRequestee";
|
|
227
|
-
return BuddyingStatus2;
|
|
228
|
-
})(BuddyingStatus || {});
|
|
229
|
-
var getBuddyingStatusName = (status) => {
|
|
230
|
-
switch (status) {
|
|
231
|
-
case 1 /* PendingSent */:
|
|
232
|
-
return "Pending Sent";
|
|
233
|
-
case 2 /* PendingReceived */:
|
|
234
|
-
return "Pending Received";
|
|
235
|
-
case 3 /* Accepted */:
|
|
236
|
-
return "Accepted";
|
|
237
|
-
case 4 /* Ignored */:
|
|
238
|
-
return "Ignored";
|
|
239
|
-
case 5 /* Withdrawn */:
|
|
240
|
-
return "Withdrawn";
|
|
241
|
-
case 6 /* RemovedByRequester */:
|
|
242
|
-
return "Removed By Requester";
|
|
243
|
-
case 7 /* RemovedByRequestee */:
|
|
244
|
-
return "Removed By Requestee";
|
|
245
|
-
default:
|
|
246
|
-
return "None";
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
183
|
var MemberingStatus = /* @__PURE__ */ ((MemberingStatus2) => {
|
|
250
184
|
MemberingStatus2[MemberingStatus2["None"] = 0] = "None";
|
|
251
185
|
MemberingStatus2[MemberingStatus2["Admined"] = 1] = "Admined";
|
|
@@ -296,20 +230,6 @@ var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
|
|
|
296
230
|
return FollowingStatus2;
|
|
297
231
|
})(FollowingStatus || {});
|
|
298
232
|
|
|
299
|
-
// src/attribute/common.ts
|
|
300
|
-
var Handedness = /* @__PURE__ */ ((Handedness2) => {
|
|
301
|
-
Handedness2[Handedness2["None"] = 0] = "None";
|
|
302
|
-
Handedness2[Handedness2["Left"] = 1] = "Left";
|
|
303
|
-
Handedness2[Handedness2["Right"] = 2] = "Right";
|
|
304
|
-
return Handedness2;
|
|
305
|
-
})(Handedness || {});
|
|
306
|
-
var Gender = /* @__PURE__ */ ((Gender2) => {
|
|
307
|
-
Gender2[Gender2["None"] = 0] = "None";
|
|
308
|
-
Gender2[Gender2["Male"] = 1] = "Male";
|
|
309
|
-
Gender2[Gender2["Female"] = 2] = "Female";
|
|
310
|
-
return Gender2;
|
|
311
|
-
})(Gender || {});
|
|
312
|
-
|
|
313
233
|
// src/attribute/uoi/sports/tennis.ts
|
|
314
234
|
var TennisBackhand = /* @__PURE__ */ ((TennisBackhand2) => {
|
|
315
235
|
TennisBackhand2[TennisBackhand2["None"] = 0] = "None";
|
|
@@ -501,15 +421,8 @@ export {
|
|
|
501
421
|
AttendanceStatus,
|
|
502
422
|
AvatarType,
|
|
503
423
|
BasketballPosition,
|
|
504
|
-
BuddyingStatus,
|
|
505
424
|
ChallengeStatus,
|
|
506
|
-
CollectionMetaStatus,
|
|
507
|
-
DuelGameResultType,
|
|
508
425
|
FollowingStatus,
|
|
509
|
-
Gender,
|
|
510
|
-
Handedness,
|
|
511
|
-
LeaderboardType,
|
|
512
|
-
LocationType,
|
|
513
426
|
MarketMetaStatus,
|
|
514
427
|
MemberingStatus,
|
|
515
428
|
NotificationType,
|
|
@@ -527,7 +440,6 @@ export {
|
|
|
527
440
|
TennisBackhand,
|
|
528
441
|
TennisLevel,
|
|
529
442
|
UserPronoun,
|
|
530
|
-
getBuddyingStatusName,
|
|
531
443
|
getMemberingStatusName,
|
|
532
444
|
getNotificationTypeName,
|
|
533
445
|
getPIDPrefixByProfileType,
|
package/package.json
CHANGED
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/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";
|
|
@@ -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";
|