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.
- package/dist/index.d.ts +23 -13
- package/dist/ldco-contract.cjs.development.js +3 -93
- package/dist/ldco-contract.cjs.development.js.map +1 -1
- package/dist/ldco-contract.cjs.production.min.js +1 -1
- package/dist/ldco-contract.cjs.production.min.js.map +1 -1
- package/dist/ldco-contract.esm.js +4 -82
- package/dist/ldco-contract.esm.js.map +1 -1
- package/dist/lib/getAllUserDanceIds.d.ts +3 -2
- package/dist/types/dto/choreographer.dto.d.ts +5 -0
- package/dist/types/dto/collection.dto.d.ts +11 -0
- package/dist/types/dto/dance.dto.d.ts +10 -0
- package/dist/types/dto/friend.dto.d.ts +6 -0
- package/dist/types/dto/friendRequest.dto.d.ts +7 -0
- package/dist/types/dto/instructor.dto.d.ts +6 -0
- package/dist/types/dto/lesson.dto.d.ts +10 -0
- package/dist/types/dto/track.dto.d.ts +12 -0
- package/dist/types/dto/user.dto.d.ts +25 -0
- package/dist/types/dto/userAcquaintance.dto.d.ts +22 -0
- package/dist/types/dto/venue.dto.d.ts +13 -0
- package/dist/types/model/choreographer.model.d.ts +5 -0
- package/dist/types/model/collection.model.d.ts +10 -0
- package/dist/types/model/dance.model.d.ts +11 -0
- package/dist/types/model/instructor.model.d.ts +6 -0
- package/dist/types/model/lesson.model.d.ts +10 -0
- package/dist/types/model/track.model.d.ts +12 -0
- package/dist/types/model/user.model.d.ts +11 -0
- package/dist/types/model/userAcquaintance.model.d.ts +16 -0
- package/dist/types/model/userTypes/profileData.d.ts +16 -0
- package/dist/{models/socialMediaLinks.model.d.ts → types/model/userTypes/socialMediaLinks.d.ts} +1 -1
- package/dist/types/model/userTypes/userDances.d.ts +7 -0
- package/dist/types/model/venue.model.d.ts +13 -0
- package/package.json +1 -1
- package/src/index.ts +29 -13
- package/src/lib/getAllUserDanceIds.ts +5 -4
- package/src/types/dto/choreographer.dto.ts +5 -0
- package/src/types/dto/collection.dto.ts +13 -0
- package/src/types/dto/dance.dto.ts +10 -0
- package/src/types/dto/friend.dto.ts +6 -0
- package/src/types/dto/friendRequest.dto.ts +7 -0
- package/src/types/dto/instructor.dto.ts +6 -0
- package/src/types/dto/lesson.dto.ts +10 -0
- package/src/types/dto/track.dto.ts +12 -0
- package/src/types/dto/user.dto.ts +25 -0
- package/src/types/dto/userAcquaintance.dto.ts +22 -0
- package/src/types/dto/venue.dto.ts +15 -0
- package/src/types/model/choreographer.model.ts +5 -0
- package/src/types/model/collection.model.ts +11 -0
- package/src/types/model/dance.model.ts +12 -0
- package/src/types/model/instructor.model.ts +6 -0
- package/src/types/model/lesson.model.ts +11 -0
- package/src/types/model/track.model.ts +12 -0
- package/src/types/model/user.model.ts +12 -0
- package/src/types/model/userAcquaintance.model.ts +17 -0
- package/src/types/model/userTypes/profileData.ts +17 -0
- package/src/{models/socialMediaLinks.model.ts → types/model/userTypes/socialMediaLinks.ts} +1 -1
- package/src/types/model/userTypes/userDances.ts +8 -0
- package/src/types/model/venue.model.ts +14 -0
- package/dist/entities/user.entity.d.ts +0 -18
- package/dist/models/collection.model.d.ts +0 -5
- package/dist/models/dance.model.d.ts +0 -11
- package/dist/models/instructor.model.d.ts +0 -5
- package/dist/models/lesson.model.d.ts +0 -11
- package/dist/models/profileData.model.d.ts +0 -16
- package/dist/models/track.model.d.ts +0 -9
- package/dist/models/user.model.d.ts +0 -11
- package/dist/models/userAcquaintance.model.d.ts +0 -20
- package/dist/models/userDances.model.d.ts +0 -7
- package/dist/models/venue.model.d.ts +0 -11
- package/src/entities/user.entity.ts +0 -19
- package/src/models/collection.model.ts +0 -8
- package/src/models/dance.model.ts +0 -15
- package/src/models/instructor.model.ts +0 -8
- package/src/models/lesson.model.ts +0 -11
- package/src/models/profileData.model.ts +0 -29
- package/src/models/track.model.ts +0 -12
- package/src/models/user.model.ts +0 -20
- package/src/models/userAcquaintance.model.ts +0 -39
- package/src/models/userDances.model.ts +0 -14
- package/src/models/venue.model.ts +0 -17
package/src/models/user.model.ts
DELETED
@@ -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
|
-
}
|