wenum 1.70.0 → 1.71.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,7 @@ interface CollectionMetaProps {
113
118
  collectionType: CollectionType;
114
119
  label: string;
115
120
  }
121
+ declare const ZeroCollectionMeta: CollectionMetaProps;
116
122
 
117
123
  type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
118
124
  declare enum AdminAccountStatus {
@@ -212,4 +218,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
212
218
  attributeType: CollectionAttributeType;
213
219
  }) => any;
214
220
 
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 };
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 };
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,7 @@ interface CollectionMetaProps {
113
118
  collectionType: CollectionType;
114
119
  label: string;
115
120
  }
121
+ declare const ZeroCollectionMeta: CollectionMetaProps;
116
122
 
117
123
  type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
118
124
  declare enum AdminAccountStatus {
@@ -212,4 +218,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
212
218
  attributeType: CollectionAttributeType;
213
219
  }) => any;
214
220
 
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 };
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 };
package/dist/index.js CHANGED
@@ -35,6 +35,9 @@ __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,
40
43
  getPIDPrefixByProfileType: () => getPIDPrefixByProfileType,
@@ -55,6 +58,12 @@ var ChallengeStatus = /* @__PURE__ */ ((ChallengeStatus2) => {
55
58
  return ChallengeStatus2;
56
59
  })(ChallengeStatus || {});
57
60
 
61
+ // src/page/profile/market/type/index.ts
62
+ var ZeroMarketOption = {
63
+ label: "",
64
+ marketType: ""
65
+ };
66
+
58
67
  // src/page/profile/event.ts
59
68
  var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
60
69
  AttendanceStatus2[AttendanceStatus2["None"] = 0] = "None";
@@ -66,6 +75,12 @@ var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
66
75
  return AttendanceStatus2;
67
76
  })(AttendanceStatus || {});
68
77
 
78
+ // src/page/profile/game/index.ts
79
+ var ZeroGameMeta = {
80
+ gameType: "other",
81
+ label: ""
82
+ };
83
+
69
84
  // src/page/profile/avatar.ts
70
85
  var AvatarType = /* @__PURE__ */ ((AvatarType2) => {
71
86
  AvatarType2[AvatarType2["None"] = 0] = "None";
@@ -151,6 +166,12 @@ function isLeaderboardPID(pid) {
151
166
  return getPIDPrefix(pid) === "lbd";
152
167
  }
153
168
 
169
+ // src/page/collection/other.ts
170
+ var ZeroCollectionMeta = {
171
+ collectionType: "zzzother",
172
+ label: ""
173
+ };
174
+
154
175
  // src/auth.ts
155
176
  var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
156
177
  AdminAccountStatus2[AdminAccountStatus2["None"] = 0] = "None";
@@ -283,6 +304,9 @@ var getCollectionAttributeLabel = ({
283
304
  UOI_SPORTS_ATTRIBUTE_LABEL,
284
305
  UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL,
285
306
  UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL,
307
+ ZeroCollectionMeta,
308
+ ZeroGameMeta,
309
+ ZeroMarketOption,
286
310
  getCollectionAttributeLabel,
287
311
  getCommonAttributeLabel,
288
312
  getPIDPrefixByProfileType,
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,12 @@ 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
+
105
123
  // src/auth.ts
106
124
  var AdminAccountStatus = /* @__PURE__ */ ((AdminAccountStatus2) => {
107
125
  AdminAccountStatus2[AdminAccountStatus2["None"] = 0] = "None";
@@ -233,6 +251,9 @@ export {
233
251
  UOI_SPORTS_ATTRIBUTE_LABEL,
234
252
  UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL,
235
253
  UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL,
254
+ ZeroCollectionMeta,
255
+ ZeroGameMeta,
256
+ ZeroMarketOption,
236
257
  getCollectionAttributeLabel,
237
258
  getCommonAttributeLabel,
238
259
  getPIDPrefixByProfileType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.70.0",
3
+ "version": "1.71.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
+ };
@@ -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
+ };