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 +3 -3
- package/dist/index.d.cts +11 -9
- package/dist/index.d.mts +11 -9
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/src/auth.ts +2 -1
- package/src/comment.ts +8 -2
- package/src/{userViolation.ts → contentViolation.ts} +4 -4
- package/src/index.ts +1 -1
- package/src/page/collection/other.ts +4 -3
- package/src/page/post.ts +8 -2
- package/src/page/profile/profile.ts +3 -2
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/
|
|
364
|
-
const
|
|
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" | "
|
|
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' | '';
|
|
@@ -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/
|
|
351
|
-
type
|
|
352
|
-
interface
|
|
353
|
-
key:
|
|
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
|
|
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,
|
|
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" | "
|
|
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' | '';
|
|
@@ -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/
|
|
351
|
-
type
|
|
352
|
-
interface
|
|
353
|
-
key:
|
|
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
|
|
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,
|
|
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/
|
|
363
|
-
const
|
|
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,
|
|
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
package/src/auth.ts
CHANGED
package/src/comment.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type ContentViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
|
|
2
2
|
|
|
3
|
-
export interface
|
|
4
|
-
key:
|
|
3
|
+
export interface ContentViolationOption {
|
|
4
|
+
key: ContentViolationType;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
export const
|
|
8
|
+
export const CONTENT_VIOLATION_OPTIONS: ContentViolationOption[] = [{
|
|
9
9
|
key: 'spam',
|
|
10
10
|
label: 'Spam',
|
|
11
11
|
}, {
|
package/src/index.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,
|