math-main-components 0.0.166 → 0.0.167

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.
@@ -3,7 +3,7 @@ import { Organization } from "./Organization";
3
3
  import { User } from "./User";
4
4
  export type Course = {
5
5
  id: string;
6
- _type?: string;
6
+ type: "course";
7
7
  title: string;
8
8
  description: JSONContent;
9
9
  content: Object;
@@ -18,6 +18,7 @@ export type Course = {
18
18
  };
19
19
  export type CourseAnnouncement = {
20
20
  id: string;
21
+ type: "courseAnnouncement";
21
22
  author: User;
22
23
  authorId: string;
23
24
  course: Course;
@@ -29,7 +30,8 @@ export type CourseAnnouncement = {
29
30
  export type CourseAnnouncementAssetType = "file" | "calculator" | "movie" | "material" | "ebook" | "test" | "link";
30
31
  export type CourseAnnouncementAsset = {
31
32
  id?: string;
32
- type: CourseAnnouncementAssetType;
33
+ type: "courseAnnouncementAsset";
34
+ contentType: CourseAnnouncementAssetType;
33
35
  link: string;
34
36
  text: string;
35
37
  file?: File;
@@ -42,6 +44,7 @@ export type CourseAnnouncementAsset = {
42
44
  };
43
45
  export type CourseMessage = {
44
46
  id: string;
47
+ type: "courseMessage";
45
48
  author: User;
46
49
  authorId: string;
47
50
  course: Course;
@@ -53,6 +56,7 @@ export type CourseMessage = {
53
56
  };
54
57
  export type CourseParticipant = {
55
58
  id: string;
59
+ type: "courseParticipant";
56
60
  role: string;
57
61
  createdAt: string;
58
62
  updatedAt: string;
@@ -61,6 +65,7 @@ export type CourseParticipant = {
61
65
  };
62
66
  export type CoursePin = {
63
67
  id: string;
68
+ type: "coursePin";
64
69
  subscriptionPin: string;
65
70
  amountOfUses: number;
66
71
  maxAmountOfUses: number;
@@ -1,6 +1,7 @@
1
1
  import { User } from "./User";
2
2
  export type Feedback = {
3
3
  id: string;
4
+ type: "feedback";
4
5
  user: User;
5
6
  userId: number;
6
7
  message: string;
@@ -1,6 +1,7 @@
1
1
  import { Product } from "./Product";
2
2
  export type LicenseKey = {
3
3
  id: string;
4
+ type: "licenseKey";
4
5
  product: Product;
5
6
  productId: string;
6
7
  pricePayedEuro: number;
@@ -1,5 +1,6 @@
1
1
  export type Log = {
2
2
  id: string;
3
+ type: "logData";
3
4
  title: string;
4
5
  message: string;
5
6
  httpCode?: number;
@@ -1,5 +1,6 @@
1
1
  export type Manager = {
2
2
  id: string;
3
+ type: "manager";
3
4
  username: string;
4
5
  firstName: string;
5
6
  lastName: string;
@@ -1,6 +1,7 @@
1
1
  import { User } from "./User";
2
2
  export type Organization = {
3
3
  id: string;
4
+ type: "organization";
4
5
  name: string;
5
6
  website: string;
6
7
  place: string;
@@ -18,6 +18,7 @@ export type SubscriptionStatus = "active" | "trialing" | "canceled" | "unpaid";
18
18
  export type SubscriptionType = "monthly" | "yearly";
19
19
  export type Subscription = {
20
20
  id: string;
21
+ type: "subscription";
21
22
  organization?: Organization;
22
23
  organizationId: string;
23
24
  product?: Product;
@@ -2,6 +2,7 @@ import { Course } from "./Course";
2
2
  import { Organization } from "./Organization";
3
3
  export type User = {
4
4
  id: string;
5
+ type: "user";
5
6
  email: string;
6
7
  username: string;
7
8
  firstName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-main-components",
3
- "version": "0.0.166",
3
+ "version": "0.0.167",
4
4
  "author": "Emilian Scheel",
5
5
  "files": [
6
6
  "dist/**/*"