import { ValidationResult, IListQueryResult, EntityService, IListQuery } from "@calf/common"; import { Serializable } from "@calf/serializable"; import { OnDestroy, OnInit } from "@angular/core"; import { Subscriber } from "../classes/subscriber.class"; /** * List page * @description List page loads list of entities */ export declare abstract class ListPage implements OnInit, OnDestroy { private service; /** * Subscriber */ protected readonly subscriber: Subscriber; /** * Constructor * @param service */ constructor(service: EntityService); /** * On init hook */ ngOnInit(): void; /** * On destroy hook */ ngOnDestroy(): void; /** * Get list * @param query */ protected getList(query?: IListQuery): Promise; /** * On did get list hook * @param validation */ protected abstract onDidGetList(validation: ValidationResult, TMessage>): Promise; }