1
0

ResponseDefinitions.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\DAV;
  8. use OCA\DAV\CalDAV\UpcomingEvent;
  9. /**
  10. * @psalm-type DAVOutOfOfficeDataCommon = array{
  11. * userId: string,
  12. * message: string,
  13. * replacementUserId: ?string,
  14. * replacementUserDisplayName: ?string,
  15. * }
  16. *
  17. * @psalm-type DAVOutOfOfficeData = DAVOutOfOfficeDataCommon&array{
  18. * id: int,
  19. * firstDay: string,
  20. * lastDay: string,
  21. * status: string,
  22. * }
  23. *
  24. * @todo this is a copy of \OCP\User\IOutOfOfficeData
  25. * @psalm-type DAVCurrentOutOfOfficeData = DAVOutOfOfficeDataCommon&array{
  26. * id: string,
  27. * startDate: int,
  28. * endDate: int,
  29. * shortMessage: string,
  30. * }
  31. *
  32. * @see UpcomingEvent::jsonSerialize
  33. * @psalm-type DAVUpcomingEvent = array{
  34. * uri: string,
  35. * calendarUri: string,
  36. * start: ?int,
  37. * summary: ?string,
  38. * location: ?string,
  39. * }
  40. */
  41. class ResponseDefinitions {
  42. }