Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NotificationsApi

Hierarchy

  • NotificationsApi

Index

Constructors

constructor

Properties

Protected basePath

basePath: string = "https://dev.azure.com/"

defaultHeaders

defaultHeaders: any

Methods

createTestNotification

  • createTestNotification(params: object, extraQueryParams?: any, extraFetchParams?: any): Promise<Notification>
  • Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription.

    Parameters

    • params: object
      • apiVersion: string
      • body: Notification
      • organization: string
      • Optional useRealData?: boolean
    • Optional extraQueryParams: any
    • Optional extraFetchParams: any

    Returns Promise<Notification>

getNotification

  • getNotification(params: object, extraQueryParams?: any, extraFetchParams?: any): Promise<Notification>
  • Get a specific notification for a subscription.

    Parameters

    • params: object
      • apiVersion: string
      • notificationId: number
      • organization: string
      • subscriptionId: string
    • Optional extraQueryParams: any
    • Optional extraFetchParams: any

    Returns Promise<Notification>

getNotifications

  • Get a list of notifications for a specific subscription. A notification includes details about the event, the request to and the response from the consumer service.

    Parameters

    • params: object
      • apiVersion: string
      • Optional maxResults?: number
      • organization: string
      • Optional result?: string
      • Optional status?: string
      • subscriptionId: string
    • Optional extraQueryParams: any
    • Optional extraFetchParams: any

    Returns Promise<ArrayWrapper<Notification>>

queryNotifications

  • queryNotifications(params: object, extraQueryParams?: any, extraFetchParams?: any): Promise<NotificationsQuery>
  • Query for notifications. A notification includes details about the event, the request to and the response from the consumer service.

    Parameters

    • params: object
    • Optional extraQueryParams: any
    • Optional extraFetchParams: any

    Returns Promise<NotificationsQuery>

Generated using TypeDoc