0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-04-26 09:57:51 +00:00
nextcloud_server/apps/systemtags/src/types.ts
skjnldsv cb472bebfe feat(systemtags): add colors in bulk tagging action
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-12-06 10:19:42 +01:00

25 lines
499 B
TypeScript

/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
export interface BaseTag {
id?: number
userVisible: boolean
userAssignable: boolean
readonly canAssign: boolean // Computed server-side
etag?: string
color?: string
}
export type Tag = BaseTag & {
displayName: string
}
export type TagWithId = Required<Tag>
export type ServerTag = BaseTag & {
name: string
}
export type ServerTagWithId = Required<ServerTag>