Merge pull request #1645 from symonbaikov/feature/apprise-config-options

feat: add operator config options for Apprise notifications (closes #1576)
This commit is contained in:
Daniel Hiller
2026-09-17 02:00:24 +02:00
committed by GitHub
8 changed files with 98 additions and 2 deletions
@@ -68,6 +68,12 @@ const Errors = {
BOARD_NOT_FOUND: {
boardNotFound: 'Board not found',
},
APPRISE_DISABLED: {
appriseDisabled: 'Apprise notifications are disabled',
},
SCHEMA_NOT_ALLOWED: {
schemaNotAllowed: 'Notification service schema is not allowed',
},
LIMIT_REACHED: {
limitReached: 'Limit reached',
},
@@ -95,6 +101,12 @@ module.exports = {
boardNotFound: {
responseType: 'notFound',
},
appriseDisabled: {
responseType: 'forbidden',
},
schemaNotAllowed: {
responseType: 'unprocessableEntity',
},
limitReached: {
responseType: 'conflict',
},
@@ -125,6 +137,8 @@ module.exports = {
actorUser: currentUser,
request: this.req,
})
.intercept('appriseDisabled', () => Errors.APPRISE_DISABLED)
.intercept('schemaNotAllowed', () => Errors.SCHEMA_NOT_ALLOWED)
.intercept('limitReached', () => Errors.LIMIT_REACHED);
return {
@@ -68,6 +68,12 @@ const Errors = {
USER_NOT_FOUND: {
userNotFound: 'User not found',
},
APPRISE_DISABLED: {
appriseDisabled: 'Apprise notifications are disabled',
},
SCHEMA_NOT_ALLOWED: {
schemaNotAllowed: 'Notification service schema is not allowed',
},
LIMIT_REACHED: {
limitReached: 'Limit reached',
},
@@ -95,6 +101,12 @@ module.exports = {
userNotFound: {
responseType: 'notFound',
},
appriseDisabled: {
responseType: 'forbidden',
},
schemaNotAllowed: {
responseType: 'unprocessableEntity',
},
limitReached: {
responseType: 'conflict',
},
@@ -118,6 +130,8 @@ module.exports = {
actorUser: currentUser,
request: this.req,
})
.intercept('appriseDisabled', () => Errors.APPRISE_DISABLED)
.intercept('schemaNotAllowed', () => Errors.SCHEMA_NOT_ALLOWED)
.intercept('limitReached', () => Errors.LIMIT_REACHED);
return {