wenum 1.70.0 → 1.72.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
@@ -28,6 +28,10 @@ interface MarketMetaProps {
28
28
  marketType: MarketType;
29
29
  label: string;
30
30
  }
31
+ declare const ZeroMarketOption: {
32
+ label: string;
33
+ marketType: string;
34
+ };
31
35
 
32
36
  type UserPronoun = "none" | "he" | "she";
33
37
 
@@ -60,6 +64,7 @@ interface GameMetaProps {
60
64
  gameType: GameType;
61
65
  label: string;
62
66
  }
67
+ declare const ZeroGameMeta: GameMetaProps;
63
68
 
64
69
  type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
65
70
 
@@ -113,6 +118,15 @@ interface CollectionMetaProps {
113
118
  collectionType: CollectionType;
114
119
  label: string;
115
120
  }
121
+ declare const ZeroCollectionMeta: CollectionMetaProps;
122
+
123
+ interface NearbyProps {
124
+ h3Cell: string;
125
+ }
126
+ interface InterestNearbyProps extends NearbyProps {
127
+ interestID: string;
128
+ }
129
+ declare const getNearbyIndex: (h3Cell: string, interestID: string) => string;
116
130
 
117
131
  type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
118
132
  declare enum AdminAccountStatus {
@@ -212,4 +226,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
212
226
  attributeType: CollectionAttributeType;
213
227
  }) => any;
214
228
 
215
- 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, getCollectionAttributeLabel, getCommonAttributeLabel, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
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 };
package/dist/index.d.ts CHANGED
@@ -28,6 +28,10 @@ interface MarketMetaProps {
28
28
  marketType: MarketType;
29
29
  label: string;
30
30
  }
31
+ declare const ZeroMarketOption: {
32
+ label: string;
33
+ marketType: string;
34
+ };
31
35
 
32
36
  type UserPronoun = "none" | "he" | "she";
33
37
 
@@ -60,6 +64,7 @@ interface GameMetaProps {
60
64
  gameType: GameType;
61
65
  label: string;
62
66
  }
67
+ declare const ZeroGameMeta: GameMetaProps;
63
68
 
64
69
  type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
65
70
 
@@ -113,6 +118,15 @@ interface CollectionMetaProps {
113
118
  collectionType: CollectionType;
114
119
  label: string;
115
120
  }
121
+ declare const ZeroCollectionMeta: CollectionMetaProps;
122
+
123
+ interface NearbyProps {
124
+ h3Cell: string;
125
+ }
126
+ interface InterestNearbyProps extends NearbyProps {
127
+ interestID: string;
128
+ }
129
+ declare const getNearbyIndex: (h3Cell: string, interestID: string) => string;
116
130
 
117
131
  type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
118
132
  declare enum AdminAccountStatus {
@@ -212,4 +226,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
212
226
  attributeType: CollectionAttributeType;
213
227
  }) => any;
214
228
 
215
- 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, getCollectionAttributeLabel, getCommonAttributeLabel, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
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 };
package/dist/index.js CHANGED
@@ -35,8 +35,12 @@ __export(index_exports, {
35
35
  UOI_SPORTS_ATTRIBUTE_LABEL: () => UOI_SPORTS_ATTRIBUTE_LABEL,
36
36
  UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL: () => UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL,
37
37
  UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL: () => UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL,
38
+ ZeroCollectionMeta: () => ZeroCollectionMeta,
39
+ ZeroGameMeta: () => ZeroGameMeta,
40
+ ZeroMarketOption: () => ZeroMarketOption,
38
41
  getCollectionAttributeLabel: () => getCollectionAttributeLabel,
39
42
  getCommonAttributeLabel: () => getCommonAttributeLabel,
43
+ getNearbyIndex: () => getNearbyIndex,
40
44
  getPIDPrefixByProfileType: () => getPIDPrefixByProfileType,
41
45
  getProfileTypeByPID: () => getProfileTypeByPID,
42
46
  getUoiAttributeLabel: () => getUoiAttributeLabel,
@@ -55,6 +59,12 @@ var ChallengeStatus = /* @__PURE__ */ ((ChallengeStatus2) => {
55
59
  return ChallengeStatus2;
56
60
  })(ChallengeStatus || {});
57
61
 
62
+ // src/page/profile/market/type/index.ts
63
+ var ZeroMarketOption = {
64
+ label: "",
65
+ marketType: ""
66
+ };
67
+
58
68
  // src/page/profile/event.ts
59
69
  var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
60
70
  AttendanceStatus2[AttendanceStatus2["None"] = 0] = "None";
@@ -66,6 +76,12 @@ var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
66
76
  return AttendanceStatus2;
67
77
  })(AttendanceStatus || {});
68
78
 
79
+ // src/page/profile/game/index.ts
80
+ var ZeroGameMeta = {
81
+ gameType: "other",
82
+ label: ""
83
+ };
84
+
69
85
  // src/page/profile/avatar.ts
70
86
  var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
71
87
  AvatarType2[AvatarType2["None"] = 0] = "None";
@@ -151,6 +167,15 @@ function isLeaderboardPID(pid) {
151
167
  return getPIDPrefix(pid) === "lbd";
152
168
  }
153
169
 
170
+ // src/page/collection/other.ts
171
+ var ZeroCollectionMeta = {
172
+ collectionType: "zzzother",
173
+ label: ""
174
+ };
175
+
176
+ // src/page/nearby.ts
177
+ var getNearbyIndex = (h3Cell, interestID) => `${h3Cell}_${interestID}`;
178
+
154
179
  // src/auth.ts
155
180
  var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
156
181
  AdminAccountStatus2[AdminAccountStatus2["None"] = 0] = "None";
@@ -283,8 +308,12 @@ var getCollectionAttributeLabel = ({
283
308
  UOI_SPORTS_ATTRIBUTE_LABEL,
284
309
  UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL,
285
310
  UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL,
311
+ ZeroCollectionMeta,
312
+ ZeroGameMeta,
313
+ ZeroMarketOption,
286
314
  getCollectionAttributeLabel,
287
315
  getCommonAttributeLabel,
316
+ getNearbyIndex,
288
317
  getPIDPrefixByProfileType,
289
318
  getProfileTypeByPID,
290
319
  getUoiAttributeLabel,
package/dist/index.mjs CHANGED
@@ -6,6 +6,12 @@ var ChallengeStatus = /* @__PURE__ */ ((ChallengeStatus2) => {
6
6
  return ChallengeStatus2;
7
7
  })(ChallengeStatus || {});
8
8
 
9
+ // src/page/profile/market/type/index.ts
10
+ var ZeroMarketOption = {
11
+ label: "",
12
+ marketType: ""
13
+ };
14
+
9
15
  // src/page/profile/event.ts
10
16
  var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
11
17
  AttendanceStatus2[AttendanceStatus2["None"] = 0] = "None";
@@ -17,6 +23,12 @@ var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
17
23
  return AttendanceStatus2;
18
24
  })(AttendanceStatus || {});
19
25
 
26
+ // src/page/profile/game/index.ts
27
+ var ZeroGameMeta = {
28
+ gameType: "other",
29
+ label: ""
30
+ };
31
+
20
32
  // src/page/profile/avatar.ts
21
33
  var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
22
34
  AvatarType2[AvatarType2["None"] = 0] = "None";
@@ -102,6 +114,15 @@ function isLeaderboardPID(pid) {
102
114
  return getPIDPrefix(pid) === "lbd";
103
115
  }
104
116
 
117
+ // src/page/collection/other.ts
118
+ var ZeroCollectionMeta = {
119
+ collectionType: "zzzother",
120
+ label: ""
121
+ };
122
+
123
+ // src/page/nearby.ts
124
+ var getNearbyIndex = (h3Cell, interestID) => `${h3Cell}_${interestID}`;
125
+
105
126
  // src/auth.ts
106
127
  var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
107
128
  AdminAccountStatus2[AdminAccountStatus2["None"] = 0] = "None";
@@ -233,8 +254,12 @@ export {
233
254
  UOI_SPORTS_ATTRIBUTE_LABEL,
234
255
  UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL,
235
256
  UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL,
257
+ ZeroCollectionMeta,
258
+ ZeroGameMeta,
259
+ ZeroMarketOption,
236
260
  getCollectionAttributeLabel,
237
261
  getCommonAttributeLabel,
262
+ getNearbyIndex,
238
263
  getPIDPrefixByProfileType,
239
264
  getProfileTypeByPID,
240
265
  getUoiAttributeLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.70.0",
3
+ "version": "1.72.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -20,4 +20,9 @@ export type CollectionOwnerStatus =
20
20
  export interface CollectionMetaProps {
21
21
  collectionType: CollectionType;
22
22
  label: string;
23
- }
23
+ }
24
+
25
+ export const ZeroCollectionMeta: CollectionMetaProps = {
26
+ collectionType: 'zzzother',
27
+ label: '',
28
+ };
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,9 @@
1
+ export interface NearbyProps {
2
+ h3Cell: string;
3
+ }
4
+
5
+ export interface InterestNearbyProps extends NearbyProps {
6
+ interestID: string;
7
+ }
8
+
9
+ export const getNearbyIndex = (h3Cell: string, interestID: string) => `${h3Cell}_${interestID}`;
@@ -7,4 +7,9 @@ export * from './type';
7
7
  export interface GameMetaProps {
8
8
  gameType: GameType;
9
9
  label: string;
10
- }
10
+ }
11
+
12
+ export const ZeroGameMeta: GameMetaProps = {
13
+ gameType: 'other',
14
+ label: '',
15
+ };
@@ -17,3 +17,8 @@ export interface MarketMetaProps {
17
17
  marketType: MarketType;
18
18
  label: string;
19
19
  }
20
+
21
+ export const ZeroMarketOption = {
22
+ label: '',
23
+ marketType: '',
24
+ };