wenum 1.85.1 → 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 -10
- package/dist/index.d.ts +8 -10
- package/dist/index.js +69 -8
- package/dist/index.mjs +63 -6
- package/package.json +1 -1
- package/src/index.ts +0 -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/src/map.ts +0 -9
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";
|
|
@@ -241,14 +247,6 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
|
|
|
241
247
|
attributeType: CollectionAttributeType;
|
|
242
248
|
}) => any;
|
|
243
249
|
|
|
244
|
-
interface CoordinatesProps {
|
|
245
|
-
lat: number;
|
|
246
|
-
lng: number;
|
|
247
|
-
}
|
|
248
|
-
type SetCoordinatesFuncType = (coordinates: CoordinatesProps) => void;
|
|
249
|
-
declare const HEADERQUARTER_LAT = 37.7749;
|
|
250
|
-
declare const HEADERQUARTER_LNG = -122.4194;
|
|
251
|
-
|
|
252
250
|
declare enum ReactionType {
|
|
253
251
|
None = 0,
|
|
254
252
|
Like = 1
|
|
@@ -266,4 +264,4 @@ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' |
|
|
|
266
264
|
declare function getAvatarR2FolderByProfileType(profileType: ProfileType): AvatarR2Folder;
|
|
267
265
|
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
|
|
268
266
|
|
|
269
|
-
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
|
|
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";
|
|
@@ -241,14 +247,6 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
|
|
|
241
247
|
attributeType: CollectionAttributeType;
|
|
242
248
|
}) => any;
|
|
243
249
|
|
|
244
|
-
interface CoordinatesProps {
|
|
245
|
-
lat: number;
|
|
246
|
-
lng: number;
|
|
247
|
-
}
|
|
248
|
-
type SetCoordinatesFuncType = (coordinates: CoordinatesProps) => void;
|
|
249
|
-
declare const HEADERQUARTER_LAT = 37.7749;
|
|
250
|
-
declare const HEADERQUARTER_LNG = -122.4194;
|
|
251
|
-
|
|
252
250
|
declare enum ReactionType {
|
|
253
251
|
None = 0,
|
|
254
252
|
Like = 1
|
|
@@ -266,4 +264,4 @@ type AvatarR2Folder = 'collection' | 'game' | 'user' | 'team' | 'leaderboard' |
|
|
|
266
264
|
declare function getAvatarR2FolderByProfileType(profileType: ProfileType): AvatarR2Folder;
|
|
267
265
|
declare function getAvatarR2CdnUrl(folder: AvatarR2Folder, pageID: string, imageID: string, size: ImageSize): string;
|
|
268
266
|
|
|
269
|
-
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
|
|
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,8 +34,7 @@ __export(index_exports, {
|
|
|
29
34
|
COMMON_ATTRIBUTE_LABEL: () => COMMON_ATTRIBUTE_LABEL,
|
|
30
35
|
ChallengeStatus: () => ChallengeStatus,
|
|
31
36
|
FollowingStatus: () => FollowingStatus,
|
|
32
|
-
|
|
33
|
-
HEADERQUARTER_LNG: () => HEADERQUARTER_LNG,
|
|
37
|
+
INTERESTS_BY_CATEGORY: () => INTERESTS_BY_CATEGORY,
|
|
34
38
|
PID_LENGTH: () => PID_LENGTH,
|
|
35
39
|
PID_PREFIX_LENGTH: () => PID_PREFIX_LENGTH,
|
|
36
40
|
ReactionType: () => ReactionType,
|
|
@@ -213,6 +217,63 @@ var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
|
|
|
213
217
|
return BasketballPosition2;
|
|
214
218
|
})(BasketballPosition || {});
|
|
215
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
|
+
|
|
216
277
|
// src/meta/common/label.ts
|
|
217
278
|
var COMMON_ATTRIBUTE_LABEL = {
|
|
218
279
|
handedness: "Handedness",
|
|
@@ -299,10 +360,6 @@ var getCollectionAttributeLabel = ({
|
|
|
299
360
|
return (labels == null ? void 0 : labels[attributeType]) || "";
|
|
300
361
|
};
|
|
301
362
|
|
|
302
|
-
// src/map.ts
|
|
303
|
-
var HEADERQUARTER_LAT = 37.7749;
|
|
304
|
-
var HEADERQUARTER_LNG = -122.4194;
|
|
305
|
-
|
|
306
363
|
// src/reaction.ts
|
|
307
364
|
var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
|
|
308
365
|
ReactionType2[ReactionType2["None"] = 0] = "None";
|
|
@@ -343,6 +400,11 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
|
|
|
343
400
|
}
|
|
344
401
|
// Annotate the CommonJS export names for ESM import in node:
|
|
345
402
|
0 && (module.exports = {
|
|
403
|
+
ALL_CARDGAMES_INTERESTS,
|
|
404
|
+
ALL_INTEREST_CATEGORIES,
|
|
405
|
+
ALL_MUSIC_INTERESTS,
|
|
406
|
+
ALL_PETS_INTERESTS,
|
|
407
|
+
ALL_SPORTS_INTERESTS,
|
|
346
408
|
AdminAccountStatus,
|
|
347
409
|
AttachmentType,
|
|
348
410
|
AttendanceStatus,
|
|
@@ -352,8 +414,7 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
|
|
|
352
414
|
COMMON_ATTRIBUTE_LABEL,
|
|
353
415
|
ChallengeStatus,
|
|
354
416
|
FollowingStatus,
|
|
355
|
-
|
|
356
|
-
HEADERQUARTER_LNG,
|
|
417
|
+
INTERESTS_BY_CATEGORY,
|
|
357
418
|
PID_LENGTH,
|
|
358
419
|
PID_PREFIX_LENGTH,
|
|
359
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",
|
|
@@ -239,10 +296,6 @@ var getCollectionAttributeLabel = ({
|
|
|
239
296
|
return (labels == null ? void 0 : labels[attributeType]) || "";
|
|
240
297
|
};
|
|
241
298
|
|
|
242
|
-
// src/map.ts
|
|
243
|
-
var HEADERQUARTER_LAT = 37.7749;
|
|
244
|
-
var HEADERQUARTER_LNG = -122.4194;
|
|
245
|
-
|
|
246
299
|
// src/reaction.ts
|
|
247
300
|
var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
|
|
248
301
|
ReactionType2[ReactionType2["None"] = 0] = "None";
|
|
@@ -282,6 +335,11 @@ function getAvatarR2CdnUrl(folder, pageID, imageID, size) {
|
|
|
282
335
|
return `https://avatar.buddiesnearby.com/${folder}/${pageID}/${imageID}/${size}.webp`;
|
|
283
336
|
}
|
|
284
337
|
export {
|
|
338
|
+
ALL_CARDGAMES_INTERESTS,
|
|
339
|
+
ALL_INTEREST_CATEGORIES,
|
|
340
|
+
ALL_MUSIC_INTERESTS,
|
|
341
|
+
ALL_PETS_INTERESTS,
|
|
342
|
+
ALL_SPORTS_INTERESTS,
|
|
285
343
|
AdminAccountStatus,
|
|
286
344
|
AttachmentType,
|
|
287
345
|
AttendanceStatus,
|
|
@@ -291,8 +349,7 @@ export {
|
|
|
291
349
|
COMMON_ATTRIBUTE_LABEL,
|
|
292
350
|
ChallengeStatus,
|
|
293
351
|
FollowingStatus,
|
|
294
|
-
|
|
295
|
-
HEADERQUARTER_LNG,
|
|
352
|
+
INTERESTS_BY_CATEGORY,
|
|
296
353
|
PID_LENGTH,
|
|
297
354
|
PID_PREFIX_LENGTH,
|
|
298
355
|
ReactionType,
|
package/package.json
CHANGED
package/src/index.ts
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
|
+
];
|
package/src/map.ts
DELETED