wenum 1.86.0 → 1.87.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 +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +69 -0
- package/dist/index.mjs +63 -0
- package/package.json +1 -1
- package/src/interest/category.ts +15 -8
- package/src/interest/interestByCategory/cardgames.ts +7 -1
- package/src/interest/interestByCategory/interest.ts +15 -7
- package/src/interest/interestByCategory/music.ts +6 -1
- package/src/interest/interestByCategory/pets.ts +6 -1
- package/src/interest/interestByCategory/sports.ts +22 -1
package/dist/index.d.mts
CHANGED
|
@@ -178,17 +178,23 @@ declare enum BasketballPosition {
|
|
|
178
178
|
|
|
179
179
|
type SubjectType = "none" | "post" | "rating" | "comment" | "reply";
|
|
180
180
|
|
|
181
|
-
type CategoryType = '1_sports' | '2_pets' | '3_cardgames' | '
|
|
181
|
+
type CategoryType = '1_sports' | '2_pets' | '3_cardgames' | '4_music' | '';
|
|
182
|
+
declare const ALL_INTEREST_CATEGORIES: Exclude<CategoryType, ''>[];
|
|
182
183
|
|
|
183
184
|
type CardGamesInterestType = 'texasholdem' | 'omaha' | 'blackjack';
|
|
185
|
+
declare const ALL_CARDGAMES_INTERESTS: CardGamesInterestType[];
|
|
184
186
|
|
|
185
187
|
type MusicInterestType = 'guitar' | 'singing';
|
|
188
|
+
declare const ALL_MUSIC_INTERESTS: MusicInterestType[];
|
|
186
189
|
|
|
187
190
|
type PetsInterestType = 'dog' | 'cat';
|
|
191
|
+
declare const ALL_PETS_INTERESTS: PetsInterestType[];
|
|
188
192
|
|
|
189
193
|
type SportsInterestType = 'tennis' | 'pickleball' | 'basketball' | 'golf' | 'hiking' | 'running' | 'gym' | 'baseball' | 'biking' | 'yoga' | 'tabletennis' | 'football' | 'soccer' | 'badminton' | 'skiing' | 'surfing' | 'swimming' | 'hockey';
|
|
194
|
+
declare const ALL_SPORTS_INTERESTS: SportsInterestType[];
|
|
190
195
|
|
|
191
196
|
type InterestType = SportsInterestType | PetsInterestType | MusicInterestType | CardGamesInterestType | '';
|
|
197
|
+
declare const INTERESTS_BY_CATEGORY: Record<Exclude<CategoryType, ''>, InterestType[]>;
|
|
192
198
|
|
|
193
199
|
type LengthUnit = "cm" | "m" | "inch" | "foot" | "km" | "mi" | "yd";
|
|
194
200
|
type WeightUnit = "kg" | "g" | "lb" | "oz";
|
|
@@ -258,4 +264,4 @@ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' |
|
|
|
258
264
|
declare function getAvatarR2FolderByProfileType(profileType: ProfileType): AvatarR2Folder;
|
|
259
265
|
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
|
|
260
266
|
|
|
261
|
-
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 DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, 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 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, getAvatarR2FolderByProfileType, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
|
267
|
+
export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, 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 DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, type Handedness, INTERESTS_BY_CATEGORY, 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 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, getAvatarR2FolderByProfileType, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/dist/index.d.ts
CHANGED
|
@@ -178,17 +178,23 @@ declare enum BasketballPosition {
|
|
|
178
178
|
|
|
179
179
|
type SubjectType = "none" | "post" | "rating" | "comment" | "reply";
|
|
180
180
|
|
|
181
|
-
type CategoryType = '1_sports' | '2_pets' | '3_cardgames' | '
|
|
181
|
+
type CategoryType = '1_sports' | '2_pets' | '3_cardgames' | '4_music' | '';
|
|
182
|
+
declare const ALL_INTEREST_CATEGORIES: Exclude<CategoryType, ''>[];
|
|
182
183
|
|
|
183
184
|
type CardGamesInterestType = 'texasholdem' | 'omaha' | 'blackjack';
|
|
185
|
+
declare const ALL_CARDGAMES_INTERESTS: CardGamesInterestType[];
|
|
184
186
|
|
|
185
187
|
type MusicInterestType = 'guitar' | 'singing';
|
|
188
|
+
declare const ALL_MUSIC_INTERESTS: MusicInterestType[];
|
|
186
189
|
|
|
187
190
|
type PetsInterestType = 'dog' | 'cat';
|
|
191
|
+
declare const ALL_PETS_INTERESTS: PetsInterestType[];
|
|
188
192
|
|
|
189
193
|
type SportsInterestType = 'tennis' | 'pickleball' | 'basketball' | 'golf' | 'hiking' | 'running' | 'gym' | 'baseball' | 'biking' | 'yoga' | 'tabletennis' | 'football' | 'soccer' | 'badminton' | 'skiing' | 'surfing' | 'swimming' | 'hockey';
|
|
194
|
+
declare const ALL_SPORTS_INTERESTS: SportsInterestType[];
|
|
190
195
|
|
|
191
196
|
type InterestType = SportsInterestType | PetsInterestType | MusicInterestType | CardGamesInterestType | '';
|
|
197
|
+
declare const INTERESTS_BY_CATEGORY: Record<Exclude<CategoryType, ''>, InterestType[]>;
|
|
192
198
|
|
|
193
199
|
type LengthUnit = "cm" | "m" | "inch" | "foot" | "km" | "mi" | "yd";
|
|
194
200
|
type WeightUnit = "kg" | "g" | "lb" | "oz";
|
|
@@ -258,4 +264,4 @@ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' |
|
|
|
258
264
|
declare function getAvatarR2FolderByProfileType(profileType: ProfileType): AvatarR2Folder;
|
|
259
265
|
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
|
|
260
266
|
|
|
261
|
-
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 DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, 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 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, getAvatarR2FolderByProfileType, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
|
267
|
+
export { ALL_CARDGAMES_INTERESTS, ALL_INTEREST_CATEGORIES, ALL_MUSIC_INTERESTS, ALL_PETS_INTERESTS, ALL_SPORTS_INTERESTS, 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 DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, type Handedness, INTERESTS_BY_CATEGORY, 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 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, getAvatarR2FolderByProfileType, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getPageR2CdnUrl, getProfileTypeByPID, getSubjectR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
ALL_CARDGAMES_INTERESTS: () => ALL_CARDGAMES_INTERESTS,
|
|
24
|
+
ALL_INTEREST_CATEGORIES: () => ALL_INTEREST_CATEGORIES,
|
|
25
|
+
ALL_MUSIC_INTERESTS: () => ALL_MUSIC_INTERESTS,
|
|
26
|
+
ALL_PETS_INTERESTS: () => ALL_PETS_INTERESTS,
|
|
27
|
+
ALL_SPORTS_INTERESTS: () => ALL_SPORTS_INTERESTS,
|
|
23
28
|
AdminAccountStatus: () => AdminAccountStatus,
|
|
24
29
|
AttachmentType: () => AttachmentType,
|
|
25
30
|
AttendanceStatus: () => AttendanceStatus,
|
|
@@ -29,6 +34,7 @@ __export(index_exports, {
|
|
|
29
34
|
COMMON_ATTRIBUTE_LABEL: () => COMMON_ATTRIBUTE_LABEL,
|
|
30
35
|
ChallengeStatus: () => ChallengeStatus,
|
|
31
36
|
FollowingStatus: () => FollowingStatus,
|
|
37
|
+
INTERESTS_BY_CATEGORY: () => INTERESTS_BY_CATEGORY,
|
|
32
38
|
PID_LENGTH: () => PID_LENGTH,
|
|
33
39
|
PID_PREFIX_LENGTH: () => PID_PREFIX_LENGTH,
|
|
34
40
|
ReactionType: () => ReactionType,
|
|
@@ -211,6 +217,63 @@ var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
|
|
|
211
217
|
return BasketballPosition2;
|
|
212
218
|
})(BasketballPosition || {});
|
|
213
219
|
|
|
220
|
+
// src/interest/category.ts
|
|
221
|
+
var ALL_INTEREST_CATEGORIES = [
|
|
222
|
+
"1_sports",
|
|
223
|
+
"2_pets",
|
|
224
|
+
"3_cardgames",
|
|
225
|
+
"4_music"
|
|
226
|
+
];
|
|
227
|
+
|
|
228
|
+
// src/interest/interestByCategory/cardgames.ts
|
|
229
|
+
var ALL_CARDGAMES_INTERESTS = [
|
|
230
|
+
"texasholdem",
|
|
231
|
+
"omaha",
|
|
232
|
+
"blackjack"
|
|
233
|
+
];
|
|
234
|
+
|
|
235
|
+
// src/interest/interestByCategory/music.ts
|
|
236
|
+
var ALL_MUSIC_INTERESTS = [
|
|
237
|
+
"guitar",
|
|
238
|
+
"singing"
|
|
239
|
+
];
|
|
240
|
+
|
|
241
|
+
// src/interest/interestByCategory/pets.ts
|
|
242
|
+
var ALL_PETS_INTERESTS = [
|
|
243
|
+
"dog",
|
|
244
|
+
"cat"
|
|
245
|
+
];
|
|
246
|
+
|
|
247
|
+
// src/interest/interestByCategory/sports.ts
|
|
248
|
+
var ALL_SPORTS_INTERESTS = [
|
|
249
|
+
"tennis",
|
|
250
|
+
"pickleball",
|
|
251
|
+
"basketball",
|
|
252
|
+
"golf",
|
|
253
|
+
"hiking",
|
|
254
|
+
"running",
|
|
255
|
+
"gym",
|
|
256
|
+
"baseball",
|
|
257
|
+
"biking",
|
|
258
|
+
"yoga",
|
|
259
|
+
"tabletennis",
|
|
260
|
+
"football",
|
|
261
|
+
"soccer",
|
|
262
|
+
"badminton",
|
|
263
|
+
"skiing",
|
|
264
|
+
"surfing",
|
|
265
|
+
"swimming",
|
|
266
|
+
"hockey"
|
|
267
|
+
];
|
|
268
|
+
|
|
269
|
+
// src/interest/interestByCategory/interest.ts
|
|
270
|
+
var INTERESTS_BY_CATEGORY = {
|
|
271
|
+
"1_sports": ALL_SPORTS_INTERESTS,
|
|
272
|
+
"2_pets": ALL_PETS_INTERESTS,
|
|
273
|
+
"3_cardgames": ALL_CARDGAMES_INTERESTS,
|
|
274
|
+
"4_music": ALL_MUSIC_INTERESTS
|
|
275
|
+
};
|
|
276
|
+
|
|
214
277
|
// src/meta/common/label.ts
|
|
215
278
|
var COMMON_ATTRIBUTE_LABEL = {
|
|
216
279
|
handedness: "Handedness",
|
|
@@ -337,6 +400,11 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
|
|
|
337
400
|
}
|
|
338
401
|
// Annotate the CommonJS export names for ESM import in node:
|
|
339
402
|
0 && (module.exports = {
|
|
403
|
+
ALL_CARDGAMES_INTERESTS,
|
|
404
|
+
ALL_INTEREST_CATEGORIES,
|
|
405
|
+
ALL_MUSIC_INTERESTS,
|
|
406
|
+
ALL_PETS_INTERESTS,
|
|
407
|
+
ALL_SPORTS_INTERESTS,
|
|
340
408
|
AdminAccountStatus,
|
|
341
409
|
AttachmentType,
|
|
342
410
|
AttendanceStatus,
|
|
@@ -346,6 +414,7 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
|
|
|
346
414
|
COMMON_ATTRIBUTE_LABEL,
|
|
347
415
|
ChallengeStatus,
|
|
348
416
|
FollowingStatus,
|
|
417
|
+
INTERESTS_BY_CATEGORY,
|
|
349
418
|
PID_LENGTH,
|
|
350
419
|
PID_PREFIX_LENGTH,
|
|
351
420
|
ReactionType,
|
package/dist/index.mjs
CHANGED
|
@@ -153,6 +153,63 @@ var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
|
|
|
153
153
|
return BasketballPosition2;
|
|
154
154
|
})(BasketballPosition || {});
|
|
155
155
|
|
|
156
|
+
// src/interest/category.ts
|
|
157
|
+
var ALL_INTEREST_CATEGORIES = [
|
|
158
|
+
"1_sports",
|
|
159
|
+
"2_pets",
|
|
160
|
+
"3_cardgames",
|
|
161
|
+
"4_music"
|
|
162
|
+
];
|
|
163
|
+
|
|
164
|
+
// src/interest/interestByCategory/cardgames.ts
|
|
165
|
+
var ALL_CARDGAMES_INTERESTS = [
|
|
166
|
+
"texasholdem",
|
|
167
|
+
"omaha",
|
|
168
|
+
"blackjack"
|
|
169
|
+
];
|
|
170
|
+
|
|
171
|
+
// src/interest/interestByCategory/music.ts
|
|
172
|
+
var ALL_MUSIC_INTERESTS = [
|
|
173
|
+
"guitar",
|
|
174
|
+
"singing"
|
|
175
|
+
];
|
|
176
|
+
|
|
177
|
+
// src/interest/interestByCategory/pets.ts
|
|
178
|
+
var ALL_PETS_INTERESTS = [
|
|
179
|
+
"dog",
|
|
180
|
+
"cat"
|
|
181
|
+
];
|
|
182
|
+
|
|
183
|
+
// src/interest/interestByCategory/sports.ts
|
|
184
|
+
var ALL_SPORTS_INTERESTS = [
|
|
185
|
+
"tennis",
|
|
186
|
+
"pickleball",
|
|
187
|
+
"basketball",
|
|
188
|
+
"golf",
|
|
189
|
+
"hiking",
|
|
190
|
+
"running",
|
|
191
|
+
"gym",
|
|
192
|
+
"baseball",
|
|
193
|
+
"biking",
|
|
194
|
+
"yoga",
|
|
195
|
+
"tabletennis",
|
|
196
|
+
"football",
|
|
197
|
+
"soccer",
|
|
198
|
+
"badminton",
|
|
199
|
+
"skiing",
|
|
200
|
+
"surfing",
|
|
201
|
+
"swimming",
|
|
202
|
+
"hockey"
|
|
203
|
+
];
|
|
204
|
+
|
|
205
|
+
// src/interest/interestByCategory/interest.ts
|
|
206
|
+
var INTERESTS_BY_CATEGORY = {
|
|
207
|
+
"1_sports": ALL_SPORTS_INTERESTS,
|
|
208
|
+
"2_pets": ALL_PETS_INTERESTS,
|
|
209
|
+
"3_cardgames": ALL_CARDGAMES_INTERESTS,
|
|
210
|
+
"4_music": ALL_MUSIC_INTERESTS
|
|
211
|
+
};
|
|
212
|
+
|
|
156
213
|
// src/meta/common/label.ts
|
|
157
214
|
var COMMON_ATTRIBUTE_LABEL = {
|
|
158
215
|
handedness: "Handedness",
|
|
@@ -278,6 +335,11 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
|
|
|
278
335
|
return `https://avatar.buddiesnearby.com/${folder}/${pageID}/${imageID}/${size}.webp`;
|
|
279
336
|
}
|
|
280
337
|
export {
|
|
338
|
+
ALL_CARDGAMES_INTERESTS,
|
|
339
|
+
ALL_INTEREST_CATEGORIES,
|
|
340
|
+
ALL_MUSIC_INTERESTS,
|
|
341
|
+
ALL_PETS_INTERESTS,
|
|
342
|
+
ALL_SPORTS_INTERESTS,
|
|
281
343
|
AdminAccountStatus,
|
|
282
344
|
AttachmentType,
|
|
283
345
|
AttendanceStatus,
|
|
@@ -287,6 +349,7 @@ export {
|
|
|
287
349
|
COMMON_ATTRIBUTE_LABEL,
|
|
288
350
|
ChallengeStatus,
|
|
289
351
|
FollowingStatus,
|
|
352
|
+
INTERESTS_BY_CATEGORY,
|
|
290
353
|
PID_LENGTH,
|
|
291
354
|
PID_PREFIX_LENGTH,
|
|
292
355
|
ReactionType,
|
package/package.json
CHANGED
package/src/interest/category.ts
CHANGED
|
@@ -2,12 +2,19 @@ export type CategoryType =
|
|
|
2
2
|
| '1_sports'
|
|
3
3
|
| '2_pets'
|
|
4
4
|
| '3_cardgames'
|
|
5
|
-
| '
|
|
6
|
-
| '
|
|
7
|
-
| '
|
|
8
|
-
| 'dancing'
|
|
9
|
-
| 'language'
|
|
10
|
-
| 'food'
|
|
11
|
-
| 'drinks'
|
|
12
|
-
| 'photography'
|
|
5
|
+
| '4_music'
|
|
6
|
+
// | 'travel'
|
|
7
|
+
// | 'boardgames'
|
|
8
|
+
// | 'dancing'
|
|
9
|
+
// | 'language'
|
|
10
|
+
// | 'food'
|
|
11
|
+
// | 'drinks'
|
|
12
|
+
// | 'photography'
|
|
13
13
|
| '';
|
|
14
|
+
|
|
15
|
+
export const ALL_INTEREST_CATEGORIES: Exclude<CategoryType, ''>[] = [
|
|
16
|
+
'1_sports',
|
|
17
|
+
'2_pets',
|
|
18
|
+
'3_cardgames',
|
|
19
|
+
'4_music',
|
|
20
|
+
];
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { CardGamesInterestType } from './cardgames';
|
|
2
|
-
import { MusicInterestType } from './music';
|
|
3
|
-
import { PetsInterestType } from './pets';
|
|
4
|
-
import { SportsInterestType } from './sports';
|
|
1
|
+
import { ALL_CARDGAMES_INTERESTS, CardGamesInterestType } from './cardgames';
|
|
2
|
+
import { ALL_MUSIC_INTERESTS, MusicInterestType } from './music';
|
|
3
|
+
import { ALL_PETS_INTERESTS, PetsInterestType } from './pets';
|
|
4
|
+
import { ALL_SPORTS_INTERESTS, SportsInterestType } from './sports';
|
|
5
|
+
import { CategoryType } from '../category';
|
|
5
6
|
|
|
6
|
-
export type InterestType =
|
|
7
|
-
SportsInterestType |
|
|
8
|
-
PetsInterestType |
|
|
7
|
+
export type InterestType =
|
|
8
|
+
SportsInterestType |
|
|
9
|
+
PetsInterestType |
|
|
9
10
|
MusicInterestType |
|
|
10
11
|
CardGamesInterestType |
|
|
11
12
|
'';
|
|
13
|
+
|
|
14
|
+
export const INTERESTS_BY_CATEGORY: Record<Exclude<CategoryType, ''>, InterestType[]> = {
|
|
15
|
+
'1_sports': ALL_SPORTS_INTERESTS,
|
|
16
|
+
'2_pets': ALL_PETS_INTERESTS,
|
|
17
|
+
'3_cardgames': ALL_CARDGAMES_INTERESTS,
|
|
18
|
+
'4_music': ALL_MUSIC_INTERESTS,
|
|
19
|
+
};
|
|
@@ -17,4 +17,25 @@ export type SportsInterestType =
|
|
|
17
17
|
| 'surfing'
|
|
18
18
|
| 'swimming'
|
|
19
19
|
| 'hockey'
|
|
20
|
-
;
|
|
20
|
+
;
|
|
21
|
+
|
|
22
|
+
export const ALL_SPORTS_INTERESTS: SportsInterestType[] = [
|
|
23
|
+
'tennis',
|
|
24
|
+
'pickleball',
|
|
25
|
+
'basketball',
|
|
26
|
+
'golf',
|
|
27
|
+
'hiking',
|
|
28
|
+
'running',
|
|
29
|
+
'gym',
|
|
30
|
+
'baseball',
|
|
31
|
+
'biking',
|
|
32
|
+
'yoga',
|
|
33
|
+
'tabletennis',
|
|
34
|
+
'football',
|
|
35
|
+
'soccer',
|
|
36
|
+
'badminton',
|
|
37
|
+
'skiing',
|
|
38
|
+
'surfing',
|
|
39
|
+
'swimming',
|
|
40
|
+
'hockey',
|
|
41
|
+
];
|