UNPKG

trello-for-wolves

Version:
42 lines (41 loc) 1.94 kB
import { AllOrFieldOrListOf, DisplayRecord, EntityRecord, NestedBoardParams, NestedCardParams, NestedMemberCreatorParams, NestedMemberParams, NestedOrganizationParams, NotificationField, NotificationRecord, NotificationType, ReadFilter, TypedFetch, ValueResponse } from "../typeDefs"; import { BaseResource } from "./BaseResource"; import { Board } from "./Board"; import { Card } from "./Card"; import { List } from "./List"; import { Member } from "./Member"; import { Organization } from "./Organization"; export declare class Notification extends BaseResource { getNotification(params?: { display?: boolean; entities?: boolean; fields?: AllOrFieldOrListOf<NotificationField>; list?: boolean; } & NestedBoardParams & NestedCardParams & NestedMemberParams & NestedMemberCreatorParams & NestedOrganizationParams): TypedFetch<NotificationRecord>; getNotifications(params?: { entities?: boolean; display?: boolean; filter?: AllOrFieldOrListOf<NotificationType>; readFilter?: ReadFilter; fields?: AllOrFieldOrListOf<NotificationField>; limit?: number; page?: number; before?: string | null; since?: string | null; } & NestedMemberCreatorParams): TypedFetch<NotificationRecord[]>; getNotificationsFilteredBy(filter: AllOrFieldOrListOf<NotificationType>): TypedFetch<NotificationRecord[]>; getFieldValue<T>(field: NotificationField): TypedFetch<ValueResponse<T>>; getDisplay(): TypedFetch<DisplayRecord>; getEntities(): TypedFetch<EntityRecord[]>; updateNotification(params: { unread?: boolean; }): TypedFetch<NotificationRecord>; updateUnreadStatus(value: boolean): TypedFetch<NotificationRecord>; markAllAsRead(): TypedFetch<unknown>; board(): Board; card(): Card; list(): List; member(): Member; memberCreator(): Member; organization(): Organization; }