/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { IssueBeanAsResponse } from "../definitions/IssueBeanAsResponse"; import { ErrorStrategyOption } from "../errorStrategy"; import { HeadersOption } from "@managed-api/commons-core"; export interface GetIssueRequest extends HeadersOption, ErrorStrategyOption { /** * The ID or key of the requested issue. */ issueIdOrKey: string; /** * The list of fields to return for each issue. By default, all navigable and Agile fields are returned. */ fields?: Array; /** * A comma-separated list of the parameters to expand. */ expand?: string; /** * A boolean indicating whether the issue retrieved by this method should be added to the current user's issue history */ updateHistory?: boolean; } declare type GetIssueResponseOKType = IssueBeanAsResponse; export interface GetIssueResponseOK extends GetIssueResponseOKType { } export declare type GetIssueResponseError = undefined; declare type ExactlyOne = Keys extends keyof T ? Required> & { [K in Exclude]?: never; } : never; declare type RankIssuesOrderParams = ExactlyOne<{ rankAfterIssue?: string; rankBeforeIssue?: string; }>; export interface RankIssuesRequest extends HeadersOption, ErrorStrategyOption { body: RankIssuesOrderParams & { issues?: Array; rankCustomFieldId?: number; }; } export declare type RankIssuesResponseOK = undefined; export declare type RankIssuesResponseError = undefined; export interface GetIssueEstimationRequest extends HeadersOption, ErrorStrategyOption { /** * The ID or key of the requested issue. */ issueIdOrKey: string; /** * The ID of the board required to determine which field is used for estimation. */ boardId: number; } declare type GetIssueEstimationResponseOKType = { fieldId?: string; value?: string | number; }; export interface GetIssueEstimationResponseOK extends GetIssueEstimationResponseOKType { } export declare type GetIssueEstimationResponseError = undefined; export interface UpdateIssueEstimationRequest extends HeadersOption, ErrorStrategyOption { /** * The ID or key of the requested issue. */ issueIdOrKey: string; /** * The ID of the board required to determine which field is used for estimation. */ boardId: number; body: { value?: string | number; }; } declare type UpdateIssueEstimationResponseOKType = { fieldId?: string; value?: string | number; }; export interface UpdateIssueEstimationResponseOK extends UpdateIssueEstimationResponseOKType { } export declare type UpdateIssueEstimationResponseError = undefined; export {}; //# sourceMappingURL=issue.d.ts.map