UNPKG

wfm-mobile-core

Version:

WFM Mobile Core

24 lines (23 loc) 1.19 kB
import { HalLink, HalResource } from 'hal-types'; import { EFetchingStatus } from '../enums/EFetchingStatus'; import { INotification } from '../interfaces'; export declare class NotificationApi { static error: {}; static profileInfo: HalResource; static profileInfoLinks: { [rel: string]: HalLink | HalLink[]; }; static notifications: (INotification | undefined)[]; static fetchingStatusNotification: EFetchingStatus; static setFetchingStatus(newStatus: EFetchingStatus): void; private static rejected; private static resolved; static getProfileInfo(): Promise<HalResource>; static applyAction(link: string): Promise<HalResource>; static getNotifications(deleted?: boolean, received?: boolean, allNotification?: boolean, size?: number): Promise<HalResource>; static notificationReceived(link: string): Promise<Response>; static deleteNotification(link: string): Promise<Response>; static responseToExchange(link: string): Promise<Response>; static sortNotification(notifications: INotification[]): (INotification | undefined)[]; static updateNotificationKey(token: string, remove?: boolean): Promise<boolean>; }