bam-ticketing-sdk
Version:
SDK for B.A.M Ticketing API
38 lines (33 loc) • 680 B
text/typescript
export interface Notification extends NotificationContent {
topic: string
}
export interface NotificationContent {
notification: {
title: string
body: string
imageUrl?: string
}
data?: Record<string, string>
}
export interface GeneralNotification {
imageUrl?: string
data?: Record<string, string>
scheduledAt?: string
topic?: string
enrollmentIds?: number[]
title: string
body: string
}
export interface NotificationResponse extends GeneralNotification {
id?: number
createdAt?: string
updatedAt?: string,
userId: number,
sentAt?: string
}
export type ListNotificationQuery = {
direction?: string
topic?: string[]
sort_by?: string
user_id?: number
}