ldco-contract 0.1.9 → 0.1.11

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 (82) hide show
  1. package/dist/entities/friend.entity.d.ts +7 -0
  2. package/dist/index.d.ts +23 -13
  3. package/dist/ldco-contract.cjs.development.js +3 -92
  4. package/dist/ldco-contract.cjs.development.js.map +1 -1
  5. package/dist/ldco-contract.cjs.production.min.js +1 -1
  6. package/dist/ldco-contract.cjs.production.min.js.map +1 -1
  7. package/dist/ldco-contract.esm.js +4 -81
  8. package/dist/ldco-contract.esm.js.map +1 -1
  9. package/dist/lib/getAllUserDanceIds.d.ts +3 -2
  10. package/dist/types/dto/choreographer.dto.d.ts +5 -0
  11. package/dist/types/dto/collection.dto.d.ts +11 -0
  12. package/dist/types/dto/dance.dto.d.ts +10 -0
  13. package/dist/types/dto/friend.dto.d.ts +6 -0
  14. package/dist/types/dto/friendRequest.dto.d.ts +7 -0
  15. package/dist/types/dto/instructor.dto.d.ts +6 -0
  16. package/dist/types/dto/lesson.dto.d.ts +10 -0
  17. package/dist/types/dto/track.dto.d.ts +12 -0
  18. package/dist/types/dto/user.dto.d.ts +25 -0
  19. package/dist/types/dto/userAcquaintance.dto.d.ts +22 -0
  20. package/dist/types/dto/venue.dto.d.ts +13 -0
  21. package/dist/types/model/choreographer.model.d.ts +5 -0
  22. package/dist/types/model/collection.model.d.ts +10 -0
  23. package/dist/types/model/dance.model.d.ts +11 -0
  24. package/dist/types/model/instructor.model.d.ts +6 -0
  25. package/dist/types/model/lesson.model.d.ts +10 -0
  26. package/dist/types/model/track.model.d.ts +12 -0
  27. package/dist/types/model/user.model.d.ts +11 -0
  28. package/dist/types/model/userAcquaintance.model.d.ts +16 -0
  29. package/dist/types/model/userTypes/profileData.d.ts +16 -0
  30. package/dist/{models/socialMediaLinks.model.d.ts → types/model/userTypes/socialMediaLinks.d.ts} +1 -1
  31. package/dist/types/model/userTypes/userDances.d.ts +7 -0
  32. package/dist/types/model/venue.model.d.ts +13 -0
  33. package/package.json +1 -1
  34. package/src/converter/userEntityToUser.ts +2 -0
  35. package/src/entities/friend.entity.ts +10 -0
  36. package/src/index.ts +29 -13
  37. package/src/lib/getAllUserDanceIds.ts +5 -4
  38. package/src/types/dto/choreographer.dto.ts +5 -0
  39. package/src/types/dto/collection.dto.ts +13 -0
  40. package/src/types/dto/dance.dto.ts +10 -0
  41. package/src/types/dto/friend.dto.ts +6 -0
  42. package/src/types/dto/friendRequest.dto.ts +7 -0
  43. package/src/types/dto/instructor.dto.ts +6 -0
  44. package/src/types/dto/lesson.dto.ts +10 -0
  45. package/src/types/dto/track.dto.ts +12 -0
  46. package/src/types/dto/user.dto.ts +25 -0
  47. package/src/types/dto/userAcquaintance.dto.ts +22 -0
  48. package/src/types/dto/venue.dto.ts +15 -0
  49. package/src/types/model/choreographer.model.ts +5 -0
  50. package/src/types/model/collection.model.ts +11 -0
  51. package/src/types/model/dance.model.ts +12 -0
  52. package/src/types/model/instructor.model.ts +6 -0
  53. package/src/types/model/lesson.model.ts +11 -0
  54. package/src/types/model/track.model.ts +12 -0
  55. package/src/types/model/user.model.ts +12 -0
  56. package/src/types/model/userAcquaintance.model.ts +17 -0
  57. package/src/types/model/userTypes/profileData.ts +17 -0
  58. package/src/{models/socialMediaLinks.model.ts → types/model/userTypes/socialMediaLinks.ts} +1 -1
  59. package/src/types/model/userTypes/userDances.ts +8 -0
  60. package/src/types/model/venue.model.ts +14 -0
  61. package/dist/entities/user.entity.d.ts +0 -17
  62. package/dist/models/collection.model.d.ts +0 -5
  63. package/dist/models/dance.model.d.ts +0 -11
  64. package/dist/models/instructor.model.d.ts +0 -5
  65. package/dist/models/lesson.model.d.ts +0 -11
  66. package/dist/models/profileData.model.d.ts +0 -16
  67. package/dist/models/track.model.d.ts +0 -9
  68. package/dist/models/user.model.d.ts +0 -10
  69. package/dist/models/userAcquaintance.model.d.ts +0 -19
  70. package/dist/models/userDances.model.d.ts +0 -7
  71. package/dist/models/venue.model.d.ts +0 -11
  72. package/src/entities/user.entity.ts +0 -18
  73. package/src/models/collection.model.ts +0 -8
  74. package/src/models/dance.model.ts +0 -15
  75. package/src/models/instructor.model.ts +0 -8
  76. package/src/models/lesson.model.ts +0 -11
  77. package/src/models/profileData.model.ts +0 -29
  78. package/src/models/track.model.ts +0 -12
  79. package/src/models/user.model.ts +0 -19
  80. package/src/models/userAcquaintance.model.ts +0 -37
  81. package/src/models/userDances.model.ts +0 -14
  82. package/src/models/venue.model.ts +0 -17
@@ -1,29 +0,0 @@
1
- import Collection from "./collection.model";
2
- import SocialMediaLinks from "./socialMediaLinks.model";
3
- import UserDances from "./userDances.model";
4
- import UserAcquaintance from "./userAcquaintance.model";
5
-
6
- export default class ProfileData {
7
-
8
- constructor(data: Partial<ProfileData>) {
9
- this.dances = new UserDances(data.dances);
10
- this.collections = data.collections ?? [];
11
- this.venues = data.venues ?? [];
12
- this.friends = data.friends ?? [];
13
- this.following = data.following ?? [];
14
- this.friendsRequested = data.friendsRequested ?? [];
15
- this.friendRequests = data.friendRequests ?? [];
16
- this.followersCount = data.followersCount ?? 0;
17
- this.links = {};
18
- }
19
-
20
- dances: UserDances;
21
- collections: Collection[];
22
- venues: string[];
23
- friends: UserAcquaintance[];
24
- following: UserAcquaintance[];
25
- friendsRequested: UserAcquaintance[];
26
- friendRequests: UserAcquaintance[];
27
- followersCount: number;
28
- links: SocialMediaLinks;
29
- }
@@ -1,12 +0,0 @@
1
- export default class Track {
2
- constructor(obj: Partial<Track>) {
3
- Object.assign(this, obj);
4
- }
5
-
6
- _id!: string;
7
- isrc?: string;
8
- name!: string;
9
- artists: string[] = [];
10
- duration_ms?: number;
11
- explicit?: boolean;
12
- }
@@ -1,19 +0,0 @@
1
- import ProfileData from "./profileData.model";
2
-
3
- export default class User {
4
-
5
- constructor(data: Partial<User>) {
6
- this._id = data._id ?? '';
7
- this.email = data.email ?? '';
8
- this.name = data.name ?? '';
9
- this.image = data.image;
10
- this.profile = new ProfileData(data?.profile as ProfileData ?? {});
11
- }
12
-
13
- _id!: string;
14
- email!: string;
15
- name!: string;
16
- image?: string;
17
- bio?: string;
18
- profile: ProfileData;
19
- }
@@ -1,37 +0,0 @@
1
- import UserDances from "./userDances.model";
2
- import SocialMediaLinks from "./socialMediaLinks.model";
3
- import Collection from "./collection.model";
4
-
5
- export default class UserAcquaintance {
6
-
7
- constructor(data: Partial<UserAcquaintance>) {
8
- this._id = data._id ?? '';
9
- this.email = data.email ?? '';
10
- this.name = data.name ?? '';
11
- this.image = data.image;
12
- this.dances = new UserDances(data.dances);
13
- this.collections = data.collections ?? [];
14
- this.followersCount = data.followersCount ?? 0;
15
- this.venuesCount = data.venuesCount ?? 0;
16
- this.mutualsCount = data.mutualsCount ?? 0;
17
- this.friends = data.friends ?? [];
18
- this.following = data.following ?? [];
19
- }
20
-
21
- _id!: string;
22
- email!: string;
23
- name!: string;
24
- image?: string;
25
- bio?: string;
26
-
27
- friends: string[];
28
- following: string[];
29
- dances: UserDances;
30
- collections: Collection[];
31
-
32
- followersCount: number;
33
- venuesCount: number;
34
- mutualsCount: number;
35
-
36
- links?: SocialMediaLinks;
37
- }
@@ -1,14 +0,0 @@
1
- export default class UserDances {
2
-
3
- constructor(data: Partial<UserDances> = {}) {
4
- this.favorites = data.favorites ?? [];
5
- this.flagged = data.flagged ?? [];
6
- this.known = data.known ?? [];
7
- this.refresh = data.refresh ?? [];
8
- }
9
-
10
- favorites: string[];
11
- flagged: string[];
12
- known: string[];
13
- refresh: string[];
14
- }
@@ -1,17 +0,0 @@
1
- import Lesson from "./lesson.model";
2
-
3
- export default class Venue {
4
- constructor(obj: Partial<Venue>) {
5
- Object.assign(this, obj);
6
- }
7
-
8
- _id!: string;
9
- venuename!: string;
10
- venueaddress!: string;
11
- geolocation!: [number, number];
12
- phone?: string;
13
- website?: string;
14
-
15
- // Loaded Data
16
- lessons?: Lesson[];
17
- }