import type { Tag, Entity, FieldsParam, Issue, ListParams, QueryParam, Schema, CustomFieldsParam, DeepPartial } from "../types"; import { ResourceApi } from "./common"; type TagSchema = Schema; type IssueSchema = Schema; type TagEntity = Entity; type IssueEntity = Entity; /** * This resource lets you access and work with tags in YouTrack. * https://www.jetbrains.com/help/youtrack/devportal/resource-api-tags.html */ export declare class TagsApi extends ResourceApi { /** * Get all tags that are visible to the current user. * @param params - Optional parameters for the request. * @param params.fields - A list of Tag attributes to include in the response. If not specified, only the entityId is returned. * @param params.$skip - The number of entries to skip in the response. Useful for pagination. * @param params.$top - The maximum number of entries to return. If not specified, the server limits the number of entries returned. * @param params.query - A search query to filter the list of tags by name. For more details on query syntax, see Query Syntax. * @returns A list of tags visible to the current user that match the specified criteria. */ getTags(params?: ListParams & FieldsParam & QueryParam): Promise[]>; /** * Get settings of the tag with the specified Id. * @param tagId - The Id of the tag to retrieve. * @param params - Optional parameters for the request. * @param params.fields - A list of Tag attributes to include in the response. If not specified, only the entityId is returned. * @returns The details of the specified tag. */ getTagById(tagId: string, params?: FieldsParam): Promise>; /** * Create a new tag. * @param body - The tag details to create. Must include the `name` field. * @param params - Optional parameters for the request. * @param params.fields - A list of Tag attributes to include in the response. If not specified, only the entityID is returned. * @returns The newly created tag. */ createTag(body: DeepPartial, params?: FieldsParam): Promise>; /** * Update settings of the tag with the specified ID. * @param tagId - The database Id of the tag to update. * @param body - The updated tag details. Must include any fields that need to be modified. * @param params - Optional parameters for the request. * @param params.fields - A list of Tag attributes to include in the response. If not specified, only the entityId is returned. * @returns The updated tag. */ updateTag(tagId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Delete a tag with the specified Id. * @param tagId - The database Id of the tag to delete. * @param params - Optional parameters for the request. * @param params.fields - A comma-separated list of Tag attributes to include in the response. If not specified, only the entityId is returned. * @returns The deleted tag. */ deleteTag(tagId: string, params?: FieldsParam): Promise>; /** * Get all issues that the specific tag is added to. * @param tagId - The database Id of the tag. * @param params - Optional parameters for the request. * @param params.fields - A list of Issue attributes to include in the response. If not specified, only the entityId is returned. * @param params.$skip - The number of entries to skip in the response. Useful for pagination. * @param params.$top - The maximum number of entries to return. If not specified, the server limits the number of entries returned. * @param params.customFields - Specifies the custom fields to show in the response. Can be used multiple times to include multiple custom fields. * @returns A list of issues that the specified tag is associated with. */ getIssuesByTag(tagId: string, params?: ListParams & FieldsParam & CustomFieldsParam): Promise[]>; } export {};