-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
beb6812
commit 028e0e7
Showing
37 changed files
with
1,237 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import * as Models from './models'; | ||
import * as Parameters from './parameters'; | ||
import { Client } from '../clients'; | ||
import { Callback } from '../callback'; | ||
import { RequestConfig } from '../requestConfig'; | ||
|
||
export class ClassificationLevels { | ||
constructor(private client: Client) {} | ||
|
||
/** | ||
* Returns all classification levels. | ||
* | ||
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:** None. | ||
*/ | ||
async getAllUserDataClassificationLevels<T = Models.DataClassificationLevels>( | ||
parameters: Parameters.GetAllUserDataClassificationLevels | undefined, | ||
callback: Callback<T>, | ||
): Promise<void>; | ||
/** | ||
* Returns all classification levels. | ||
* | ||
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:** None. | ||
*/ | ||
async getAllUserDataClassificationLevels<T = Models.DataClassificationLevels>( | ||
parameters?: Parameters.GetAllUserDataClassificationLevels, | ||
callback?: never, | ||
): Promise<T>; | ||
async getAllUserDataClassificationLevels<T = Models.DataClassificationLevels>( | ||
parameters?: Parameters.GetAllUserDataClassificationLevels, | ||
callback?: Callback<T>, | ||
): Promise<void | T> { | ||
const config: RequestConfig = { | ||
url: '/rest/api/3/classification-levels', | ||
method: 'GET', | ||
params: { | ||
status: parameters?.status, | ||
orderBy: parameters?.orderBy, | ||
}, | ||
}; | ||
|
||
return this.client.sendRequest(config, callback); | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { IssueBulkEditField } from './issueBulkEditField'; | ||
|
||
/** Bulk Edit Get Fields Response. */ | ||
export interface BulkEditGetFields { | ||
/** The end cursor for use in pagination. */ | ||
endingBefore?: string; | ||
/** List of all the fields */ | ||
fields?: IssueBulkEditField[]; | ||
/** The start cursor for use in pagination. */ | ||
startingAfter?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { User } from './user'; | ||
|
||
export interface BulkOperationProgress { | ||
/** A timestamp of when the task was submitted. */ | ||
created?: string; | ||
/** | ||
* Map of issue IDs for which the operation failed and that the user has permission to view, to their one or more | ||
* reasons for failure. These reasons are open-ended text descriptions of the error and are not selected from a | ||
* predefined list of standard reasons. | ||
*/ | ||
failedAccessibleIssues?: {}; | ||
/** | ||
* The number of issues that are either invalid or issues that the user doesn't have permission to view, regardless | ||
* of the success or failure of the operation. | ||
*/ | ||
invalidOrInaccessibleIssueCount?: number; | ||
/** List of issue IDs for which the operation was successful and that the user has permission to view. */ | ||
processedAccessibleIssues?: number[]; | ||
/** Progress of the task as a percentage. */ | ||
progressPercent?: number; | ||
/** A timestamp of when the task was started. */ | ||
started?: string; | ||
/** The status of the task. */ | ||
status?: 'ENQUEUED' | 'RUNNING' | 'COMPLETE' | 'FAILED' | 'CANCEL_REQUESTED' | 'CANCELLED' | 'DEAD' | string; | ||
submittedBy?: User; | ||
/** The ID of the task. */ | ||
taskId: string; | ||
/** The number of issues that the bulk operation was attempted on. */ | ||
totalIssueCount?: number; | ||
/** A timestamp of when the task progress was last updated. */ | ||
updated?: string; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/version3/models/bulkTransitionGetAvailableTransitions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { IssueBulkTransitionForWorkflow } from './issueBulkTransitionForWorkflow'; | ||
|
||
/** Bulk Transition Get Available Transitions Response. */ | ||
export interface BulkTransitionGetAvailableTransitions { | ||
/** List of available transitions for bulk transition operation for requested issues grouped by workflow */ | ||
availableTransitions?: IssueBulkTransitionForWorkflow[]; | ||
/** The end cursor for use in pagination. */ | ||
endingBefore?: string; | ||
/** The start cursor for use in pagination. */ | ||
startingAfter?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,42 @@ | ||
/** Details of an issue priority. */ | ||
export interface CreatePriorityDetails { | ||
/** The name of the priority. Must be unique. */ | ||
name: string; | ||
/** | ||
* The ID for the avatar for the priority. Either the iconUrl or avatarId must be defined, but not both. This | ||
* parameter is nullable and will become mandatory once the iconUrl parameter is deprecated. | ||
*/ | ||
avatarId?: number; | ||
/** The description of the priority. */ | ||
description?: string; | ||
/** The URL of an icon for the priority. Accepted protocols are HTTP and HTTPS. Built in icons can also be used. */ | ||
iconUrl?: string; | ||
/** | ||
* The URL of an icon for the priority. Accepted protocols are HTTP and HTTPS. Built in icons can also be used. Either | ||
* the iconUrl or avatarId must be defined, but not both. | ||
* | ||
* @deprecated This property is deprecated and will be removed in a future version. Use `avatarId` instead. | ||
*/ | ||
iconUrl?: | ||
| '/images/icons/priorities/blocker.png' | ||
| '/images/icons/priorities/critical.png' | ||
| '/images/icons/priorities/high.png' | ||
| '/images/icons/priorities/highest.png' | ||
| '/images/icons/priorities/low.png' | ||
| '/images/icons/priorities/lowest.png' | ||
| '/images/icons/priorities/major.png' | ||
| '/images/icons/priorities/medium.png' | ||
| '/images/icons/priorities/minor.png' | ||
| '/images/icons/priorities/trivial.png' | ||
| '/images/icons/priorities/blocker_new.png' | ||
| '/images/icons/priorities/critical_new.png' | ||
| '/images/icons/priorities/high_new.png' | ||
| '/images/icons/priorities/highest_new.png' | ||
| '/images/icons/priorities/low_new.png' | ||
| '/images/icons/priorities/lowest_new.png' | ||
| '/images/icons/priorities/major_new.png' | ||
| '/images/icons/priorities/medium_new.png' | ||
| '/images/icons/priorities/minor_new.png' | ||
| '/images/icons/priorities/trivial_new.png' | ||
| string; | ||
/** The name of the priority. Must be unique. */ | ||
name: string; | ||
/** The status color of the priority in 3-digit or 6-digit hexadecimal format. */ | ||
statusColor: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { DataClassificationTag } from './dataClassificationTag'; | ||
|
||
/** The data classification. */ | ||
export interface DataClassificationLevels { | ||
/** The data classifications. */ | ||
classifications?: DataClassificationTag[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** The data classification. */ | ||
export interface DataClassificationTag { | ||
/** The color of the data classification object. */ | ||
color?: string; | ||
/** The description of the data classification object. */ | ||
description?: string; | ||
/** The guideline of the data classification object. */ | ||
guideline?: string; | ||
/** The ID of the data classification object. */ | ||
id: string; | ||
/** The name of the data classification object. */ | ||
name?: string; | ||
/** The rank of the data classification object. */ | ||
rank?: number; | ||
/** The status of the data classification object. */ | ||
status: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.