2023-09-27 05:41:20 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-09-27 05:41:20 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OCA\DAV;
|
|
|
|
|
|
2024-05-22 03:10:24 -04:00
|
|
|
use OCA\DAV\CalDAV\UpcomingEvent;
|
|
|
|
|
|
2023-09-27 05:41:20 -04:00
|
|
|
/**
|
2023-12-01 04:46:16 -05:00
|
|
|
* @psalm-type DAVOutOfOfficeDataCommon = array{
|
|
|
|
|
* userId: string,
|
|
|
|
|
* message: string,
|
2024-07-03 04:47:59 -04:00
|
|
|
* replacementUserId: ?string,
|
|
|
|
|
* replacementUserDisplayName: ?string,
|
2023-12-01 04:46:16 -05:00
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type DAVOutOfOfficeData = DAVOutOfOfficeDataCommon&array{
|
2023-09-27 05:41:20 -04:00
|
|
|
* id: int,
|
|
|
|
|
* firstDay: string,
|
|
|
|
|
* lastDay: string,
|
|
|
|
|
* status: string,
|
2023-12-01 04:46:16 -05:00
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @todo this is a copy of \OCP\User\IOutOfOfficeData
|
|
|
|
|
* @psalm-type DAVCurrentOutOfOfficeData = DAVOutOfOfficeDataCommon&array{
|
|
|
|
|
* id: string,
|
|
|
|
|
* startDate: int,
|
|
|
|
|
* endDate: int,
|
|
|
|
|
* shortMessage: string,
|
2023-09-27 05:41:20 -04:00
|
|
|
* }
|
2024-05-22 03:10:24 -04:00
|
|
|
*
|
|
|
|
|
* @see UpcomingEvent::jsonSerialize
|
|
|
|
|
* @psalm-type DAVUpcomingEvent = array{
|
|
|
|
|
* uri: string,
|
|
|
|
|
* calendarUri: string,
|
|
|
|
|
* start: ?int,
|
|
|
|
|
* summary: ?string,
|
|
|
|
|
* location: ?string,
|
|
|
|
|
* }
|
2023-09-27 05:41:20 -04:00
|
|
|
*/
|
|
|
|
|
class ResponseDefinitions {
|
|
|
|
|
}
|