diff --git a/api.md b/api.md deleted file mode 100644 index f64c57d..0000000 --- a/api.md +++ /dev/null @@ -1,475 +0,0 @@ -# Notification Service API - -
- Table of Contents - - * [Query](#query) - * [Mutation](#mutation) - * [Subscription](#subscription) - * [Objects](#objects) - * [NotificationData](#notificationdata) - * [PaginationInfo](#paginationinfo) - * [Inputs](#inputs) - * [DateTimeFilter](#datetimefilter) - * [IntFilter](#intfilter) - * [Pagination](#pagination) - * [StringFilter](#stringfilter) - * [Enums](#enums) - * [SortDirection](#sortdirection) - * [Scalars](#scalars) - * [Boolean](#boolean) - * [Date](#date) - * [DateTime](#datetime) - * [Int](#int) - * [LocalTime](#localtime) - * [String](#string) - * [Time](#time) - * [UUID](#uuid) - * [Url](#url) - -
- -## Query - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldArgumentTypeDescription
notifications[NotificationData!]!
userIdUUID!
countUnreadInt!
userIdUUID!
- -## Mutation - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldArgumentTypeDescription
markAllReadInt!
userIdUUID!
markOneReadInt!
userIdUUID!
notificationIdUUID!
deleteOneNotificationInt!
userIdUUID!
notificationIdUUID!
deleteAllNotificationsInt!
userIdUUID!
- -## Subscription - - - - - - - - - - - - - - - - - - - - - -
FieldArgumentTypeDescription
notificationAddedNotificationData!
userIdUUID!
- -## Objects - -### NotificationData - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldArgumentTypeDescription
idUUID!
titleString!
descriptionString!
hrefString!
createdAtDateTime!
readBoolean!
- -### PaginationInfo - -Return type for information about paginated results. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldArgumentTypeDescription
pageInt! - -The current page number. - -
sizeInt! - -The number of elements per page. - -
totalElementsInt! - -The total number of elements across all pages. - -
totalPagesInt! - -The total number of pages. - -
hasNextBoolean! - -Whether there is a next page. - -
- -## Inputs - -### DateTimeFilter - -Filter for date values. -If multiple filters are specified, they are combined with AND. - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
afterDateTime - -If specified, filters for dates after the specified value. - -
beforeDateTime - -If specified, filters for dates before the specified value. - -
- -### IntFilter - -Filter for integer values. -If multiple filters are specified, they are combined with AND. - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
equalsInt - -An integer value to match exactly. - -
greaterThanInt - -If specified, filters for values greater than to the specified value. - -
lessThanInt - -If specified, filters for values less than to the specified value. - -
- -### Pagination - -Specifies the page size and page number for paginated results. - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
pageInt! - -The page number, starting at 0. -If not specified, the default value is 0. -For values greater than 0, the page size must be specified. -If this value is larger than the number of pages, an empty page is returned. - -
sizeInt! - -The number of elements per page. - -
- -### StringFilter - -Filter for string values. -If multiple filters are specified, they are combined with AND. - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
equalsString - -A string value to match exactly. - -
containsString - -A string value that must be contained in the field that is being filtered. - -
ignoreCaseBoolean! - -If true, the filter is case-insensitive. - -
- -## Enums - -### SortDirection - -Specifies the sort direction, either ascending or descending. - - - - - - - - - - - - - - - - - - -
ValueDescription
ASC
DESC
- -## Scalars - -### Boolean - -The `Boolean` scalar type represents `true` or `false`. - -### Date - -### DateTime - -### Int - -The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. - -### LocalTime - -### String - -The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. - -### Time - -### UUID - -### Url - diff --git a/build.gradle b/build.gradle index c7448ae..124fe86 100644 --- a/build.gradle +++ b/build.gradle @@ -129,7 +129,7 @@ dependencies { runtimeOnly 'org.postgresql:postgresql' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' annotationProcessor 'org.projectlombok:lombok' - testImplementation 'de.unistuttgart.iste.meitrex:meitrex-common-test:1.4.9' + testImplementation 'de.unistuttgart.iste.meitrex:meitrex-common-test:1.4.11' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework:spring-webflux' testImplementation 'org.springframework.graphql:spring-graphql-test' diff --git a/src/main/java/de/unistuttgart/iste/meitrex/notification_service/service/NotificationService.java b/src/main/java/de/unistuttgart/iste/meitrex/notification_service/service/NotificationService.java index c947809..f2fefa5 100644 --- a/src/main/java/de/unistuttgart/iste/meitrex/notification_service/service/NotificationService.java +++ b/src/main/java/de/unistuttgart/iste/meitrex/notification_service/service/NotificationService.java @@ -46,7 +46,7 @@ public class NotificationService { private final ConcurrentMap> sinks = new ConcurrentHashMap<>(); private static final EnumSet LECTURE_SOURCES = - EnumSet.of(ServerSource.COURSE, ServerSource.CHAPTER, ServerSource.CONTENT, ServerSource.MEDIA); + EnumSet.of(ServerSource.COURSE, ServerSource.CHAPTER, ServerSource.CONTENT, ServerSource.MEDIA, ServerSource.QUIZ, ServerSource.FLASHCARD); /** * Returns a per-user stream for GraphQL subscription.