wenum 1.83.1 → 1.83.3

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
@@ -68,13 +68,6 @@ declare const ZeroGameMeta: GameMetaProps;
68
68
 
69
69
  type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
70
70
 
71
- declare enum AvatarType {
72
- None = 0,
73
- Original = 1,
74
- SmallCrop = 2,
75
- LargeCrop = 3
76
- }
77
-
78
71
  type ProfileJoiningType = "gameToLeaderboard" | "playerToGame" | "memberToCircle";
79
72
 
80
73
  type PlayerType = 'uoi' | 'team' | 'collection';
@@ -267,9 +260,9 @@ type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
267
260
  declare function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageFID: string, size?: ImageSize): string;
268
261
 
269
262
  type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
270
- declare function getPageR2CdnUrl(folder: PageR2Folder, imageFID: string, size?: ImageSize): string;
263
+ declare function getPageR2CdnUrl(folder: PageR2Folder, pageID: string, imageID: string, size?: ImageSize): string;
271
264
 
272
265
  type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
273
- declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, imageFID: string, size?: ImageSize): string;
266
+ declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size?: ImageSize): string;
274
267
 
275
- export { type AccountStatus, AdminAccountStatus, AttachmentType, AttendanceStatus, type AvatarR2Folder, AvatarType, 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 CoordinatesProps, type DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, HEADERQUARTER_LAT, HEADERQUARTER_LNG, type Handedness, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, 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 ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, ReactionType, type SetCoordinatesFuncType, type SocialMediaType, type SportsInterestType, type SubjectR2Folder, type SubjectType, type TennisBackhand, type TennisLevel, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
268
+ export { type AccountStatus, 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 CoordinatesProps, type DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, HEADERQUARTER_LAT, HEADERQUARTER_LNG, type Handedness, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, 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 ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, ReactionType, type SetCoordinatesFuncType, type SocialMediaType, type SportsInterestType, type SubjectR2Folder, type SubjectType, type TennisBackhand, type TennisLevel, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.d.ts CHANGED
@@ -68,13 +68,6 @@ declare const ZeroGameMeta: GameMetaProps;
68
68
 
69
69
  type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
70
70
 
71
- declare enum AvatarType {
72
- None = 0,
73
- Original = 1,
74
- SmallCrop = 2,
75
- LargeCrop = 3
76
- }
77
-
78
71
  type ProfileJoiningType = "gameToLeaderboard" | "playerToGame" | "memberToCircle";
79
72
 
80
73
  type PlayerType = 'uoi' | 'team' | 'collection';
@@ -267,9 +260,9 @@ type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
267
260
  declare function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageFID: string, size?: ImageSize): string;
268
261
 
269
262
  type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
270
- declare function getPageR2CdnUrl(folder: PageR2Folder, imageFID: string, size?: ImageSize): string;
263
+ declare function getPageR2CdnUrl(folder: PageR2Folder, pageID: string, imageID: string, size?: ImageSize): string;
271
264
 
272
265
  type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
273
- declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, imageFID: string, size?: ImageSize): string;
266
+ declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size?: ImageSize): string;
274
267
 
275
- export { type AccountStatus, AdminAccountStatus, AttachmentType, AttendanceStatus, type AvatarR2Folder, AvatarType, 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 CoordinatesProps, type DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, HEADERQUARTER_LAT, HEADERQUARTER_LNG, type Handedness, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, 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 ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, ReactionType, type SetCoordinatesFuncType, type SocialMediaType, type SportsInterestType, type SubjectR2Folder, type SubjectType, type TennisBackhand, type TennisLevel, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
268
+ export { type AccountStatus, 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 CoordinatesProps, type DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, HEADERQUARTER_LAT, HEADERQUARTER_LNG, type Handedness, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, 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 ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, ReactionType, type SetCoordinatesFuncType, type SocialMediaType, type SportsInterestType, type SubjectR2Folder, type SubjectType, type TennisBackhand, type TennisLevel, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.js CHANGED
@@ -23,7 +23,6 @@ __export(index_exports, {
23
23
  AdminAccountStatus: () => AdminAccountStatus,
24
24
  AttachmentType: () => AttachmentType,
25
25
  AttendanceStatus: () => AttendanceStatus,
26
- AvatarType: () => AvatarType,
27
26
  BasketballPosition: () => BasketballPosition,
28
27
  COLLECTION_ATTRIBUTE_LABEL: () => COLLECTION_ATTRIBUTE_LABEL,
29
28
  COLLECTION_PETS_ATTRIBUTE_LABEL: () => COLLECTION_PETS_ATTRIBUTE_LABEL,
@@ -89,15 +88,6 @@ var ZeroGameMeta = {
89
88
  label: ""
90
89
  };
91
90
 
92
- // src/page/profile/avatar.ts
93
- var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
94
- AvatarType2[AvatarType2["None"] = 0] = "None";
95
- AvatarType2[AvatarType2["Original"] = 1] = "Original";
96
- AvatarType2[AvatarType2["SmallCrop"] = 2] = "SmallCrop";
97
- AvatarType2[AvatarType2["LargeCrop"] = 3] = "LargeCrop";
98
- return AvatarType2;
99
- })(AvatarType || {});
100
-
101
91
  // src/page/pid.ts
102
92
  var PID_LENGTH = 9;
103
93
  var PID_PREFIX_LENGTH = 3;
@@ -319,26 +309,23 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
319
309
  return ReactionType2;
320
310
  })(ReactionType || {});
321
311
 
322
- // src/r2/util.ts
323
- var imageR2CdnUrl = "image.buddiesnearby.com";
324
-
325
312
  // src/r2/subjectR2Folder.ts
326
313
  function getSubjectR2CdnUrl(folder, imageFID, size) {
327
- let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
314
+ let url = `https://subject.buddiesnearby.com/${folder}/${imageFID}`;
328
315
  if (size) url = `${url}_${size}.webp`;
329
316
  return url;
330
317
  }
331
318
 
332
319
  // src/r2/pageR2Folder.ts
333
- function getPageR2CdnUrl(folder, imageFID, size) {
334
- let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
320
+ function getPageR2CdnUrl(folder, pageID, imageID, size) {
321
+ let url = `https://page.buddiesnearby.com/${folder}/${pageID}/${imageID}`;
335
322
  if (size) url = `${url}_${size}.webp`;
336
323
  return url;
337
324
  }
338
325
 
339
326
  // src/r2/avatarR2Folder.ts
340
- function getAvatarR2CdnUrl(folder, imageFID, size) {
341
- let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
327
+ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
328
+ let url = `https://avatar.buddiesnearby.com/${folder}/${pageID}/${imageID}`;
342
329
  if (size) url = `${url}_${size}.webp`;
343
330
  return url;
344
331
  }
@@ -347,7 +334,6 @@ function getAvatarR2CdnUrl(folder, imageFID, size) {
347
334
  AdminAccountStatus,
348
335
  AttachmentType,
349
336
  AttendanceStatus,
350
- AvatarType,
351
337
  BasketballPosition,
352
338
  COLLECTION_ATTRIBUTE_LABEL,
353
339
  COLLECTION_PETS_ATTRIBUTE_LABEL,
package/dist/index.mjs CHANGED
@@ -29,15 +29,6 @@ var ZeroGameMeta = {
29
29
  label: ""
30
30
  };
31
31
 
32
- // src/page/profile/avatar.ts
33
- var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
34
- AvatarType2[AvatarType2["None"] = 0] = "None";
35
- AvatarType2[AvatarType2["Original"] = 1] = "Original";
36
- AvatarType2[AvatarType2["SmallCrop"] = 2] = "SmallCrop";
37
- AvatarType2[AvatarType2["LargeCrop"] = 3] = "LargeCrop";
38
- return AvatarType2;
39
- })(AvatarType || {});
40
-
41
32
  // src/page/pid.ts
42
33
  var PID_LENGTH = 9;
43
34
  var PID_PREFIX_LENGTH = 3;
@@ -259,26 +250,23 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
259
250
  return ReactionType2;
260
251
  })(ReactionType || {});
261
252
 
262
- // src/r2/util.ts
263
- var imageR2CdnUrl = "image.buddiesnearby.com";
264
-
265
253
  // src/r2/subjectR2Folder.ts
266
254
  function getSubjectR2CdnUrl(folder, imageFID, size) {
267
- let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
255
+ let url = `https://subject.buddiesnearby.com/${folder}/${imageFID}`;
268
256
  if (size) url = `${url}_${size}.webp`;
269
257
  return url;
270
258
  }
271
259
 
272
260
  // src/r2/pageR2Folder.ts
273
- function getPageR2CdnUrl(folder, imageFID, size) {
274
- let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
261
+ function getPageR2CdnUrl(folder, pageID, imageID, size) {
262
+ let url = `https://page.buddiesnearby.com/${folder}/${pageID}/${imageID}`;
275
263
  if (size) url = `${url}_${size}.webp`;
276
264
  return url;
277
265
  }
278
266
 
279
267
  // src/r2/avatarR2Folder.ts
280
- function getAvatarR2CdnUrl(folder, imageFID, size) {
281
- let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
268
+ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
269
+ let url = `https://avatar.buddiesnearby.com/${folder}/${pageID}/${imageID}`;
282
270
  if (size) url = `${url}_${size}.webp`;
283
271
  return url;
284
272
  }
@@ -286,7 +274,6 @@ export {
286
274
  AdminAccountStatus,
287
275
  AttachmentType,
288
276
  AttendanceStatus,
289
- AvatarType,
290
277
  BasketballPosition,
291
278
  COLLECTION_ATTRIBUTE_LABEL,
292
279
  COLLECTION_PETS_ATTRIBUTE_LABEL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.83.1",
3
+ "version": "1.83.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -4,6 +4,5 @@ export * from './user';
4
4
  export * from './event';
5
5
  export * from './game';
6
6
  export * from './leaderboard';
7
- export * from './avatar';
8
7
  export * from './joining';
9
8
  export * from './player';
@@ -1,10 +1,9 @@
1
1
  import type { ImageSize } from './imageSize';
2
- import { imageR2CdnUrl } from './util';
3
2
 
4
3
  export type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
5
4
 
6
- export function getAvatarR2CdnUrl(folder: AvatarR2Folder, imageFID: string, size?: ImageSize): string {
7
- let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
5
+ export function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size?: ImageSize): string {
6
+ let url = `https://avatar.buddiesnearby.com/${folder}/${pageID}/${imageID}`;
8
7
  if (size) url = `${url}_${size}.webp`;
9
8
  return url;
10
9
  }
@@ -1,11 +1,10 @@
1
1
  import type { ImageSize } from './imageSize';
2
- import { imageR2CdnUrl } from './util';
3
2
 
4
3
  export type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
5
4
 
6
5
 
7
- export function getPageR2CdnUrl(folder: PageR2Folder, imageFID: string, size?: ImageSize): string {
8
- let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
6
+ export function getPageR2CdnUrl(folder: PageR2Folder, pageID: string, imageID: string, size?: ImageSize): string {
7
+ let url = `https://page.buddiesnearby.com/${folder}/${pageID}/${imageID}`;
9
8
  if (size) url = `${url}_${size}.webp`;
10
9
  return url;
11
10
  }
@@ -1,11 +1,10 @@
1
1
  import type { ImageSize } from './imageSize';
2
- import { imageR2CdnUrl } from './util';
3
2
 
4
3
  export type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
5
4
 
6
5
 
7
6
  export function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageFID: string, size?: ImageSize): string {
8
- let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
7
+ let url = `https://subject.buddiesnearby.com/${folder}/${imageFID}`;
9
8
  if (size) url = `${url}_${size}.webp`;
10
9
  return url;
11
10
  }
@@ -1,6 +0,0 @@
1
- export enum AvatarType {
2
- None,
3
- Original,
4
- SmallCrop,
5
- LargeCrop,
6
- }
package/src/r2/util.ts DELETED
@@ -1 +0,0 @@
1
- export const imageR2CdnUrl = 'image.buddiesnearby.com';