wenum 2.2.0 → 2.3.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.cts +9 -6
- package/dist/index.d.mts +9 -6
- package/package.json +1 -1
- package/src/auth.ts +2 -1
- package/src/comment.ts +8 -2
- package/src/page/collection/other.ts +4 -3
- package/src/page/post.ts +8 -2
- package/src/page/profile/profile.ts +3 -2
- package/src/userViolation.ts +6 -1
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" | "
|
|
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 = "
|
|
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" | "
|
|
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' | '';
|
|
@@ -349,9 +351,10 @@ declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, image
|
|
|
349
351
|
//#endregion
|
|
350
352
|
//#region src/userViolation.d.ts
|
|
351
353
|
type UserViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
|
|
352
|
-
|
|
354
|
+
interface UserViolationOption {
|
|
353
355
|
key: UserViolationType;
|
|
354
356
|
label: string;
|
|
355
|
-
}
|
|
357
|
+
}
|
|
358
|
+
declare const USER_VIOLATION_OPTIONS: UserViolationOption[];
|
|
356
359
|
//#endregion
|
|
357
|
-
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, 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, CardGamesInterestType, CategoryType, ChallengeStatus, CollectionAttributeType, CollectionMetaProps, CollectionMetaStatus, CollectionOwnerStatus, CollectionPetsAttributeType, CollectionPrivacy, CollectionStatus, CollectionType, CommentStatus, 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, 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, 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 };
|
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" | "
|
|
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 = "
|
|
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" | "
|
|
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' | '';
|
|
@@ -349,9 +351,10 @@ declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, image
|
|
|
349
351
|
//#endregion
|
|
350
352
|
//#region src/userViolation.d.ts
|
|
351
353
|
type UserViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
|
|
352
|
-
|
|
354
|
+
interface UserViolationOption {
|
|
353
355
|
key: UserViolationType;
|
|
354
356
|
label: string;
|
|
355
|
-
}
|
|
357
|
+
}
|
|
358
|
+
declare const USER_VIOLATION_OPTIONS: UserViolationOption[];
|
|
356
359
|
//#endregion
|
|
357
|
-
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, 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, CardGamesInterestType, CategoryType, ChallengeStatus, CollectionAttributeType, CollectionMetaProps, CollectionMetaStatus, CollectionOwnerStatus, CollectionPetsAttributeType, CollectionPrivacy, CollectionStatus, CollectionType, CommentStatus, 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, 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, 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 };
|
package/package.json
CHANGED
package/src/auth.ts
CHANGED
package/src/comment.ts
CHANGED
|
@@ -5,10 +5,11 @@ export type CollectionMetaStatus =
|
|
|
5
5
|
"active" |
|
|
6
6
|
"none";
|
|
7
7
|
|
|
8
|
-
export type CollectionStatus =
|
|
9
|
-
"
|
|
8
|
+
export type CollectionStatus =
|
|
9
|
+
"none" |
|
|
10
10
|
"active" |
|
|
11
|
-
"
|
|
11
|
+
"deletedByUser" |
|
|
12
|
+
"removedByModerator";
|
|
12
13
|
|
|
13
14
|
export type CollectionPrivacy =
|
|
14
15
|
"public" |
|
package/src/page/post.ts
CHANGED
|
@@ -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
|
-
"
|
|
29
|
+
"deletedByUser" |
|
|
30
|
+
"removedByModerator";
|
|
30
31
|
|
|
31
32
|
export enum ChallengeStatus {
|
|
32
33
|
None, Open, Closed,
|
package/src/userViolation.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export type UserViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export interface UserViolationOption {
|
|
4
|
+
key: UserViolationType;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const USER_VIOLATION_OPTIONS: UserViolationOption[] = [{
|
|
4
9
|
key: 'spam',
|
|
5
10
|
label: 'Spam',
|
|
6
11
|
}, {
|