Methods

async static

deleteManyByTopic(params) → Promise containing ApiResponse

deletes all user notifications by topic

Parameters

Name Type Optional Description

params

Object

 

Values in params have the following properties:

Name Type Optional Description

userId

string

 

topic

string

 

Returns

Promise containing ApiResponse 

async static

putAll(params) → Promise containing ApiResponse

adds a user notification to all users

Parameters

Name Type Optional Description

params

Object

 

Values in params have the following properties:

Name Type Optional Description

originId

string

 

sourceName

string

 

sourceType

string

 

topic

string

 

message

string

 

Returns

Promise containing ApiResponse 

async static

remove(params) → Promise containing ApiResponse

removes a notification

Parameters

Name Type Optional Description

params

Object

 

Values in params have the following properties:

Name Type Optional Description

userId

string

 

notificationId

string

 

Returns

Promise containing ApiResponse