wenum 1.72.0 → 1.74.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 +17 -1
- package/dist/index.d.ts +17 -1
- package/package.json +1 -1
- package/src/page/nearby.ts +22 -0
package/dist/index.d.mts
CHANGED
|
@@ -126,6 +126,22 @@ interface NearbyProps {
|
|
|
126
126
|
interface InterestNearbyProps extends NearbyProps {
|
|
127
127
|
interestID: string;
|
|
128
128
|
}
|
|
129
|
+
interface IsUpcomingProps {
|
|
130
|
+
isUpcoming?: boolean;
|
|
131
|
+
}
|
|
132
|
+
interface EventsNearbyProps extends InterestNearbyProps, IsUpcomingProps {
|
|
133
|
+
}
|
|
134
|
+
interface MarketsByTypeNearbyProps extends InterestNearbyProps {
|
|
135
|
+
marketType: MarketType;
|
|
136
|
+
}
|
|
137
|
+
interface GamesNearbyProps extends InterestNearbyProps, IsUpcomingProps {
|
|
138
|
+
}
|
|
139
|
+
interface GamesNearbyByTypeProps extends GamesNearbyProps {
|
|
140
|
+
gameType: GameType;
|
|
141
|
+
}
|
|
142
|
+
interface LeaderboardsByGameTypeNearbyProps extends InterestNearbyProps {
|
|
143
|
+
gameType: GameType;
|
|
144
|
+
}
|
|
129
145
|
declare const getNearbyIndex: (h3Cell: string, interestID: string) => string;
|
|
130
146
|
|
|
131
147
|
type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
|
|
@@ -226,4 +242,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
|
|
|
226
242
|
attributeType: CollectionAttributeType;
|
|
227
243
|
}) => any;
|
|
228
244
|
|
|
229
|
-
export { type AccountStatus, AdminAccountStatus, 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 DuelGameResultType, FollowingStatus, type GameMetaProps, type GameType, type Gender, type Handedness, type InterestNearbyProps, type InterestType, type LeaderboardType, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MemberingStatus, type MusicInterestType, type NearbyProps, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type PostType, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
|
245
|
+
export { type AccountStatus, AdminAccountStatus, 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 DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesNearbyByTypeProps, type GamesNearbyProps, type Gender, type Handedness, 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 PostType, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/dist/index.d.ts
CHANGED
|
@@ -126,6 +126,22 @@ interface NearbyProps {
|
|
|
126
126
|
interface InterestNearbyProps extends NearbyProps {
|
|
127
127
|
interestID: string;
|
|
128
128
|
}
|
|
129
|
+
interface IsUpcomingProps {
|
|
130
|
+
isUpcoming?: boolean;
|
|
131
|
+
}
|
|
132
|
+
interface EventsNearbyProps extends InterestNearbyProps, IsUpcomingProps {
|
|
133
|
+
}
|
|
134
|
+
interface MarketsByTypeNearbyProps extends InterestNearbyProps {
|
|
135
|
+
marketType: MarketType;
|
|
136
|
+
}
|
|
137
|
+
interface GamesNearbyProps extends InterestNearbyProps, IsUpcomingProps {
|
|
138
|
+
}
|
|
139
|
+
interface GamesNearbyByTypeProps extends GamesNearbyProps {
|
|
140
|
+
gameType: GameType;
|
|
141
|
+
}
|
|
142
|
+
interface LeaderboardsByGameTypeNearbyProps extends InterestNearbyProps {
|
|
143
|
+
gameType: GameType;
|
|
144
|
+
}
|
|
129
145
|
declare const getNearbyIndex: (h3Cell: string, interestID: string) => string;
|
|
130
146
|
|
|
131
147
|
type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
|
|
@@ -226,4 +242,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
|
|
|
226
242
|
attributeType: CollectionAttributeType;
|
|
227
243
|
}) => any;
|
|
228
244
|
|
|
229
|
-
export { type AccountStatus, AdminAccountStatus, 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 DuelGameResultType, FollowingStatus, type GameMetaProps, type GameType, type Gender, type Handedness, type InterestNearbyProps, type InterestType, type LeaderboardType, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MemberingStatus, type MusicInterestType, type NearbyProps, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type PostType, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
|
245
|
+
export { type AccountStatus, AdminAccountStatus, 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 DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesNearbyByTypeProps, type GamesNearbyProps, type Gender, type Handedness, 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 PostType, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, 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, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
|
package/package.json
CHANGED
package/src/page/nearby.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { GameType, MarketType } from './profile';
|
|
2
|
+
|
|
1
3
|
export interface NearbyProps {
|
|
2
4
|
h3Cell: string;
|
|
3
5
|
}
|
|
@@ -6,4 +8,24 @@ export interface InterestNearbyProps extends NearbyProps {
|
|
|
6
8
|
interestID: string;
|
|
7
9
|
}
|
|
8
10
|
|
|
11
|
+
interface IsUpcomingProps {
|
|
12
|
+
isUpcoming?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface EventsNearbyProps extends InterestNearbyProps, IsUpcomingProps {}
|
|
16
|
+
|
|
17
|
+
export interface MarketsByTypeNearbyProps extends InterestNearbyProps {
|
|
18
|
+
marketType: MarketType;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface GamesNearbyProps extends InterestNearbyProps, IsUpcomingProps {}
|
|
22
|
+
|
|
23
|
+
export interface GamesNearbyByTypeProps extends GamesNearbyProps {
|
|
24
|
+
gameType: GameType;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface LeaderboardsByGameTypeNearbyProps extends InterestNearbyProps {
|
|
28
|
+
gameType: GameType;
|
|
29
|
+
}
|
|
30
|
+
|
|
9
31
|
export const getNearbyIndex = (h3Cell: string, interestID: string) => `${h3Cell}_${interestID}`;
|