Module: database/repositories/notificationSettingsRepo

Per-project notification settings CRUD (FEA-001).

Each project may have one notification configuration row that stores channel URLs (Microsoft Teams webhook, generic webhook) and email recipients. When a test run completes with failures, the notification dispatcher reads this configuration and fires all enabled channels.

Source:

Methods

(static) deleteByProjectId(projectId) → {boolean}

Delete notification settings for a project.

Parameters:
Name Type Description
projectId string
Source:
Returns:

Whether a row was deleted.

Type
boolean

(static) getByProjectId(projectId) → {Object|undefined}

Get the notification settings for a project.

Parameters:
Name Type Description
projectId string
Source:
Returns:
Type
Object | undefined

(static) upsert(settings) → {Object}

Create or update notification settings for a project.

Parameters:
Name Type Description
settings Object
Properties
Name Type Attributes Description
id string
projectId string
teamsWebhookUrl string <optional>
emailRecipients string <optional>
webhookUrl string <optional>
enabled boolean <optional>
createdAt string
updatedAt string
Source:
Returns:

The upserted settings row.

Type
Object