wenum 1.82.3 → 1.83.1

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
@@ -261,8 +261,15 @@ declare enum ReactionType {
261
261
  Like = 1
262
262
  }
263
263
 
264
- type R2Folder = 'collection' | 'post' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'market' | 'comment' | 'reply' | 'broadcast' | 'rating';
265
264
  type ImageSize = 'sm' | 'md' | 'lg';
266
- declare function getR2CdnUrl(folderName: R2Folder, imageID: string, size?: ImageSize): string;
267
265
 
268
- export { type AccountStatus, AdminAccountStatus, AttachmentType, AttendanceStatus, 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 PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, type R2Folder, ReactionType, type SetCoordinatesFuncType, type SocialMediaType, type SportsInterestType, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
266
+ type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
267
+ declare function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageFID: string, size?: ImageSize): string;
268
+
269
+ type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
270
+ declare function getPageR2CdnUrl(folder: PageR2Folder, imageFID: string, size?: ImageSize): string;
271
+
272
+ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
273
+ declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, imageFID: string, size?: ImageSize): string;
274
+
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 };
package/dist/index.d.ts CHANGED
@@ -261,8 +261,15 @@ declare enum ReactionType {
261
261
  Like = 1
262
262
  }
263
263
 
264
- type R2Folder = 'collection' | 'post' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'market' | 'comment' | 'reply' | 'broadcast' | 'rating';
265
264
  type ImageSize = 'sm' | 'md' | 'lg';
266
- declare function getR2CdnUrl(folderName: R2Folder, imageID: string, size?: ImageSize): string;
267
265
 
268
- export { type AccountStatus, AdminAccountStatus, AttachmentType, AttendanceStatus, 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 PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, type R2Folder, ReactionType, type SetCoordinatesFuncType, type SocialMediaType, type SportsInterestType, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
266
+ type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
267
+ declare function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageFID: string, size?: ImageSize): string;
268
+
269
+ type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
270
+ declare function getPageR2CdnUrl(folder: PageR2Folder, imageFID: string, size?: ImageSize): string;
271
+
272
+ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
273
+ declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, imageFID: string, size?: ImageSize): string;
274
+
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 };
package/dist/index.js CHANGED
@@ -42,12 +42,14 @@ __export(index_exports, {
42
42
  ZeroCollectionMeta: () => ZeroCollectionMeta,
43
43
  ZeroGameMeta: () => ZeroGameMeta,
44
44
  ZeroMarketOption: () => ZeroMarketOption,
45
+ getAvatarR2CdnUrl: () => getAvatarR2CdnUrl,
45
46
  getCollectionAttributeLabel: () => getCollectionAttributeLabel,
46
47
  getCommonAttributeLabel: () => getCommonAttributeLabel,
47
48
  getNearbyIndex: () => getNearbyIndex,
48
49
  getPIDPrefixByProfileType: () => getPIDPrefixByProfileType,
50
+ getPageR2CdnUrl: () => getPageR2CdnUrl,
49
51
  getProfileTypeByPID: () => getProfileTypeByPID,
50
- getR2CdnUrl: () => getR2CdnUrl,
52
+ getSubjectR2CdnUrl: () => getSubjectR2CdnUrl,
51
53
  getUoiAttributeLabel: () => getUoiAttributeLabel,
52
54
  isGamePID: () => isGamePID,
53
55
  isLeaderboardPID: () => isLeaderboardPID,
@@ -317,10 +319,26 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
317
319
  return ReactionType2;
318
320
  })(ReactionType || {});
319
321
 
320
- // src/r2.ts
321
- var cdnBaseURL = "image.buddiesnearby.com";
322
- function getR2CdnUrl(folderName, imageID, size) {
323
- let url = `https://${cdnBaseURL}/${folderName}/${imageID}`;
322
+ // src/r2/util.ts
323
+ var imageR2CdnUrl = "image.buddiesnearby.com";
324
+
325
+ // src/r2/subjectR2Folder.ts
326
+ function getSubjectR2CdnUrl(folder, imageFID, size) {
327
+ let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
328
+ if (size) url = `${url}_${size}.webp`;
329
+ return url;
330
+ }
331
+
332
+ // src/r2/pageR2Folder.ts
333
+ function getPageR2CdnUrl(folder, imageFID, size) {
334
+ let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
335
+ if (size) url = `${url}_${size}.webp`;
336
+ return url;
337
+ }
338
+
339
+ // src/r2/avatarR2Folder.ts
340
+ function getAvatarR2CdnUrl(folder, imageFID, size) {
341
+ let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
324
342
  if (size) url = `${url}_${size}.webp`;
325
343
  return url;
326
344
  }
@@ -348,12 +366,14 @@ function getR2CdnUrl(folderName, imageID, size) {
348
366
  ZeroCollectionMeta,
349
367
  ZeroGameMeta,
350
368
  ZeroMarketOption,
369
+ getAvatarR2CdnUrl,
351
370
  getCollectionAttributeLabel,
352
371
  getCommonAttributeLabel,
353
372
  getNearbyIndex,
354
373
  getPIDPrefixByProfileType,
374
+ getPageR2CdnUrl,
355
375
  getProfileTypeByPID,
356
- getR2CdnUrl,
376
+ getSubjectR2CdnUrl,
357
377
  getUoiAttributeLabel,
358
378
  isGamePID,
359
379
  isLeaderboardPID,
package/dist/index.mjs CHANGED
@@ -259,10 +259,26 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
259
259
  return ReactionType2;
260
260
  })(ReactionType || {});
261
261
 
262
- // src/r2.ts
263
- var cdnBaseURL = "image.buddiesnearby.com";
264
- function getR2CdnUrl(folderName, imageID, size) {
265
- let url = `https://${cdnBaseURL}/${folderName}/${imageID}`;
262
+ // src/r2/util.ts
263
+ var imageR2CdnUrl = "image.buddiesnearby.com";
264
+
265
+ // src/r2/subjectR2Folder.ts
266
+ function getSubjectR2CdnUrl(folder, imageFID, size) {
267
+ let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
268
+ if (size) url = `${url}_${size}.webp`;
269
+ return url;
270
+ }
271
+
272
+ // src/r2/pageR2Folder.ts
273
+ function getPageR2CdnUrl(folder, imageFID, size) {
274
+ let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
275
+ if (size) url = `${url}_${size}.webp`;
276
+ return url;
277
+ }
278
+
279
+ // src/r2/avatarR2Folder.ts
280
+ function getAvatarR2CdnUrl(folder, imageFID, size) {
281
+ let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
266
282
  if (size) url = `${url}_${size}.webp`;
267
283
  return url;
268
284
  }
@@ -289,12 +305,14 @@ export {
289
305
  ZeroCollectionMeta,
290
306
  ZeroGameMeta,
291
307
  ZeroMarketOption,
308
+ getAvatarR2CdnUrl,
292
309
  getCollectionAttributeLabel,
293
310
  getCommonAttributeLabel,
294
311
  getNearbyIndex,
295
312
  getPIDPrefixByProfileType,
313
+ getPageR2CdnUrl,
296
314
  getProfileTypeByPID,
297
- getR2CdnUrl,
315
+ getSubjectR2CdnUrl,
298
316
  getUoiAttributeLabel,
299
317
  isGamePID,
300
318
  isLeaderboardPID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.82.3",
3
+ "version": "1.83.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -9,4 +9,4 @@ export * from './notification';
9
9
  export * from './meta';
10
10
  export * from './map';
11
11
  export * from './reaction';
12
- export * from './r2';;
12
+ export * from './r2';
@@ -0,0 +1,10 @@
1
+ import type { ImageSize } from './imageSize';
2
+ import { imageR2CdnUrl } from './util';
3
+
4
+ export type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
5
+
6
+ export function getAvatarR2CdnUrl(folder: AvatarR2Folder, imageFID: string, size?: ImageSize): string {
7
+ let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
8
+ if (size) url = `${url}_${size}.webp`;
9
+ return url;
10
+ }
@@ -0,0 +1 @@
1
+ export type ImageSize = 'sm' | 'md' | 'lg';
@@ -0,0 +1,4 @@
1
+ export * from './imageSize';
2
+ export * from './subjectR2Folder';
3
+ export * from './pageR2Folder';
4
+ export * from './avatarR2Folder';
@@ -0,0 +1,11 @@
1
+ import type { ImageSize } from './imageSize';
2
+ import { imageR2CdnUrl } from './util';
3
+
4
+ export type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
5
+
6
+
7
+ export function getPageR2CdnUrl(folder: PageR2Folder, imageFID: string, size?: ImageSize): string {
8
+ let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
9
+ if (size) url = `${url}_${size}.webp`;
10
+ return url;
11
+ }
@@ -0,0 +1,11 @@
1
+ import type { ImageSize } from './imageSize';
2
+ import { imageR2CdnUrl } from './util';
3
+
4
+ export type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
5
+
6
+
7
+ export function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageFID: string, size?: ImageSize): string {
8
+ let url = `https://${imageR2CdnUrl}/${folder}/${imageFID}`;
9
+ if (size) url = `${url}_${size}.webp`;
10
+ return url;
11
+ }
package/src/r2/util.ts ADDED
@@ -0,0 +1 @@
1
+ export const imageR2CdnUrl = 'image.buddiesnearby.com';
package/src/r2.ts DELETED
@@ -1,12 +0,0 @@
1
- export type R2Folder = 'collection' | 'post' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'market' | 'comment' | 'reply' | 'broadcast' | 'rating';
2
-
3
- export type ImageSize = 'sm' | 'md' | 'lg';
4
-
5
-
6
- const cdnBaseURL = "image.buddiesnearby.com"
7
-
8
- export function getR2CdnUrl(folderName: R2Folder, imageID: string, size?: ImageSize): string {
9
- let url = `https://${cdnBaseURL}/${folderName}/${imageID}`;
10
- if (size) url = `${url}_${size}.webp`;
11
- return url;
12
- }