mirror of
https://github.com/nextcloud/server.git
synced 2025-04-26 09:57:51 +00:00
25 lines
499 B
TypeScript
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>
|