feat(#23): Add email notifications

This commit is contained in:
2025-11-23 18:46:14 +01:00
parent e769bfb011
commit b72d564868
26 changed files with 613 additions and 18 deletions

View File

@@ -539,6 +539,42 @@ paths:
"503":
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServiceUnavailable"
/users/{id}/email-preferences:
parameters:
- name: id
in: path
required: true
schema:
type: string
put:
summary: Update user email preferences
operationId: updateUserEmailPreferences
tags:
- user
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateEmailPreferencesDto"
responses:
"200":
description: Email preferences updated successfully
content:
application/json:
schema:
$ref: "#/components/schemas/UserDto"
"400":
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/BadRequest"
"401":
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/Unauthorized"
"404":
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/NotFound"
"500":
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServerError"
"503":
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServiceUnavailable"
####### Comments #######
/comments/{id}:
parameters:
@@ -1426,6 +1462,26 @@ components:
organizationId:
type: string
nullable: true
email:
type: string
nullable: true
emailOnFormCreated:
type: boolean
default: true
emailOnFormSubmitted:
type: boolean
default: true
UpdateEmailPreferencesDto:
type: object
properties:
email:
type: string
nullable: true
emailOnFormCreated:
type: boolean
emailOnFormSubmitted:
type: boolean
UserStatus:
type: string