/*! * 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 GetAllBoardsRequest extends HeadersOption, ErrorStrategyOption { /** * The starting index of the returned boards. Base index: 0. See the 'Pagination' section at the top of this page for more details. */ startAt?: number; /** * The maximum number of boards to return per page. See the 'Pagination' section at the top of this page for more details. */ maxResults?: number; /** * Filters results to boards of the specified types. Valid values: scrum, kanban, simple. */ type?: any; /** * Filters results to boards that match or partially match the specified name. */ name?: string; /** * Filters results to boards that are relevant to a project. Relevance means that the jql filter defined in board contains a reference to a project. */ projectKeyOrId?: string; accountIdLocation?: string; projectLocation?: string; /** * Appends private boards to the end of the list. The name and type fields are excluded for security reasons. */ includePrivate?: boolean; /** * If set to true, negate filters used for querying by location. By default false. */ negateLocationFiltering?: boolean; /** * Ordering of the results by a given field. If not provided, values will not be sorted. Valid values: name. */ orderBy?: "name" | "-name" | "+name"; /** * List of fields to expand for each board. Valid values: admins, permissions. */ expand?: string; /** * Filters results to boards that are relevant to a project types. Support Jira Software, Jira Service Management. Valid values: software, service\_desk. By default software. */ projectTypeLocation?: Array; /** * Filters results to boards that are relevant to a filter. Not supported for next-gen boards. */ filterId?: number; } declare type GetAllBoardsResponseOKType = { isLast?: boolean; maxResults?: number; startAt?: number; total?: number; values?: Array<{ admins?: { groups?: Array<{ name?: string; self?: string; }>; users?: Array<{ /** * The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. */ accountId?: string; /** * Whether the user is active. */ active?: boolean; /** * The avatars of the user. */ avatarUrls?: { /** * The URL of the user's 16x16 pixel avatar. */ "16x16"?: string; /** * The URL of the user's 24x24 pixel avatar. */ "24x24"?: string; /** * The URL of the user's 32x32 pixel avatar. */ "32x32"?: string; /** * The URL of the user's 48x48 pixel avatar. */ "48x48"?: string; }; /** * The display name of the user. Depending on the user’s privacy setting, this may return an alternative value. */ displayName?: string; /** * This property is deprecated in favor of `accountId` because of privacy changes. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. The key of the user. */ key?: string; /** * This property is deprecated in favor of `accountId` because of privacy changes. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. The username of the user. */ name?: string; /** * The URL of the user. */ self?: string; }>; }; /** * Whether the board can be edited. */ canEdit?: boolean; /** * Whether the board is selected as a favorite. */ favourite?: boolean; /** * The ID of the board. */ id?: number; /** * Whether the board is private. */ isPrivate?: boolean; /** * The container that the board is located in. */ location?: { avatarURI?: string; displayName?: string; name?: string; projectId?: number; projectKey?: string; projectName?: string; projectTypeKey?: string; userAccountId?: string; userId?: number; }; /** * The name of the board. */ name?: string; /** * The URL of the board. */ self?: string; /** * The type the board. */ type?: string; }>; }; export interface GetAllBoardsResponseOK extends GetAllBoardsResponseOKType { } export declare type GetAllBoardsResponseError = undefined; export interface CreateBoardRequest extends HeadersOption, ErrorStrategyOption { body: { filterId: number; location?: { projectKeyOrId?: string; type?: "project" | "user"; }; name: string; type: "kanban" | "scrum"; }; } declare type CreateBoardResponseOKType = { /** * The ID of the board. */ id?: number; /** * The name of the board. */ name?: string; /** * The URL of the board. */ self?: string; /** * The type of the board. */ type?: string; }; export interface CreateBoardResponseOK extends CreateBoardResponseOKType { } export declare type CreateBoardResponseError = undefined; export interface GetBoardByFilterIdRequest extends HeadersOption, ErrorStrategyOption { /** * Filters results to boards that are relevant to a filter. Not supported for next-gen boards. */ filterId: number; /** * The starting index of the returned boards. Base index: 0. See the 'Pagination' section at the top of this page for more details. */ startAt?: number; /** * The maximum number of boards to return per page. Default: 50. See the 'Pagination' section at the top of this page for more details. */ maxResults?: number; } declare type GetBoardByFilterIdResponseOKType = { isLast?: boolean; maxResults?: number; startAt?: number; total?: number; values?: Array<{ id?: number; name?: string; self?: string; }>; }; export interface GetBoardByFilterIdResponseOK extends GetBoardByFilterIdResponseOKType { } export declare type GetBoardByFilterIdResponseError = undefined; export interface GetBoardRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the requested board. */ boardId: number; } declare type GetBoardResponseOKType = { admins?: { groups?: Array<{ name?: string; self?: string; }>; users?: Array<{ /** * The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. */ accountId?: string; /** * Whether the user is active. */ active?: boolean; /** * The avatars of the user. */ avatarUrls?: { /** * The URL of the user's 16x16 pixel avatar. */ "16x16"?: string; /** * The URL of the user's 24x24 pixel avatar. */ "24x24"?: string; /** * The URL of the user's 32x32 pixel avatar. */ "32x32"?: string; /** * The URL of the user's 48x48 pixel avatar. */ "48x48"?: string; }; /** * The display name of the user. Depending on the user’s privacy setting, this may return an alternative value. */ displayName?: string; /** * This property is deprecated in favor of `accountId` because of privacy changes. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. The key of the user. */ key?: string; /** * This property is deprecated in favor of `accountId` because of privacy changes. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. The username of the user. */ name?: string; /** * The URL of the user. */ self?: string; }>; }; /** * Whether the board can be edited. */ canEdit?: boolean; /** * Whether the board is selected as a favorite. */ favourite?: boolean; /** * The ID of the board. */ id?: number; /** * Whether the board is private. */ isPrivate?: boolean; /** * The container that the board is located in. */ location?: { avatarURI?: string; displayName?: string; name?: string; projectId?: number; projectKey?: string; projectName?: string; projectTypeKey?: string; userAccountId?: string; userId?: number; }; /** * The name of the board. */ name?: string; /** * The URL of the board. */ self?: string; /** * The type the board. */ type?: string; }; export interface GetBoardResponseOK extends GetBoardResponseOKType { } export declare type GetBoardResponseError = undefined; export interface DeleteBoardRequest extends HeadersOption, ErrorStrategyOption { /** * ID of the board to be deleted */ boardId: number; } export declare type DeleteBoardResponseOK = undefined; export declare type DeleteBoardResponseError = undefined; export interface GetIssuesForBacklogRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board that has the backlog containing the requested issues. */ boardId: 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. 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; /** * This parameter is currently not used. */ expand?: string; } declare type GetIssuesForBacklogResponseOKType = SearchResultsAsResponse; export interface GetIssuesForBacklogResponseOK extends GetIssuesForBacklogResponseOKType { } export declare type GetIssuesForBacklogResponseError = undefined; export interface GetBoardConfigurationRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board for which configuration is requested. */ boardId: number; } declare type GetBoardConfigurationResponseOKType = { columnConfig?: { columns?: Array<{ max?: number; min?: number; name?: string; statuses?: Array<{ id?: string; self?: string; }>; }>; constraintType?: string; }; estimation?: { field?: { displayName?: string; fieldId?: string; }; type?: string; }; filter?: { id?: string; self?: string; }; id?: number; location?: { projectKeyOrId?: string; type?: "project" | "user"; }; name?: string; ranking?: { rankCustomFieldId?: number; }; self?: string; subQuery?: { query?: string; }; type?: string; }; export interface GetBoardConfigurationResponseOK extends GetBoardConfigurationResponseOKType { } export declare type GetBoardConfigurationResponseError = undefined; export interface GetBoardEpicRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board that contains the requested epics. */ boardId: number; /** * The starting index of the returned epics. Base index: 0. See the 'Pagination' section at the top of this page for more details. */ startAt?: number; /** * The maximum number of epics to return per page. See the 'Pagination' section at the top of this page for more details. */ maxResults?: number; /** * Filters results to epics that are either done or not done. Valid values: true, false. */ done?: string; } declare type GetBoardEpicResponseOKType = { isLast?: boolean; maxResults?: number; startAt?: number; total?: number; values?: Array<{ id?: number; self?: string; name?: string; summary?: string; color?: { key?: string; }; issueColor?: { key?: string; }; done?: boolean; }>; }; export interface GetBoardEpicResponseOK extends GetBoardEpicResponseOKType { } export declare type GetBoardEpicResponseError = undefined; export interface GetIssuesWithoutEpicForBoardRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board that contains the requested issues. */ boardId: 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 GetIssuesWithoutEpicForBoardResponseOKType = SearchResultsAsResponse; export interface GetIssuesWithoutEpicForBoardResponseOK extends GetIssuesWithoutEpicForBoardResponseOKType { } export declare type GetIssuesWithoutEpicForBoardResponseError = undefined; export interface GetBoardIssuesForEpicRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board that contains the requested issues. */ boardId: number; /** * The ID of the epic that contains the requested issues. */ epicId: 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. 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. */ 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 GetBoardIssuesForEpicResponseOKType = SearchResultsAsResponse; export interface GetBoardIssuesForEpicResponseOK extends GetBoardIssuesForEpicResponseOKType { } export declare type GetBoardIssuesForEpicResponseError = undefined; export interface GetIssuesForBoardRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board that contains the requested issues. */ boardId: 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; /** * This parameter is currently not used. */ expand?: string; } declare type GetIssuesForBoardResponseOKType = SearchResultsAsResponse; export interface GetIssuesForBoardResponseOK extends GetIssuesForBoardResponseOKType { } export declare type GetIssuesForBoardResponseError = undefined; export interface MoveIssuesToBoardRequest extends HeadersOption, ErrorStrategyOption { boardId: number; body: { issues: Array; rankAfterIssue?: string; rankBeforeIssue?: string; rankCustomFieldId?: number; }; } export declare type MoveIssuesToBoardResponseOK = undefined; export declare type MoveIssuesToBoardResponseError = undefined; export interface GetBoardProjectsRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board that contains returned projects. */ boardId: number; /** * The starting index of the returned projects. Base index: 0. See the 'Pagination' section at the top of this page for more details. */ startAt?: number; /** * The maximum number of projects to return per page. See the 'Pagination' section at the top of this page for more details. */ maxResults?: number; } declare type GetBoardProjectsResponseOKType = { isLast?: boolean; maxResults?: number; startAt?: number; total?: number; values?: Array<{ avatarUrls?: { "16x16"?: string; "24x24"?: string; "32x32"?: string; "48x48"?: string; }; id?: string; key?: string; name?: string; projectCategory?: { description?: string; id?: string; name?: string; }; projectTypeKey?: string; self?: string; simplified?: boolean; }>; }; export interface GetBoardProjectsResponseOK extends GetBoardProjectsResponseOKType { } export declare type GetBoardProjectsResponseError = undefined; export interface GetBoardFullProjectsRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board that contains returned projects. */ boardId: number; } declare type GetBoardFullProjectsResponseOKType = { isLast?: boolean; maxResults?: number; startAt?: number; total?: number; values?: Array<{ avatarUrls?: { "16x16"?: string; "24x24"?: string; "32x32"?: string; "48x48"?: string; }; id?: string; key?: string; name?: string; projectCategory?: { description?: string; id?: string; name?: string; }; projectTypeKey?: string; self?: string; simplified?: boolean; }>; }; export interface GetBoardFullProjectsResponseOK extends GetBoardFullProjectsResponseOKType { } export declare type GetBoardFullProjectsResponseError = undefined; export interface GetAllSprintsRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board that contains the requested sprints. */ boardId: number; /** * The starting index of the returned sprints. Base index: 0. See the 'Pagination' section at the top of this page for more details. */ startAt?: number; /** * The maximum number of sprints to return per page. See the 'Pagination' section at the top of this page for more details. */ maxResults?: number; /** * Filters results to sprints in specified states. Valid values: future, active, closed. You can define multiple states separated by commas, e.g. state=active,closed */ state?: string; } declare type GetAllSprintsResponseOKType = { isLast?: boolean; maxResults?: number; startAt?: number; total?: number; values?: Array<{ id?: number; self?: string; state?: "future" | "active" | "closed"; name?: string; startDate?: string; endDate?: string; completeDate?: string; originBoardId?: number; goal?: string; }>; }; export interface GetAllSprintsResponseOK extends GetAllSprintsResponseOKType { } export declare type GetAllSprintsResponseError = undefined; export interface GetBoardIssuesForSprintRequest extends HeadersOption, ErrorStrategyOption { /** * The ID of the board that contains requested issues. */ boardId: number; /** * The ID of the sprint that contains 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 GetBoardIssuesForSprintResponseOKType = SearchResultsAsResponse; export interface GetBoardIssuesForSprintResponseOK extends GetBoardIssuesForSprintResponseOKType { } export declare type GetBoardIssuesForSprintResponseError = undefined; export {}; //# sourceMappingURL=board.d.ts.map