rittenhop-ghost/versions/5.94.2/node_modules/mailgun.js/Classes/common/NavigationThruPages.d.ts

18 lines
1.0 KiB
TypeScript

import { ParsedPage, ParsedPagesList, QueryWithPage, ResponseWithPaging } from '../../Types/Common';
import { IBounce, IComplaint, IUnsubscribe, IWhiteList } from '../../Interfaces/Suppressions';
import Request from './Request';
import { SuppressionDataType } from '../../Types/Suppressions';
export default abstract class NavigationThruPages<T> {
request?: Request;
constructor(request?: Request);
protected parsePage(id: string, pageUrl: string, urlSeparator: string, iteratorName: string | undefined): ParsedPage;
protected parsePageLinks(response: ResponseWithPaging, urlSeparator: string, iteratorName?: string): ParsedPagesList;
private updateUrlAndQuery;
protected requestListWithPages(clientUrl: string, query?: QueryWithPage, Model?: {
new (data: SuppressionDataType): IBounce | IComplaint | IUnsubscribe | IWhiteList;
}): Promise<T>;
protected abstract parseList(response: ResponseWithPaging, Model?: {
new (data: SuppressionDataType): IBounce | IComplaint | IUnsubscribe | IWhiteList;
}): T;
}