wenum 1.93.0 → 1.94.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
@@ -75,7 +75,7 @@ type PostPrivacy = "public" | "private" | "parent" | "internal";
75
75
  type LocationType = "none" | "point" | "street" | "city";
76
76
 
77
77
  type AddingEntityType = "gameToLeaderboard" | "playerToDuelGame" | "playerToNonDuelGame" | "memberToCircle";
78
- type EntityType = "leaderboard" | "team" | "collection" | "uoi";
78
+ type EntityType = ProfileType | "collection";
79
79
  declare function getPIDPrefixByEntityType(entityType: EntityType): string;
80
80
 
81
81
  type PIDPrefixType = 'usr' | 'uoi' | 'tms' | 'arn' | 'evt' | 'col' | 'lbd' | 'gme' | 'mkt' | 'org' | 'lcp' | 'lcs' | 'lcc' | 'lip' | 'lis' | 'lic' | 'txt' | 'img' | 'pol' | 'vid' | '';
@@ -270,7 +270,7 @@ type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboa
270
270
  declare function getPageR2CdnUrl(folder: PageR2Folder, pageID: string, imageID: string, size: ImageSize): string;
271
271
 
272
272
  type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'market' | '';
273
- declare function getAvatarR2FolderByProfileType(profileType: ProfileType): AvatarR2Folder;
273
+ declare function getAvatarR2FolderByEntityType(entityType: EntityType): AvatarR2Folder;
274
274
  declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
275
275
 
276
- export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, type AccountStatus, type AddingEntityType, AdminAccountStatus, AttachmentType, AttendanceStatus, type AvatarR2Folder, BasketballPosition, type BroadcastType, type BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionAttributeType, type CollectionMetaProps, type CollectionMetaStatus, type CollectionOwnerStatus, type CollectionPetsAttributeType, type CollectionPrivacy, type CollectionStatus, type CollectionType, type CommonAttributeType, type CommonMarketType, type DuelGameResultType, type EntityType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, type Handedness, INTERESTS_BY_CATEGORY, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, type LeisureInterestType, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MarketsByTypeNearbyProps, type MemberingStatus, type MusicInterestType, type NearbyProps, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageR2Folder, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, ReactionType, type SocialMediaType, type SportsInterestType, type SubjectR2Folder, type SubjectType, type TennisBackhand, type TennisLevel, type TravelInterestType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, type UoiAttributeType, type UoiSportsAttributeType, type UoiSportsBasketballAttributeType, type UoiSportsTennisAttributeType, type UserPronoun, type WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByProfileType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
276
+ export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, type AccountStatus, type AddingEntityType, AdminAccountStatus, AttachmentType, AttendanceStatus, type AvatarR2Folder, BasketballPosition, type BroadcastType, type BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionAttributeType, type CollectionMetaProps, type CollectionMetaStatus, type CollectionOwnerStatus, type CollectionPetsAttributeType, type CollectionPrivacy, type CollectionStatus, type CollectionType, type CommonAttributeType, type CommonMarketType, type DuelGameResultType, type EntityType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, type Handedness, INTERESTS_BY_CATEGORY, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, type LeisureInterestType, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MarketsByTypeNearbyProps, type MemberingStatus, type MusicInterestType, type NearbyProps, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageR2Folder, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, ReactionType, type SocialMediaType, type SportsInterestType, type SubjectR2Folder, type SubjectType, type TennisBackhand, type TennisLevel, type TravelInterestType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, type UoiAttributeType, type UoiSportsAttributeType, type UoiSportsBasketballAttributeType, type UoiSportsTennisAttributeType, type UserPronoun, type WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByEntityType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.d.ts CHANGED
@@ -75,7 +75,7 @@ type PostPrivacy = "public" | "private" | "parent" | "internal";
75
75
  type LocationType = "none" | "point" | "street" | "city";
76
76
 
77
77
  type AddingEntityType = "gameToLeaderboard" | "playerToDuelGame" | "playerToNonDuelGame" | "memberToCircle";
78
- type EntityType = "leaderboard" | "team" | "collection" | "uoi";
78
+ type EntityType = ProfileType | "collection";
79
79
  declare function getPIDPrefixByEntityType(entityType: EntityType): string;
80
80
 
81
81
  type PIDPrefixType = 'usr' | 'uoi' | 'tms' | 'arn' | 'evt' | 'col' | 'lbd' | 'gme' | 'mkt' | 'org' | 'lcp' | 'lcs' | 'lcc' | 'lip' | 'lis' | 'lic' | 'txt' | 'img' | 'pol' | 'vid' | '';
@@ -270,7 +270,7 @@ type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboa
270
270
  declare function getPageR2CdnUrl(folder: PageR2Folder, pageID: string, imageID: string, size: ImageSize): string;
271
271
 
272
272
  type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'market' | '';
273
- declare function getAvatarR2FolderByProfileType(profileType: ProfileType): AvatarR2Folder;
273
+ declare function getAvatarR2FolderByEntityType(entityType: EntityType): AvatarR2Folder;
274
274
  declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
275
275
 
276
- export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, type AccountStatus, type AddingEntityType, AdminAccountStatus, AttachmentType, AttendanceStatus, type AvatarR2Folder, BasketballPosition, type BroadcastType, type BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionAttributeType, type CollectionMetaProps, type CollectionMetaStatus, type CollectionOwnerStatus, type CollectionPetsAttributeType, type CollectionPrivacy, type CollectionStatus, type CollectionType, type CommonAttributeType, type CommonMarketType, type DuelGameResultType, type EntityType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, type Handedness, INTERESTS_BY_CATEGORY, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, type LeisureInterestType, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MarketsByTypeNearbyProps, type MemberingStatus, type MusicInterestType, type NearbyProps, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageR2Folder, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, ReactionType, type SocialMediaType, type SportsInterestType, type SubjectR2Folder, type SubjectType, type TennisBackhand, type TennisLevel, type TravelInterestType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, type UoiAttributeType, type UoiSportsAttributeType, type UoiSportsBasketballAttributeType, type UoiSportsTennisAttributeType, type UserPronoun, type WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByProfileType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
276
+ export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_LEISURE_INTERESTS, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, ALL_TRAVEL_INTERESTS, type AccountStatus, type AddingEntityType, AdminAccountStatus, AttachmentType, AttendanceStatus, type AvatarR2Folder, BasketballPosition, type BroadcastType, type BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionAttributeType, type CollectionMetaProps, type CollectionMetaStatus, type CollectionOwnerStatus, type CollectionPetsAttributeType, type CollectionPrivacy, type CollectionStatus, type CollectionType, type CommonAttributeType, type CommonMarketType, type DuelGameResultType, type EntityType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, type Handedness, INTERESTS_BY_CATEGORY, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, type LeisureInterestType, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MarketsByTypeNearbyProps, type MemberingStatus, type MusicInterestType, type NearbyProps, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageR2Folder, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, ReactionType, type SocialMediaType, type SportsInterestType, type SubjectR2Folder, type SubjectType, type TennisBackhand, type TennisLevel, type TravelInterestType, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, type UoiAttributeType, type UoiSportsAttributeType, type UoiSportsBasketballAttributeType, type UoiSportsTennisAttributeType, type UserPronoun, type WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getAvatarR2CdnUrl, getAvatarR2FolderByEntityType, getCollectionAttributeLabel, getCommonAttributeLabel, getEntityTypeByPID, getNearbyIndex, getPIDPrefixByEntityType, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ __export(index_exports, {
48
48
  ZeroGameMeta: () => ZeroGameMeta,
49
49
  ZeroMarketOption: () => ZeroMarketOption,
50
50
  getAvatarR2CdnUrl: () => getAvatarR2CdnUrl,
51
- getAvatarR2FolderByProfileType: () => getAvatarR2FolderByProfileType,
51
+ getAvatarR2FolderByEntityType: () => getAvatarR2FolderByEntityType,
52
52
  getCollectionAttributeLabel: () => getCollectionAttributeLabel,
53
53
  getCommonAttributeLabel: () => getCommonAttributeLabel,
54
54
  getEntityTypeByPID: () => getEntityTypeByPID,
@@ -470,7 +470,7 @@ function getPageR2CdnUrl(folder, pageID, imageID, size) {
470
470
  }
471
471
 
472
472
  // src/r2/avatarR2Folder.ts
473
- var profileTypeToAvatarR2Folder = {
473
+ var entityTypeToAvatarR2Folder = {
474
474
  user: "user",
475
475
  uoi: "user",
476
476
  team: "team",
@@ -478,11 +478,12 @@ var profileTypeToAvatarR2Folder = {
478
478
  event: "event",
479
479
  market: "market",
480
480
  leaderboard: "leaderboard",
481
- game: "game"
481
+ game: "game",
482
+ collection: "collection"
482
483
  };
483
- function getAvatarR2FolderByProfileType(profileType) {
484
+ function getAvatarR2FolderByEntityType(entityType) {
484
485
  var _a;
485
- return (_a = profileTypeToAvatarR2Folder[profileType]) != null ? _a : "";
486
+ return (_a = entityTypeToAvatarR2Folder[entityType]) != null ? _a : "";
486
487
  }
487
488
  function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
488
489
  if (!imageID) return "";
@@ -518,7 +519,7 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
518
519
  ZeroGameMeta,
519
520
  ZeroMarketOption,
520
521
  getAvatarR2CdnUrl,
521
- getAvatarR2FolderByProfileType,
522
+ getAvatarR2FolderByEntityType,
522
523
  getCollectionAttributeLabel,
523
524
  getCommonAttributeLabel,
524
525
  getEntityTypeByPID,
package/dist/index.mjs CHANGED
@@ -402,7 +402,7 @@ function getPageR2CdnUrl(folder, pageID, imageID, size) {
402
402
  }
403
403
 
404
404
  // src/r2/avatarR2Folder.ts
405
- var profileTypeToAvatarR2Folder = {
405
+ var entityTypeToAvatarR2Folder = {
406
406
  user: "user",
407
407
  uoi: "user",
408
408
  team: "team",
@@ -410,11 +410,12 @@ var profileTypeToAvatarR2Folder = {
410
410
  event: "event",
411
411
  market: "market",
412
412
  leaderboard: "leaderboard",
413
- game: "game"
413
+ game: "game",
414
+ collection: "collection"
414
415
  };
415
- function getAvatarR2FolderByProfileType(profileType) {
416
+ function getAvatarR2FolderByEntityType(entityType) {
416
417
  var _a;
417
- return (_a = profileTypeToAvatarR2Folder[profileType]) != null ? _a : "";
418
+ return (_a = entityTypeToAvatarR2Folder[entityType]) != null ? _a : "";
418
419
  }
419
420
  function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
420
421
  if (!imageID) return "";
@@ -449,7 +450,7 @@ export {
449
450
  ZeroGameMeta,
450
451
  ZeroMarketOption,
451
452
  getAvatarR2CdnUrl,
452
- getAvatarR2FolderByProfileType,
453
+ getAvatarR2FolderByEntityType,
453
454
  getCollectionAttributeLabel,
454
455
  getCommonAttributeLabel,
455
456
  getEntityTypeByPID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.93.0",
3
+ "version": "1.94.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +1,12 @@
1
+ import { ProfileType } from './profile';
2
+
1
3
  export type AddingEntityType =
2
4
  "gameToLeaderboard" |
3
5
  "playerToDuelGame" |
4
6
  "playerToNonDuelGame" |
5
7
  "memberToCircle";
6
8
 
7
- export type EntityType = "leaderboard" | "team" | "collection" | "uoi";
9
+ export type EntityType = ProfileType | "collection";
8
10
 
9
11
  export function getPIDPrefixByEntityType(entityType: EntityType): string {
10
12
  switch (entityType) {
@@ -1,9 +1,9 @@
1
1
  import type { ImageSize } from './imageSize';
2
- import type { ProfileType } from '../page/profile/profile';
2
+ import { EntityType } from 'src';
3
3
 
4
4
  export type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'market' | '';
5
5
 
6
- const profileTypeToAvatarR2Folder: Partial<Record<ProfileType, AvatarR2Folder>> = {
6
+ const entityTypeToAvatarR2Folder: Partial<Record<EntityType, AvatarR2Folder>> = {
7
7
  user: 'user',
8
8
  uoi: 'user',
9
9
  team: 'team',
@@ -12,10 +12,11 @@ const profileTypeToAvatarR2Folder: Partial<Record<ProfileType, AvatarR2Folder>>
12
12
  market: 'market',
13
13
  leaderboard: 'leaderboard',
14
14
  game: 'game',
15
+ collection: 'collection',
15
16
  };
16
17
 
17
- export function getAvatarR2FolderByProfileType(profileType: ProfileType): AvatarR2Folder {
18
- return profileTypeToAvatarR2Folder[profileType] ?? '';
18
+ export function getAvatarR2FolderByEntityType(entityType: EntityType): AvatarR2Folder {
19
+ return entityTypeToAvatarR2Folder[entityType] ?? '';
19
20
  }
20
21
 
21
22
  export function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string {