1
0

ResponseDefinitions.php 993 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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\Dashboard;
  8. /**
  9. * @psalm-type DashboardWidget = array{
  10. * id: string,
  11. * title: string,
  12. * order: int,
  13. * icon_class: string,
  14. * icon_url: string,
  15. * widget_url: ?string,
  16. * item_icons_round: bool,
  17. * item_api_versions: list<int>,
  18. * reload_interval: int,
  19. * buttons?: list<array{
  20. * type: string,
  21. * text: string,
  22. * link: string,
  23. * }>,
  24. * }
  25. *
  26. * @psalm-type DashboardWidgetItem = array{
  27. * subtitle: string,
  28. * title: string,
  29. * link: string,
  30. * iconUrl: string,
  31. * overlayIconUrl: string,
  32. * sinceId: string,
  33. * }
  34. *
  35. * @psalm-type DashboardWidgetItems = array{
  36. * items: list<DashboardWidgetItem>,
  37. * emptyContentMessage: string,
  38. * halfEmptyContentMessage: string,
  39. * }
  40. */
  41. class ResponseDefinitions {
  42. }