aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/ResponseDefinitions.php
blob: 3deafad6704c1dd68b52a70bab874b5910687269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

namespace OCA\DAV;

use OCA\DAV\CalDAV\UpcomingEvent;

/**
 * @psalm-type DAVOutOfOfficeDataCommon = array{
 *      userId: string,
 *      message: string,
 *      replacementUserId: ?string,
 *      replacementUserDisplayName: ?string,
 *  }
 *
 * @psalm-type DAVOutOfOfficeData = DAVOutOfOfficeDataCommon&array{
 *     id: int,
 *     firstDay: string,
 *     lastDay: string,
 *     status: string,
 * }
 *
 * @todo this is a copy of \OCP\User\IOutOfOfficeData
 * @psalm-type DAVCurrentOutOfOfficeData = DAVOutOfOfficeDataCommon&array{
 *     id: string,
 *     startDate: int,
 *     endDate: int,
 *     shortMessage: string,
 * }
 *
 * @see UpcomingEvent::jsonSerialize
 * @psalm-type DAVUpcomingEvent = array{
 *      uri: string,
 *      calendarUri: string,
 *      start: ?int,
 *      summary: ?string,
 *      location: ?string,
 *  }
 */
class ResponseDefinitions {
}