2023-06-14 08:43:41 -04:00
|
|
|
<?php
|
2023-11-23 04:22:34 -05:00
|
|
|
|
2023-06-14 08:43:41 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-28 10:42:42 -04:00
|
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-06-14 08:43:41 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OCA\Files;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @psalm-type FilesTemplateFile = array{
|
|
|
|
|
* basename: string,
|
|
|
|
|
* etag: string,
|
|
|
|
|
* fileid: int,
|
|
|
|
|
* filename: ?string,
|
|
|
|
|
* lastmod: int,
|
|
|
|
|
* mime: string,
|
2025-11-06 11:47:32 -05:00
|
|
|
* size: int|float,
|
2023-06-14 08:43:41 -04:00
|
|
|
* type: string,
|
|
|
|
|
* hasPreview: bool,
|
2025-11-06 11:47:32 -05:00
|
|
|
* permissions: int,
|
2023-06-14 08:43:41 -04:00
|
|
|
* }
|
|
|
|
|
*
|
2024-09-24 09:53:13 -04:00
|
|
|
* @psalm-type FilesTemplateField = array{
|
|
|
|
|
* index: string,
|
|
|
|
|
* type: string,
|
|
|
|
|
* alias: ?string,
|
|
|
|
|
* tag: ?string,
|
|
|
|
|
* id: ?int,
|
|
|
|
|
* content?: string,
|
|
|
|
|
* checked?: bool,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type FilesTemplate = array{
|
|
|
|
|
* templateType: string,
|
|
|
|
|
* templateId: string,
|
|
|
|
|
* basename: string,
|
|
|
|
|
* etag: string,
|
|
|
|
|
* fileid: int,
|
|
|
|
|
* filename: string,
|
|
|
|
|
* lastmod: int,
|
|
|
|
|
* mime: string,
|
|
|
|
|
* size: int|float,
|
|
|
|
|
* type: string,
|
|
|
|
|
* hasPreview: bool,
|
|
|
|
|
* previewUrl: ?string,
|
|
|
|
|
* fields: list<FilesTemplateField>,
|
|
|
|
|
* }
|
|
|
|
|
*
|
2023-06-14 08:43:41 -04:00
|
|
|
* @psalm-type FilesTemplateFileCreator = array{
|
|
|
|
|
* app: string,
|
|
|
|
|
* label: string,
|
|
|
|
|
* extension: string,
|
|
|
|
|
* iconClass: ?string,
|
2024-03-20 15:49:58 -04:00
|
|
|
* iconSvgInline: ?string,
|
2024-09-24 09:53:13 -04:00
|
|
|
* mimetypes: list<string>,
|
2023-06-14 08:43:41 -04:00
|
|
|
* ratio: ?float,
|
|
|
|
|
* actionLabel: string,
|
|
|
|
|
* }
|
2024-07-24 19:47:14 -04:00
|
|
|
*
|
2024-09-24 09:53:13 -04:00
|
|
|
* @psalm-type FilesTemplateFileCreatorWithTemplates = FilesTemplateFileCreator&array{
|
|
|
|
|
* templates: list<FilesTemplate>,
|
2024-07-24 19:47:14 -04:00
|
|
|
* }
|
2024-07-31 17:53:25 -04:00
|
|
|
*
|
2024-08-07 23:52:29 -04:00
|
|
|
* @psalm-type FilesFolderTree = list<array{
|
2024-07-31 17:53:25 -04:00
|
|
|
* id: int,
|
2024-08-07 23:52:29 -04:00
|
|
|
* basename: string,
|
2024-07-31 17:53:25 -04:00
|
|
|
* displayName?: string,
|
2024-08-07 23:52:29 -04:00
|
|
|
* children: list<array{}>,
|
|
|
|
|
* }>
|
2024-07-31 17:53:25 -04:00
|
|
|
*
|
2023-06-14 08:43:41 -04:00
|
|
|
*/
|
|
|
|
|
class ResponseDefinitions {
|
|
|
|
|
}
|