data-model.ts 1.44 KB
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 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;
}