data-model.ts
1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
export class AppSettings {
menu: Menu;
footer: Footer;
}
export class Menu {
menuType: string;
menuItems: MenuItem[];
}
export class MenuItem {
name: string;
url: string;
icon: string;
}
export class Footer {
footerColumns: FooterColumn[];
copyrightNotice: string;
}
export class FooterColumn {
heading: string;
showHeading: boolean;
footerItems: FooterItem[];
}
export class FooterItem {
name: string;
url: string;
}
export class BannerItem {
name: string;
tagLine: string;
bannerSettings: BannerSettings;
apps: string[];
}
export class BannerSettings {
show: boolean;
callToAction: "string"
}
export class ContentItem {
_id: string;
contentType: string;
releaseDate: Date;
subject: string;
summary: string;
body: string;
slug: string;
}
export class User {
public _id: string;
public name: string;
public mobileNumber: string;
public emailAddress: string;
public password: string;
public role: string;
public apps: Array<string>;
constructor(appName: string) {
this.apps = new Array<string>();
this.apps.push(appName);
}
}
export class Address {
public name: string;
public mobileNumber: string;
public addressLine1: string;
public addressLine2: string;
public area: string;
public city: string;
public pinCode: string;
public state: string;
}
export class UserProfile {
userId: number;
firstName: string;
lastName: string;
emailId: string;
oldLoginId: string;
newLoginId: string;
confirmLoginId: string;
}
export class AdminUser {
userId: number;
firstName: string;
lastName: string;
emailId: string;
loginId: string;
password: string;
securityQuestiuonId: number;
securityAnswer: string;
creatorId: number;
creationDate: Date;
deactivationDate: Date;
modifierId: number;
modifiedDate: Date;
userTypeId: number;
isActive: boolean;
}