Skip to content

Commit da73666

Browse files
author
goncalo.amador
committed
Adding comments to models and user.model.ts
1 parent b55c7e4 commit da73666

4 files changed

Lines changed: 125 additions & 2 deletions

File tree

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,69 @@
1+
/**
2+
* Represents an article with a title, content, and date.
3+
*
4+
* @interface Article
5+
*/
16
export interface Article {
2-
id?: string; // document ID
7+
/**
8+
* The document ID of the article (optional).
9+
* @type {string}
10+
*/
11+
id?: string;
12+
13+
/**
14+
* The title of the article.
15+
* @type {string}
16+
*/
317
title: string;
18+
19+
/**
20+
* The content of the article.
21+
* @type {string}
22+
*/
423
content: string;
24+
25+
/**
26+
* The date of the article in the format YYYY-MM-DD.
27+
* @type {string}
28+
*/
529
date: string;
630
}
731

32+
/**
33+
* Represents articles organized by day.
34+
*
35+
* @interface DayArticles
36+
*/
837
export interface DayArticles {
38+
/**
39+
* A mapping of dates to an array of articles.
40+
* @type {Article[]}
41+
*/
942
[key: string]: Article[];
1043
}
1144

45+
/**
46+
* Represents articles organized by month.
47+
*
48+
* @interface MonthArticles
49+
*/
1250
export interface MonthArticles {
51+
/**
52+
* A mapping of month strings to DayArticles.
53+
* @type {DayArticles}
54+
*/
1355
[key: string]: DayArticles;
1456
}
1557

58+
/**
59+
* Represents articles organized by year.
60+
*
61+
* @interface YearArticles
62+
*/
1663
export interface YearArticles {
64+
/**
65+
* A mapping of year strings to MonthArticles.
66+
* @type {MonthArticles}
67+
*/
1768
[key: string]: MonthArticles;
1869
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
1+
/**
2+
* Represents a contact in the organization.
3+
*
4+
* @interface Contact
5+
*/
16
export interface Contact {
7+
/**
8+
* The role of the contact within the organization.
9+
* @type {string}
10+
*/
211
role: string;
12+
13+
/**
14+
* The name of the contact person (optional).
15+
* @type {string}
16+
*/
317
name?: string;
18+
19+
/**
20+
* The email address of the contact person (optional).
21+
* @type {string}
22+
*/
423
email?: string;
24+
25+
/**
26+
* The phone number of the contact person (optional).
27+
* @type {string}
28+
*/
529
phone?: string;
30+
31+
/**
32+
* The image URL for the contact's profile picture (optional).
33+
* @type {string}
34+
*/
635
image?: string;
736
}
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1+
/**
2+
* Represents an event in the organization.
3+
*
4+
* @interface Event
5+
*/
16
export interface Event {
7+
/**
8+
* The title of the event.
9+
* @type {string}
10+
*/
211
title: string;
3-
date: string; // Format: YYYY-MM-DD
12+
13+
/**
14+
* The date of the event in the format YYYY-MM-DD.
15+
* @type {string}
16+
*/
17+
date: string;
18+
19+
/**
20+
* A brief description of the event (optional).
21+
* @type {string}
22+
*/
423
description?: string;
524
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Represents a user in the system.
3+
*
4+
* @interface User
5+
*/
6+
export interface User {
7+
/**
8+
* The user's email address.
9+
* @type {string}
10+
*/
11+
email: string;
12+
13+
/**
14+
* The user's password.
15+
* @type {string}
16+
*/
17+
password: string;
18+
19+
/**
20+
* The recovery password for the user.
21+
* @type {string}
22+
*/
23+
recoveryPassword: string;
24+
}

0 commit comments

Comments
 (0)