SMPT & NTFY Notification Provider

This commit is contained in:
headlesdev
2025-05-25 14:14:26 +02:00
parent 665fb5faaa
commit 1b4a716c3d
11 changed files with 200 additions and 23 deletions

File diff suppressed because one or more lines are too long

View File

@@ -250,7 +250,9 @@ exports.Prisma.JsonNullValueFilter = {
AnyNull: Prisma.AnyNull
};
exports.NotificationType = exports.$Enums.NotificationType = {
TELEGRAM: 'TELEGRAM'
TELEGRAM: 'TELEGRAM',
NTFY: 'NTFY',
SMTP: 'SMTP'
};
exports.Prisma.ModelName = {

View File

@@ -74,7 +74,9 @@ export type NotificationTest = $Result.DefaultSelection<Prisma.$NotificationTest
*/
export namespace $Enums {
export const NotificationType: {
TELEGRAM: 'TELEGRAM'
TELEGRAM: 'TELEGRAM',
NTFY: 'NTFY',
SMTP: 'SMTP'
};
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
{
"name": "prisma-client-2fec847da0083065385189c4f35689219e1cfa753e77e6bee4a71c77e07624c0",
"name": "prisma-client-cb978539556cba5867755c200de1b26bf1cb4d18f6f210053bc454d49ff1f37d",
"main": "index.js",
"types": "index.d.ts",
"browser": "index-browser.js",

View File

@@ -159,4 +159,6 @@ model NotificationTest {
enum NotificationType {
TELEGRAM
NTFY
SMTP
}

View File

@@ -250,7 +250,9 @@ exports.Prisma.JsonNullValueFilter = {
AnyNull: Prisma.AnyNull
};
exports.NotificationType = exports.$Enums.NotificationType = {
TELEGRAM: 'TELEGRAM'
TELEGRAM: 'TELEGRAM',
NTFY: 'NTFY',
SMTP: 'SMTP'
};
exports.Prisma.ModelName = {

View File

@@ -0,0 +1,10 @@
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.
ALTER TYPE "NotificationType" ADD VALUE 'NTFY';
ALTER TYPE "NotificationType" ADD VALUE 'SMTP';

View File

@@ -161,4 +161,6 @@ model NotificationTest {
enum NotificationType {
TELEGRAM
NTFY
SMTP
}