@mbanq/core-sdk-js / commands / GetSubscriptionEvents
Function: GetSubscriptionEvents()
GetSubscriptionEvents(
params):Command<{params: {type:"EMAIL"|"PUSH_NOTIFICATION"|"DOCUMENT"|"SMS"; }; }, {action:"CREATE"|"UPDATE"|"DELETE";entity:string; }>
Defined in: src/commands/rest/notification.ts:106
Retrieves a list of subscription events.
Parameters
params
Query parameters for filtering
type
"EMAIL" | "PUSH_NOTIFICATION" | "DOCUMENT" | "SMS" = ...
Filter by subscriber type (e.g., 'EMAIL', 'WEBHOOK')
Returns
Command<{ params: { type: "EMAIL" | "PUSH_NOTIFICATION" | "DOCUMENT" | "SMS"; }; }, { action: "CREATE" | "UPDATE" | "DELETE"; entity: string; }>
A Command that when executed returns the list of subscription events
Example
typescript
const getEventsCmd = GetSubscriptionEvents({
type: 'EMAIL'
});
const result = await getEventsCmd.execute(config);
console.log(result);