ResponseDefinitions.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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\Files;
  8. /**
  9. * @psalm-type FilesTemplateFile = array{
  10. * basename: string,
  11. * etag: string,
  12. * fileid: int,
  13. * filename: ?string,
  14. * lastmod: int,
  15. * mime: string,
  16. * size: int,
  17. * type: string,
  18. * hasPreview: bool,
  19. * }
  20. *
  21. * @psalm-type FilesTemplateFileCreator = array{
  22. * app: string,
  23. * label: string,
  24. * extension: string,
  25. * iconClass: ?string,
  26. * iconSvgInline: ?string,
  27. * mimetypes: string[],
  28. * ratio: ?float,
  29. * actionLabel: string,
  30. * }
  31. *
  32. * @psalm-type FilesTemplateField = array{
  33. * index: string,
  34. * content: string,
  35. * type: string,
  36. * }
  37. *
  38. * @psalm-type FilesFolderTreeNode = array{
  39. * id: int,
  40. * displayName?: string,
  41. * children?: array<string, array{}>,
  42. * }
  43. *
  44. * @psalm-type FilesFolderTree = array<string, FilesFolderTreeNode>
  45. *
  46. */
  47. class ResponseDefinitions {
  48. }