wenum 1.83.0 → 1.83.2
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 +4 -11
- package/dist/index.d.ts +4 -11
- package/dist/index.js +6 -20
- package/dist/index.mjs +6 -19
- package/package.json +1 -1
- package/src/page/profile/index.ts +0 -1
- package/src/r2/avatarR2Folder.ts +2 -4
- package/src/r2/pageR2Folder.ts +2 -3
- package/src/r2/subjectR2Folder.ts +2 -3
- package/src/page/profile/avatar.ts +0 -6
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';
|
|
@@ -264,12 +257,12 @@ declare enum ReactionType {
|
|
|
264
257
|
type ImageSize = 'sm' | 'md' | 'lg';
|
|
265
258
|
|
|
266
259
|
type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
|
|
267
|
-
declare function getSubjectR2CdnUrl(folder: SubjectR2Folder,
|
|
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,
|
|
263
|
+
declare function getPageR2CdnUrl(folder: PageR2Folder, imageFID: string, size?: ImageSize): string;
|
|
271
264
|
|
|
272
265
|
type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
|
|
273
|
-
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder,
|
|
266
|
+
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, imageFID: string, size?: ImageSize): string;
|
|
274
267
|
|
|
275
|
-
export { type AccountStatus, AdminAccountStatus, AttachmentType, AttendanceStatus, type AvatarR2Folder,
|
|
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';
|
|
@@ -264,12 +257,12 @@ declare enum ReactionType {
|
|
|
264
257
|
type ImageSize = 'sm' | 'md' | 'lg';
|
|
265
258
|
|
|
266
259
|
type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
|
|
267
|
-
declare function getSubjectR2CdnUrl(folder: SubjectR2Folder,
|
|
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,
|
|
263
|
+
declare function getPageR2CdnUrl(folder: PageR2Folder, imageFID: string, size?: ImageSize): string;
|
|
271
264
|
|
|
272
265
|
type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
|
|
273
|
-
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder,
|
|
266
|
+
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, imageFID: string, size?: ImageSize): string;
|
|
274
267
|
|
|
275
|
-
export { type AccountStatus, AdminAccountStatus, AttachmentType, AttendanceStatus, type AvatarR2Folder,
|
|
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;
|
|
@@ -320,25 +310,22 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
|
|
|
320
310
|
})(ReactionType || {});
|
|
321
311
|
|
|
322
312
|
// src/r2/subjectR2Folder.ts
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
let url = `https://${subjectCdnBaseURL}/${folder}/${imageHourID}`;
|
|
313
|
+
function getSubjectR2CdnUrl(folder, imageFID, size) {
|
|
314
|
+
let url = `https://subject.buddiesnearby.com/${folder}/${imageFID}`;
|
|
326
315
|
if (size) url = `${url}_${size}.webp`;
|
|
327
316
|
return url;
|
|
328
317
|
}
|
|
329
318
|
|
|
330
319
|
// src/r2/pageR2Folder.ts
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
let url = `https://${pageCdnBaseURL}/${folder}/${pageImageID}`;
|
|
320
|
+
function getPageR2CdnUrl(folder, imageFID, size) {
|
|
321
|
+
let url = `https://page.buddiesnearby.com/${folder}/${imageFID}`;
|
|
334
322
|
if (size) url = `${url}_${size}.webp`;
|
|
335
323
|
return url;
|
|
336
324
|
}
|
|
337
325
|
|
|
338
326
|
// src/r2/avatarR2Folder.ts
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
let url = `https://${avatarCdnBaseURL}/${folder}/${pageImageID}`;
|
|
327
|
+
function getAvatarR2CdnUrl(folder, imageFID, size) {
|
|
328
|
+
let url = `https://avatar.buddiesnearby.com/${folder}/${imageFID}`;
|
|
342
329
|
if (size) url = `${url}_${size}.webp`;
|
|
343
330
|
return url;
|
|
344
331
|
}
|
|
@@ -347,7 +334,6 @@ function getAvatarR2CdnUrl(folder, pageImageID, 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;
|
|
@@ -260,25 +251,22 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
|
|
|
260
251
|
})(ReactionType || {});
|
|
261
252
|
|
|
262
253
|
// src/r2/subjectR2Folder.ts
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
let url = `https://${subjectCdnBaseURL}/${folder}/${imageHourID}`;
|
|
254
|
+
function getSubjectR2CdnUrl(folder, imageFID, size) {
|
|
255
|
+
let url = `https://subject.buddiesnearby.com/${folder}/${imageFID}`;
|
|
266
256
|
if (size) url = `${url}_${size}.webp`;
|
|
267
257
|
return url;
|
|
268
258
|
}
|
|
269
259
|
|
|
270
260
|
// src/r2/pageR2Folder.ts
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
let url = `https://${pageCdnBaseURL}/${folder}/${pageImageID}`;
|
|
261
|
+
function getPageR2CdnUrl(folder, imageFID, size) {
|
|
262
|
+
let url = `https://page.buddiesnearby.com/${folder}/${imageFID}`;
|
|
274
263
|
if (size) url = `${url}_${size}.webp`;
|
|
275
264
|
return url;
|
|
276
265
|
}
|
|
277
266
|
|
|
278
267
|
// src/r2/avatarR2Folder.ts
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
let url = `https://${avatarCdnBaseURL}/${folder}/${pageImageID}`;
|
|
268
|
+
function getAvatarR2CdnUrl(folder, imageFID, size) {
|
|
269
|
+
let url = `https://avatar.buddiesnearby.com/${folder}/${imageFID}`;
|
|
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
package/src/r2/avatarR2Folder.ts
CHANGED
|
@@ -2,10 +2,8 @@ import type { ImageSize } from './imageSize';
|
|
|
2
2
|
|
|
3
3
|
export type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageImageID: string, size?: ImageSize): string {
|
|
8
|
-
let url = `https://${avatarCdnBaseURL}/${folder}/${pageImageID}`;
|
|
5
|
+
export function getAvatarR2CdnUrl(folder: AvatarR2Folder, imageFID: string, size?: ImageSize): string {
|
|
6
|
+
let url = `https://avatar.buddiesnearby.com/${folder}/${imageFID}`;
|
|
9
7
|
if (size) url = `${url}_${size}.webp`;
|
|
10
8
|
return url;
|
|
11
9
|
}
|
package/src/r2/pageR2Folder.ts
CHANGED
|
@@ -2,10 +2,9 @@ import type { ImageSize } from './imageSize';
|
|
|
2
2
|
|
|
3
3
|
export type PageR2Folder = 'collection' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event' | 'loi' | 'location';
|
|
4
4
|
|
|
5
|
-
const pageCdnBaseURL = 'page.buddiesnearby.com';
|
|
6
5
|
|
|
7
|
-
export function getPageR2CdnUrl(folder: PageR2Folder,
|
|
8
|
-
let url = `https
|
|
6
|
+
export function getPageR2CdnUrl(folder: PageR2Folder, imageFID: string, size?: ImageSize): string {
|
|
7
|
+
let url = `https://page.buddiesnearby.com/${folder}/${imageFID}`;
|
|
9
8
|
if (size) url = `${url}_${size}.webp`;
|
|
10
9
|
return url;
|
|
11
10
|
}
|
|
@@ -2,10 +2,9 @@ import type { ImageSize } from './imageSize';
|
|
|
2
2
|
|
|
3
3
|
export type SubjectR2Folder = 'post' | 'comment' | 'reply' | 'rating' | 'broadcast';
|
|
4
4
|
|
|
5
|
-
const subjectCdnBaseURL = 'subject.buddiesnearby.com';
|
|
6
5
|
|
|
7
|
-
export function getSubjectR2CdnUrl(folder: SubjectR2Folder,
|
|
8
|
-
let url = `https
|
|
6
|
+
export function getSubjectR2CdnUrl(folder: SubjectR2Folder, imageFID: string, size?: ImageSize): string {
|
|
7
|
+
let url = `https://subject.buddiesnearby.com/${folder}/${imageFID}`;
|
|
9
8
|
if (size) url = `${url}_${size}.webp`;
|
|
10
9
|
return url;
|
|
11
10
|
}
|