wenum 1.69.1 → 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
@@ -24,6 +24,14 @@ type MarketTypeSports = MarketTypeTennis;
24
24
 
25
25
  type CommonMarketType = "0_shop" | "1_repair" | "2_rental" | "3_exchange" | "4_giveaway" | "5_lost" | "6_found" | "other";
26
26
  type MarketType = CommonMarketType | MarketTypePets | MarketTypeSports;
27
+ interface MarketMetaProps {
28
+ marketType: MarketType;
29
+ label: string;
30
+ }
31
+ declare const ZeroMarketOption: {
32
+ label: string;
33
+ marketType: string;
34
+ };
27
35
 
28
36
  type UserPronoun = "none" | "he" | "she";
29
37
 
@@ -36,8 +44,6 @@ declare enum AttendanceStatus {
36
44
  Left = 5
37
45
  }
38
46
 
39
- type DuelGameResultType = "loss" | "tie" | "win";
40
-
41
47
  type GameTypeOther = 'other';
42
48
 
43
49
  type GameTypeBasketball = '0_1on1' | '1_halfcourt' | '2_fullcourt' | '3_3point' | '4_slamdunk' | GameTypeOther;
@@ -52,6 +58,14 @@ type GameTypeSports = GameTypeBasketball | GameTypeRunning | GameTypeTennis | Ga
52
58
 
53
59
  type GameType = GameTypeSports;
54
60
 
61
+ type DuelGameResultType = "loss" | "tie" | "win";
62
+
63
+ interface GameMetaProps {
64
+ gameType: GameType;
65
+ label: string;
66
+ }
67
+ declare const ZeroGameMeta: GameMetaProps;
68
+
55
69
  type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
56
70
 
57
71
  declare enum AvatarType {
@@ -82,11 +96,6 @@ declare function isLeaderboardPID(pid: string): boolean;
82
96
 
83
97
  type BroadcastType = 'info' | 'warn' | 'alert';
84
98
 
85
- type CollectionMetaStatus = "inactive" | "active" | "none";
86
- type CollectionStatus = "inactive" | "active" | "none";
87
- type CollectionPrivacy = "public" | "private";
88
- type CollectionOwnerStatus = "owned";
89
-
90
99
  type CollectionTypeOther = 'zzzother';
91
100
 
92
101
  type CollectionTypeCat = '0cat' | 'bed' | 'cage' | 'carrier' | 'clothing' | 'food' | CollectionTypeOther;
@@ -101,6 +110,16 @@ type CollectionTypeSports = CollectionTypeTennis;
101
110
 
102
111
  type CollectionType = CollectionTypePets | CollectionTypeSports;
103
112
 
113
+ type CollectionMetaStatus = "inactive" | "active" | "none";
114
+ type CollectionStatus = "inactive" | "active" | "none";
115
+ type CollectionPrivacy = "public" | "private";
116
+ type CollectionOwnerStatus = "owned";
117
+ interface CollectionMetaProps {
118
+ collectionType: CollectionType;
119
+ label: string;
120
+ }
121
+ declare const ZeroCollectionMeta: CollectionMetaProps;
122
+
104
123
  type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
105
124
  declare enum AdminAccountStatus {
106
125
  None = 0,
@@ -199,4 +218,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
199
218
  attributeType: CollectionAttributeType;
200
219
  }) => any;
201
220
 
202
- 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 CollectionMetaStatus, type CollectionOwnerStatus, type CollectionPetsAttributeType, type CollectionPrivacy, type CollectionStatus, type CollectionType, type CommonAttributeType, type CommonMarketType, type DuelGameResultType, FollowingStatus, type GameType, type Gender, type Handedness, type InterestType, type LeaderboardType, type LengthUnit, type LocationType, 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
@@ -24,6 +24,14 @@ type MarketTypeSports = MarketTypeTennis;
24
24
 
25
25
  type CommonMarketType = "0_shop" | "1_repair" | "2_rental" | "3_exchange" | "4_giveaway" | "5_lost" | "6_found" | "other";
26
26
  type MarketType = CommonMarketType | MarketTypePets | MarketTypeSports;
27
+ interface MarketMetaProps {
28
+ marketType: MarketType;
29
+ label: string;
30
+ }
31
+ declare const ZeroMarketOption: {
32
+ label: string;
33
+ marketType: string;
34
+ };
27
35
 
28
36
  type UserPronoun = "none" | "he" | "she";
29
37
 
@@ -36,8 +44,6 @@ declare enum AttendanceStatus {
36
44
  Left = 5
37
45
  }
38
46
 
39
- type DuelGameResultType = "loss" | "tie" | "win";
40
-
41
47
  type GameTypeOther = 'other';
42
48
 
43
49
  type GameTypeBasketball = '0_1on1' | '1_halfcourt' | '2_fullcourt' | '3_3point' | '4_slamdunk' | GameTypeOther;
@@ -52,6 +58,14 @@ type GameTypeSports = GameTypeBasketball | GameTypeRunning | GameTypeTennis | Ga
52
58
 
53
59
  type GameType = GameTypeSports;
54
60
 
61
+ type DuelGameResultType = "loss" | "tie" | "win";
62
+
63
+ interface GameMetaProps {
64
+ gameType: GameType;
65
+ label: string;
66
+ }
67
+ declare const ZeroGameMeta: GameMetaProps;
68
+
55
69
  type LeaderboardType = "score" | "duel" | "time" | "distance" | "weight";
56
70
 
57
71
  declare enum AvatarType {
@@ -82,11 +96,6 @@ declare function isLeaderboardPID(pid: string): boolean;
82
96
 
83
97
  type BroadcastType = 'info' | 'warn' | 'alert';
84
98
 
85
- type CollectionMetaStatus = "inactive" | "active" | "none";
86
- type CollectionStatus = "inactive" | "active" | "none";
87
- type CollectionPrivacy = "public" | "private";
88
- type CollectionOwnerStatus = "owned";
89
-
90
99
  type CollectionTypeOther = 'zzzother';
91
100
 
92
101
  type CollectionTypeCat = '0cat' | 'bed' | 'cage' | 'carrier' | 'clothing' | 'food' | CollectionTypeOther;
@@ -101,6 +110,16 @@ type CollectionTypeSports = CollectionTypeTennis;
101
110
 
102
111
  type CollectionType = CollectionTypePets | CollectionTypeSports;
103
112
 
113
+ type CollectionMetaStatus = "inactive" | "active" | "none";
114
+ type CollectionStatus = "inactive" | "active" | "none";
115
+ type CollectionPrivacy = "public" | "private";
116
+ type CollectionOwnerStatus = "owned";
117
+ interface CollectionMetaProps {
118
+ collectionType: CollectionType;
119
+ label: string;
120
+ }
121
+ declare const ZeroCollectionMeta: CollectionMetaProps;
122
+
104
123
  type AccountStatus = "none" | "registrationNeedBasicInfo" | "registrationNeedInterests" | "active" | "inactive";
105
124
  declare enum AdminAccountStatus {
106
125
  None = 0,
@@ -199,4 +218,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
199
218
  attributeType: CollectionAttributeType;
200
219
  }) => any;
201
220
 
202
- 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 CollectionMetaStatus, type CollectionOwnerStatus, type CollectionPetsAttributeType, type CollectionPrivacy, type CollectionStatus, type CollectionType, type CommonAttributeType, type CommonMarketType, type DuelGameResultType, FollowingStatus, type GameType, type Gender, type Handedness, type InterestType, type LeaderboardType, type LengthUnit, type LocationType, 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.69.1",
3
+ "version": "1.71.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +1,5 @@
1
+ import { CollectionType } from './type';
2
+
1
3
  export type CollectionMetaStatus =
2
4
  "inactive" |
3
5
  "active" |
@@ -13,4 +15,14 @@ export type CollectionPrivacy =
13
15
  "private";
14
16
 
15
17
  export type CollectionOwnerStatus =
16
- "owned";
18
+ "owned";
19
+
20
+ export interface CollectionMetaProps {
21
+ collectionType: CollectionType;
22
+ label: string;
23
+ }
24
+
25
+ export const ZeroCollectionMeta: CollectionMetaProps = {
26
+ collectionType: 'zzzother',
27
+ label: '',
28
+ };
@@ -1,2 +1,15 @@
1
+ import { GameType } from './type';
2
+
1
3
  export * from './duel';
2
- export * from './type';
4
+ export * from './type';
5
+
6
+
7
+ export interface GameMetaProps {
8
+ gameType: GameType;
9
+ label: string;
10
+ }
11
+
12
+ export const ZeroGameMeta: GameMetaProps = {
13
+ gameType: 'other',
14
+ label: '',
15
+ };
@@ -11,4 +11,14 @@ export type CommonMarketType =
11
11
  "6_found" |
12
12
  "other";
13
13
 
14
- export type MarketType = CommonMarketType | MarketTypePets | MarketTypeSports;
14
+ export type MarketType = CommonMarketType | MarketTypePets | MarketTypeSports;
15
+
16
+ export interface MarketMetaProps {
17
+ marketType: MarketType;
18
+ label: string;
19
+ }
20
+
21
+ export const ZeroMarketOption = {
22
+ label: '',
23
+ marketType: '',
24
+ };