ResponseDefinitions.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 FilesTemplateField = array{
  22. * index: string,
  23. * type: string,
  24. * alias: ?string,
  25. * tag: ?string,
  26. * id: ?int,
  27. * content?: string,
  28. * checked?: bool,
  29. * }
  30. *
  31. * @psalm-type FilesTemplate = array{
  32. * templateType: string,
  33. * templateId: string,
  34. * basename: string,
  35. * etag: string,
  36. * fileid: int,
  37. * filename: string,
  38. * lastmod: int,
  39. * mime: string,
  40. * size: int|float,
  41. * type: string,
  42. * hasPreview: bool,
  43. * previewUrl: ?string,
  44. * fields: list<FilesTemplateField>,
  45. * }
  46. *
  47. * @psalm-type FilesTemplateFileCreator = array{
  48. * app: string,
  49. * label: string,
  50. * extension: string,
  51. * iconClass: ?string,
  52. * iconSvgInline: ?string,
  53. * mimetypes: list<string>,
  54. * ratio: ?float,
  55. * actionLabel: string,
  56. * }
  57. *
  58. * @psalm-type FilesTemplateFileCreatorWithTemplates = FilesTemplateFileCreator&array{
  59. * templates: list<FilesTemplate>,
  60. * }
  61. *
  62. * @psalm-type FilesFolderTree = list<array{
  63. * id: int,
  64. * basename: string,
  65. * displayName?: string,
  66. * children: list<array{}>,
  67. * }>
  68. *
  69. */
  70. class ResponseDefinitions {
  71. }