aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/eventbus.d.ts
blob: 49ac67fe4db53c0a9f2a087cc40c8317fb1a2764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
 * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
import type { IFileListFilter, Node } from '@nextcloud/files'

declare module '@nextcloud/event-bus' {
	export interface NextcloudEvents {
		// mapping of 'event name' => 'event type'
		'files:config:updated': { key: string, value: boolean }
		'files:view-config:updated': { key: string, value: string|number|boolean, view: string }

		'files:favorites:removed': Node
		'files:favorites:added': Node

		'files:node:created': Node
		'files:node:deleted': Node
		'files:node:updated': Node
		'files:node:rename': Node
		'files:node:renamed': Node
		'files:node:moved': { node: Node, oldSource: string }

		'files:filter:added': IFileListFilter
		'files:filter:removed': string
	}
}

export {}