wenum 2.0.0 → 2.2.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 +33 -0
- package/dist/index.d.cts +8 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.mjs +33 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/userViolation.ts +24 -0
package/dist/index.cjs
CHANGED
|
@@ -360,6 +360,38 @@ 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 = [
|
|
365
|
+
{
|
|
366
|
+
key: "spam",
|
|
367
|
+
label: "Spam"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
key: "harassment",
|
|
371
|
+
label: "Harassment or bullying"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
key: "hate_speech",
|
|
375
|
+
label: "Hate speech"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
key: "nudity",
|
|
379
|
+
label: "Nudity or sexual content"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
key: "violence",
|
|
383
|
+
label: "Violence or dangerous content"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
key: "false_info",
|
|
387
|
+
label: "False information"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
key: "other",
|
|
391
|
+
label: "Other"
|
|
392
|
+
}
|
|
393
|
+
];
|
|
394
|
+
//#endregion
|
|
363
395
|
exports.ALL_CARDGAMES_INTERESTS = ALL_CARDGAMES_INTERESTS;
|
|
364
396
|
exports.ALL_INTEREST_CATEGORIES = ALL_INTEREST_CATEGORIES;
|
|
365
397
|
exports.ALL_LEISURE_INTERESTS = ALL_LEISURE_INTERESTS;
|
|
@@ -384,6 +416,7 @@ exports.UOI_ATTRIBUTE_LABEL = UOI_ATTRIBUTE_LABEL;
|
|
|
384
416
|
exports.UOI_SPORTS_ATTRIBUTE_LABEL = UOI_SPORTS_ATTRIBUTE_LABEL;
|
|
385
417
|
exports.UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL = UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL;
|
|
386
418
|
exports.UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL = UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL;
|
|
419
|
+
exports.USER_VIOLATION_OPTIONS = USER_VIOLATION_OPTIONS;
|
|
387
420
|
exports.ZeroCollectionMeta = ZeroCollectionMeta;
|
|
388
421
|
exports.ZeroGameMeta = ZeroGameMeta;
|
|
389
422
|
exports.ZeroMarketOption = ZeroMarketOption;
|
package/dist/index.d.cts
CHANGED
|
@@ -347,4 +347,11 @@ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' |
|
|
|
347
347
|
declare function getAvatarR2FolderByEntityType(entityType: EntityType): AvatarR2Folder;
|
|
348
348
|
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
|
|
349
349
|
//#endregion
|
|
350
|
-
|
|
350
|
+
//#region src/userViolation.d.ts
|
|
351
|
+
type UserViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
|
|
352
|
+
declare const USER_VIOLATION_OPTIONS: {
|
|
353
|
+
key: UserViolationType;
|
|
354
|
+
label: string;
|
|
355
|
+
}[];
|
|
356
|
+
//#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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -347,4 +347,11 @@ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' |
|
|
|
347
347
|
declare function getAvatarR2FolderByEntityType(entityType: EntityType): AvatarR2Folder;
|
|
348
348
|
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
|
|
349
349
|
//#endregion
|
|
350
|
-
|
|
350
|
+
//#region src/userViolation.d.ts
|
|
351
|
+
type UserViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
|
|
352
|
+
declare const USER_VIOLATION_OPTIONS: {
|
|
353
|
+
key: UserViolationType;
|
|
354
|
+
label: string;
|
|
355
|
+
}[];
|
|
356
|
+
//#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 };
|
package/dist/index.mjs
CHANGED
|
@@ -359,4 +359,36 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
|
|
|
359
359
|
return `https://avatar.buddiesnearby.com/${folder}/${pageID}/${imageID}/${size}.webp`;
|
|
360
360
|
}
|
|
361
361
|
//#endregion
|
|
362
|
-
|
|
362
|
+
//#region src/userViolation.ts
|
|
363
|
+
const USER_VIOLATION_OPTIONS = [
|
|
364
|
+
{
|
|
365
|
+
key: "spam",
|
|
366
|
+
label: "Spam"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
key: "harassment",
|
|
370
|
+
label: "Harassment or bullying"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
key: "hate_speech",
|
|
374
|
+
label: "Hate speech"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
key: "nudity",
|
|
378
|
+
label: "Nudity or sexual content"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
key: "violence",
|
|
382
|
+
label: "Violence or dangerous content"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
key: "false_info",
|
|
386
|
+
label: "False information"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
key: "other",
|
|
390
|
+
label: "Other"
|
|
391
|
+
}
|
|
392
|
+
];
|
|
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 };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type UserViolationType = 'spam' | 'harassment' | 'hate_speech' | 'nudity' | 'violence' | 'false_info' | 'other';
|
|
2
|
+
|
|
3
|
+
export const USER_VIOLATION_OPTIONS: { key: UserViolationType; label: string }[] = [{
|
|
4
|
+
key: 'spam',
|
|
5
|
+
label: 'Spam',
|
|
6
|
+
}, {
|
|
7
|
+
key: 'harassment',
|
|
8
|
+
label: 'Harassment or bullying',
|
|
9
|
+
}, {
|
|
10
|
+
key: 'hate_speech',
|
|
11
|
+
label: 'Hate speech',
|
|
12
|
+
}, {
|
|
13
|
+
key: 'nudity',
|
|
14
|
+
label: 'Nudity or sexual content',
|
|
15
|
+
}, {
|
|
16
|
+
key: 'violence',
|
|
17
|
+
label: 'Violence or dangerous content',
|
|
18
|
+
}, {
|
|
19
|
+
key: 'false_info',
|
|
20
|
+
label: 'False information',
|
|
21
|
+
}, {
|
|
22
|
+
key: 'other',
|
|
23
|
+
label: 'Other',
|
|
24
|
+
}] as const;
|