2022-09-24 23:15:16 +02:00
|
|
|
const { version } = require('../../package.json')
|
|
|
|
|
2022-09-23 01:12:48 +02:00
|
|
|
module.exports.notificationData = {
|
|
|
|
events: [
|
2022-09-24 23:15:16 +02:00
|
|
|
{
|
|
|
|
name: 'onPodcastEpisodeDownloaded',
|
|
|
|
requiresLibrary: true,
|
|
|
|
libraryMediaType: 'podcast',
|
|
|
|
description: 'Triggered when a podcast episode is auto-downloaded',
|
2023-02-15 22:57:04 +01:00
|
|
|
variables: ['libraryItemId', 'libraryId', 'podcastTitle', 'podcastAuthor', 'podcastDescription', 'podcastGenres', 'episodeTitle', 'episodeSubtitle', 'episodeDescription', 'libraryName', 'episodeId', 'mediaTags'],
|
2023-02-14 16:51:20 +01:00
|
|
|
defaults: {
|
2022-09-24 23:15:16 +02:00
|
|
|
title: 'New {{podcastTitle}} Episode!',
|
|
|
|
body: '{{episodeTitle}} has been added to {{libraryName}} library.'
|
|
|
|
},
|
|
|
|
testData: {
|
|
|
|
libraryItemId: 'li_notification_test',
|
|
|
|
libraryId: 'lib_test',
|
|
|
|
libraryName: 'Podcasts',
|
2023-02-15 22:57:04 +01:00
|
|
|
mediaTags: 'TestTag1, TestTag2',
|
2022-09-24 23:15:16 +02:00
|
|
|
podcastTitle: 'Abs Test Podcast',
|
2023-02-15 22:57:04 +01:00
|
|
|
podcastAuthor: 'Audiobookshelf',
|
|
|
|
podcastDescription: 'Description of the Abs Test Podcast belongs here.',
|
|
|
|
podcastGenres: 'TestGenre1, TestGenre2',
|
2022-09-24 23:15:16 +02:00
|
|
|
episodeId: 'ep_notification_test',
|
2023-02-15 22:57:04 +01:00
|
|
|
episodeTitle: 'Successful Test Episode',
|
|
|
|
episodeSubtitle: 'Episode Subtitle',
|
|
|
|
episodeDescription: 'Some description of the podcast episode.'
|
2022-09-24 23:15:16 +02:00
|
|
|
}
|
|
|
|
},
|
2022-09-23 01:12:48 +02:00
|
|
|
{
|
|
|
|
name: 'onTest',
|
|
|
|
requiresLibrary: false,
|
2022-09-25 16:46:45 +02:00
|
|
|
description: 'Event for testing the notification system',
|
2022-09-24 23:15:16 +02:00
|
|
|
variables: ['version'],
|
2022-09-23 01:12:48 +02:00
|
|
|
defaults: {
|
2022-09-24 23:15:16 +02:00
|
|
|
title: 'Test Notification on Abs {{version}}',
|
|
|
|
body: 'Test notificataion body for abs {{version}}.'
|
|
|
|
},
|
|
|
|
testData: {
|
|
|
|
version: 'v' + version
|
2022-09-23 01:12:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2023-02-14 16:51:20 +01:00
|
|
|
}
|