From 90c608bdc7ef1ed4fe683b49ff73212680659348 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 6 Jan 2025 12:47:57 +0100 Subject: fix(files_sharing): Fix sharee search result types Signed-off-by: provokateurin --- apps/files_sharing/lib/ResponseDefinitions.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'apps/files_sharing/lib') diff --git a/apps/files_sharing/lib/ResponseDefinitions.php b/apps/files_sharing/lib/ResponseDefinitions.php index 0edf67fe042..6b6b0fcc4b6 100644 --- a/apps/files_sharing/lib/ResponseDefinitions.php +++ b/apps/files_sharing/lib/ResponseDefinitions.php @@ -99,7 +99,6 @@ namespace OCA\Files_Sharing; * } * * @psalm-type Files_SharingSharee = array{ - * count: int|null, * label: string, * } * @@ -108,6 +107,14 @@ namespace OCA\Files_Sharing; * shareWith: string, * } * + * @psalm-type Files_SharingShareeGroup = Files_SharingSharee&array{ + * value: Files_SharingShareeValue, + * } + * + * @psalm-type Files_SharingShareeRoom = Files_SharingSharee&array{ + * value: Files_SharingShareeValue, + * } + * * @psalm-type Files_SharingShareeUser = Files_SharingSharee&array{ * subline: string, * icon: string, @@ -180,19 +187,19 @@ namespace OCA\Files_Sharing; * exact: array{ * circles: list, * emails: list, - * groups: list, + * groups: list, * remote_groups: list, * remotes: list, - * rooms: list, + * rooms: list, * users: list, * }, * circles: list, * emails: list, - * groups: list, + * groups: list, * lookup: list, * remote_groups: list, * remotes: list, - * rooms: list, + * rooms: list, * users: list, * lookupEnabled: bool, * } @@ -200,13 +207,13 @@ namespace OCA\Files_Sharing; * @psalm-type Files_SharingShareesRecommendedResult = array{ * exact: array{ * emails: list, - * groups: list, + * groups: list, * remote_groups: list, * remotes: list, * users: list, * }, * emails: list, - * groups: list, + * groups: list, * remote_groups: list, * remotes: list, * users: list, -- cgit v1.2.3