wenum 1.32.0 → 1.34.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.
Files changed (33) hide show
  1. package/dist/index.d.mts +21 -75
  2. package/dist/index.d.ts +21 -75
  3. package/dist/index.js +37 -151
  4. package/dist/index.mjs +35 -137
  5. package/package.json +1 -1
  6. package/src/attribute/index.ts +0 -4
  7. package/src/attribute/uoi/index.ts +0 -2
  8. package/src/attribute/uoi/sports/index.ts +1 -3
  9. package/src/page/profile/user.ts +1 -1
  10. package/src/attribute/collection/index.ts +0 -3
  11. package/src/attribute/collection/label.ts +0 -6
  12. package/src/attribute/collection/pets/index.ts +0 -1
  13. package/src/attribute/collection/pets/type.ts +0 -10
  14. package/src/attribute/collection/type.ts +0 -3
  15. package/src/attribute/common/index.ts +0 -3
  16. package/src/attribute/common/label.ts +0 -6
  17. package/src/attribute/common/type.ts +0 -4
  18. package/src/attribute/label.ts +0 -11
  19. package/src/attribute/type.ts +0 -9
  20. package/src/attribute/uoi/label.ts +0 -6
  21. package/src/attribute/uoi/sports/basketball/index.ts +0 -3
  22. package/src/attribute/uoi/sports/basketball/label.ts +0 -6
  23. package/src/attribute/uoi/sports/basketball/type.ts +0 -5
  24. package/src/attribute/uoi/sports/label.ts +0 -8
  25. package/src/attribute/uoi/sports/tennis/index.ts +0 -3
  26. package/src/attribute/uoi/sports/tennis/label.ts +0 -6
  27. package/src/attribute/uoi/sports/tennis/type.ts +0 -3
  28. package/src/attribute/uoi/sports/type.ts +0 -6
  29. package/src/attribute/uoi/type.ts +0 -3
  30. package/src/attribute/util.ts +0 -25
  31. /package/src/attribute/{common/common.ts → common.ts} +0 -0
  32. /package/src/attribute/uoi/sports/{basketball/basketball.ts → basketball.ts} +0 -0
  33. /package/src/attribute/uoi/sports/{tennis/tennis.ts → tennis.ts} +0 -0
package/dist/index.d.mts CHANGED
@@ -92,7 +92,7 @@ declare enum CollectionMetaStatus {
92
92
  Inactive = 2
93
93
  }
94
94
 
95
- declare enum Pronoun {
95
+ declare enum UserPronoun {
96
96
  None = 0,
97
97
  He = 1,
98
98
  She = 2
@@ -209,13 +209,6 @@ declare enum FollowingStatus {
209
209
  Unfollowed = 5
210
210
  }
211
211
 
212
- declare enum AttributeTypeCommon {
213
- Handedness = 0,
214
- Gender = 1
215
- }
216
-
217
- declare const ATTRIBUTE_LABEL_COMMON: Partial<Record<AttributeTypeCommon, any>>;
218
-
219
212
  declare enum Handedness {
220
213
  None = 0,
221
214
  Left = 1,
@@ -227,13 +220,6 @@ declare enum Gender {
227
220
  Female = 2
228
221
  }
229
222
 
230
- declare enum AttributeTypeUoiSportsTennis {
231
- Level = 0,
232
- Backhand = 1
233
- }
234
-
235
- declare const ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS: Partial<Record<AttributeTypeUoiSportsTennis, any>>;
236
-
237
223
  declare enum TennisBackhand {
238
224
  None = 0,
239
225
  Single = 1,
@@ -253,12 +239,6 @@ declare enum TennisLevel {
253
239
  SixAbove = 9
254
240
  }
255
241
 
256
- declare enum AttributeTypeUoiSportsBasketball {
257
- Positions = 0
258
- }
259
-
260
- declare const ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL: Partial<Record<AttributeTypeUoiSportsBasketball, any>>;
261
-
262
242
  declare enum BasketballPosition {
263
243
  None = 0,
264
244
  SG = 1,
@@ -268,6 +248,25 @@ declare enum BasketballPosition {
268
248
  PF = 16
269
249
  }
270
250
 
251
+ declare enum PageUpdateType {
252
+ None = 0,
253
+ CreatePost = 1,
254
+ CreateProfile = 2
255
+ }
256
+ declare enum ConnectionType {
257
+ None = 0,
258
+ Connected = 1,
259
+ Following = 2
260
+ }
261
+
262
+ declare enum SubjectType {
263
+ None = 0,
264
+ Post = 1,
265
+ Rating = 2,
266
+ Comment = 3,
267
+ Reply = 4
268
+ }
269
+
271
270
  declare enum CategoryName {
272
271
  Sports = "sports",
273
272
  Pets = "pets",
@@ -317,59 +316,6 @@ declare enum SportsInterestName {
317
316
  type InterestName = SportsInterestName | PetsInterestName | MusicInterestName | '';
318
317
  declare const InterestNameNone: InterestName;
319
318
 
320
- declare const ATTRIBUTE_LABEL_UOI_SPORTS: Partial<Record<SportsInterestName, any>>;
321
-
322
- type AttributeTypeUoiSports = AttributeTypeUoiSportsTennis | AttributeTypeUoiSportsBasketball;
323
-
324
- declare const ATTRIBUTE_LABEL_UOI: Partial<Record<CategoryName, any>>;
325
-
326
- type AttributeTypeUoi = AttributeTypeUoiSports;
327
-
328
- declare enum AttributeTypeCollectionPets {
329
- Breed = 0,
330
- Dob = 1,
331
- Father = 2,
332
- Mother = 3,
333
- Gender = 4,
334
- Height = 5,
335
- Weight = 6,
336
- Children = 7
337
- }
338
-
339
- type AttributeTypeCollection = AttributeTypeCollectionPets;
340
-
341
- declare const ATTRIBUTE_LABEL_COLLECTION: Partial<Record<CategoryName, any>>;
342
-
343
- declare const ATTRIBUTE_LABEL: Partial<Record<ProfileType, any>>;
344
-
345
- type AttributeType = AttributeTypeUoi | AttributeTypeCollection | AttributeTypeCommon;
346
-
347
- declare const getProfileAttributeLabel: ({ profileType, categoryName, interestName, attributeType }: {
348
- profileType: ProfileType;
349
- categoryName?: CategoryName;
350
- interestName?: InterestName;
351
- attributeType: AttributeType;
352
- }) => any;
353
-
354
- declare enum PageUpdateType {
355
- None = 0,
356
- CreatePost = 1,
357
- CreateProfile = 2
358
- }
359
- declare enum ConnectionType {
360
- None = 0,
361
- Connected = 1,
362
- Following = 2
363
- }
364
-
365
- declare enum SubjectType {
366
- None = 0,
367
- Post = 1,
368
- Rating = 2,
369
- Comment = 3,
370
- Reply = 4
371
- }
372
-
373
319
  declare enum LengthUnit {
374
320
  Meter = 0,
375
321
  CM = 1,
@@ -386,4 +332,4 @@ declare enum WeightUnit {
386
332
  Ounce = 3
387
333
  }
388
334
 
389
- export { ATTRIBUTE_LABEL, ATTRIBUTE_LABEL_COLLECTION, ATTRIBUTE_LABEL_COMMON, ATTRIBUTE_LABEL_UOI, ATTRIBUTE_LABEL_UOI_SPORTS, ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL, ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS, AccountStatus, AdminAccountStatus, AttendanceStatus, type AttributeType, type AttributeTypeCollection, AttributeTypeCollectionPets, AttributeTypeCommon, type AttributeTypeUoi, type AttributeTypeUoiSports, AttributeTypeUoiSportsBasketball, AttributeTypeUoiSportsTennis, AvatarType, BasketballPosition, BuddyingStatus, CategoryName, ChallengeStatus, CollectionMetaStatus, CollectionType, ConnectionType, DuelGameResultType, FollowingStatus, GameType, Gender, Handedness, type InterestName, InterestNameNone, LeaderboardOrder, LeaderboardType, LengthUnit, LocationType, MarketMetaStatus, MarketType, MemberingStatus, MusicInterestName, PageType, PageUpdateType, PetsInterestName, PostPrivacy, PostType, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, Pronoun, SportsInterestName, SubjectType, TennisBackhand, TennisLevel, WeightUnit, getProfileAttributeLabel };
335
+ export { AccountStatus, AdminAccountStatus, AttendanceStatus, AvatarType, BasketballPosition, BuddyingStatus, CategoryName, ChallengeStatus, CollectionMetaStatus, CollectionType, ConnectionType, DuelGameResultType, FollowingStatus, GameType, Gender, Handedness, type InterestName, InterestNameNone, LeaderboardOrder, LeaderboardType, LengthUnit, LocationType, MarketMetaStatus, MarketType, MemberingStatus, MusicInterestName, PageType, PageUpdateType, PetsInterestName, PostPrivacy, PostType, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, SportsInterestName, SubjectType, TennisBackhand, TennisLevel, UserPronoun, WeightUnit };
package/dist/index.d.ts CHANGED
@@ -92,7 +92,7 @@ declare enum CollectionMetaStatus {
92
92
  Inactive = 2
93
93
  }
94
94
 
95
- declare enum Pronoun {
95
+ declare enum UserPronoun {
96
96
  None = 0,
97
97
  He = 1,
98
98
  She = 2
@@ -209,13 +209,6 @@ declare enum FollowingStatus {
209
209
  Unfollowed = 5
210
210
  }
211
211
 
212
- declare enum AttributeTypeCommon {
213
- Handedness = 0,
214
- Gender = 1
215
- }
216
-
217
- declare const ATTRIBUTE_LABEL_COMMON: Partial<Record<AttributeTypeCommon, any>>;
218
-
219
212
  declare enum Handedness {
220
213
  None = 0,
221
214
  Left = 1,
@@ -227,13 +220,6 @@ declare enum Gender {
227
220
  Female = 2
228
221
  }
229
222
 
230
- declare enum AttributeTypeUoiSportsTennis {
231
- Level = 0,
232
- Backhand = 1
233
- }
234
-
235
- declare const ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS: Partial<Record<AttributeTypeUoiSportsTennis, any>>;
236
-
237
223
  declare enum TennisBackhand {
238
224
  None = 0,
239
225
  Single = 1,
@@ -253,12 +239,6 @@ declare enum TennisLevel {
253
239
  SixAbove = 9
254
240
  }
255
241
 
256
- declare enum AttributeTypeUoiSportsBasketball {
257
- Positions = 0
258
- }
259
-
260
- declare const ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL: Partial<Record<AttributeTypeUoiSportsBasketball, any>>;
261
-
262
242
  declare enum BasketballPosition {
263
243
  None = 0,
264
244
  SG = 1,
@@ -268,6 +248,25 @@ declare enum BasketballPosition {
268
248
  PF = 16
269
249
  }
270
250
 
251
+ declare enum PageUpdateType {
252
+ None = 0,
253
+ CreatePost = 1,
254
+ CreateProfile = 2
255
+ }
256
+ declare enum ConnectionType {
257
+ None = 0,
258
+ Connected = 1,
259
+ Following = 2
260
+ }
261
+
262
+ declare enum SubjectType {
263
+ None = 0,
264
+ Post = 1,
265
+ Rating = 2,
266
+ Comment = 3,
267
+ Reply = 4
268
+ }
269
+
271
270
  declare enum CategoryName {
272
271
  Sports = "sports",
273
272
  Pets = "pets",
@@ -317,59 +316,6 @@ declare enum SportsInterestName {
317
316
  type InterestName = SportsInterestName | PetsInterestName | MusicInterestName | '';
318
317
  declare const InterestNameNone: InterestName;
319
318
 
320
- declare const ATTRIBUTE_LABEL_UOI_SPORTS: Partial<Record<SportsInterestName, any>>;
321
-
322
- type AttributeTypeUoiSports = AttributeTypeUoiSportsTennis | AttributeTypeUoiSportsBasketball;
323
-
324
- declare const ATTRIBUTE_LABEL_UOI: Partial<Record<CategoryName, any>>;
325
-
326
- type AttributeTypeUoi = AttributeTypeUoiSports;
327
-
328
- declare enum AttributeTypeCollectionPets {
329
- Breed = 0,
330
- Dob = 1,
331
- Father = 2,
332
- Mother = 3,
333
- Gender = 4,
334
- Height = 5,
335
- Weight = 6,
336
- Children = 7
337
- }
338
-
339
- type AttributeTypeCollection = AttributeTypeCollectionPets;
340
-
341
- declare const ATTRIBUTE_LABEL_COLLECTION: Partial<Record<CategoryName, any>>;
342
-
343
- declare const ATTRIBUTE_LABEL: Partial<Record<ProfileType, any>>;
344
-
345
- type AttributeType = AttributeTypeUoi | AttributeTypeCollection | AttributeTypeCommon;
346
-
347
- declare const getProfileAttributeLabel: ({ profileType, categoryName, interestName, attributeType }: {
348
- profileType: ProfileType;
349
- categoryName?: CategoryName;
350
- interestName?: InterestName;
351
- attributeType: AttributeType;
352
- }) => any;
353
-
354
- declare enum PageUpdateType {
355
- None = 0,
356
- CreatePost = 1,
357
- CreateProfile = 2
358
- }
359
- declare enum ConnectionType {
360
- None = 0,
361
- Connected = 1,
362
- Following = 2
363
- }
364
-
365
- declare enum SubjectType {
366
- None = 0,
367
- Post = 1,
368
- Rating = 2,
369
- Comment = 3,
370
- Reply = 4
371
- }
372
-
373
319
  declare enum LengthUnit {
374
320
  Meter = 0,
375
321
  CM = 1,
@@ -386,4 +332,4 @@ declare enum WeightUnit {
386
332
  Ounce = 3
387
333
  }
388
334
 
389
- export { ATTRIBUTE_LABEL, ATTRIBUTE_LABEL_COLLECTION, ATTRIBUTE_LABEL_COMMON, ATTRIBUTE_LABEL_UOI, ATTRIBUTE_LABEL_UOI_SPORTS, ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL, ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS, AccountStatus, AdminAccountStatus, AttendanceStatus, type AttributeType, type AttributeTypeCollection, AttributeTypeCollectionPets, AttributeTypeCommon, type AttributeTypeUoi, type AttributeTypeUoiSports, AttributeTypeUoiSportsBasketball, AttributeTypeUoiSportsTennis, AvatarType, BasketballPosition, BuddyingStatus, CategoryName, ChallengeStatus, CollectionMetaStatus, CollectionType, ConnectionType, DuelGameResultType, FollowingStatus, GameType, Gender, Handedness, type InterestName, InterestNameNone, LeaderboardOrder, LeaderboardType, LengthUnit, LocationType, MarketMetaStatus, MarketType, MemberingStatus, MusicInterestName, PageType, PageUpdateType, PetsInterestName, PostPrivacy, PostType, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, Pronoun, SportsInterestName, SubjectType, TennisBackhand, TennisLevel, WeightUnit, getProfileAttributeLabel };
335
+ export { AccountStatus, AdminAccountStatus, AttendanceStatus, AvatarType, BasketballPosition, BuddyingStatus, CategoryName, ChallengeStatus, CollectionMetaStatus, CollectionType, ConnectionType, DuelGameResultType, FollowingStatus, GameType, Gender, Handedness, type InterestName, InterestNameNone, LeaderboardOrder, LeaderboardType, LengthUnit, LocationType, MarketMetaStatus, MarketType, MemberingStatus, MusicInterestName, PageType, PageUpdateType, PetsInterestName, PostPrivacy, PostType, ProfilePermission, ProfilePrivacy, ProfileStatus, ProfileType, SportsInterestName, SubjectType, TennisBackhand, TennisLevel, UserPronoun, WeightUnit };
package/dist/index.js CHANGED
@@ -20,20 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- ATTRIBUTE_LABEL: () => ATTRIBUTE_LABEL,
24
- ATTRIBUTE_LABEL_COLLECTION: () => ATTRIBUTE_LABEL_COLLECTION,
25
- ATTRIBUTE_LABEL_COMMON: () => ATTRIBUTE_LABEL_COMMON,
26
- ATTRIBUTE_LABEL_UOI: () => ATTRIBUTE_LABEL_UOI,
27
- ATTRIBUTE_LABEL_UOI_SPORTS: () => ATTRIBUTE_LABEL_UOI_SPORTS,
28
- ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL: () => ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL,
29
- ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS: () => ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS,
30
23
  AccountStatus: () => AccountStatus,
31
24
  AdminAccountStatus: () => AdminAccountStatus,
32
25
  AttendanceStatus: () => AttendanceStatus,
33
- AttributeTypeCollectionPets: () => AttributeTypeCollectionPets,
34
- AttributeTypeCommon: () => AttributeTypeCommon,
35
- AttributeTypeUoiSportsBasketball: () => AttributeTypeUoiSportsBasketball,
36
- AttributeTypeUoiSportsTennis: () => AttributeTypeUoiSportsTennis,
37
26
  AvatarType: () => AvatarType,
38
27
  BasketballPosition: () => BasketballPosition,
39
28
  BuddyingStatus: () => BuddyingStatus,
@@ -65,13 +54,12 @@ __export(index_exports, {
65
54
  ProfilePrivacy: () => ProfilePrivacy,
66
55
  ProfileStatus: () => ProfileStatus,
67
56
  ProfileType: () => ProfileType,
68
- Pronoun: () => Pronoun,
69
57
  SportsInterestName: () => SportsInterestName,
70
58
  SubjectType: () => SubjectType,
71
59
  TennisBackhand: () => TennisBackhand,
72
60
  TennisLevel: () => TennisLevel,
73
- WeightUnit: () => WeightUnit,
74
- getProfileAttributeLabel: () => getProfileAttributeLabel
61
+ UserPronoun: () => UserPronoun,
62
+ WeightUnit: () => WeightUnit
75
63
  });
76
64
  module.exports = __toCommonJS(index_exports);
77
65
 
@@ -184,12 +172,12 @@ var CollectionMetaStatus = /* @__PURE__ */ ((CollectionMetaStatus2) => {
184
172
  })(CollectionMetaStatus || {});
185
173
 
186
174
  // src/page/profile/user.ts
187
- var Pronoun = /* @__PURE__ */ ((Pronoun2) => {
188
- Pronoun2[Pronoun2["None"] = 0] = "None";
189
- Pronoun2[Pronoun2["He"] = 1] = "He";
190
- Pronoun2[Pronoun2["She"] = 2] = "She";
191
- return Pronoun2;
192
- })(Pronoun || {});
175
+ var UserPronoun = /* @__PURE__ */ ((UserPronoun2) => {
176
+ UserPronoun2[UserPronoun2["None"] = 0] = "None";
177
+ UserPronoun2[UserPronoun2["He"] = 1] = "He";
178
+ UserPronoun2[UserPronoun2["She"] = 2] = "She";
179
+ return UserPronoun2;
180
+ })(UserPronoun || {});
193
181
 
194
182
  // src/page/profile/event.ts
195
183
  var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
@@ -324,20 +312,7 @@ var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
324
312
  return FollowingStatus2;
325
313
  })(FollowingStatus || {});
326
314
 
327
- // src/attribute/common/type.ts
328
- var AttributeTypeCommon = /* @__PURE__ */ ((AttributeTypeCommon2) => {
329
- AttributeTypeCommon2[AttributeTypeCommon2["Handedness"] = 0] = "Handedness";
330
- AttributeTypeCommon2[AttributeTypeCommon2["Gender"] = 1] = "Gender";
331
- return AttributeTypeCommon2;
332
- })(AttributeTypeCommon || {});
333
-
334
- // src/attribute/common/label.ts
335
- var ATTRIBUTE_LABEL_COMMON = {
336
- [0 /* Handedness */]: "Handedness",
337
- [1 /* Gender */]: "Gender"
338
- };
339
-
340
- // src/attribute/common/common.ts
315
+ // src/attribute/common.ts
341
316
  var Handedness = /* @__PURE__ */ ((Handedness2) => {
342
317
  Handedness2[Handedness2["None"] = 0] = "None";
343
318
  Handedness2[Handedness2["Left"] = 1] = "Left";
@@ -351,20 +326,7 @@ var Gender = /* @__PURE__ */ ((Gender2) => {
351
326
  return Gender2;
352
327
  })(Gender || {});
353
328
 
354
- // src/attribute/uoi/sports/tennis/type.ts
355
- var AttributeTypeUoiSportsTennis = /* @__PURE__ */ ((AttributeTypeUoiSportsTennis2) => {
356
- AttributeTypeUoiSportsTennis2[AttributeTypeUoiSportsTennis2["Level"] = 0] = "Level";
357
- AttributeTypeUoiSportsTennis2[AttributeTypeUoiSportsTennis2["Backhand"] = 1] = "Backhand";
358
- return AttributeTypeUoiSportsTennis2;
359
- })(AttributeTypeUoiSportsTennis || {});
360
-
361
- // src/attribute/uoi/sports/tennis/label.ts
362
- var ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS = {
363
- [0 /* Level */]: "Level",
364
- [1 /* Backhand */]: "Backhand"
365
- };
366
-
367
- // src/attribute/uoi/sports/tennis/tennis.ts
329
+ // src/attribute/uoi/sports/tennis.ts
368
330
  var TennisBackhand = /* @__PURE__ */ ((TennisBackhand2) => {
369
331
  TennisBackhand2[TennisBackhand2["None"] = 0] = "None";
370
332
  TennisBackhand2[TennisBackhand2["Single"] = 1] = "Single";
@@ -386,18 +348,7 @@ var TennisLevel = /* @__PURE__ */ ((TennisLevel2) => {
386
348
  return TennisLevel2;
387
349
  })(TennisLevel || {});
388
350
 
389
- // src/attribute/uoi/sports/basketball/type.ts
390
- var AttributeTypeUoiSportsBasketball = /* @__PURE__ */ ((AttributeTypeUoiSportsBasketball2) => {
391
- AttributeTypeUoiSportsBasketball2[AttributeTypeUoiSportsBasketball2["Positions"] = 0] = "Positions";
392
- return AttributeTypeUoiSportsBasketball2;
393
- })(AttributeTypeUoiSportsBasketball || {});
394
-
395
- // src/attribute/uoi/sports/basketball/label.ts
396
- var ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL = {
397
- [0 /* Positions */]: "Positions"
398
- };
399
-
400
- // src/attribute/uoi/sports/basketball/basketball.ts
351
+ // src/attribute/uoi/sports/basketball.ts
401
352
  var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
402
353
  BasketballPosition2[BasketballPosition2["None"] = 0] = "None";
403
354
  BasketballPosition2[BasketballPosition2["SG"] = 1] = "SG";
@@ -408,6 +359,30 @@ var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
408
359
  return BasketballPosition2;
409
360
  })(BasketballPosition || {});
410
361
 
362
+ // src/pageUpdate.ts
363
+ var PageUpdateType = /* @__PURE__ */ ((PageUpdateType2) => {
364
+ PageUpdateType2[PageUpdateType2["None"] = 0] = "None";
365
+ PageUpdateType2[PageUpdateType2["CreatePost"] = 1] = "CreatePost";
366
+ PageUpdateType2[PageUpdateType2["CreateProfile"] = 2] = "CreateProfile";
367
+ return PageUpdateType2;
368
+ })(PageUpdateType || {});
369
+ var ConnectionType = /* @__PURE__ */ ((ConnectionType2) => {
370
+ ConnectionType2[ConnectionType2["None"] = 0] = "None";
371
+ ConnectionType2[ConnectionType2["Connected"] = 1] = "Connected";
372
+ ConnectionType2[ConnectionType2["Following"] = 2] = "Following";
373
+ return ConnectionType2;
374
+ })(ConnectionType || {});
375
+
376
+ // src/comment.ts
377
+ var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
378
+ SubjectType2[SubjectType2["None"] = 0] = "None";
379
+ SubjectType2[SubjectType2["Post"] = 1] = "Post";
380
+ SubjectType2[SubjectType2["Rating"] = 2] = "Rating";
381
+ SubjectType2[SubjectType2["Comment"] = 3] = "Comment";
382
+ SubjectType2[SubjectType2["Reply"] = 4] = "Reply";
383
+ return SubjectType2;
384
+ })(SubjectType || {});
385
+
411
386
  // src/interest/category.ts
412
387
  var CategoryName = /* @__PURE__ */ ((CategoryName2) => {
413
388
  CategoryName2["Sports"] = "sports";
@@ -465,83 +440,6 @@ var MusicInterestName = /* @__PURE__ */ ((MusicInterestName2) => {
465
440
  return MusicInterestName2;
466
441
  })(MusicInterestName || {});
467
442
 
468
- // src/attribute/uoi/sports/label.ts
469
- var ATTRIBUTE_LABEL_UOI_SPORTS = {
470
- ["tennis" /* Tennis */]: ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS,
471
- ["basketball" /* Basketball */]: ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL
472
- };
473
-
474
- // src/attribute/uoi/label.ts
475
- var ATTRIBUTE_LABEL_UOI = {
476
- ["sports" /* Sports */]: ATTRIBUTE_LABEL_UOI_SPORTS
477
- };
478
-
479
- // src/attribute/collection/pets/type.ts
480
- var AttributeTypeCollectionPets = /* @__PURE__ */ ((AttributeTypeCollectionPets2) => {
481
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Breed"] = 0] = "Breed";
482
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Dob"] = 1] = "Dob";
483
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Father"] = 2] = "Father";
484
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Mother"] = 3] = "Mother";
485
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Gender"] = 4] = "Gender";
486
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Height"] = 5] = "Height";
487
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Weight"] = 6] = "Weight";
488
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Children"] = 7] = "Children";
489
- return AttributeTypeCollectionPets2;
490
- })(AttributeTypeCollectionPets || {});
491
-
492
- // src/attribute/collection/label.ts
493
- var ATTRIBUTE_LABEL_COLLECTION = {
494
- ["pets" /* Pets */]: AttributeTypeCollectionPets
495
- };
496
-
497
- // src/attribute/label.ts
498
- var ATTRIBUTE_LABEL = {
499
- [2 /* Uoi */]: ATTRIBUTE_LABEL_UOI,
500
- [5 /* Collection */]: ATTRIBUTE_LABEL_COLLECTION,
501
- [0 /* None */]: ATTRIBUTE_LABEL_COMMON
502
- };
503
-
504
- // src/attribute/util.ts
505
- var getProfileAttributeLabel = ({
506
- profileType,
507
- categoryName,
508
- interestName,
509
- attributeType
510
- }) => {
511
- let titles = ATTRIBUTE_LABEL[profileType];
512
- if (categoryName) {
513
- titles = (titles == null ? void 0 : titles[categoryName]) || {};
514
- }
515
- if (interestName) {
516
- titles = (titles == null ? void 0 : titles[interestName]) || {};
517
- }
518
- return (titles == null ? void 0 : titles[attributeType]) || "";
519
- };
520
-
521
- // src/pageUpdate.ts
522
- var PageUpdateType = /* @__PURE__ */ ((PageUpdateType2) => {
523
- PageUpdateType2[PageUpdateType2["None"] = 0] = "None";
524
- PageUpdateType2[PageUpdateType2["CreatePost"] = 1] = "CreatePost";
525
- PageUpdateType2[PageUpdateType2["CreateProfile"] = 2] = "CreateProfile";
526
- return PageUpdateType2;
527
- })(PageUpdateType || {});
528
- var ConnectionType = /* @__PURE__ */ ((ConnectionType2) => {
529
- ConnectionType2[ConnectionType2["None"] = 0] = "None";
530
- ConnectionType2[ConnectionType2["Connected"] = 1] = "Connected";
531
- ConnectionType2[ConnectionType2["Following"] = 2] = "Following";
532
- return ConnectionType2;
533
- })(ConnectionType || {});
534
-
535
- // src/comment.ts
536
- var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
537
- SubjectType2[SubjectType2["None"] = 0] = "None";
538
- SubjectType2[SubjectType2["Post"] = 1] = "Post";
539
- SubjectType2[SubjectType2["Rating"] = 2] = "Rating";
540
- SubjectType2[SubjectType2["Comment"] = 3] = "Comment";
541
- SubjectType2[SubjectType2["Reply"] = 4] = "Reply";
542
- return SubjectType2;
543
- })(SubjectType || {});
544
-
545
443
  // src/common/measure.ts
546
444
  var LengthUnit = /* @__PURE__ */ ((LengthUnit2) => {
547
445
  LengthUnit2[LengthUnit2["Meter"] = 0] = "Meter";
@@ -562,20 +460,9 @@ var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
562
460
  })(WeightUnit || {});
563
461
  // Annotate the CommonJS export names for ESM import in node:
564
462
  0 && (module.exports = {
565
- ATTRIBUTE_LABEL,
566
- ATTRIBUTE_LABEL_COLLECTION,
567
- ATTRIBUTE_LABEL_COMMON,
568
- ATTRIBUTE_LABEL_UOI,
569
- ATTRIBUTE_LABEL_UOI_SPORTS,
570
- ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL,
571
- ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS,
572
463
  AccountStatus,
573
464
  AdminAccountStatus,
574
465
  AttendanceStatus,
575
- AttributeTypeCollectionPets,
576
- AttributeTypeCommon,
577
- AttributeTypeUoiSportsBasketball,
578
- AttributeTypeUoiSportsTennis,
579
466
  AvatarType,
580
467
  BasketballPosition,
581
468
  BuddyingStatus,
@@ -607,11 +494,10 @@ var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
607
494
  ProfilePrivacy,
608
495
  ProfileStatus,
609
496
  ProfileType,
610
- Pronoun,
611
497
  SportsInterestName,
612
498
  SubjectType,
613
499
  TennisBackhand,
614
500
  TennisLevel,
615
- WeightUnit,
616
- getProfileAttributeLabel
501
+ UserPronoun,
502
+ WeightUnit
617
503
  });
package/dist/index.mjs CHANGED
@@ -107,12 +107,12 @@ var CollectionMetaStatus = /* @__PURE__ */ ((CollectionMetaStatus2) => {
107
107
  })(CollectionMetaStatus || {});
108
108
 
109
109
  // src/page/profile/user.ts
110
- var Pronoun = /* @__PURE__ */ ((Pronoun2) => {
111
- Pronoun2[Pronoun2["None"] = 0] = "None";
112
- Pronoun2[Pronoun2["He"] = 1] = "He";
113
- Pronoun2[Pronoun2["She"] = 2] = "She";
114
- return Pronoun2;
115
- })(Pronoun || {});
110
+ var UserPronoun = /* @__PURE__ */ ((UserPronoun2) => {
111
+ UserPronoun2[UserPronoun2["None"] = 0] = "None";
112
+ UserPronoun2[UserPronoun2["He"] = 1] = "He";
113
+ UserPronoun2[UserPronoun2["She"] = 2] = "She";
114
+ return UserPronoun2;
115
+ })(UserPronoun || {});
116
116
 
117
117
  // src/page/profile/event.ts
118
118
  var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
@@ -247,20 +247,7 @@ var FollowingStatus = /* @__PURE__ */ ((FollowingStatus2) => {
247
247
  return FollowingStatus2;
248
248
  })(FollowingStatus || {});
249
249
 
250
- // src/attribute/common/type.ts
251
- var AttributeTypeCommon = /* @__PURE__ */ ((AttributeTypeCommon2) => {
252
- AttributeTypeCommon2[AttributeTypeCommon2["Handedness"] = 0] = "Handedness";
253
- AttributeTypeCommon2[AttributeTypeCommon2["Gender"] = 1] = "Gender";
254
- return AttributeTypeCommon2;
255
- })(AttributeTypeCommon || {});
256
-
257
- // src/attribute/common/label.ts
258
- var ATTRIBUTE_LABEL_COMMON = {
259
- [0 /* Handedness */]: "Handedness",
260
- [1 /* Gender */]: "Gender"
261
- };
262
-
263
- // src/attribute/common/common.ts
250
+ // src/attribute/common.ts
264
251
  var Handedness = /* @__PURE__ */ ((Handedness2) => {
265
252
  Handedness2[Handedness2["None"] = 0] = "None";
266
253
  Handedness2[Handedness2["Left"] = 1] = "Left";
@@ -274,20 +261,7 @@ var Gender = /* @__PURE__ */ ((Gender2) => {
274
261
  return Gender2;
275
262
  })(Gender || {});
276
263
 
277
- // src/attribute/uoi/sports/tennis/type.ts
278
- var AttributeTypeUoiSportsTennis = /* @__PURE__ */ ((AttributeTypeUoiSportsTennis2) => {
279
- AttributeTypeUoiSportsTennis2[AttributeTypeUoiSportsTennis2["Level"] = 0] = "Level";
280
- AttributeTypeUoiSportsTennis2[AttributeTypeUoiSportsTennis2["Backhand"] = 1] = "Backhand";
281
- return AttributeTypeUoiSportsTennis2;
282
- })(AttributeTypeUoiSportsTennis || {});
283
-
284
- // src/attribute/uoi/sports/tennis/label.ts
285
- var ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS = {
286
- [0 /* Level */]: "Level",
287
- [1 /* Backhand */]: "Backhand"
288
- };
289
-
290
- // src/attribute/uoi/sports/tennis/tennis.ts
264
+ // src/attribute/uoi/sports/tennis.ts
291
265
  var TennisBackhand = /* @__PURE__ */ ((TennisBackhand2) => {
292
266
  TennisBackhand2[TennisBackhand2["None"] = 0] = "None";
293
267
  TennisBackhand2[TennisBackhand2["Single"] = 1] = "Single";
@@ -309,18 +283,7 @@ var TennisLevel = /* @__PURE__ */ ((TennisLevel2) => {
309
283
  return TennisLevel2;
310
284
  })(TennisLevel || {});
311
285
 
312
- // src/attribute/uoi/sports/basketball/type.ts
313
- var AttributeTypeUoiSportsBasketball = /* @__PURE__ */ ((AttributeTypeUoiSportsBasketball2) => {
314
- AttributeTypeUoiSportsBasketball2[AttributeTypeUoiSportsBasketball2["Positions"] = 0] = "Positions";
315
- return AttributeTypeUoiSportsBasketball2;
316
- })(AttributeTypeUoiSportsBasketball || {});
317
-
318
- // src/attribute/uoi/sports/basketball/label.ts
319
- var ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL = {
320
- [0 /* Positions */]: "Positions"
321
- };
322
-
323
- // src/attribute/uoi/sports/basketball/basketball.ts
286
+ // src/attribute/uoi/sports/basketball.ts
324
287
  var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
325
288
  BasketballPosition2[BasketballPosition2["None"] = 0] = "None";
326
289
  BasketballPosition2[BasketballPosition2["SG"] = 1] = "SG";
@@ -331,6 +294,30 @@ var BasketballPosition = /* @__PURE__ */ ((BasketballPosition2) => {
331
294
  return BasketballPosition2;
332
295
  })(BasketballPosition || {});
333
296
 
297
+ // src/pageUpdate.ts
298
+ var PageUpdateType = /* @__PURE__ */ ((PageUpdateType2) => {
299
+ PageUpdateType2[PageUpdateType2["None"] = 0] = "None";
300
+ PageUpdateType2[PageUpdateType2["CreatePost"] = 1] = "CreatePost";
301
+ PageUpdateType2[PageUpdateType2["CreateProfile"] = 2] = "CreateProfile";
302
+ return PageUpdateType2;
303
+ })(PageUpdateType || {});
304
+ var ConnectionType = /* @__PURE__ */ ((ConnectionType2) => {
305
+ ConnectionType2[ConnectionType2["None"] = 0] = "None";
306
+ ConnectionType2[ConnectionType2["Connected"] = 1] = "Connected";
307
+ ConnectionType2[ConnectionType2["Following"] = 2] = "Following";
308
+ return ConnectionType2;
309
+ })(ConnectionType || {});
310
+
311
+ // src/comment.ts
312
+ var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
313
+ SubjectType2[SubjectType2["None"] = 0] = "None";
314
+ SubjectType2[SubjectType2["Post"] = 1] = "Post";
315
+ SubjectType2[SubjectType2["Rating"] = 2] = "Rating";
316
+ SubjectType2[SubjectType2["Comment"] = 3] = "Comment";
317
+ SubjectType2[SubjectType2["Reply"] = 4] = "Reply";
318
+ return SubjectType2;
319
+ })(SubjectType || {});
320
+
334
321
  // src/interest/category.ts
335
322
  var CategoryName = /* @__PURE__ */ ((CategoryName2) => {
336
323
  CategoryName2["Sports"] = "sports";
@@ -388,83 +375,6 @@ var MusicInterestName = /* @__PURE__ */ ((MusicInterestName2) => {
388
375
  return MusicInterestName2;
389
376
  })(MusicInterestName || {});
390
377
 
391
- // src/attribute/uoi/sports/label.ts
392
- var ATTRIBUTE_LABEL_UOI_SPORTS = {
393
- ["tennis" /* Tennis */]: ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS,
394
- ["basketball" /* Basketball */]: ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL
395
- };
396
-
397
- // src/attribute/uoi/label.ts
398
- var ATTRIBUTE_LABEL_UOI = {
399
- ["sports" /* Sports */]: ATTRIBUTE_LABEL_UOI_SPORTS
400
- };
401
-
402
- // src/attribute/collection/pets/type.ts
403
- var AttributeTypeCollectionPets = /* @__PURE__ */ ((AttributeTypeCollectionPets2) => {
404
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Breed"] = 0] = "Breed";
405
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Dob"] = 1] = "Dob";
406
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Father"] = 2] = "Father";
407
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Mother"] = 3] = "Mother";
408
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Gender"] = 4] = "Gender";
409
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Height"] = 5] = "Height";
410
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Weight"] = 6] = "Weight";
411
- AttributeTypeCollectionPets2[AttributeTypeCollectionPets2["Children"] = 7] = "Children";
412
- return AttributeTypeCollectionPets2;
413
- })(AttributeTypeCollectionPets || {});
414
-
415
- // src/attribute/collection/label.ts
416
- var ATTRIBUTE_LABEL_COLLECTION = {
417
- ["pets" /* Pets */]: AttributeTypeCollectionPets
418
- };
419
-
420
- // src/attribute/label.ts
421
- var ATTRIBUTE_LABEL = {
422
- [2 /* Uoi */]: ATTRIBUTE_LABEL_UOI,
423
- [5 /* Collection */]: ATTRIBUTE_LABEL_COLLECTION,
424
- [0 /* None */]: ATTRIBUTE_LABEL_COMMON
425
- };
426
-
427
- // src/attribute/util.ts
428
- var getProfileAttributeLabel = ({
429
- profileType,
430
- categoryName,
431
- interestName,
432
- attributeType
433
- }) => {
434
- let titles = ATTRIBUTE_LABEL[profileType];
435
- if (categoryName) {
436
- titles = (titles == null ? void 0 : titles[categoryName]) || {};
437
- }
438
- if (interestName) {
439
- titles = (titles == null ? void 0 : titles[interestName]) || {};
440
- }
441
- return (titles == null ? void 0 : titles[attributeType]) || "";
442
- };
443
-
444
- // src/pageUpdate.ts
445
- var PageUpdateType = /* @__PURE__ */ ((PageUpdateType2) => {
446
- PageUpdateType2[PageUpdateType2["None"] = 0] = "None";
447
- PageUpdateType2[PageUpdateType2["CreatePost"] = 1] = "CreatePost";
448
- PageUpdateType2[PageUpdateType2["CreateProfile"] = 2] = "CreateProfile";
449
- return PageUpdateType2;
450
- })(PageUpdateType || {});
451
- var ConnectionType = /* @__PURE__ */ ((ConnectionType2) => {
452
- ConnectionType2[ConnectionType2["None"] = 0] = "None";
453
- ConnectionType2[ConnectionType2["Connected"] = 1] = "Connected";
454
- ConnectionType2[ConnectionType2["Following"] = 2] = "Following";
455
- return ConnectionType2;
456
- })(ConnectionType || {});
457
-
458
- // src/comment.ts
459
- var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
460
- SubjectType2[SubjectType2["None"] = 0] = "None";
461
- SubjectType2[SubjectType2["Post"] = 1] = "Post";
462
- SubjectType2[SubjectType2["Rating"] = 2] = "Rating";
463
- SubjectType2[SubjectType2["Comment"] = 3] = "Comment";
464
- SubjectType2[SubjectType2["Reply"] = 4] = "Reply";
465
- return SubjectType2;
466
- })(SubjectType || {});
467
-
468
378
  // src/common/measure.ts
469
379
  var LengthUnit = /* @__PURE__ */ ((LengthUnit2) => {
470
380
  LengthUnit2[LengthUnit2["Meter"] = 0] = "Meter";
@@ -484,20 +394,9 @@ var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
484
394
  return WeightUnit2;
485
395
  })(WeightUnit || {});
486
396
  export {
487
- ATTRIBUTE_LABEL,
488
- ATTRIBUTE_LABEL_COLLECTION,
489
- ATTRIBUTE_LABEL_COMMON,
490
- ATTRIBUTE_LABEL_UOI,
491
- ATTRIBUTE_LABEL_UOI_SPORTS,
492
- ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL,
493
- ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS,
494
397
  AccountStatus,
495
398
  AdminAccountStatus,
496
399
  AttendanceStatus,
497
- AttributeTypeCollectionPets,
498
- AttributeTypeCommon,
499
- AttributeTypeUoiSportsBasketball,
500
- AttributeTypeUoiSportsTennis,
501
400
  AvatarType,
502
401
  BasketballPosition,
503
402
  BuddyingStatus,
@@ -529,11 +428,10 @@ export {
529
428
  ProfilePrivacy,
530
429
  ProfileStatus,
531
430
  ProfileType,
532
- Pronoun,
533
431
  SportsInterestName,
534
432
  SubjectType,
535
433
  TennisBackhand,
536
434
  TennisLevel,
537
- WeightUnit,
538
- getProfileAttributeLabel
435
+ UserPronoun,
436
+ WeightUnit
539
437
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.32.0",
3
+ "version": "1.34.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,2 @@
1
1
  export * from './common';
2
2
  export * from './uoi';
3
- export * from './collection';
4
- export * from './label';
5
- export * from './type';
6
- export * from './util';
@@ -1,3 +1 @@
1
1
  export * from './sports';
2
- export * from './label';
3
- export * from './type';
@@ -1,4 +1,2 @@
1
1
  export * from './tennis';
2
- export * from './basketball';
3
- export * from './label';
4
- export * from './type';
2
+ export * from './basketball';
@@ -1,3 +1,3 @@
1
- export enum Pronoun {
1
+ export enum UserPronoun {
2
2
  None, He, She,
3
3
  }
@@ -1,3 +0,0 @@
1
- export * from './pets';
2
- export * from './type';
3
- export * from './label';
@@ -1,6 +0,0 @@
1
- import { CategoryName } from '../../interest';
2
- import { AttributeTypeCollectionPets } from './pets';
3
-
4
- export const ATTRIBUTE_LABEL_COLLECTION: Partial<Record<CategoryName, any>> = {
5
- [CategoryName.Pets]: AttributeTypeCollectionPets,
6
- };
@@ -1 +0,0 @@
1
- export * from './type';
@@ -1,10 +0,0 @@
1
- export enum AttributeTypeCollectionPets {
2
- Breed,
3
- Dob,
4
- Father,
5
- Mother,
6
- Gender,
7
- Height,
8
- Weight,
9
- Children,
10
- }
@@ -1,3 +0,0 @@
1
- import { AttributeTypeCollectionPets } from './pets';
2
-
3
- export type AttributeTypeCollection = AttributeTypeCollectionPets;
@@ -1,3 +0,0 @@
1
- export * from './label';
2
- export * from './common';
3
- export * from './type';
@@ -1,6 +0,0 @@
1
- import { AttributeTypeCommon } from './type';
2
-
3
- export const ATTRIBUTE_LABEL_COMMON: Partial<Record<AttributeTypeCommon, any>> = {
4
- [AttributeTypeCommon.Handedness]: 'Handedness',
5
- [AttributeTypeCommon.Gender]: 'Gender',
6
- };
@@ -1,4 +0,0 @@
1
- export enum AttributeTypeCommon {
2
- Handedness,
3
- Gender,
4
- }
@@ -1,11 +0,0 @@
1
-
2
- import { ProfileType } from '../page';
3
- import { ATTRIBUTE_LABEL_COLLECTION } from './collection';
4
- import { ATTRIBUTE_LABEL_COMMON } from './common';
5
- import { ATTRIBUTE_LABEL_UOI } from './uoi';
6
-
7
- export const ATTRIBUTE_LABEL:Partial<Record<ProfileType, any>> = {
8
- [ProfileType.Uoi]: ATTRIBUTE_LABEL_UOI,
9
- [ProfileType.Collection]: ATTRIBUTE_LABEL_COLLECTION,
10
- [ProfileType.None]: ATTRIBUTE_LABEL_COMMON,
11
- };
@@ -1,9 +0,0 @@
1
-
2
- import { AttributeTypeCollection } from './collection';
3
- import { AttributeTypeCommon } from './common';
4
- import { AttributeTypeUoi } from './uoi';
5
-
6
- export type AttributeType =
7
- | AttributeTypeUoi
8
- | AttributeTypeCollection
9
- | AttributeTypeCommon;
@@ -1,6 +0,0 @@
1
- import { CategoryName } from '../../interest';
2
- import { ATTRIBUTE_LABEL_UOI_SPORTS } from './sports';
3
-
4
- export const ATTRIBUTE_LABEL_UOI: Partial<Record<CategoryName, any>> = {
5
- [CategoryName.Sports]: ATTRIBUTE_LABEL_UOI_SPORTS,
6
- };
@@ -1,3 +0,0 @@
1
- export * from './label';
2
- export * from './basketball';
3
- export * from './type';
@@ -1,6 +0,0 @@
1
- import { AttributeTypeUoiSportsBasketball } from './type';
2
-
3
- export const ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL: Partial<Record<AttributeTypeUoiSportsBasketball, any>> = {
4
- [AttributeTypeUoiSportsBasketball.Positions]: 'Positions',
5
- };
6
-
@@ -1,5 +0,0 @@
1
- export enum AttributeTypeUoiSportsBasketball {
2
- Positions,
3
- }
4
-
5
-
@@ -1,8 +0,0 @@
1
- import { SportsInterestName } from '../../../interest';
2
- import { ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL } from './basketball';
3
- import { ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS } from './tennis';
4
-
5
- export const ATTRIBUTE_LABEL_UOI_SPORTS: Partial<Record<SportsInterestName, any>> = {
6
- [SportsInterestName.Tennis]: ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS,
7
- [SportsInterestName.Basketball]: ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL,
8
- };
@@ -1,3 +0,0 @@
1
- export * from './label';
2
- export * from './tennis';
3
- export * from './type';
@@ -1,6 +0,0 @@
1
- import { AttributeTypeUoiSportsTennis } from './type';
2
-
3
- export const ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS: Partial<Record<AttributeTypeUoiSportsTennis, any>> = {
4
- [AttributeTypeUoiSportsTennis.Level]: 'Level',
5
- [AttributeTypeUoiSportsTennis.Backhand]: 'Backhand',
6
- };
@@ -1,3 +0,0 @@
1
- export enum AttributeTypeUoiSportsTennis {
2
- Level, Backhand,
3
- }
@@ -1,6 +0,0 @@
1
- import { AttributeTypeUoiSportsBasketball } from './basketball/type';
2
- import { AttributeTypeUoiSportsTennis } from './tennis/type';
3
-
4
- export type AttributeTypeUoiSports =
5
- | AttributeTypeUoiSportsTennis
6
- | AttributeTypeUoiSportsBasketball;
@@ -1,3 +0,0 @@
1
- import { AttributeTypeUoiSports } from './sports';
2
-
3
- export type AttributeTypeUoi = AttributeTypeUoiSports;
@@ -1,25 +0,0 @@
1
- import { CategoryName, InterestName } from '../interest';
2
- import { ProfileType } from '../page';
3
- import { ATTRIBUTE_LABEL } from './label';
4
- import { AttributeType } from './type';
5
-
6
- export const getProfileAttributeLabel = ({
7
- profileType,
8
- categoryName,
9
- interestName,
10
- attributeType
11
- }:{
12
- profileType: ProfileType,
13
- categoryName?: CategoryName,
14
- interestName?: InterestName,
15
- attributeType: AttributeType,
16
- }) => {
17
- let titles: any = ATTRIBUTE_LABEL[profileType];
18
- if (categoryName) {
19
- titles = titles?.[categoryName] || {};
20
- }
21
- if (interestName) {
22
- titles = titles?.[interestName] || {};
23
- }
24
- return titles?.[attributeType as any] || '';
25
- };
File without changes