Skip to content

Commit

Permalink
Update OCP
Browse files Browse the repository at this point in the history
  • Loading branch information
nextcloud-command committed Sep 18, 2024
1 parent bb4493d commit 0e90217
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
22 changes: 14 additions & 8 deletions OCP/Accounts/IAccountManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,26 +161,32 @@ interface IAccountManager {
*/
public const PROPERTY_BIRTHDATE = 'birthdate';

/**
* @since 31.0.0
*/
public const PROPERTY_PRONOUNS = 'pronouns';

/**
* The list of allowed properties
*
* @since 25.0.0
*/
public const ALLOWED_PROPERTIES = [
self::PROPERTY_ADDRESS,
self::PROPERTY_AVATAR,
self::PROPERTY_BIOGRAPHY,
self::PROPERTY_BIRTHDATE,
self::PROPERTY_DISPLAYNAME,
self::PROPERTY_PHONE,
self::PROPERTY_EMAIL,
self::PROPERTY_WEBSITE,
self::PROPERTY_ADDRESS,
self::PROPERTY_TWITTER,
self::PROPERTY_FEDIVERSE,
self::PROPERTY_ORGANISATION,
self::PROPERTY_ROLE,
self::PROPERTY_HEADLINE,
self::PROPERTY_BIOGRAPHY,
self::PROPERTY_ORGANISATION,
self::PROPERTY_PHONE,
self::PROPERTY_PROFILE_ENABLED,
self::PROPERTY_BIRTHDATE,
self::PROPERTY_PRONOUNS,
self::PROPERTY_ROLE,
self::PROPERTY_TWITTER,
self::PROPERTY_WEBSITE,
];


Expand Down
2 changes: 1 addition & 1 deletion OCP/Files/Cache/ICache.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function searchByMime($mimetype);
*
* @param ISearchQuery $query
* @return ICacheEntry[]
* @throw \InvalidArgumentException if the cache is unable to perform the query
* @throws \InvalidArgumentException if the cache is unable to perform the query
* @since 12.0.0
*/
public function searchQuery(ISearchQuery $query);
Expand Down
2 changes: 1 addition & 1 deletion OCP/Files/Storage/IStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public function needsPartFile();

/**
* @param string $path path for which to retrieve the owner
* @return string
* @return string|false
* @since 9.0.0
*/
public function getOwner($path);
Expand Down
2 changes: 1 addition & 1 deletion OCP/Group/Backend/IBatchMethodsBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function groupsExists(array $gids): array;
* a loop. But a GroupBackend implementation should override this method
* to provide a more optimized way to execute this operation.
*
* @throw \RuntimeException if called on a backend that doesn't implements IGroupDetailsBackend
* @throws \RuntimeException if called on a backend that doesn't implements IGroupDetailsBackend
*
* @return array<string, array{displayName?: string}>
* @since 28.0.0
Expand Down
3 changes: 2 additions & 1 deletion OCP/Profile/IProfileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ interface IProfileManager {
IAccountManager::PROPERTY_PHONE => self::VISIBILITY_SHOW_USERS_ONLY,
IAccountManager::PROPERTY_TWITTER => self::VISIBILITY_SHOW,
IAccountManager::PROPERTY_WEBSITE => self::VISIBILITY_SHOW,
IAccountManager::PROPERTY_PRONOUNS => self::VISIBILITY_SHOW,
];

/**
Expand Down Expand Up @@ -82,7 +83,7 @@ public function isProfileFieldVisible(string $profileField, IUser $targetUser, ?
* Return the profile parameters of the target user that are visible to the visiting user
* in an associative array
*
* @return array{userId: string, address?: ?string, biography?: ?string, displayname?: ?string, headline?: ?string, isUserAvatarVisible?: bool, organisation?: ?string, role?: ?string, actions: list<array{id: string, icon: string, title: string, target: ?string}>}
* @return array{userId: string, address?: string|null, biography?: string|null, displayname?: string|null, headline?: string|null, isUserAvatarVisible?: bool, organisation?: string|null, pronouns?: string|null, role?: string|null, actions: list<array{id: string, icon: string, title: string, target: ?string}>}
* @since 28.0.0
*/
public function getProfileFields(IUser $targetUser, ?IUser $visitingUser): array;
Expand Down
2 changes: 1 addition & 1 deletion OCP/Search/FilterDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class FilterDefinition {
*
* @param self::TYPE_* $type
* @param bool $exclusive If true, all providers not supporting this filter will be ignored when this filter is provided
* @throw InvalidArgumentException in case of invalid name. Allowed characters are -, 0-9, a-z.
* @throws InvalidArgumentException in case of invalid name. Allowed characters are -, 0-9, a-z.
* @since 28.0.0
*/
public function __construct(
Expand Down

0 comments on commit 0e90217

Please sign in to comment.