forked from floralvikings/jira-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
104 lines (96 loc) · 2.78 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import { Backlog } from './api/backlog';
import { Board } from './api/board';
import { Epic } from './api/epic';
import { Issue } from './api/issue';
export = JiraClient;
interface IConfig {
host: string;
port?: number;
protocol?: string;
path_prefix?: string;
strictSSL?: boolean;
version?: string;
basic_auth?: {
email?: string;
api_token?: string;
username?: string;
password?: string;
base64?: string;
};
oauth?: {
consumer_key: string;
private_key: string;
token: string;
token_secret: string;
}
cookie_jar?: any;
promise?: PromiseLike<any> | any;
request?: any;
rejectUnauthorized?: any;
}
declare class JiraClient {
constructor(config: IConfig);
public applicationProperties: any;
public attachment: any;
public auditing: any;
public auth: any;
public avatar: any;
public backlog: Backlog;
public board: Board;
public comment: any;
public component: any;
public customFieldOption: any;
public dashboard: any;
public epic: Epic;
public field: any;
public filter: any;
public group: any;
public groupUserPicker: any;
public groups: any;
public issue: Issue;
public issueLink: any;
public issueLinkType: any;
public issueType: any;
public jql: any;
public labels: any;
public licenseRole: any;
public licenseValidator: any;
public myPermissions: any;
public myPreferences: any;
public myself: any;
public password: any;
public permissions: any;
public permissionScheme: any;
public priority: any;
public project: any;
public projectCategory: any;
public projectValidate: any;
public reindex: any;
public resolution: any;
public roles: any;
public screens: any;
public search: any;
public securityLevel: any;
public serverInfo: any;
public settings: any;
public sprint: any;
public status: any;
public statusCategory: any;
public user: any;
public version: any;
public webhook: any;
public workflow: any;
public workflowScheme: any;
public worklog: any;
public buildAgileURL(path: string, forcedVersion?: number | string): string;
public buildAuthURL(path: string, forcedVersion?: number | string): string;
public buildURL(path: string, forcedVersion?: number | string): string;
public buildWebhookURL(path: string, forcedVersion?: number | string): string;
public makeRequest(options: { [key: string]: any }, callback?: any, successString?: string): any;
}
declare namespace JiraClient {
namespace oauth_util {
function getAuthorizeURL(config: any, callback: any): any;
function swapRequestTokenWithAccessToken(config: any, callback: any): void;
}
}