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
@@ -0,0 +1,7 @@
1
+ import { DanceModel } from "../dance.model";
2
+ export interface UserDances {
3
+ favorites: DanceModel[];
4
+ flagged: DanceModel[];
5
+ known: DanceModel[];
6
+ refresh: DanceModel[];
7
+ }
@@ -0,0 +1,13 @@
1
+ import { LessonModel } from "./lesson.model";
2
+ export interface VenueModel {
3
+ venuename: string;
4
+ venueaddress: string;
5
+ geolocation: [number, number];
6
+ phone: string;
7
+ website: string;
8
+ contactEmail: string;
9
+ contactName: string;
10
+ contactPhone: string;
11
+ lessons: LessonModel[];
12
+ isVerified: boolean;
13
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.9",
2
+ "version": "0.1.11",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -31,6 +31,7 @@ export async function convertUserToModel(
31
31
  _id: u._id,
32
32
  email: u.email,
33
33
  name: u.name,
34
+ username: u.username || "",
34
35
  image: u.image,
35
36
  bio: u.bio,
36
37
  friends: u.friends || [],
@@ -67,6 +68,7 @@ export async function convertUserToModel(
67
68
  _id: user._id,
68
69
  email: user.email,
69
70
  name: user.name,
71
+ username: user.username || "",
70
72
  image: user.image,
71
73
  bio: user.bio,
72
74
  profile,
@@ -0,0 +1,10 @@
1
+ export default class FriendEntity {
2
+ constructor(obj: Partial<FriendEntity>) {
3
+ Object.assign(this, obj);
4
+ }
5
+
6
+ _id!: string;
7
+ userA!: string;
8
+ userB!: string;
9
+ timestamp!: Date;
10
+ }
package/src/index.ts CHANGED
@@ -1,15 +1,31 @@
1
- export { default as Collection } from './models/collection.model';
2
- export { default as Dance } from './models/dance.model';
3
- export { default as FriendRequest } from './entities/friendRequest.entity';
4
- export { default as Instructor } from './models/instructor.model';
5
- export { default as Lesson } from './models/lesson.model';
6
- export { default as ProfileData } from './models/profileData.model';
7
- export { default as SocialMediaLinks } from './models/socialMediaLinks.model';
8
- export { default as Track } from './models/track.model';
9
- export { default as User } from './models/user.model';
10
- export { default as UserAcquaintance } from './models/userAcquaintance.model';
11
- export { default as UserDances } from './models/userDances.model';
12
- export { default as Venue } from './models/venue.model';
1
+ // DTOS
2
+ export { ChoreographerDTO } from './types/dto/choreographer.dto';
3
+ export { CollectionDTO } from './types/dto/collection.dto';
4
+ export { DanceDTO } from './types/dto/dance.dto';
5
+ export { FriendDTO } from './types/dto/friend.dto';
6
+ export { FriendRequestDTO } from './types/dto/friendRequest.dto';
7
+ export { InstructorDTO } from './types/dto/instructor.dto';
8
+ export { LessonDTO } from './types/dto/lesson.dto';
9
+ export { TrackDTO } from './types/dto/track.dto';
10
+ export { UserDTO } from './types/dto/user.dto';
11
+ export { UserAcquaintanceDTO } from './types/dto/userAcquaintance.dto';
12
+ export { VenueDTO } from './types/dto/venue.dto';
13
13
 
14
- export { UserEntity } from './entities/user.entity';
14
+ // MODELS
15
+ export { ChoreographerModel } from './types/model/choreographer.model';
16
+ export { CollectionModel } from './types/model/collection.model';
17
+ export { DanceModel } from './types/model/dance.model';
18
+ export { InstructorModel } from './types/model/instructor.model';
19
+ export { LessonModel } from './types/model/lesson.model';
20
+ export { TrackModel } from './types/model/track.model';
21
+ export { UserModel } from './types/model/user.model';
22
+ export { UserAcquaintanceModel } from './types/model/userAcquaintance.model';
23
+ export { VenueModel } from './types/model/venue.model';
24
+
25
+ // USER TYPES
26
+ export { ProfileData } from './types/model/userTypes/profileData';
27
+ export { SocialMediaLinks } from './types/model/userTypes/socialMediaLinks';
28
+ export { UserDances } from './types/model/userTypes/userDances';
29
+
30
+ // LIB FUNCTIONS
15
31
  export { getAllUserDanceIds } from './lib/getAllUserDanceIds';
@@ -1,6 +1,7 @@
1
- import UserDances from "../models/userDances.model";
1
+ import { DanceModel } from "../types/model/dance.model";
2
+ import { UserDances } from "../types/model/userTypes/userDances";
2
3
 
3
- export function getAllUserDanceIds(userDances: Partial<UserDances>): string[] {
4
+ export function getAllUserDanceIds(userDances: UserDances): DanceModel[] {
4
5
  const { favorites = [], flagged = [], known = [], refresh = [] } = userDances ?? {};
5
6
 
6
7
  const all = [
@@ -10,5 +11,5 @@ export function getAllUserDanceIds(userDances: Partial<UserDances>): string[] {
10
11
  ...refresh,
11
12
  ];
12
13
 
13
- return Array.from(new Set(all));
14
- }
14
+ return all.filter((item, index) => all.indexOf(item) === index);
15
+ }
@@ -0,0 +1,5 @@
1
+ export interface ChoreographerDTO {
2
+ id: string;
3
+ name: string;
4
+ isVerified: boolean;
5
+ }
@@ -0,0 +1,13 @@
1
+ export interface CollectionDTO {
2
+ _id: string;
3
+ name: string;
4
+ dances: string[];
5
+ createdAt: Date;
6
+ updatedAt: Date;
7
+ createdBy: string;
8
+ isPrivate: boolean; // TODO: Private collections should not be returned in public APIs
9
+ isCopyable: boolean;
10
+
11
+ // Added Data
12
+ isVerified: boolean;
13
+ }
@@ -0,0 +1,10 @@
1
+ export interface DanceDTO {
2
+ id: string;
3
+ danceName: string;
4
+ choreographers: string[];
5
+ stepsheet: string;
6
+ difficulty: string;
7
+ primaryTrack: string;
8
+ tracks: string[];
9
+ isVerified: boolean;
10
+ }
@@ -0,0 +1,6 @@
1
+ export interface FriendDTO {
2
+ _id: string;
3
+ userA: string;
4
+ userB: string;
5
+ timestamp: Date;
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface FriendRequestDTO {
2
+ _id: string;
3
+ requester: string;
4
+ requestee: string;
5
+ status: string;
6
+ timestamp: Date;
7
+ }
@@ -0,0 +1,6 @@
1
+ export interface InstructorDTO {
2
+ id: string;
3
+ name: string;
4
+ userid: string;
5
+ isVerified: boolean;
6
+ }
@@ -0,0 +1,10 @@
1
+ export interface LessonDTO {
2
+ lessonday: string;
3
+ lessonstart: string;
4
+ instructors: string[];
5
+ duration: string;
6
+ lessoncost: string;
7
+ notes: string;
8
+ difficulty: string;
9
+ isVerified: boolean;
10
+ }
@@ -0,0 +1,12 @@
1
+ export interface TrackDTO {
2
+ id: string;
3
+ name: string;
4
+ artists: string[];
5
+ isrc: string;
6
+ uri: string;
7
+ duration_ms: number;
8
+ explicit: boolean;
9
+ is_playable: boolean;
10
+ preview_url: string;
11
+ isVerified: boolean;
12
+ }
@@ -0,0 +1,25 @@
1
+ export interface UserDTO {
2
+ _id: string;
3
+ email: string;
4
+ name: string;
5
+ username: string;
6
+ image: string;
7
+ bio: string;
8
+ isVerified: boolean;
9
+ profile: {
10
+ danceIds: {
11
+ favorites: string[];
12
+ flagged: string[];
13
+ known: string[];
14
+ refresh: string[];
15
+ };
16
+ collections: string[];
17
+ venues: string[];
18
+ friends: string[];
19
+ following: string[];
20
+ friendsRequested: string[];
21
+ friendRequests: string[];
22
+ followersCount?: number;
23
+ links: Record<string, string>;
24
+ };
25
+ }
@@ -0,0 +1,22 @@
1
+ export interface UserAcquaintanceDTO {
2
+ id: string;
3
+ username: string;
4
+ image: string;
5
+ bio: string;
6
+ isVerified: boolean;
7
+ profile: {
8
+ dances: {
9
+ favorites: string[];
10
+ flagged: string[];
11
+ known: string[];
12
+ refresh: string[];
13
+ };
14
+ collections: string[];
15
+ venues: string[];
16
+ friendsCount: number;
17
+ followingCount: number;
18
+ followersCount: number;
19
+ mutualFriendsCount: number;
20
+ links: Record<string, string>;
21
+ };
22
+ };
@@ -0,0 +1,15 @@
1
+ export interface VenueDTO {
2
+ id: string;
3
+ venuename: string;
4
+ venueaddress: string;
5
+ geolocation: [number, number];
6
+ phone: string;
7
+ website: string;
8
+ contactEmail: string;
9
+ contactName: string;
10
+ contactPhone: string;
11
+
12
+ // Added Data
13
+ lessonsIds: string[];
14
+ isVerified: boolean;
15
+ }
@@ -0,0 +1,5 @@
1
+ export interface ChoreographerModel {
2
+ id: string;
3
+ name: string;
4
+ isVerified: boolean;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { DanceModel } from "./dance.model";
2
+
3
+ export interface CollectionModel {
4
+ name: string;
5
+ dances: DanceModel[];
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ createdBy: string;
9
+ isCopyable: boolean;
10
+ isVerified: boolean;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { ChoreographerModel } from './choreographer.model';
2
+ import { TrackModel } from './track.model';
3
+
4
+ export interface DanceModel {
5
+ danceName: string;
6
+ choreographers: ChoreographerModel[];
7
+ stepsheet: string;
8
+ difficulty: string;
9
+ isVerified: boolean;
10
+ primaryTrack: TrackModel;
11
+ tracks: TrackModel[];
12
+ }
@@ -0,0 +1,6 @@
1
+ export interface InstructorModel {
2
+ id: string;
3
+ name: string;
4
+ userid: string;
5
+ isVerified: boolean;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { InstructorModel } from "./instructor.model";
2
+
3
+ export interface LessonModel {
4
+ lessonday: string;
5
+ lessonstart: string;
6
+ instructors: InstructorModel[];
7
+ duration: string;
8
+ lessoncost: string;
9
+ notes: string;
10
+ difficulty: string;
11
+ }
@@ -0,0 +1,12 @@
1
+ export interface TrackModel {
2
+ id: string;
3
+ name: string;
4
+ artists: string[];
5
+ isrc: string;
6
+ uri: string;
7
+ duration_ms: number;
8
+ explicit: boolean;
9
+ is_playable: boolean;
10
+ preview_url: string;
11
+ isVerified: boolean;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { ProfileData } from "./userTypes/profileData";
2
+
3
+ export interface UserModel {
4
+ _id: string;
5
+ email: string;
6
+ name: string;
7
+ username: string;
8
+ image: string;
9
+ bio: string;
10
+ profile: ProfileData;
11
+ isVerified: boolean; // TODO: This makes sense on a UserAquaintanceModel, but is it still useful on a UserModel?
12
+ }
@@ -0,0 +1,17 @@
1
+ import { CollectionModel } from "./collection.model";
2
+ import { SocialMediaLinks } from "./userTypes/socialMediaLinks";
3
+ import { UserDances } from "./userTypes/userDances";
4
+
5
+ export interface UserAcquaintanceModel {
6
+ id: string;
7
+ username: string;
8
+ image: string;
9
+ bio: string;
10
+ dances: UserDances;
11
+ collections: CollectionModel[];
12
+ followersCount: number;
13
+ friendsCount: number;
14
+ mutualFriendsCount: number;
15
+ links?: SocialMediaLinks;
16
+ isVerified: boolean;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { CollectionModel } from "../collection.model";
2
+ import { UserDances } from "../userDances.model";
3
+ import { SocialMediaLinks } from "./socialMediaLinks";
4
+ import { UserAcquaintanceModel } from "../userAquaintance";
5
+ import { VenueModel } from "../venue.model";
6
+
7
+ export interface ProfileData {
8
+ dances: UserDances;
9
+ collections: CollectionModel[];
10
+ venues: VenueModel[];
11
+ friends: UserAcquaintanceModel[];
12
+ following: UserAcquaintanceModel[];
13
+ friendsRequested: UserAcquaintanceModel[];
14
+ friendRequests: UserAcquaintanceModel[];
15
+ followersCount: number;
16
+ links: SocialMediaLinks;
17
+ }
@@ -1,4 +1,4 @@
1
- export default class SocialMediaLinks {
1
+ export interface SocialMediaLinks {
2
2
  facebook?: string;
3
3
  twitter?: string;
4
4
  instagram?: string;
@@ -0,0 +1,8 @@
1
+ import { DanceModel } from "../dance.model";
2
+
3
+ export interface UserDances {
4
+ favorites: DanceModel[];
5
+ flagged: DanceModel[];
6
+ known: DanceModel[];
7
+ refresh: DanceModel[];
8
+ }
@@ -0,0 +1,14 @@
1
+ import { LessonModel } from "./lesson.model";
2
+
3
+ export interface VenueModel {
4
+ venuename: string;
5
+ venueaddress: string;
6
+ geolocation: [number, number];
7
+ phone: string;
8
+ website: string;
9
+ contactEmail: string;
10
+ contactName: string;
11
+ contactPhone: string;
12
+ lessons: LessonModel[];
13
+ isVerified: boolean;
14
+ }
@@ -1,17 +0,0 @@
1
- import Collection from "../models/collection.model";
2
- export interface UserEntity {
3
- _id: string;
4
- email: string;
5
- name: string;
6
- image?: string;
7
- bio?: string;
8
- favorites?: string[];
9
- flagged?: string[];
10
- known?: string[];
11
- refresh?: string[];
12
- collections?: Collection[];
13
- venues?: string[];
14
- friends?: string[];
15
- following?: string[];
16
- links?: Record<string, string>;
17
- }
@@ -1,5 +0,0 @@
1
- export default class Collection {
2
- constructor(obj: Partial<Collection>);
3
- name: string;
4
- dances: string[];
5
- }
@@ -1,11 +0,0 @@
1
- import Track from "./track.model";
2
- export default class Dance {
3
- constructor(obj: Partial<Dance>);
4
- _id: string;
5
- difficulty?: string;
6
- tracks?: Track[];
7
- primaryTrack?: Track;
8
- danceName: string;
9
- choreographers: string[];
10
- stepsheet?: string;
11
- }
@@ -1,5 +0,0 @@
1
- export default class Instructor {
2
- constructor(obj: Partial<Instructor>);
3
- _id: string;
4
- name: string;
5
- }
@@ -1,11 +0,0 @@
1
- export default class Lesson {
2
- _id: string;
3
- venueid: string;
4
- lessonday: string;
5
- lessonstart: string;
6
- instructors: string[];
7
- duration?: string;
8
- lessoncost?: string;
9
- notes?: string;
10
- difficulty?: string;
11
- }
@@ -1,16 +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
- export default class ProfileData {
6
- constructor(data: Partial<ProfileData>);
7
- dances: UserDances;
8
- collections: Collection[];
9
- venues: string[];
10
- friends: UserAcquaintance[];
11
- following: UserAcquaintance[];
12
- friendsRequested: UserAcquaintance[];
13
- friendRequests: UserAcquaintance[];
14
- followersCount: number;
15
- links: SocialMediaLinks;
16
- }
@@ -1,9 +0,0 @@
1
- export default class Track {
2
- constructor(obj: Partial<Track>);
3
- _id: string;
4
- isrc?: string;
5
- name: string;
6
- artists: string[];
7
- duration_ms?: number;
8
- explicit?: boolean;
9
- }
@@ -1,10 +0,0 @@
1
- import ProfileData from "./profileData.model";
2
- export default class User {
3
- constructor(data: Partial<User>);
4
- _id: string;
5
- email: string;
6
- name: string;
7
- image?: string;
8
- bio?: string;
9
- profile: ProfileData;
10
- }
@@ -1,19 +0,0 @@
1
- import UserDances from "./userDances.model";
2
- import SocialMediaLinks from "./socialMediaLinks.model";
3
- import Collection from "./collection.model";
4
- export default class UserAcquaintance {
5
- constructor(data: Partial<UserAcquaintance>);
6
- _id: string;
7
- email: string;
8
- name: string;
9
- image?: string;
10
- bio?: string;
11
- friends: string[];
12
- following: string[];
13
- dances: UserDances;
14
- collections: Collection[];
15
- followersCount: number;
16
- venuesCount: number;
17
- mutualsCount: number;
18
- links?: SocialMediaLinks;
19
- }
@@ -1,7 +0,0 @@
1
- export default class UserDances {
2
- constructor(data?: Partial<UserDances>);
3
- favorites: string[];
4
- flagged: string[];
5
- known: string[];
6
- refresh: string[];
7
- }
@@ -1,11 +0,0 @@
1
- import Lesson from "./lesson.model";
2
- export default class Venue {
3
- constructor(obj: Partial<Venue>);
4
- _id: string;
5
- venuename: string;
6
- venueaddress: string;
7
- geolocation: [number, number];
8
- phone?: string;
9
- website?: string;
10
- lessons?: Lesson[];
11
- }
@@ -1,18 +0,0 @@
1
- import Collection from "../models/collection.model";
2
-
3
- export interface UserEntity {
4
- _id: string;
5
- email: string;
6
- name: string;
7
- image?: string;
8
- bio?: string;
9
- favorites?: string[];
10
- flagged?: string[];
11
- known?: string[];
12
- refresh?: string[];
13
- collections?: Collection[];
14
- venues?: string[];
15
- friends?: string[];
16
- following?: string[];
17
- links?: Record<string, string>;
18
- }
@@ -1,8 +0,0 @@
1
- export default class Collection {
2
- constructor(obj: Partial<Collection>) {
3
- Object.assign(this, obj);
4
- }
5
-
6
- name!: string;
7
- dances: string[] = [];
8
- }
@@ -1,15 +0,0 @@
1
- import Track from "./track.model";
2
-
3
- export default class Dance {
4
- constructor(obj: Partial<Dance>) {
5
- Object.assign(this, obj);
6
- }
7
-
8
- _id!: string;
9
- difficulty?: string;
10
- tracks?: Track[] = [];
11
- primaryTrack?: Track;
12
- danceName!: string;
13
- choreographers!: string[];
14
- stepsheet?: string;
15
- }
@@ -1,8 +0,0 @@
1
- export default class Instructor {
2
- constructor(obj: Partial<Instructor>) {
3
- Object.assign(this, obj);
4
- }
5
-
6
- _id!: string;
7
- name!: string;
8
- }
@@ -1,11 +0,0 @@
1
- export default class Lesson {
2
- _id!: string;
3
- venueid!: string;
4
- lessonday!: string;
5
- lessonstart!: string;
6
- instructors!: string[];
7
- duration?: string;
8
- lessoncost?: string;
9
- notes?: string;
10
- difficulty?: string;
11
- }