@gitkraken/provider-apis 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -208,6 +208,11 @@ export interface WorkItemTypeTransition {
208
208
  to: string;
209
209
  actions: string[] | null;
210
210
  }
211
+ export interface WorkItemState {
212
+ category: 'Proposed' | 'InProgress' | 'Resolved' | 'Completed' | 'Removed';
213
+ color: string;
214
+ name: string;
215
+ }
211
216
  export interface WorkItemType {
212
217
  name: string;
213
218
  referenceName: string;
@@ -222,6 +227,7 @@ export interface WorkItemType {
222
227
  fields: WorkItemTypeField[];
223
228
  fieldInstances: WorkItemTypeField[];
224
229
  transitions: [string: WorkItemTypeTransition];
230
+ states: WorkItemState[];
225
231
  url: string;
226
232
  }
227
233
  export interface UpdatePullRequestResponse {
@@ -22,6 +22,7 @@ export interface IssueComponent {
22
22
  id: string;
23
23
  name: string;
24
24
  }
25
+ export type IssueStatusCategory = 'TO_DO' | 'IN_PROGRESS' | 'DONE';
25
26
  export interface Issue {
26
27
  author: Account | null;
27
28
  assignees: Account[];
@@ -41,6 +42,7 @@ export interface Issue {
41
42
  state: {
42
43
  name: string;
43
44
  color: string | null;
45
+ category?: IssueStatusCategory;
44
46
  } | null;
45
47
  statusTransitions?: IssueTransition[];
46
48
  components?: IssueComponent[];
@@ -0,0 +1,44 @@
1
+ import { EnterpriseOptions } from '../gitProvider';
2
+ import { Issue } from '../issueProvider';
3
+ import { EnterpriseProvider } from '../provider';
4
+ export interface JiraServerProject {
5
+ id: string;
6
+ name: string;
7
+ }
8
+ export declare class JiraServer extends EnterpriseProvider {
9
+ getCurrentUser(options?: EnterpriseOptions): Promise<{
10
+ data: {
11
+ name: string;
12
+ email: string;
13
+ avatarUrl: string;
14
+ id: string;
15
+ username: string;
16
+ };
17
+ }>;
18
+ getJiraProjects(options?: EnterpriseOptions): Promise<{
19
+ data: {
20
+ id: string;
21
+ name: string;
22
+ }[];
23
+ }>;
24
+ getIssuesForProject(input: {
25
+ project: string;
26
+ assigneeLogins?: string[];
27
+ authorLogin?: string;
28
+ mentionLogin?: string;
29
+ }, options?: EnterpriseOptions): Promise<{
30
+ data: Issue[];
31
+ }>;
32
+ setIssueStatus(input: {
33
+ issueId: string;
34
+ status: string;
35
+ }, options?: EnterpriseOptions): Promise<void>;
36
+ getLabels(options: EnterpriseOptions): Promise<{
37
+ data: {
38
+ color: null;
39
+ description: null;
40
+ id: null;
41
+ name: string;
42
+ }[];
43
+ }>;
44
+ }
package/dist/types.d.ts CHANGED
@@ -9,6 +9,7 @@ export interface Config extends SharedConfig {
9
9
  bitbucketServer?: ProviderBaseConfig & EnterpriseConfig;
10
10
  azureDevOps?: ProviderBaseConfig;
11
11
  jira?: ProviderBaseConfig;
12
+ jiraServer?: ProviderBaseConfig & EnterpriseConfig;
12
13
  trello?: ProviderBaseConfig;
13
14
  }
14
15
  export interface SharedConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "An SDK around different third-party APIs that accepts and returns data in a common format.",
5
5
  "author": "Axosoft, LLC dba GitKraken",
6
6
  "license": "SEE LICENSE IN LICENSE",