/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { ErrorStrategyOption } from "../errorStrategy"; import { HeadersOption } from "@managed-api/commons-core"; import { SearchResultsAsResponse } from "../definitions/SearchResultsAsResponse"; export interface CreateSprintRequest extends HeadersOption, ErrorStrategyOption { body: { endDate?: string; goal?: string; name: string; originBoardId: number; startDate?: string; }; } declare type CreateSprintResponseOKType = { id?: number; self?: string; state?: string; name?: string; startDate?: string; endDate?: string; originBoardId?: number; goal?: string; }; export interface CreateSprintResponseOK extends CreateSprintResponseOKType { } export declare type CreateSprintResponseError = undefined; export interface GetSprintRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the requested sprint. */ sprintId: number; } declare type GetSprintResponseOKType = { id?: number; self?: string; state?: string; name?: string; startDate?: string; endDate?: string; completeDate?: string; originBoardId?: number; goal?: string; }; export interface GetSprintResponseOK extends GetSprintResponseOKType { } export declare type GetSprintResponseError = undefined; export interface UpdateSprintRequest extends HeadersOption, ErrorStrategyOption { /** * the ID of the sprint to update. */ sprintId: number; body: { completeDate?: string; createdDate?: string; endDate?: string; goal?: string; id?: number; name?: string; originBoardId?: number; self?: string; startDate?: string; state?: string; }; } declare type UpdateSprintResponseOKType = { id?: number; self?: string; state?: string; name?: string; startDate?: string; endDate?: string; completeDate?: string; originBoardId?: number; goal?: string; }; export interface UpdateSprintResponseOK extends UpdateSprintResponseOKType { } export declare type UpdateSprintResponseError = undefined; export interface PartialUpdateSprintRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the sprint to update. */ sprintId: number; body: { completeDate?: string; endDate?: string; goal?: string; id?: number; name?: string; originBoardId?: number; self?: string; startDate?: string; state?: string; }; } declare type PartialUpdateSprintResponseOKType = { id?: number; self?: string; state?: string; name?: string; startDate?: string; endDate?: string; completeDate?: string; originBoardId?: number; goal?: string; }; export interface PartialUpdateSprintResponseOK extends PartialUpdateSprintResponseOKType { } export declare type PartialUpdateSprintResponseError = undefined; export interface DeleteSprintRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the sprint to delete. */ sprintId: number; } export declare type DeleteSprintResponseOK = undefined; export declare type DeleteSprintResponseError = undefined; export interface GetIssuesForSprintRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the sprint that contains the requested issues. */ sprintId: number; /** * 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. 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 GetIssuesForSprintResponseOKType = SearchResultsAsResponse; export interface GetIssuesForSprintResponseOK extends GetIssuesForSprintResponseOKType { } export declare type GetIssuesForSprintResponseError = undefined; export interface MoveIssuesToSprintAndRankRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the sprint that you want to assign issues to. */ sprintId: number; body: { issues?: Array; rankAfterIssue?: string; rankBeforeIssue?: string; rankCustomFieldId?: number; }; } export declare type MoveIssuesToSprintAndRankResponseOK = undefined; export declare type MoveIssuesToSprintAndRankResponseError = undefined; export interface SwapSprintRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the sprint to swap. */ sprintId: number; body: { sprintToSwapWith?: number; }; } export declare type SwapSprintResponseOK = undefined; export declare type SwapSprintResponseError = undefined; export {}; //# sourceMappingURL=sprint.d.ts.map