wenum 2.2.1 → 2.4.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.cjs CHANGED
@@ -360,8 +360,8 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
360
360
  return `https://avatar.buddiesnearby.com/${folder}/${pageID}/${imageID}/${size}.webp`;
361
361
  }
362
362
  //#endregion
363
- //#region src/userViolation.ts
364
- const USER_VIOLATION_OPTIONS = [
363
+ //#region src/contentViolation.ts
364
+ const CONTENT_VIOLATION_OPTIONS = [
365
365
  {
366
366
  key: "spam",
367
367
  label: "Spam"
@@ -406,6 +406,7 @@ exports.BasketballPosition = BasketballPosition;
406
406
  exports.COLLECTION_ATTRIBUTE_LABEL = COLLECTION_ATTRIBUTE_LABEL;
407
407
  exports.COLLECTION_PETS_ATTRIBUTE_LABEL = COLLECTION_PETS_ATTRIBUTE_LABEL;
408
408
  exports.COMMON_ATTRIBUTE_LABEL = COMMON_ATTRIBUTE_LABEL;
409
+ exports.CONTENT_VIOLATION_OPTIONS = CONTENT_VIOLATION_OPTIONS;
409
410
  exports.ChallengeStatus = ChallengeStatus;
410
411
  exports.FollowingStatus = FollowingStatus;
411
412
  exports.INTERESTS_BY_CATEGORY = INTERESTS_BY_CATEGORY;
@@ -416,7 +417,6 @@ exports.UOI_ATTRIBUTE_LABEL = UOI_ATTRIBUTE_LABEL;
416
417
  exports.UOI_SPORTS_ATTRIBUTE_LABEL = UOI_SPORTS_ATTRIBUTE_LABEL;
417
418
  exports.UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL = UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL;
418
419
  exports.UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL = UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL;
419
- exports.USER_VIOLATION_OPTIONS = USER_VIOLATION_OPTIONS;
420
420
  exports.ZeroCollectionMeta = ZeroCollectionMeta;
421
421
  exports.ZeroGameMeta = ZeroGameMeta;
422
422
  exports.ZeroMarketOption = ZeroMarketOption;
package/dist/index.d.cts CHANGED
@@ -5,7 +5,7 @@ type PageType = "none" | "profile" | "post" | "loi" | "location" | "collection";
5
5
  type ProfileType = "none" | "user" | "uoi" | "market" | "arena" | "organization" | "event" | "team" | "leaderboard" | "game";
6
6
  type ProfilePrivacy = "public" | "private" | "internal";
7
7
  type ProfilePermission = "none" | "admin" | "connected" | "following" | "blocked";
8
- type ProfileStatus = "none" | "active" | "inactive";
8
+ type ProfileStatus = "none" | "active" | "deletedByUser" | "removedByModerator";
9
9
  declare enum ChallengeStatus {
10
10
  None = 0,
11
11
  Open = 1,
@@ -94,6 +94,7 @@ type PlayerType = 'uoi' | 'team' | 'collection';
94
94
  //#endregion
95
95
  //#region src/page/post.d.ts
96
96
  type PostPrivacy = "public" | "private" | "parent" | "internal";
97
+ type PostStatus = "none" | "active" | "deletedByUser" | "removedByModerator";
97
98
  //#endregion
98
99
  //#region src/page/location.d.ts
99
100
  type LocationType = "none" | "point" | "street" | "city";
@@ -141,7 +142,7 @@ type CollectionType = CollectionTypePets | CollectionTypeSports;
141
142
  //#endregion
142
143
  //#region src/page/collection/other.d.ts
143
144
  type CollectionMetaStatus = "inactive" | "active" | "none";
144
- type CollectionStatus = "inactive" | "active" | "none";
145
+ type CollectionStatus = "none" | "active" | "deletedByUser" | "removedByModerator";
145
146
  type CollectionPrivacy = "public" | "private";
146
147
  type CollectionOwnerStatus = "owned";
147
148
  interface CollectionMetaProps {
@@ -182,7 +183,7 @@ declare enum AttachmentType {
182
183
  }
183
184
  //#endregion
184
185
  //#region src/auth.d.ts
185
- type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
186
+ type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "closedByUser" | "banned";
186
187
  declare enum AdminAccountStatus {
187
188
  None = 0,
188
189
  Active = 1,
@@ -221,6 +222,7 @@ declare enum BasketballPosition {
221
222
  //#endregion
222
223
  //#region src/comment.d.ts
223
224
  type SubjectType = "none" | "post" | "rating" | "comment" | "reply";
225
+ type CommentStatus = "none" | "active" | "deletedByUser" | "removedByModerator";
224
226
  //#endregion
225
227
  //#region src/interest/category.d.ts
226
228
  type CategoryType = '1_sports' | '2_pets' | '3_cardgames' | '4_music' | '5_travel' | '6_leisure' | '';
@@ -347,12 +349,12 @@ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' |
347
349
  declare function getAvatarR2FolderByEntityType(entityType: EntityType): AvatarR2Folder;
348
350
  declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
349
351
  //#endregion
350
- //#region src/userViolation.d.ts
351
- type UserViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
352
- interface UserViolationOption {
353
- key: UserViolationType;
352
+ //#region src/contentViolation.d.ts
353
+ type ContentViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
354
+ interface ContentViolationOption {
355
+ key: ContentViolationType;
354
356
  label: string;
355
357
  }
356
- declare const USER_VIOLATION_OPTIONS: UserViolationOption[];
358
+ declare const CONTENT_VIOLATION_OPTIONS: ContentViolationOption[];
357
359
  //#endregion
358
- export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, AccountStatus, AddingEntityType, AdminAccountStatus, AttachmentType, AttendanceStatus, AvatarR2Folder, BasketballPosition, BroadcastType, BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, CardGamesInterestType, CategoryType, ChallengeStatus, CollectionAttributeType, CollectionMetaProps, CollectionMetaStatus, CollectionOwnerStatus, CollectionPetsAttributeType, CollectionPrivacy, CollectionStatus, CollectionType, CommonAttributeType, CommonMarketType, DuelGameResultType, EntityType, EventsNearbyProps, FollowingStatus, GameMetaProps, GameType, GamesByTypeNearbyProps, GamesNearbyProps, Gender, Handedness, INTERESTS_BY_CATEGORY, ImageSize, InterestNearbyProps, InterestType, LeaderboardType, LeaderboardsByGameTypeNearbyProps, LeisureInterestType, LengthUnit, LocationType, MarketMetaProps, MarketMetaStatus, MarketType, MarketsByTypeNearbyProps, MemberingStatus, MusicInterestType, NearbyProps, NotificationType, PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, PageR2Folder, PageType, PetsInterestType, PlayerType, PostPrivacy, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, ReactionType, SocialMediaType, SportsInterestType, SubjectR2Folder, SubjectType, TennisBackhand, TennisLevel, TravelInterestType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, USER_VIOLATION_OPTIONS, UoiAttributeType, UoiSportsAttributeType, UoiSportsBasketballAttributeType, UoiSportsTennisAttributeType, UserPronoun, UserViolationOption, UserViolationType, WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByEntityType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
360
+ export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, AccountStatus, AddingEntityType, AdminAccountStatus, AttachmentType, AttendanceStatus, AvatarR2Folder, BasketballPosition, BroadcastType, BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, CONTENT_VIOLATION_OPTIONS, CardGamesInterestType, CategoryType, ChallengeStatus, CollectionAttributeType, CollectionMetaProps, CollectionMetaStatus, CollectionOwnerStatus, CollectionPetsAttributeType, CollectionPrivacy, CollectionStatus, CollectionType, CommentStatus, CommonAttributeType, CommonMarketType, ContentViolationOption, ContentViolationType, DuelGameResultType, EntityType, EventsNearbyProps, FollowingStatus, GameMetaProps, GameType, GamesByTypeNearbyProps, GamesNearbyProps, Gender, Handedness, INTERESTS_BY_CATEGORY, ImageSize, InterestNearbyProps, InterestType, LeaderboardType, LeaderboardsByGameTypeNearbyProps, LeisureInterestType, LengthUnit, LocationType, MarketMetaProps, MarketMetaStatus, MarketType, MarketsByTypeNearbyProps, MemberingStatus, MusicInterestType, NearbyProps, NotificationType, PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, PageR2Folder, PageType, PetsInterestType, PlayerType, PostPrivacy, PostStatus, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, ReactionType, SocialMediaType, SportsInterestType, SubjectR2Folder, SubjectType, TennisBackhand, TennisLevel, TravelInterestType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, UoiAttributeType, UoiSportsAttributeType, UoiSportsBasketballAttributeType, UoiSportsTennisAttributeType, UserPronoun, WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByEntityType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.d.mts CHANGED
@@ -5,7 +5,7 @@ type PageType = "none" | "profile" | "post" | "loi" | "location" | "collection";
5
5
  type ProfileType = "none" | "user" | "uoi" | "market" | "arena" | "organization" | "event" | "team" | "leaderboard" | "game";
6
6
  type ProfilePrivacy = "public" | "private" | "internal";
7
7
  type ProfilePermission = "none" | "admin" | "connected" | "following" | "blocked";
8
- type ProfileStatus = "none" | "active" | "inactive";
8
+ type ProfileStatus = "none" | "active" | "deletedByUser" | "removedByModerator";
9
9
  declare enum ChallengeStatus {
10
10
  None = 0,
11
11
  Open = 1,
@@ -94,6 +94,7 @@ type PlayerType = 'uoi' | 'team' | 'collection';
94
94
  //#endregion
95
95
  //#region src/page/post.d.ts
96
96
  type PostPrivacy = "public" | "private" | "parent" | "internal";
97
+ type PostStatus = "none" | "active" | "deletedByUser" | "removedByModerator";
97
98
  //#endregion
98
99
  //#region src/page/location.d.ts
99
100
  type LocationType = "none" | "point" | "street" | "city";
@@ -141,7 +142,7 @@ type CollectionType = CollectionTypePets | CollectionTypeSports;
141
142
  //#endregion
142
143
  //#region src/page/collection/other.d.ts
143
144
  type CollectionMetaStatus = "inactive" | "active" | "none";
144
- type CollectionStatus = "inactive" | "active" | "none";
145
+ type CollectionStatus = "none" | "active" | "deletedByUser" | "removedByModerator";
145
146
  type CollectionPrivacy = "public" | "private";
146
147
  type CollectionOwnerStatus = "owned";
147
148
  interface CollectionMetaProps {
@@ -182,7 +183,7 @@ declare enum AttachmentType {
182
183
  }
183
184
  //#endregion
184
185
  //#region src/auth.d.ts
185
- type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
186
+ type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "closedByUser" | "banned";
186
187
  declare enum AdminAccountStatus {
187
188
  None = 0,
188
189
  Active = 1,
@@ -221,6 +222,7 @@ declare enum BasketballPosition {
221
222
  //#endregion
222
223
  //#region src/comment.d.ts
223
224
  type SubjectType = "none" | "post" | "rating" | "comment" | "reply";
225
+ type CommentStatus = "none" | "active" | "deletedByUser" | "removedByModerator";
224
226
  //#endregion
225
227
  //#region src/interest/category.d.ts
226
228
  type CategoryType = '1_sports' | '2_pets' | '3_cardgames' | '4_music' | '5_travel' | '6_leisure' | '';
@@ -347,12 +349,12 @@ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' |
347
349
  declare function getAvatarR2FolderByEntityType(entityType: EntityType): AvatarR2Folder;
348
350
  declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
349
351
  //#endregion
350
- //#region src/userViolation.d.ts
351
- type UserViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
352
- interface UserViolationOption {
353
- key: UserViolationType;
352
+ //#region src/contentViolation.d.ts
353
+ type ContentViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
354
+ interface ContentViolationOption {
355
+ key: ContentViolationType;
354
356
  label: string;
355
357
  }
356
- declare const USER_VIOLATION_OPTIONS: UserViolationOption[];
358
+ declare const CONTENT_VIOLATION_OPTIONS: ContentViolationOption[];
357
359
  //#endregion
358
- export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, AccountStatus, AddingEntityType, AdminAccountStatus, AttachmentType, AttendanceStatus, AvatarR2Folder, BasketballPosition, BroadcastType, BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, CardGamesInterestType, CategoryType, ChallengeStatus, CollectionAttributeType, CollectionMetaProps, CollectionMetaStatus, CollectionOwnerStatus, CollectionPetsAttributeType, CollectionPrivacy, CollectionStatus, CollectionType, CommonAttributeType, CommonMarketType, DuelGameResultType, EntityType, EventsNearbyProps, FollowingStatus, GameMetaProps, GameType, GamesByTypeNearbyProps, GamesNearbyProps, Gender, Handedness, INTERESTS_BY_CATEGORY, ImageSize, InterestNearbyProps, InterestType, LeaderboardType, LeaderboardsByGameTypeNearbyProps, LeisureInterestType, LengthUnit, LocationType, MarketMetaProps, MarketMetaStatus, MarketType, MarketsByTypeNearbyProps, MemberingStatus, MusicInterestType, NearbyProps, NotificationType, PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, PageR2Folder, PageType, PetsInterestType, PlayerType, PostPrivacy, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, ReactionType, SocialMediaType, SportsInterestType, SubjectR2Folder, SubjectType, TennisBackhand, TennisLevel, TravelInterestType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, USER_VIOLATION_OPTIONS, UoiAttributeType, UoiSportsAttributeType, UoiSportsBasketballAttributeType, UoiSportsTennisAttributeType, UserPronoun, UserViolationOption, UserViolationType, WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByEntityType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
360
+ export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, AccountStatus, AddingEntityType, AdminAccountStatus, AttachmentType, AttendanceStatus, AvatarR2Folder, BasketballPosition, BroadcastType, BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, CONTENT_VIOLATION_OPTIONS, CardGamesInterestType, CategoryType, ChallengeStatus, CollectionAttributeType, CollectionMetaProps, CollectionMetaStatus, CollectionOwnerStatus, CollectionPetsAttributeType, CollectionPrivacy, CollectionStatus, CollectionType, CommentStatus, CommonAttributeType, CommonMarketType, ContentViolationOption, ContentViolationType, DuelGameResultType, EntityType, EventsNearbyProps, FollowingStatus, GameMetaProps, GameType, GamesByTypeNearbyProps, GamesNearbyProps, Gender, Handedness, INTERESTS_BY_CATEGORY, ImageSize, InterestNearbyProps, InterestType, LeaderboardType, LeaderboardsByGameTypeNearbyProps, LeisureInterestType, LengthUnit, LocationType, MarketMetaProps, MarketMetaStatus, MarketType, MarketsByTypeNearbyProps, MemberingStatus, MusicInterestType, NearbyProps, NotificationType, PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, PageR2Folder, PageType, PetsInterestType, PlayerType, PostPrivacy, PostStatus, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, ReactionType, SocialMediaType, SportsInterestType, SubjectR2Folder, SubjectType, TennisBackhand, TennisLevel, TravelInterestType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, UoiAttributeType, UoiSportsAttributeType, UoiSportsBasketballAttributeType, UoiSportsTennisAttributeType, UserPronoun, WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByEntityType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.mjs CHANGED
@@ -359,8 +359,8 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
359
359
  return `https://avatar.buddiesnearby.com/${folder}/${pageID}/${imageID}/${size}.webp`;
360
360
  }
361
361
  //#endregion
362
- //#region src/userViolation.ts
363
- const USER_VIOLATION_OPTIONS = [
362
+ //#region src/contentViolation.ts
363
+ const CONTENT_VIOLATION_OPTIONS = [
364
364
  {
365
365
  key: "spam",
366
366
  label: "Spam"
@@ -391,4 +391,4 @@ const USER_VIOLATION_OPTIONS = [
391
391
  }
392
392
  ];
393
393
  //#endregion
394
- export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, AdminAccountStatus, AttachmentType, AttendanceStatus, BasketballPosition, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, ChallengeStatus, FollowingStatus, INTERESTS_BY_CATEGORY, PID_LENGTH, PID_PREFIX_LENGTH, ReactionType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, USER_VIOLATION_OPTIONS, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByEntityType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
394
+ export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, AdminAccountStatus, AttachmentType, AttendanceStatus, BasketballPosition, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, CONTENT_VIOLATION_OPTIONS, ChallengeStatus, FollowingStatus, INTERESTS_BY_CATEGORY, PID_LENGTH, PID_PREFIX_LENGTH, ReactionType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByEntityType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "2.2.1",
3
+ "version": "2.4.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.cts",
package/src/auth.ts CHANGED
@@ -3,7 +3,8 @@ export type AccountStatus =
3
3
  "registrationNeedBasicInfo"|
4
4
  "registrationNeedInterests"|
5
5
  "active"|
6
- "inactive";
6
+ "closedByUser"|
7
+ "banned";
7
8
 
8
9
  export enum AdminAccountStatus {
9
10
  None,
package/src/comment.ts CHANGED
@@ -1,6 +1,12 @@
1
- export type SubjectType =
1
+ export type SubjectType =
2
2
  "none" |
3
3
  "post" |
4
4
  "rating" |
5
5
  "comment" |
6
- "reply";
6
+ "reply";
7
+
8
+ export type CommentStatus =
9
+ "none" |
10
+ "active" |
11
+ "deletedByUser" |
12
+ "removedByModerator";
@@ -1,11 +1,11 @@
1
- export type UserViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
1
+ export type ContentViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
2
2
 
3
- export interface UserViolationOption {
4
- key: UserViolationType;
3
+ export interface ContentViolationOption {
4
+ key: ContentViolationType;
5
5
  label: string;
6
6
  };
7
7
 
8
- export const USER_VIOLATION_OPTIONS: UserViolationOption[] = [{
8
+ export const CONTENT_VIOLATION_OPTIONS: ContentViolationOption[] = [{
9
9
  key: 'spam',
10
10
  label: 'Spam',
11
11
  }, {
package/src/index.ts CHANGED
@@ -9,4 +9,4 @@ export * from './notification';
9
9
  export * from './meta';
10
10
  export * from './reaction';
11
11
  export * from './r2';
12
- export * from './userViolation';
12
+ export * from './contentViolation';
@@ -5,10 +5,11 @@ export type CollectionMetaStatus =
5
5
  "active" |
6
6
  "none";
7
7
 
8
- export type CollectionStatus =
9
- "inactive" |
8
+ export type CollectionStatus =
9
+ "none" |
10
10
  "active" |
11
- "none";
11
+ "deletedByUser" |
12
+ "removedByModerator";
12
13
 
13
14
  export type CollectionPrivacy =
14
15
  "public" |
package/src/page/post.ts CHANGED
@@ -1,5 +1,11 @@
1
- export type PostPrivacy =
1
+ export type PostPrivacy =
2
2
  "public" |
3
3
  "private" |
4
4
  "parent" |
5
- "internal";
5
+ "internal";
6
+
7
+ export type PostStatus =
8
+ "none" |
9
+ "active" |
10
+ "deletedByUser" |
11
+ "removedByModerator";
@@ -23,10 +23,11 @@ export type ProfilePermission =
23
23
  "following" |
24
24
  "blocked";
25
25
 
26
- export type ProfileStatus =
26
+ export type ProfileStatus =
27
27
  "none" |
28
28
  "active" |
29
- "inactive";
29
+ "deletedByUser" |
30
+ "removedByModerator";
30
31
 
31
32
  export enum ChallengeStatus {
32
33
  None, Open, Closed,