wenum 1.82.2 → 1.83.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 +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +26 -6
- package/dist/index.mjs +23 -5
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/r2/avatarR2Folder.ts +11 -0
- package/src/r2/imageSize.ts +1 -0
- package/src/r2/index.ts +4 -0
- package/src/r2/pageR2Folder.ts +11 -0
- package/src/r2/subjectR2Folder.ts +11 -0
- package/src/r2.ts +0 -12
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' | '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
|
-
|
|
266
|
+
type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
|
|
267
|
+
declare function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageHourID: string, size?: ImageSize): string;
|
|
268
|
+
|
|
269
|
+
type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
|
|
270
|
+
declare function getPageR2CdnUrl(folder: PageR2Folder, pageImageID: string, size?: ImageSize): string;
|
|
271
|
+
|
|
272
|
+
type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
|
|
273
|
+
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageImageID: 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' | '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
|
-
|
|
266
|
+
type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
|
|
267
|
+
declare function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageHourID: string, size?: ImageSize): string;
|
|
268
|
+
|
|
269
|
+
type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
|
|
270
|
+
declare function getPageR2CdnUrl(folder: PageR2Folder, pageImageID: string, size?: ImageSize): string;
|
|
271
|
+
|
|
272
|
+
type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
|
|
273
|
+
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageImageID: 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
|
-
|
|
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
|
|
322
|
-
function
|
|
323
|
-
let url = `https://${
|
|
322
|
+
// src/r2/subjectR2Folder.ts
|
|
323
|
+
var subjectCdnBaseURL = "subject.buddiesnearby.com";
|
|
324
|
+
function getSubjectR2CdnUrl(folder, imageHourID, size) {
|
|
325
|
+
let url = `https://${subjectCdnBaseURL}/${folder}/${imageHourID}`;
|
|
326
|
+
if (size) url = `${url}_${size}.webp`;
|
|
327
|
+
return url;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// src/r2/pageR2Folder.ts
|
|
331
|
+
var pageCdnBaseURL = "page.buddiesnearby.com";
|
|
332
|
+
function getPageR2CdnUrl(folder, pageImageID, size) {
|
|
333
|
+
let url = `https://${pageCdnBaseURL}/${folder}/${pageImageID}`;
|
|
334
|
+
if (size) url = `${url}_${size}.webp`;
|
|
335
|
+
return url;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// src/r2/avatarR2Folder.ts
|
|
339
|
+
var avatarCdnBaseURL = "avatar.buddiesnearby.com";
|
|
340
|
+
function getAvatarR2CdnUrl(folder, pageImageID, size) {
|
|
341
|
+
let url = `https://${avatarCdnBaseURL}/${folder}/${pageImageID}`;
|
|
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
|
-
|
|
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
|
|
264
|
-
function
|
|
265
|
-
let url = `https://${
|
|
262
|
+
// src/r2/subjectR2Folder.ts
|
|
263
|
+
var subjectCdnBaseURL = "subject.buddiesnearby.com";
|
|
264
|
+
function getSubjectR2CdnUrl(folder, imageHourID, size) {
|
|
265
|
+
let url = `https://${subjectCdnBaseURL}/${folder}/${imageHourID}`;
|
|
266
|
+
if (size) url = `${url}_${size}.webp`;
|
|
267
|
+
return url;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// src/r2/pageR2Folder.ts
|
|
271
|
+
var pageCdnBaseURL = "page.buddiesnearby.com";
|
|
272
|
+
function getPageR2CdnUrl(folder, pageImageID, size) {
|
|
273
|
+
let url = `https://${pageCdnBaseURL}/${folder}/${pageImageID}`;
|
|
274
|
+
if (size) url = `${url}_${size}.webp`;
|
|
275
|
+
return url;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// src/r2/avatarR2Folder.ts
|
|
279
|
+
var avatarCdnBaseURL = "avatar.buddiesnearby.com";
|
|
280
|
+
function getAvatarR2CdnUrl(folder, pageImageID, size) {
|
|
281
|
+
let url = `https://${avatarCdnBaseURL}/${folder}/${pageImageID}`;
|
|
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
|
-
|
|
315
|
+
getSubjectR2CdnUrl,
|
|
298
316
|
getUoiAttributeLabel,
|
|
299
317
|
isGamePID,
|
|
300
318
|
isLeaderboardPID,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ImageSize } from './imageSize';
|
|
2
|
+
|
|
3
|
+
export type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
|
|
4
|
+
|
|
5
|
+
const avatarCdnBaseURL = 'avatar.buddiesnearby.com';
|
|
6
|
+
|
|
7
|
+
export function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageImageID: string, size?: ImageSize): string {
|
|
8
|
+
let url = `https://${avatarCdnBaseURL}/${folder}/${pageImageID}`;
|
|
9
|
+
if (size) url = `${url}_${size}.webp`;
|
|
10
|
+
return url;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ImageSize = 'sm' | 'md' | 'lg';
|
package/src/r2/index.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ImageSize } from './imageSize';
|
|
2
|
+
|
|
3
|
+
export type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
|
|
4
|
+
|
|
5
|
+
const pageCdnBaseURL = 'page.buddiesnearby.com';
|
|
6
|
+
|
|
7
|
+
export function getPageR2CdnUrl(folder: PageR2Folder, pageImageID: string, size?: ImageSize): string {
|
|
8
|
+
let url = `https://${pageCdnBaseURL}/${folder}/${pageImageID}`;
|
|
9
|
+
if (size) url = `${url}_${size}.webp`;
|
|
10
|
+
return url;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ImageSize } from './imageSize';
|
|
2
|
+
|
|
3
|
+
export type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
|
|
4
|
+
|
|
5
|
+
const subjectCdnBaseURL = 'subject.buddiesnearby.com';
|
|
6
|
+
|
|
7
|
+
export function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageHourID: string, size?: ImageSize): string {
|
|
8
|
+
let url = `https://${subjectCdnBaseURL}/${folder}/${imageHourID}`;
|
|
9
|
+
if (size) url = `${url}_${size}.webp`;
|
|
10
|
+
return url;
|
|
11
|
+
}
|
package/src/r2.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type R2Folder = 'collection' | 'post' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | '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
|
-
}
|