ldco-contract 0.1.10 → 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 (79) hide show
  1. package/dist/index.d.ts +23 -13
  2. package/dist/ldco-contract.cjs.development.js +3 -93
  3. package/dist/ldco-contract.cjs.development.js.map +1 -1
  4. package/dist/ldco-contract.cjs.production.min.js +1 -1
  5. package/dist/ldco-contract.cjs.production.min.js.map +1 -1
  6. package/dist/ldco-contract.esm.js +4 -82
  7. package/dist/ldco-contract.esm.js.map +1 -1
  8. package/dist/lib/getAllUserDanceIds.d.ts +3 -2
  9. package/dist/types/dto/choreographer.dto.d.ts +5 -0
  10. package/dist/types/dto/collection.dto.d.ts +11 -0
  11. package/dist/types/dto/dance.dto.d.ts +10 -0
  12. package/dist/types/dto/friend.dto.d.ts +6 -0
  13. package/dist/types/dto/friendRequest.dto.d.ts +7 -0
  14. package/dist/types/dto/instructor.dto.d.ts +6 -0
  15. package/dist/types/dto/lesson.dto.d.ts +10 -0
  16. package/dist/types/dto/track.dto.d.ts +12 -0
  17. package/dist/types/dto/user.dto.d.ts +25 -0
  18. package/dist/types/dto/userAcquaintance.dto.d.ts +22 -0
  19. package/dist/types/dto/venue.dto.d.ts +13 -0
  20. package/dist/types/model/choreographer.model.d.ts +5 -0
  21. package/dist/types/model/collection.model.d.ts +10 -0
  22. package/dist/types/model/dance.model.d.ts +11 -0
  23. package/dist/types/model/instructor.model.d.ts +6 -0
  24. package/dist/types/model/lesson.model.d.ts +10 -0
  25. package/dist/types/model/track.model.d.ts +12 -0
  26. package/dist/types/model/user.model.d.ts +11 -0
  27. package/dist/types/model/userAcquaintance.model.d.ts +16 -0
  28. package/dist/types/model/userTypes/profileData.d.ts +16 -0
  29. package/dist/{models/socialMediaLinks.model.d.ts → types/model/userTypes/socialMediaLinks.d.ts} +1 -1
  30. package/dist/types/model/userTypes/userDances.d.ts +7 -0
  31. package/dist/types/model/venue.model.d.ts +13 -0
  32. package/package.json +1 -1
  33. package/src/index.ts +29 -13
  34. package/src/lib/getAllUserDanceIds.ts +5 -4
  35. package/src/types/dto/choreographer.dto.ts +5 -0
  36. package/src/types/dto/collection.dto.ts +13 -0
  37. package/src/types/dto/dance.dto.ts +10 -0
  38. package/src/types/dto/friend.dto.ts +6 -0
  39. package/src/types/dto/friendRequest.dto.ts +7 -0
  40. package/src/types/dto/instructor.dto.ts +6 -0
  41. package/src/types/dto/lesson.dto.ts +10 -0
  42. package/src/types/dto/track.dto.ts +12 -0
  43. package/src/types/dto/user.dto.ts +25 -0
  44. package/src/types/dto/userAcquaintance.dto.ts +22 -0
  45. package/src/types/dto/venue.dto.ts +15 -0
  46. package/src/types/model/choreographer.model.ts +5 -0
  47. package/src/types/model/collection.model.ts +11 -0
  48. package/src/types/model/dance.model.ts +12 -0
  49. package/src/types/model/instructor.model.ts +6 -0
  50. package/src/types/model/lesson.model.ts +11 -0
  51. package/src/types/model/track.model.ts +12 -0
  52. package/src/types/model/user.model.ts +12 -0
  53. package/src/types/model/userAcquaintance.model.ts +17 -0
  54. package/src/types/model/userTypes/profileData.ts +17 -0
  55. package/src/{models/socialMediaLinks.model.ts → types/model/userTypes/socialMediaLinks.ts} +1 -1
  56. package/src/types/model/userTypes/userDances.ts +8 -0
  57. package/src/types/model/venue.model.ts +14 -0
  58. package/dist/entities/user.entity.d.ts +0 -18
  59. package/dist/models/collection.model.d.ts +0 -5
  60. package/dist/models/dance.model.d.ts +0 -11
  61. package/dist/models/instructor.model.d.ts +0 -5
  62. package/dist/models/lesson.model.d.ts +0 -11
  63. package/dist/models/profileData.model.d.ts +0 -16
  64. package/dist/models/track.model.d.ts +0 -9
  65. package/dist/models/user.model.d.ts +0 -11
  66. package/dist/models/userAcquaintance.model.d.ts +0 -20
  67. package/dist/models/userDances.model.d.ts +0 -7
  68. package/dist/models/venue.model.d.ts +0 -11
  69. package/src/entities/user.entity.ts +0 -19
  70. package/src/models/collection.model.ts +0 -8
  71. package/src/models/dance.model.ts +0 -15
  72. package/src/models/instructor.model.ts +0 -8
  73. package/src/models/lesson.model.ts +0 -11
  74. package/src/models/profileData.model.ts +0 -29
  75. package/src/models/track.model.ts +0 -12
  76. package/src/models/user.model.ts +0 -20
  77. package/src/models/userAcquaintance.model.ts +0 -39
  78. package/src/models/userDances.model.ts +0 -14
  79. package/src/models/venue.model.ts +0 -17
@@ -1,20 +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
- username?: string;
17
- image?: string;
18
- bio?: string;
19
- profile: ProfileData;
20
- }
@@ -1,39 +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.username = data.username ?? '';
12
- this.image = data.image;
13
- this.dances = new UserDances(data.dances);
14
- this.collections = data.collections ?? [];
15
- this.followersCount = data.followersCount ?? 0;
16
- this.venuesCount = data.venuesCount ?? 0;
17
- this.mutualsCount = data.mutualsCount ?? 0;
18
- this.friends = data.friends ?? [];
19
- this.following = data.following ?? [];
20
- }
21
-
22
- _id!: string;
23
- email!: string;
24
- name!: string;
25
- username?: string;
26
- image?: string;
27
- bio?: string;
28
-
29
- friends: string[];
30
- following: string[];
31
- dances: UserDances;
32
- collections: Collection[];
33
-
34
- followersCount: number;
35
- venuesCount: number;
36
- mutualsCount: number;
37
-
38
- links?: SocialMediaLinks;
39
- }
@@ -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
- }