wenum 1.79.0 → 1.81.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 +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +9 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/r2.ts +11 -0
package/dist/index.d.mts
CHANGED
|
@@ -261,4 +261,8 @@ declare enum ReactionType {
|
|
|
261
261
|
Like = 1
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
|
|
264
|
+
type R2Folder = 'collection' | 'post' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
|
|
265
|
+
type ImageVariant = 'thumbnail' | 'large';
|
|
266
|
+
declare function getCdnUrl(folderName: R2Folder, imageID: string, variant: ImageVariant): string;
|
|
267
|
+
|
|
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 ImageVariant, 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, getCdnUrl, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/dist/index.d.ts
CHANGED
|
@@ -261,4 +261,8 @@ declare enum ReactionType {
|
|
|
261
261
|
Like = 1
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
|
|
264
|
+
type R2Folder = 'collection' | 'post' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
|
|
265
|
+
type ImageVariant = 'thumbnail' | 'large';
|
|
266
|
+
declare function getCdnUrl(folderName: R2Folder, imageID: string, variant: ImageVariant): string;
|
|
267
|
+
|
|
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 ImageVariant, 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, getCdnUrl, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(index_exports, {
|
|
|
42
42
|
ZeroCollectionMeta: () => ZeroCollectionMeta,
|
|
43
43
|
ZeroGameMeta: () => ZeroGameMeta,
|
|
44
44
|
ZeroMarketOption: () => ZeroMarketOption,
|
|
45
|
+
getCdnUrl: () => getCdnUrl,
|
|
45
46
|
getCollectionAttributeLabel: () => getCollectionAttributeLabel,
|
|
46
47
|
getCommonAttributeLabel: () => getCommonAttributeLabel,
|
|
47
48
|
getNearbyIndex: () => getNearbyIndex,
|
|
@@ -315,6 +316,13 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
|
|
|
315
316
|
ReactionType2[ReactionType2["Like"] = 1] = "Like";
|
|
316
317
|
return ReactionType2;
|
|
317
318
|
})(ReactionType || {});
|
|
319
|
+
|
|
320
|
+
// src/r2.ts
|
|
321
|
+
var bucketName = "image";
|
|
322
|
+
var cdnBaseURL = "image.buddiesnearby.com";
|
|
323
|
+
function getCdnUrl(folderName, imageID, variant) {
|
|
324
|
+
return `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}_${variant}.webp`;
|
|
325
|
+
}
|
|
318
326
|
// Annotate the CommonJS export names for ESM import in node:
|
|
319
327
|
0 && (module.exports = {
|
|
320
328
|
AdminAccountStatus,
|
|
@@ -339,6 +347,7 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
|
|
|
339
347
|
ZeroCollectionMeta,
|
|
340
348
|
ZeroGameMeta,
|
|
341
349
|
ZeroMarketOption,
|
|
350
|
+
getCdnUrl,
|
|
342
351
|
getCollectionAttributeLabel,
|
|
343
352
|
getCommonAttributeLabel,
|
|
344
353
|
getNearbyIndex,
|
package/dist/index.mjs
CHANGED
|
@@ -258,6 +258,13 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
|
|
|
258
258
|
ReactionType2[ReactionType2["Like"] = 1] = "Like";
|
|
259
259
|
return ReactionType2;
|
|
260
260
|
})(ReactionType || {});
|
|
261
|
+
|
|
262
|
+
// src/r2.ts
|
|
263
|
+
var bucketName = "image";
|
|
264
|
+
var cdnBaseURL = "image.buddiesnearby.com";
|
|
265
|
+
function getCdnUrl(folderName, imageID, variant) {
|
|
266
|
+
return `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}_${variant}.webp`;
|
|
267
|
+
}
|
|
261
268
|
export {
|
|
262
269
|
AdminAccountStatus,
|
|
263
270
|
AttachmentType,
|
|
@@ -281,6 +288,7 @@ export {
|
|
|
281
288
|
ZeroCollectionMeta,
|
|
282
289
|
ZeroGameMeta,
|
|
283
290
|
ZeroMarketOption,
|
|
291
|
+
getCdnUrl,
|
|
284
292
|
getCollectionAttributeLabel,
|
|
285
293
|
getCommonAttributeLabel,
|
|
286
294
|
getNearbyIndex,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/r2.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type R2Folder = 'collection' | 'post' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
|
|
2
|
+
|
|
3
|
+
export type ImageVariant = 'thumbnail' | 'large';
|
|
4
|
+
|
|
5
|
+
const bucketName = "image"
|
|
6
|
+
|
|
7
|
+
const cdnBaseURL = "image.buddiesnearby.com"
|
|
8
|
+
|
|
9
|
+
export function getCdnUrl(folderName: R2Folder, imageID: string, variant: ImageVariant): string {
|
|
10
|
+
return `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}_${variant}.webp`;
|
|
11
|
+
}
|