import type { Entity, FieldsParam, IssueWorkItem, ListParams, MuteUpdateNotificationsParam, Schema, IssueTimeTracking, DeepPartial, DurationValue, AtLeastOne } from "../types"; import { ResourceApi } from "./common"; type IssueTimeTrackingSchema = Schema; type IssueWorkItemSchema = Schema; type IssueTimeTrackingEntity = Entity; type IssueWorkItemEntity = Entity; /** * Resource that provides access to issues. * https://www.jetbrains.com/help/youtrack/devportal/resource-api-issues.html */ export declare class IssueTimeTrackingApi extends ResourceApi { /** * Get work items of an issue and time tracking status. * @param issueId - The ID of the issue. * @param params.fields - A list of IssueTimeTracking attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the time tracking data for the issue. */ getIssueTimeTracking(issueId: string, params?: FieldsParam): Promise>; /** * Get the list of all work items of the specific issue. * @param issueId - The ID of the issue. * @param params - Optional parameters. * @param params.fields - A list of IssueWorkItem attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.$top - Optional. Specifies the maximum number of entries to return. If not provided, the server limits the number of entries. * @param params.$skip - Optional. Specifies the number of entries to skip before returning the first one. * @returns A promise that resolves to the list of work items for the issue. */ getIssueWorkItems(issueId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Add a new work item to the issue. * @param issueId - The ID of the issue. * @param body - The work item details including duration. * @param params - Optional parameters. * @param params.fields - A list of IssueWorkItem attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.muteUpdateNotifications - Set to true if no notifications should be sent on changes made by this request. This doesn't mute notifications sent by any workflow rules. * @returns A promise that resolves to the added work item. */ createIssueWorkItem(issueId: string, body: { duration: AtLeastOne; } & DeepPartial>, params?: FieldsParam & MuteUpdateNotificationsParam): Promise>; /** * Get a specific work item of the issue. * @param issueId - The ID of the issue. * @param workItemId - The ID of the work item to retrieve. * @param params - Optional parameters. * @param params.fields - A list of IssueWorkItem attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the specific work item. */ getIssueWorkItemById(issueId: string, workItemId: string, params?: FieldsParam): Promise>; /** * Update a specific work item of the issue. * @param issueId - The ID of the issue. * @param workItemId - The ID of the work item to update. * @param body - The update payload for the work item. * @param params - Optional parameters. * @param params.fields - A list of IssueWorkItem attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.muteUpdateNotifications - Set this to true if no notifications should be sent on changes made by this request. This doesn't mute notifications sent by any workflow rules. * @returns A promise that resolves to the updated work item. */ updateWorkItem(issueId: string, workItemId: string, body: DeepPartial> & { duration?: AtLeastOne; }, params?: FieldsParam & MuteUpdateNotificationsParam): Promise>; /** * Delete the specific work item in the issue. * @param issueId - The ID of the issue. * @param workItemId - The ID of the work item to delete. * @param params - Optional parameters. * @param params.fields - A list of IssueWorkItem attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the response of the deletion request. */ deleteIssueWorkItem(issueId: string, workItemId: string, params?: FieldsParam): Promise>; } export {};