tickethead-sdk
Version:
SDK for the Tickethead API
34 lines • 810 B
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;
};
//# sourceMappingURL=types.d.ts.map