From 850e736b3cd66e65286caa28d860175866976a7a Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Mon, 7 Jun 2021 15:59:03 +0000 Subject: [PATCH] Fix some inconsistencies in graphql schema --- noise.graphql | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/noise.graphql b/noise.graphql index 4e83da0..192776c 100644 --- a/noise.graphql +++ b/noise.graphql @@ -18,14 +18,14 @@ type User { # All account preferences for a single user type UserPreferences { - privacyPreference: PrivacyPreference! - notificationPreference: NotificationPreference! - securityPreference: SecurityPreference! + privacyPreferences: PrivacyPreferences! + notificationPreferences: NotificationPreferences! + securityPreferences: SecurityPreferences! # TODO: external servers - externalServersPreference: ExternalServersPreference! + externalServersPreferences: ExternalServersPreferences! } -type PrivacyPreference { +type PrivacyPreferences { # Discovery on other servers discovery: RestrictionPolicy! discoveryUserLimit: [String!] @@ -45,12 +45,12 @@ type PrivacyPreference { infoServerLimit: [Url!] } -type NotificationPreference { +type NotificationPreferences { lockDetails: Boolean! doNotDisturb: Boolean! } -type SecurityPreference { +type SecurityPreferences { # One-purpose-passwords accountTokens: [ID!]! @@ -58,8 +58,8 @@ type SecurityPreference { passwordHash: String! } -type ExternalServersPreference { - privacyPreference: PrivacyPreference +type ExternalServersPreferences { + privacyPreference: PrivacyPreferences externalServers: RestrictionPolicy! externalServersLimit: [Url!] }