All files / src/app/models page-base-model.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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                1x                                                       2864x       2864x                                  
import { CarouselModel } from './carousel-model';
import { ImageModel } from './image-model';
import { LocaleModel } from './locale-model';
import { PageSeoModel } from './page-seo-model';
 
/**
 * Page Base Class
 */
export class PageBaseModel {
    /** id of record */
    id?: string;
    /** path of record */
    path?: string;
    /** route path without id */
    routePath?: string;
    /** order number of record */
    orderNo?: number;
    /** title of record */
    title?: string;
    /** description of record */
    description?: string;
    /** image of content */
    image?: ImageModel;
    /** html content of page */
    content?: any;
    /** taxonomy */
    taxonomy?: any; // key: link, value: title
    /** carousel item array of page */
    carousel?: CarouselModel;
    /** background cover image */
    backgroundCoverImage?: ImageModel;
    /** summary html content of page */
    contentSummary?: string;
    /** unique key for translations */
    i18nKey?: string;
    /** creation date */
    created?: any = {seconds: undefined};
    /** creator person */
    createdBy?: string;
    /** last change date */
    changed?: any = {seconds: undefined};
    /** last changer person */
    changedBy?: string;
    /** locale object array of page */
    locales?: Array<LocaleModel>;
 
    /** privacy policy of page */
    privacyPolicy?: string;
 
    /** seo data of record */
    seo?: PageSeoModel;
 
    /** array of Json-LD data of record */
    jsonLDs?: Array<any>;
    /** canonical url of page */
    canonicalUrl?: string;
}