wenum 1.57.0 → 1.59.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 CHANGED
@@ -136,6 +136,8 @@ declare enum ProfileJoiningType {
136
136
  MemberToCircle = 2
137
137
  }
138
138
 
139
+ type PlayerType = 'uoi' | 'team' | 'collection';
140
+
139
141
  declare enum PostType {
140
142
  None = 0,
141
143
  Text = 1,
@@ -167,13 +169,7 @@ declare function isLeaderboardPID(pid: string): boolean;
167
169
 
168
170
  type BroadcastType = 'info' | 'warn' | 'alert';
169
171
 
170
- declare enum AccountStatus {
171
- None = 0,
172
- RegistrationNeedBasicInfo = 1,
173
- RegistrationNeedInterests = 2,
174
- Active = 3,
175
- Inactive = 4
176
- }
172
+ type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
177
173
  declare enum AdminAccountStatus {
178
174
  None = 0,
179
175
  Active = 1,
@@ -341,4 +337,4 @@ declare const getProfileAttributeLabel: ({ profileType, categoryType, interestTy
341
337
  attributeType: AttributeType;
342
338
  }) => any;
343
339
 
344
- 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, 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, PostPrivacy, PostType, ProfileJoiningType, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, SocialMediaType, type SportsInterestType, SubjectType, TennisBackhand, TennisLevel, UserPronoun, type WeightUnit, getBuddyingStatusName, getMemberingStatusName, getNotificationTypeName, getPIDPrefixByProfileType, getProfileAttributeLabel, getProfileTypeByPID, getProfileTypeName, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
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, getBuddyingStatusName, getMemberingStatusName, getNotificationTypeName, getPIDPrefixByProfileType, getProfileAttributeLabel, getProfileTypeByPID, getProfileTypeName, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.d.ts CHANGED
@@ -136,6 +136,8 @@ declare enum ProfileJoiningType {
136
136
  MemberToCircle = 2
137
137
  }
138
138
 
139
+ type PlayerType = 'uoi' | 'team' | 'collection';
140
+
139
141
  declare enum PostType {
140
142
  None = 0,
141
143
  Text = 1,
@@ -167,13 +169,7 @@ declare function isLeaderboardPID(pid: string): boolean;
167
169
 
168
170
  type BroadcastType = 'info' | 'warn' | 'alert';
169
171
 
170
- declare enum AccountStatus {
171
- None = 0,
172
- RegistrationNeedBasicInfo = 1,
173
- RegistrationNeedInterests = 2,
174
- Active = 3,
175
- Inactive = 4
176
- }
172
+ type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
177
173
  declare enum AdminAccountStatus {
178
174
  None = 0,
179
175
  Active = 1,
@@ -341,4 +337,4 @@ declare const getProfileAttributeLabel: ({ profileType, categoryType, interestTy
341
337
  attributeType: AttributeType;
342
338
  }) => any;
343
339
 
344
- 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, 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, PostPrivacy, PostType, ProfileJoiningType, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, SocialMediaType, type SportsInterestType, SubjectType, TennisBackhand, TennisLevel, UserPronoun, type WeightUnit, getBuddyingStatusName, getMemberingStatusName, getNotificationTypeName, getPIDPrefixByProfileType, getProfileAttributeLabel, getProfileTypeByPID, getProfileTypeName, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
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, getBuddyingStatusName, getMemberingStatusName, getNotificationTypeName, getPIDPrefixByProfileType, getProfileAttributeLabel, getProfileTypeByPID, getProfileTypeName, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.js CHANGED
@@ -28,7 +28,6 @@ __export(index_exports, {
28
28
  ATTRIBUTE_LABEL_UOI_SPORTS: () => ATTRIBUTE_LABEL_UOI_SPORTS,
29
29
  ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL: () => ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL,
30
30
  ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS: () => ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS,
31
- AccountStatus: () => AccountStatus,
32
31
  AdminAccountStatus: () => AdminAccountStatus,
33
32
  AttendanceStatus: () => AttendanceStatus,
34
33
  AvatarType: () => AvatarType,
@@ -320,14 +319,6 @@ function isLeaderboardPID(pid) {
320
319
  }
321
320
 
322
321
  // src/auth.ts
323
- var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
324
- AccountStatus2[AccountStatus2["None"] = 0] = "None";
325
- AccountStatus2[AccountStatus2["RegistrationNeedBasicInfo"] = 1] = "RegistrationNeedBasicInfo";
326
- AccountStatus2[AccountStatus2["RegistrationNeedInterests"] = 2] = "RegistrationNeedInterests";
327
- AccountStatus2[AccountStatus2["Active"] = 3] = "Active";
328
- AccountStatus2[AccountStatus2["Inactive"] = 4] = "Inactive";
329
- return AccountStatus2;
330
- })(AccountStatus || {});
331
322
  var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
332
323
  AdminAccountStatus2[AdminAccountStatus2["None"] = 0] = "None";
333
324
  AdminAccountStatus2[AdminAccountStatus2["Active"] = 1] = "Active";
@@ -619,7 +610,6 @@ var getProfileAttributeLabel = ({
619
610
  ATTRIBUTE_LABEL_UOI_SPORTS,
620
611
  ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL,
621
612
  ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS,
622
- AccountStatus,
623
613
  AdminAccountStatus,
624
614
  AttendanceStatus,
625
615
  AvatarType,
package/dist/index.mjs CHANGED
@@ -244,14 +244,6 @@ function isLeaderboardPID(pid) {
244
244
  }
245
245
 
246
246
  // src/auth.ts
247
- var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
248
- AccountStatus2[AccountStatus2["None"] = 0] = "None";
249
- AccountStatus2[AccountStatus2["RegistrationNeedBasicInfo"] = 1] = "RegistrationNeedBasicInfo";
250
- AccountStatus2[AccountStatus2["RegistrationNeedInterests"] = 2] = "RegistrationNeedInterests";
251
- AccountStatus2[AccountStatus2["Active"] = 3] = "Active";
252
- AccountStatus2[AccountStatus2["Inactive"] = 4] = "Inactive";
253
- return AccountStatus2;
254
- })(AccountStatus || {});
255
247
  var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
256
248
  AdminAccountStatus2[AdminAccountStatus2["None"] = 0] = "None";
257
249
  AdminAccountStatus2[AdminAccountStatus2["Active"] = 1] = "Active";
@@ -542,7 +534,6 @@ export {
542
534
  ATTRIBUTE_LABEL_UOI_SPORTS,
543
535
  ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL,
544
536
  ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS,
545
- AccountStatus,
546
537
  AdminAccountStatus,
547
538
  AttendanceStatus,
548
539
  AvatarType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.57.0",
3
+ "version": "1.59.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/src/auth.ts CHANGED
@@ -1,13 +1,13 @@
1
- export enum AccountStatus {
2
- None,
3
- RegistrationNeedBasicInfo,
4
- RegistrationNeedInterests,
5
- Active,
6
- Inactive,
7
- }
1
+ export type AccountStatus =
2
+ "none"|
3
+ "registrationNeedBasicInfo"|
4
+ "registrationNeedInterests"|
5
+ "active"|
6
+ "inactive";
8
7
 
9
8
  export enum AdminAccountStatus {
10
9
  None,
11
10
  Active,
12
11
  Inactive,
13
12
  }
13
+
@@ -6,4 +6,5 @@ export * from './event';
6
6
  export * from './game';
7
7
  export * from './leaderboard';
8
8
  export * from './avatar';
9
- export * from './joining';
9
+ export * from './joining';
10
+ export * from './player';
@@ -0,0 +1 @@
1
+ export type PlayerType = 'uoi' | 'team' | 'collection';