wenum 1.66.0 → 1.67.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
@@ -156,6 +156,10 @@ type CommonAttributeType = 'handedness' | 'gender' | 'dob';
156
156
 
157
157
  declare const COMMON_ATTRIBUTE_LABEL: Record<CommonAttributeType, string>;
158
158
 
159
+ declare const getCommonAttributeLabel: ({ attributeType }: {
160
+ attributeType: CommonAttributeType;
161
+ }) => string;
162
+
159
163
  type UoiSportsTennisAttributeType = 'level' | 'backhand' | 'handedness';
160
164
 
161
165
  declare const UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL: Record<UoiSportsTennisAttributeType, string>;
@@ -192,4 +196,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
192
196
  attributeType: CollectionAttributeType;
193
197
  }) => any;
194
198
 
195
- 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 CollectionPetsAttributeType, 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, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
199
+ 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 CollectionPetsAttributeType, 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 };
package/dist/index.d.ts CHANGED
@@ -156,6 +156,10 @@ type CommonAttributeType = 'handedness' | 'gender' | 'dob';
156
156
 
157
157
  declare const COMMON_ATTRIBUTE_LABEL: Record<CommonAttributeType, string>;
158
158
 
159
+ declare const getCommonAttributeLabel: ({ attributeType }: {
160
+ attributeType: CommonAttributeType;
161
+ }) => string;
162
+
159
163
  type UoiSportsTennisAttributeType = 'level' | 'backhand' | 'handedness';
160
164
 
161
165
  declare const UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL: Record<UoiSportsTennisAttributeType, string>;
@@ -192,4 +196,4 @@ declare const getCollectionAttributeLabel: ({ categoryType, interestType, attrib
192
196
  attributeType: CollectionAttributeType;
193
197
  }) => any;
194
198
 
195
- 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 CollectionPetsAttributeType, 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, getPIDPrefixByProfileType, getProfileTypeByPID, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
199
+ 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 CollectionPetsAttributeType, 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 };
package/dist/index.js CHANGED
@@ -36,6 +36,7 @@ __export(index_exports, {
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
38
  getCollectionAttributeLabel: () => getCollectionAttributeLabel,
39
+ getCommonAttributeLabel: () => getCommonAttributeLabel,
39
40
  getPIDPrefixByProfileType: () => getPIDPrefixByProfileType,
40
41
  getProfileTypeByPID: () => getProfileTypeByPID,
41
42
  getUoiAttributeLabel: () => getUoiAttributeLabel,
@@ -187,6 +188,13 @@ var COMMON_ATTRIBUTE_LABEL = {
187
188
  dob: "Date of Birth"
188
189
  };
189
190
 
191
+ // src/meta/common/util.ts
192
+ var getCommonAttributeLabel = ({
193
+ attributeType
194
+ }) => {
195
+ return COMMON_ATTRIBUTE_LABEL[attributeType] || "";
196
+ };
197
+
190
198
  // src/meta/uoi/sports/tennis/label.ts
191
199
  var UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL = {
192
200
  level: "Level",
@@ -276,6 +284,7 @@ var getCollectionAttributeLabel = ({
276
284
  UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL,
277
285
  UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL,
278
286
  getCollectionAttributeLabel,
287
+ getCommonAttributeLabel,
279
288
  getPIDPrefixByProfileType,
280
289
  getProfileTypeByPID,
281
290
  getUoiAttributeLabel,
package/dist/index.mjs CHANGED
@@ -139,6 +139,13 @@ var COMMON_ATTRIBUTE_LABEL = {
139
139
  dob: "Date of Birth"
140
140
  };
141
141
 
142
+ // src/meta/common/util.ts
143
+ var getCommonAttributeLabel = ({
144
+ attributeType
145
+ }) => {
146
+ return COMMON_ATTRIBUTE_LABEL[attributeType] || "";
147
+ };
148
+
142
149
  // src/meta/uoi/sports/tennis/label.ts
143
150
  var UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL = {
144
151
  level: "Level",
@@ -227,6 +234,7 @@ export {
227
234
  UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL,
228
235
  UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL,
229
236
  getCollectionAttributeLabel,
237
+ getCommonAttributeLabel,
230
238
  getPIDPrefixByProfileType,
231
239
  getProfileTypeByPID,
232
240
  getUoiAttributeLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.66.0",
3
+ "version": "1.67.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -1,2 +1,3 @@
1
1
  export * from './label';
2
2
  export * from './type';
3
+ export * from './util';