Type Alias Pushover

Pushover: {
    addUsers: (users: User[]) => Pushover;
    getDevices: (userToken: string) => { devices: string[] };
    getSounds: () => { sounds: string[] };
    send: () => void;
    withAttachment: (attachment: File) => Pushover;
    withBase64Attachment: (
        attachment: { data: string; type: string },
    ) => Pushover;
    withHtml: (enable: boolean) => Pushover;
    withMessage: (message: string) => Pushover;
    withPriority: (
        priority: {
            callback?: string;
            expire?: number;
            level: number;
            retry?: number;
        },
    ) => Pushover;
    withSound: (sound: string) => Pushover;
    withTimestamp: (timestamp: number) => Pushover;
    withTitle: (title: string) => Pushover;
    withUrl: (url: { title: string; url: string }) => Pushover;
}

Type declaration

  • addUsers: (users: User[]) => Pushover
  • getDevices: (userToken: string) => { devices: string[] }

    Get all available devices for a user.

  • getSounds: () => { sounds: string[] }

    Get all available sounds.

  • send: () => void

    Send the notification.

  • withAttachment: (attachment: File) => Pushover
  • withBase64Attachment: (attachment: { data: string; type: string }) => Pushover
  • withHtml: (enable: boolean) => Pushover
  • withMessage: (message: string) => Pushover
  • withPriority: (
        priority: {
            callback?: string;
            expire?: number;
            level: number;
            retry?: number;
        },
    ) => Pushover
  • withSound: (sound: string) => Pushover
  • withTimestamp: (timestamp: number) => Pushover
  • withTitle: (title: string) => Pushover
  • withUrl: (url: { title: string; url: string }) => Pushover