ResponseDefinitions.php 1005 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 FilesFolderTree = list<array{
  39. * id: int,
  40. * basename: string,
  41. * displayName?: string,
  42. * children: list<array{}>,
  43. * }>
  44. *
  45. */
  46. class ResponseDefinitions {
  47. }