/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { SearchResultsAsResponse } from "../definitions/SearchResultsAsResponse"; import { ErrorStrategyOption } from "../errorStrategy"; import { HeadersOption } from "@managed-api/commons-core"; export interface GetIssuesWithoutEpicRequest extends HeadersOption, ErrorStrategyOption { /** * The starting index of the returned issues. Base index: 0. See the 'Pagination' section at the top of this page for more details. */ startAt?: number; /** * The maximum number of issues to return per page. See the 'Pagination' section at the top of this page for more details. Note, the total number of issues returned is limited by the property 'jira.search.views.default.max' in your Jira instance. If you exceed this limit, your results will be truncated. */ maxResults?: number; /** * Filters results using a JQL query. If you define an order in your JQL query, it will override the default order of the returned issues. */ jql?: string; /** * Specifies whether to validate the JQL query or not. Default: true. */ validateQuery?: boolean; /** * 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; } declare type GetIssuesWithoutEpicResponseOKType = SearchResultsAsResponse; export interface GetIssuesWithoutEpicResponseOK extends GetIssuesWithoutEpicResponseOKType { } export declare type GetIssuesWithoutEpicResponseError = undefined; export interface RemoveIssuesFromEpicRequest extends HeadersOption, ErrorStrategyOption { body: { issues: Array; }; } export declare type RemoveIssuesFromEpicResponseOK = undefined; export declare type RemoveIssuesFromEpicResponseError = undefined; export interface GetEpicRequest extends HeadersOption, ErrorStrategyOption { /** * The id or key of the requested epic. */ epicIdOrKey: string; } declare type GetEpicResponseOKType = { id?: number; key?: string; self?: string; name?: string; summary?: string; color?: { key?: string; }; issueColor?: { key?: string; }; done?: boolean; }; export interface GetEpicResponseOK extends GetEpicResponseOKType { } export declare type GetEpicResponseError = undefined; export interface UpdateEpicRequest extends HeadersOption, ErrorStrategyOption { /** * The id or key of the epic to update. */ epicIdOrKey: string; body: { color?: { key?: "color_1" | "color_2" | "color_3" | "color_4" | "color_5" | "color_6" | "color_7" | "color_8" | "color_9" | "color_10" | "color_11" | "color_12" | "color_13" | "color_14"; }; done?: boolean; name?: string; summary?: string; issueColor?: { key?: string; }; }; } declare type UpdateEpicResponseOKType = { id?: number; key?: string; self?: string; name?: string; summary?: string; color?: { key?: string; }; issueColor?: { key?: string; }; done?: boolean; }; export interface UpdateEpicResponseOK extends UpdateEpicResponseOKType { } export declare type UpdateEpicResponseError = undefined; export interface GetIssuesForEpicRequest extends HeadersOption, ErrorStrategyOption { /** * The id or key of the epic that contains the requested issues. */ epicIdOrKey: string; /** * The starting index of the returned issues. Base index: 0. See the 'Pagination' section at the top of this page for more details. */ startAt?: number; /** * The maximum number of issues to return per page. Default: 50. See the 'Pagination' section at the top of this page for more details. Note, the total number of issues returned is limited by the property 'jira.search.views.default.max' in your Jira instance. If you exceed this limit, your results will be truncated. */ maxResults?: number; /** * Filters results using a JQL query. If you define an order in your JQL query, it will override the default order of the returned issues. Note that `username` and `userkey` can't be used as search terms for this parameter due to privacy reasons. Use `accountId` instead. */ jql?: string; /** * Specifies whether to validate the JQL query or not. Default: true. */ validateQuery?: boolean; /** * 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; } declare type GetIssuesForEpicResponseOKType = SearchResultsAsResponse; export interface GetIssuesForEpicResponseOK extends GetIssuesForEpicResponseOKType { } export declare type GetIssuesForEpicResponseError = undefined; export interface MoveIssuesToEpicRequest extends HeadersOption, ErrorStrategyOption { /** * The id or key of the epic that you want to assign issues to. */ epicIdOrKey: string; body: { issues: Array; }; } export declare type MoveIssuesToEpicResponseOK = undefined; export declare type MoveIssuesToEpicResponseError = undefined; declare type ExactlyOne = Keys extends keyof T ? Required> & { [K in Exclude]?: never; } : never; declare type RankEpicsOrderParams = ExactlyOne<{ rankAfterEpic?: string; rankBeforeEpic?: string; }>; export interface RankEpicsRequest extends HeadersOption, ErrorStrategyOption { /** * The id or key of the epic to rank. */ epicIdOrKey: string; body: RankEpicsOrderParams & { rankCustomFieldId?: number; }; } export declare type RankEpicsResponseOK = undefined; export declare type RankEpicsResponseError = undefined; export {}; //# sourceMappingURL=epic.d.ts.map