wenum 1.71.0 → 1.73.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 CHANGED
@@ -120,6 +120,30 @@ interface CollectionMetaProps {
120
120
  }
121
121
  declare const ZeroCollectionMeta: CollectionMetaProps;
122
122
 
123
+ interface NearbyProps {
124
+ h3Cell: string;
125
+ }
126
+ interface InterestNearbyProps extends NearbyProps {
127
+ interestID: string;
128
+ }
129
+ interface IsUpcomingProps {
130
+ isUpcoming?: boolean;
131
+ }
132
+ interface EventNearbyProps extends InterestNearbyProps, IsUpcomingProps {
133
+ }
134
+ interface MarketByTypeNearbyProps extends InterestNearbyProps {
135
+ marketType: MarketType;
136
+ }
137
+ interface GameNearbyProps extends InterestNearbyProps, IsUpcomingProps {
138
+ }
139
+ interface GameNearbyByTypeProps extends GameNearbyProps {
140
+ gameType: GameType;
141
+ }
142
+ interface LeaderboardByGameTypeNearbyProps extends InterestNearbyProps {
143
+ gameType: GameType;
144
+ }
145
+ declare const getNearbyIndex: (h3Cell: string, interestID: string) => string;
146
+
123
147
  type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
124
148
  declare enum AdminAccountStatus {
125
149
  None = 0,
@@ -218,4 +242,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
218
242
  attributeType: CollectionAttributeType;
219
243
  }) => any;
220
244
 
221
- 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 InterestType, type LeaderboardType, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MemberingStatus, type MusicInterestType, 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, 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 EventNearbyProps, FollowingStatus, type GameMetaProps, type GameNearbyByTypeProps, type GameNearbyProps, type GameType, type Gender, type Handedness, type InterestNearbyProps, type InterestType, type LeaderboardByGameTypeNearbyProps, type LeaderboardType, type LengthUnit, type LocationType, type MarketByTypeNearbyProps, 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 };
package/dist/index.d.ts CHANGED
@@ -120,6 +120,30 @@ interface CollectionMetaProps {
120
120
  }
121
121
  declare const ZeroCollectionMeta: CollectionMetaProps;
122
122
 
123
+ interface NearbyProps {
124
+ h3Cell: string;
125
+ }
126
+ interface InterestNearbyProps extends NearbyProps {
127
+ interestID: string;
128
+ }
129
+ interface IsUpcomingProps {
130
+ isUpcoming?: boolean;
131
+ }
132
+ interface EventNearbyProps extends InterestNearbyProps, IsUpcomingProps {
133
+ }
134
+ interface MarketByTypeNearbyProps extends InterestNearbyProps {
135
+ marketType: MarketType;
136
+ }
137
+ interface GameNearbyProps extends InterestNearbyProps, IsUpcomingProps {
138
+ }
139
+ interface GameNearbyByTypeProps extends GameNearbyProps {
140
+ gameType: GameType;
141
+ }
142
+ interface LeaderboardByGameTypeNearbyProps extends InterestNearbyProps {
143
+ gameType: GameType;
144
+ }
145
+ declare const getNearbyIndex: (h3Cell: string, interestID: string) => string;
146
+
123
147
  type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
124
148
  declare enum AdminAccountStatus {
125
149
  None = 0,
@@ -218,4 +242,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
218
242
  attributeType: CollectionAttributeType;
219
243
  }) => any;
220
244
 
221
- 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 InterestType, type LeaderboardType, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MemberingStatus, type MusicInterestType, 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, 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 EventNearbyProps, FollowingStatus, type GameMetaProps, type GameNearbyByTypeProps, type GameNearbyProps, type GameType, type Gender, type Handedness, type InterestNearbyProps, type InterestType, type LeaderboardByGameTypeNearbyProps, type LeaderboardType, type LengthUnit, type LocationType, type MarketByTypeNearbyProps, 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 };
package/dist/index.js CHANGED
@@ -40,6 +40,7 @@ __export(index_exports, {
40
40
  ZeroMarketOption: () => ZeroMarketOption,
41
41
  getCollectionAttributeLabel: () => getCollectionAttributeLabel,
42
42
  getCommonAttributeLabel: () => getCommonAttributeLabel,
43
+ getNearbyIndex: () => getNearbyIndex,
43
44
  getPIDPrefixByProfileType: () => getPIDPrefixByProfileType,
44
45
  getProfileTypeByPID: () => getProfileTypeByPID,
45
46
  getUoiAttributeLabel: () => getUoiAttributeLabel,
@@ -172,6 +173,9 @@ var ZeroCollectionMeta = {
172
173
  label: ""
173
174
  };
174
175
 
176
+ // src/page/nearby.ts
177
+ var getNearbyIndex = (h3Cell, interestID) => `${h3Cell}_${interestID}`;
178
+
175
179
  // src/auth.ts
176
180
  var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
177
181
  AdminAccountStatus2[AdminAccountStatus2["None"] = 0] = "None";
@@ -309,6 +313,7 @@ var getCollectionAttributeLabel = ({
309
313
  ZeroMarketOption,
310
314
  getCollectionAttributeLabel,
311
315
  getCommonAttributeLabel,
316
+ getNearbyIndex,
312
317
  getPIDPrefixByProfileType,
313
318
  getProfileTypeByPID,
314
319
  getUoiAttributeLabel,
package/dist/index.mjs CHANGED
@@ -120,6 +120,9 @@ var ZeroCollectionMeta = {
120
120
  label: ""
121
121
  };
122
122
 
123
+ // src/page/nearby.ts
124
+ var getNearbyIndex = (h3Cell, interestID) => `${h3Cell}_${interestID}`;
125
+
123
126
  // src/auth.ts
124
127
  var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
125
128
  AdminAccountStatus2[AdminAccountStatus2["None"] = 0] = "None";
@@ -256,6 +259,7 @@ export {
256
259
  ZeroMarketOption,
257
260
  getCollectionAttributeLabel,
258
261
  getCommonAttributeLabel,
262
+ getNearbyIndex,
259
263
  getPIDPrefixByProfileType,
260
264
  getProfileTypeByPID,
261
265
  getUoiAttributeLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.71.0",
3
+ "version": "1.73.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/src/page/index.ts CHANGED
@@ -5,3 +5,4 @@ export * from './location';
5
5
  export * from './pid';
6
6
  export * from './broadcast';
7
7
  export * from './collection';
8
+ export * from './nearby';
@@ -0,0 +1,31 @@
1
+ import { GameType, MarketType } from './profile';
2
+
3
+ export interface NearbyProps {
4
+ h3Cell: string;
5
+ }
6
+
7
+ export interface InterestNearbyProps extends NearbyProps {
8
+ interestID: string;
9
+ }
10
+
11
+ interface IsUpcomingProps {
12
+ isUpcoming?: boolean;
13
+ }
14
+
15
+ export interface EventNearbyProps extends InterestNearbyProps, IsUpcomingProps {}
16
+
17
+ export interface MarketByTypeNearbyProps extends InterestNearbyProps {
18
+ marketType: MarketType;
19
+ }
20
+
21
+ export interface GameNearbyProps extends InterestNearbyProps, IsUpcomingProps {}
22
+
23
+ export interface GameNearbyByTypeProps extends GameNearbyProps {
24
+ gameType: GameType;
25
+ }
26
+
27
+ export interface LeaderboardByGameTypeNearbyProps extends InterestNearbyProps {
28
+ gameType: GameType;
29
+ }
30
+
31
+ export const getNearbyIndex = (h3Cell: string, interestID: string) => `${h3Cell}_${interestID}`;