From b08c1bd0cbf6986e59247deefbabb150db83aadd Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Mon, 17 Jun 2024 12:50:50 -0700 Subject: [feature] Implement types[] param for notifications (#3009) Counterpart of exclude_types[]. Also updates Swagger spec for types[] to use the correct param name and enumerate possible values. Fixes #3003 --- internal/api/client/notifications/notifications.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/api/client/notifications/notifications.go') diff --git a/internal/api/client/notifications/notifications.go b/internal/api/client/notifications/notifications.go index 8e0890461..ab015427e 100644 --- a/internal/api/client/notifications/notifications.go +++ b/internal/api/client/notifications/notifications.go @@ -34,7 +34,9 @@ const ( BasePathWithID = BasePath + "/:" + IDKey BasePathWithClear = BasePath + "/clear" - // ExcludeTypes is an array specifying notification types to exclude + // IncludeTypesKey names an array param specifying notification types to include. + IncludeTypesKey = "include_types[]" + // ExcludeTypesKey names an array param specifying notification types to exclude. ExcludeTypesKey = "exclude_types[]" MaxIDKey = "max_id" LimitKey = "limit" -- cgit v1.2.3