File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * Represents an article with a title, content, and date.
3+ *
4+ * @interface Article
5+ */
16export 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+ */
837export 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+ */
1250export 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+ */
1663export interface YearArticles {
64+ /**
65+ * A mapping of year strings to MonthArticles.
66+ * @type {MonthArticles }
67+ */
1768 [ key : string ] : MonthArticles ;
1869}
Original file line number Diff line number Diff line change 1+ /**
2+ * Represents a contact in the organization.
3+ *
4+ * @interface Contact
5+ */
16export 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}
Original file line number Diff line number Diff line change 1+ /**
2+ * Represents an event in the organization.
3+ *
4+ * @interface Event
5+ */
16export 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}
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments