backlog-js 0.12.6 → 0.13.0
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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -4
- package/dist/backlog.js +83 -70
- package/dist/backlog.min.js +1 -1
- package/dist/types/backlog.d.ts +143 -143
- package/dist/types/entity.d.ts +495 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/option.d.ts +16 -60
- package/dist/types/types.d.ts +59 -0
- package/package.json +3 -3
package/dist/types/entity.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { PassThrough } from 'stream';
|
|
3
|
+
import * as Types from "./types";
|
|
3
4
|
export declare namespace File {
|
|
4
5
|
type FileData = NodeFileData | BrowserFileData;
|
|
5
6
|
interface NodeFileData {
|
|
@@ -12,6 +13,23 @@ export declare namespace File {
|
|
|
12
13
|
url: string;
|
|
13
14
|
blob?: () => Promise<Blob>;
|
|
14
15
|
}
|
|
16
|
+
interface FileInfo {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
size: number;
|
|
20
|
+
}
|
|
21
|
+
interface IssueFileInfo extends FileInfo {
|
|
22
|
+
createdUser: User.User;
|
|
23
|
+
created: string;
|
|
24
|
+
}
|
|
25
|
+
interface WikiFileInfo extends FileInfo {
|
|
26
|
+
createdUser: User.User;
|
|
27
|
+
created: string;
|
|
28
|
+
}
|
|
29
|
+
interface PullRequestFileInfo extends FileInfo {
|
|
30
|
+
createdUser: User.User;
|
|
31
|
+
created: string;
|
|
32
|
+
}
|
|
15
33
|
}
|
|
16
34
|
export declare namespace OAuth2 {
|
|
17
35
|
interface AccessToken {
|
|
@@ -21,3 +39,480 @@ export declare namespace OAuth2 {
|
|
|
21
39
|
refresh_token: string;
|
|
22
40
|
}
|
|
23
41
|
}
|
|
42
|
+
export declare namespace Space {
|
|
43
|
+
interface Space {
|
|
44
|
+
spaceKey: string;
|
|
45
|
+
name: string;
|
|
46
|
+
ownerId: number;
|
|
47
|
+
lang: string;
|
|
48
|
+
timezone: string;
|
|
49
|
+
reportSendTime: string;
|
|
50
|
+
textFormattingRule: Types.TextFormattingRule;
|
|
51
|
+
created: string;
|
|
52
|
+
updated: string;
|
|
53
|
+
}
|
|
54
|
+
interface Notification {
|
|
55
|
+
content: string;
|
|
56
|
+
updated: string;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export declare namespace Project {
|
|
60
|
+
interface Project {
|
|
61
|
+
id: number;
|
|
62
|
+
projectKey: string;
|
|
63
|
+
name: string;
|
|
64
|
+
chartEnabled: boolean;
|
|
65
|
+
useResolvedForChart: boolean;
|
|
66
|
+
subtaskingEnabled: boolean;
|
|
67
|
+
projectLeaderCanEditProjectLeader: boolean;
|
|
68
|
+
useWiki: boolean;
|
|
69
|
+
useFileSharing: boolean;
|
|
70
|
+
useWikiTreeView: boolean;
|
|
71
|
+
useOriginalImageSizeAtWiki: boolean;
|
|
72
|
+
useSubversion: boolean;
|
|
73
|
+
useGit: boolean;
|
|
74
|
+
textFormattingRule: Types.TextFormattingRule;
|
|
75
|
+
archived: boolean;
|
|
76
|
+
displayOrder: number;
|
|
77
|
+
useDevAttributes: boolean;
|
|
78
|
+
}
|
|
79
|
+
interface RecentlyViewedProject {
|
|
80
|
+
project: Project;
|
|
81
|
+
updated: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated
|
|
85
|
+
*/
|
|
86
|
+
interface Status {
|
|
87
|
+
id: number;
|
|
88
|
+
name: string;
|
|
89
|
+
}
|
|
90
|
+
interface ProjectStatus {
|
|
91
|
+
id: number;
|
|
92
|
+
projectId: number;
|
|
93
|
+
name: string;
|
|
94
|
+
color: Types.ProjectStatusColor;
|
|
95
|
+
displayOrder: number;
|
|
96
|
+
}
|
|
97
|
+
interface Category {
|
|
98
|
+
id: number;
|
|
99
|
+
projectId: number;
|
|
100
|
+
name: string;
|
|
101
|
+
displayOrder: number;
|
|
102
|
+
}
|
|
103
|
+
interface Version {
|
|
104
|
+
id: number;
|
|
105
|
+
projectId: number;
|
|
106
|
+
name: string;
|
|
107
|
+
description?: string;
|
|
108
|
+
startDate?: string;
|
|
109
|
+
releaseDueDate?: string;
|
|
110
|
+
archived: boolean;
|
|
111
|
+
displayOrder: number;
|
|
112
|
+
}
|
|
113
|
+
interface CustomField {
|
|
114
|
+
id: number;
|
|
115
|
+
projectId: number;
|
|
116
|
+
typeId: Types.CustomFieldType;
|
|
117
|
+
name: string;
|
|
118
|
+
description: string;
|
|
119
|
+
required: boolean;
|
|
120
|
+
applicableIssueTypes: number[];
|
|
121
|
+
[key: string]: any;
|
|
122
|
+
}
|
|
123
|
+
interface SharedFile {
|
|
124
|
+
id: number;
|
|
125
|
+
projectId: number;
|
|
126
|
+
type: string;
|
|
127
|
+
dir: string;
|
|
128
|
+
name: string;
|
|
129
|
+
size: number;
|
|
130
|
+
createdUser: User.User;
|
|
131
|
+
created: string;
|
|
132
|
+
updatedUser: User.User;
|
|
133
|
+
updated: string;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export declare namespace User {
|
|
137
|
+
interface User {
|
|
138
|
+
id: number;
|
|
139
|
+
userId: string;
|
|
140
|
+
name: string;
|
|
141
|
+
roleType: Types.RoleType;
|
|
142
|
+
lang: Types.Language;
|
|
143
|
+
mailAddress: string;
|
|
144
|
+
lastLoginTime: string;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
export declare namespace Activity {
|
|
148
|
+
interface Activity {
|
|
149
|
+
id: number;
|
|
150
|
+
project: Project.Project;
|
|
151
|
+
type: Types.ActivityType;
|
|
152
|
+
content: any;
|
|
153
|
+
notifications: [];
|
|
154
|
+
createdUser: User.User;
|
|
155
|
+
created: string;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export declare namespace DiskUsage {
|
|
159
|
+
interface DiskUsage {
|
|
160
|
+
issue: number;
|
|
161
|
+
wiki: number;
|
|
162
|
+
file: number;
|
|
163
|
+
subversion: number;
|
|
164
|
+
git: number;
|
|
165
|
+
gitLFS: number;
|
|
166
|
+
}
|
|
167
|
+
interface ProjectDiskUsage extends DiskUsage {
|
|
168
|
+
projectId: number;
|
|
169
|
+
}
|
|
170
|
+
interface SpaceDiskUsage extends DiskUsage {
|
|
171
|
+
capacity: number;
|
|
172
|
+
details: ProjectDiskUsage[];
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
export declare namespace CommentNotification {
|
|
176
|
+
interface CommentNotification {
|
|
177
|
+
id: number;
|
|
178
|
+
alreadyRead: boolean;
|
|
179
|
+
reason: number;
|
|
180
|
+
user: User.User;
|
|
181
|
+
resourceAlreadyRead: boolean;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export declare namespace Issue {
|
|
185
|
+
interface IssueType {
|
|
186
|
+
id: number;
|
|
187
|
+
projectId: number;
|
|
188
|
+
name: string;
|
|
189
|
+
color: Types.IssueTypeColor;
|
|
190
|
+
displayOrder: number;
|
|
191
|
+
templateSummary?: string;
|
|
192
|
+
templateDescription?: string;
|
|
193
|
+
}
|
|
194
|
+
interface Priority {
|
|
195
|
+
id: number;
|
|
196
|
+
name: string;
|
|
197
|
+
}
|
|
198
|
+
interface Resolution {
|
|
199
|
+
id: number;
|
|
200
|
+
name: string;
|
|
201
|
+
}
|
|
202
|
+
interface Issue {
|
|
203
|
+
id: number;
|
|
204
|
+
projectId: number;
|
|
205
|
+
issueKey: string;
|
|
206
|
+
keyId: 1;
|
|
207
|
+
issueType: IssueType;
|
|
208
|
+
summary: string;
|
|
209
|
+
description: string;
|
|
210
|
+
resolution: Resolution;
|
|
211
|
+
priority: Priority;
|
|
212
|
+
status: Project.ProjectStatus;
|
|
213
|
+
assignee: User.User;
|
|
214
|
+
category: Project.Category[];
|
|
215
|
+
versions: Project.Version[];
|
|
216
|
+
milestone: Project.Version[];
|
|
217
|
+
startDate?: string;
|
|
218
|
+
dueDate?: string;
|
|
219
|
+
estimatedHours?: number;
|
|
220
|
+
actualHours?: number;
|
|
221
|
+
parentIssueId?: number;
|
|
222
|
+
createdUser: User.User;
|
|
223
|
+
created: string;
|
|
224
|
+
updatedUser: User.User;
|
|
225
|
+
updated: string;
|
|
226
|
+
customFields: Project.CustomField[];
|
|
227
|
+
attachments: File.IssueFileInfo[];
|
|
228
|
+
sharedFiles: Project.SharedFile[];
|
|
229
|
+
stars: Star.Star[];
|
|
230
|
+
}
|
|
231
|
+
interface RecentlyViewedIssue {
|
|
232
|
+
issue: Issue;
|
|
233
|
+
updated: string;
|
|
234
|
+
}
|
|
235
|
+
interface IssueCount {
|
|
236
|
+
count: number;
|
|
237
|
+
}
|
|
238
|
+
interface IssueCommentCount {
|
|
239
|
+
count: number;
|
|
240
|
+
}
|
|
241
|
+
interface Comment {
|
|
242
|
+
id: number;
|
|
243
|
+
projectId: number;
|
|
244
|
+
issueId: number;
|
|
245
|
+
content: string;
|
|
246
|
+
changeLog: ChangeLog.IssueChangeLog[];
|
|
247
|
+
createdUser: User.User;
|
|
248
|
+
created: string;
|
|
249
|
+
updated: string;
|
|
250
|
+
stars: Star.Star[];
|
|
251
|
+
notifications: CommentNotification.CommentNotification[];
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
export declare namespace Star {
|
|
255
|
+
interface Star {
|
|
256
|
+
id: number;
|
|
257
|
+
comment?: string;
|
|
258
|
+
url: string;
|
|
259
|
+
title: string;
|
|
260
|
+
presenter: User.User;
|
|
261
|
+
created: string;
|
|
262
|
+
}
|
|
263
|
+
interface StarCount {
|
|
264
|
+
count: number;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
export declare namespace Wiki {
|
|
268
|
+
interface Tag {
|
|
269
|
+
id: number;
|
|
270
|
+
name: string;
|
|
271
|
+
}
|
|
272
|
+
interface History {
|
|
273
|
+
pageId: number;
|
|
274
|
+
version: number;
|
|
275
|
+
name: string;
|
|
276
|
+
content: string;
|
|
277
|
+
createdUser: User.User;
|
|
278
|
+
created: string;
|
|
279
|
+
}
|
|
280
|
+
interface WikiListItem {
|
|
281
|
+
id: number;
|
|
282
|
+
projectId: number;
|
|
283
|
+
name: string;
|
|
284
|
+
tags: Tag[];
|
|
285
|
+
createdUser: User.User;
|
|
286
|
+
created: string;
|
|
287
|
+
updatedUser: User.User;
|
|
288
|
+
updated: string;
|
|
289
|
+
}
|
|
290
|
+
interface Wiki {
|
|
291
|
+
id: number;
|
|
292
|
+
projectId: number;
|
|
293
|
+
name: string;
|
|
294
|
+
content: string;
|
|
295
|
+
tags: Tag[];
|
|
296
|
+
attachments: File.WikiFileInfo[];
|
|
297
|
+
sharedFiles: Project.SharedFile[];
|
|
298
|
+
stars: Star.Star[];
|
|
299
|
+
createdUser: User.User;
|
|
300
|
+
created: string;
|
|
301
|
+
updatedUser: User.User;
|
|
302
|
+
updated: string;
|
|
303
|
+
}
|
|
304
|
+
interface RecentlyViewedWiki {
|
|
305
|
+
page: WikiListItem;
|
|
306
|
+
updated: string;
|
|
307
|
+
}
|
|
308
|
+
interface WikiCount {
|
|
309
|
+
count: number;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
export declare namespace PullRequest {
|
|
313
|
+
interface Status {
|
|
314
|
+
id: number;
|
|
315
|
+
name: string;
|
|
316
|
+
}
|
|
317
|
+
interface PullRequest {
|
|
318
|
+
id: number;
|
|
319
|
+
projectId: number;
|
|
320
|
+
repositoryId: number;
|
|
321
|
+
number: number;
|
|
322
|
+
summary: string;
|
|
323
|
+
description: string;
|
|
324
|
+
base: string;
|
|
325
|
+
branch: string;
|
|
326
|
+
status: Status;
|
|
327
|
+
assignee: User.User;
|
|
328
|
+
issue: Issue.Issue;
|
|
329
|
+
baseCommit?: string;
|
|
330
|
+
branchCommit?: string;
|
|
331
|
+
mergeCommit?: string;
|
|
332
|
+
closeAt?: string;
|
|
333
|
+
mergeAt?: string;
|
|
334
|
+
createdUser: User.User;
|
|
335
|
+
created: string;
|
|
336
|
+
updatedUser: User.User;
|
|
337
|
+
updated: string;
|
|
338
|
+
attachments: File.PullRequestFileInfo[];
|
|
339
|
+
stars: Star.Star[];
|
|
340
|
+
}
|
|
341
|
+
interface Comment {
|
|
342
|
+
id: number;
|
|
343
|
+
content: string;
|
|
344
|
+
changeLog: ChangeLog.PullRequestChangeLog[];
|
|
345
|
+
createdUser: User.User;
|
|
346
|
+
created: string;
|
|
347
|
+
updated: string;
|
|
348
|
+
stars: Star.Star[];
|
|
349
|
+
notifications: CommentNotification.CommentNotification[];
|
|
350
|
+
}
|
|
351
|
+
interface PullRequestCount {
|
|
352
|
+
count: number;
|
|
353
|
+
}
|
|
354
|
+
interface PullRequestCommentCount {
|
|
355
|
+
count: number;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
export declare namespace ChangeLog {
|
|
359
|
+
interface ChangeLog {
|
|
360
|
+
field: string;
|
|
361
|
+
newValue: string;
|
|
362
|
+
originalValue: string;
|
|
363
|
+
}
|
|
364
|
+
interface AttachmentInfo {
|
|
365
|
+
id: number;
|
|
366
|
+
type: string;
|
|
367
|
+
}
|
|
368
|
+
interface AttributeInfo {
|
|
369
|
+
id: number;
|
|
370
|
+
typeId: number;
|
|
371
|
+
}
|
|
372
|
+
interface NotificationInfo {
|
|
373
|
+
type: string;
|
|
374
|
+
}
|
|
375
|
+
interface IssueChangeLog extends ChangeLog {
|
|
376
|
+
attachmentInfo: AttachmentInfo;
|
|
377
|
+
attributeInfo: AttributeInfo;
|
|
378
|
+
notificationInfo: NotificationInfo;
|
|
379
|
+
}
|
|
380
|
+
type PullRequestChangeLog = ChangeLog;
|
|
381
|
+
}
|
|
382
|
+
export declare namespace Git {
|
|
383
|
+
interface GitRepository {
|
|
384
|
+
id: number;
|
|
385
|
+
projectId: number;
|
|
386
|
+
name: string;
|
|
387
|
+
description: string;
|
|
388
|
+
hookUrl?: string;
|
|
389
|
+
httpUrl: string;
|
|
390
|
+
sshUrl: string;
|
|
391
|
+
displayOrder: number;
|
|
392
|
+
pushedAt?: string;
|
|
393
|
+
createdUser: User.User;
|
|
394
|
+
created: string;
|
|
395
|
+
updatedUser: User.User;
|
|
396
|
+
updated: string;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
export declare namespace WatchingList {
|
|
400
|
+
interface WatchingListItem {
|
|
401
|
+
id: number;
|
|
402
|
+
resourceAlreadyRead: boolean;
|
|
403
|
+
note: string;
|
|
404
|
+
type: string;
|
|
405
|
+
issue: Issue.Issue;
|
|
406
|
+
lastContentUpdated: string;
|
|
407
|
+
created: string;
|
|
408
|
+
updated: string;
|
|
409
|
+
}
|
|
410
|
+
interface WatchingListCount {
|
|
411
|
+
count: number;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* @deprecated
|
|
416
|
+
*/
|
|
417
|
+
export declare namespace Group {
|
|
418
|
+
/**
|
|
419
|
+
* @deprecated
|
|
420
|
+
*/
|
|
421
|
+
type Group = Team.Team;
|
|
422
|
+
}
|
|
423
|
+
export declare namespace Team {
|
|
424
|
+
interface Team {
|
|
425
|
+
id: number;
|
|
426
|
+
name: string;
|
|
427
|
+
members: User.User[];
|
|
428
|
+
displayOrder?: number;
|
|
429
|
+
createdUser: User.User;
|
|
430
|
+
created: string;
|
|
431
|
+
updatedUser: User.User;
|
|
432
|
+
updated: string;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
export declare namespace Notification {
|
|
436
|
+
interface Notification {
|
|
437
|
+
id: number;
|
|
438
|
+
alreadyRead: boolean;
|
|
439
|
+
reason: number;
|
|
440
|
+
resourceAlreadyRead: boolean;
|
|
441
|
+
project: Project.Project;
|
|
442
|
+
issue?: Issue.Issue;
|
|
443
|
+
comment?: Issue.Comment;
|
|
444
|
+
pullRequest?: PullRequest.PullRequest;
|
|
445
|
+
pullRequestComment?: PullRequest.Comment;
|
|
446
|
+
sender: User.User;
|
|
447
|
+
created: string;
|
|
448
|
+
}
|
|
449
|
+
interface NotificationCount {
|
|
450
|
+
count: number;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
export declare namespace Webhook {
|
|
454
|
+
interface Webhook {
|
|
455
|
+
id: number;
|
|
456
|
+
name: string;
|
|
457
|
+
description: string;
|
|
458
|
+
hookUrl: string;
|
|
459
|
+
allEvent: boolean;
|
|
460
|
+
activityTypeIds: Types.WebhookActivityId[];
|
|
461
|
+
createdUser: User.User;
|
|
462
|
+
created: string;
|
|
463
|
+
updatedUser: User.User;
|
|
464
|
+
updated: string;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
export declare namespace License {
|
|
468
|
+
interface License {
|
|
469
|
+
active: boolean;
|
|
470
|
+
attachmentLimit: number;
|
|
471
|
+
attachmentLimitPerFile: number;
|
|
472
|
+
attachmentNumLimit: number;
|
|
473
|
+
attribute: boolean;
|
|
474
|
+
attributeLimit: number;
|
|
475
|
+
burndown: boolean;
|
|
476
|
+
commentLimit: number;
|
|
477
|
+
componentLimit: number;
|
|
478
|
+
fileSharing: boolean;
|
|
479
|
+
gantt: boolean;
|
|
480
|
+
git: boolean;
|
|
481
|
+
issueLimit: number;
|
|
482
|
+
licenceTypeId: number;
|
|
483
|
+
limitDate: string;
|
|
484
|
+
nulabAccount: boolean;
|
|
485
|
+
parentChildIssue: boolean;
|
|
486
|
+
postIssueByMail: boolean;
|
|
487
|
+
projectLimit: number;
|
|
488
|
+
pullRequestAttachmentLimitPerFile: number;
|
|
489
|
+
pullRequestAttachmentNumLimit: number;
|
|
490
|
+
remoteAddress: boolean;
|
|
491
|
+
remoteAddressLimit: number;
|
|
492
|
+
startedOn: string;
|
|
493
|
+
storageLimit: number;
|
|
494
|
+
subversion: boolean;
|
|
495
|
+
subversionExternal: boolean;
|
|
496
|
+
userLimit: number;
|
|
497
|
+
versionLimit: number;
|
|
498
|
+
wikiAttachment: boolean;
|
|
499
|
+
wikiAttachmentLimitPerFile: number;
|
|
500
|
+
wikiAttachmentNumLimit: number;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
export declare namespace RateLimit {
|
|
504
|
+
interface RateLimit {
|
|
505
|
+
rateLimit: ApiRateLimits;
|
|
506
|
+
}
|
|
507
|
+
interface ApiRateLimits {
|
|
508
|
+
read: ApiRateLimit;
|
|
509
|
+
update: ApiRateLimit;
|
|
510
|
+
search: ApiRateLimit;
|
|
511
|
+
icon: ApiRateLimit;
|
|
512
|
+
}
|
|
513
|
+
interface ApiRateLimit {
|
|
514
|
+
limit: number;
|
|
515
|
+
remaining: number;
|
|
516
|
+
reset: number;
|
|
517
|
+
}
|
|
518
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import Backlog from './backlog';
|
|
|
2
2
|
import OAuth2 from './oauth2';
|
|
3
3
|
import * as Option from './option';
|
|
4
4
|
import * as Entity from './entity';
|
|
5
|
+
import * as Types from './types';
|
|
5
6
|
import * as Error from './error';
|
|
6
|
-
export { Backlog, OAuth2, Option, Entity, Error };
|
|
7
|
+
export { Backlog, OAuth2, Option, Entity, Types, Error };
|
package/dist/types/option.d.ts
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
|
+
import * as Types from "./types";
|
|
1
2
|
export declare type Order = "asc" | "desc";
|
|
2
|
-
export declare enum ActivityType {
|
|
3
|
-
Undefined = -1,
|
|
4
|
-
IssueCreated = 1,
|
|
5
|
-
IssueUpdated = 2,
|
|
6
|
-
IssueCommented = 3,
|
|
7
|
-
IssueDeleted = 4,
|
|
8
|
-
WikiCreated = 5,
|
|
9
|
-
WikiUpdated = 6,
|
|
10
|
-
WikiDeleted = 7,
|
|
11
|
-
FileAdded = 8,
|
|
12
|
-
FileUpdated = 9,
|
|
13
|
-
FileDeleted = 10,
|
|
14
|
-
SvnCommitted = 11,
|
|
15
|
-
GitPushed = 12,
|
|
16
|
-
GitRepositoryCreated = 13,
|
|
17
|
-
IssueMultiUpdated = 14,
|
|
18
|
-
ProjectUserAdded = 15,
|
|
19
|
-
ProjectUserRemoved = 16,
|
|
20
|
-
NotifyAdded = 17,
|
|
21
|
-
PullRequestAdded = 18,
|
|
22
|
-
PullRequestUpdated = 19,
|
|
23
|
-
PullRequestCommented = 20,
|
|
24
|
-
PullRequestMerged = 21
|
|
25
|
-
}
|
|
26
3
|
export declare namespace Notification {
|
|
27
4
|
interface GetNotificationsParams {
|
|
28
5
|
minId?: number;
|
|
@@ -37,7 +14,7 @@ export declare namespace Notification {
|
|
|
37
14
|
}
|
|
38
15
|
export declare namespace Space {
|
|
39
16
|
interface GetActivitiesParams {
|
|
40
|
-
activityTypeId?: ActivityType[];
|
|
17
|
+
activityTypeId?: Types.ActivityType[];
|
|
41
18
|
minId?: number;
|
|
42
19
|
maxId?: number;
|
|
43
20
|
count?: number;
|
|
@@ -53,24 +30,16 @@ export declare namespace User {
|
|
|
53
30
|
password: string;
|
|
54
31
|
name: string;
|
|
55
32
|
mailAddress: string;
|
|
56
|
-
roleType: RoleType;
|
|
33
|
+
roleType: Types.RoleType;
|
|
57
34
|
}
|
|
58
35
|
interface PatchUserParams {
|
|
59
36
|
password?: string;
|
|
60
37
|
name?: string;
|
|
61
38
|
mailAddress?: string;
|
|
62
|
-
roleType?: RoleType;
|
|
63
|
-
}
|
|
64
|
-
enum RoleType {
|
|
65
|
-
Admin = 1,
|
|
66
|
-
User = 2,
|
|
67
|
-
Reporter = 3,
|
|
68
|
-
Viewer = 4,
|
|
69
|
-
GuestReporter = 5,
|
|
70
|
-
GuestViewer = 6
|
|
39
|
+
roleType?: Types.RoleType;
|
|
71
40
|
}
|
|
72
41
|
interface GetUserActivitiesParams {
|
|
73
|
-
activityTypeId?: ActivityType[];
|
|
42
|
+
activityTypeId?: Types.ActivityType[];
|
|
74
43
|
minId?: number;
|
|
75
44
|
maxId?: number;
|
|
76
45
|
count?: number;
|
|
@@ -119,14 +88,13 @@ export declare namespace Team {
|
|
|
119
88
|
}
|
|
120
89
|
}
|
|
121
90
|
export declare namespace Project {
|
|
122
|
-
type TextFormattingRule = "backlog" | "markdown";
|
|
123
91
|
interface PostProjectParams {
|
|
124
92
|
name: string;
|
|
125
93
|
key: string;
|
|
126
94
|
chartEnabled: boolean;
|
|
127
95
|
projectLeaderCanEditProjectLeader?: boolean;
|
|
128
96
|
subtaskingEnabled: boolean;
|
|
129
|
-
textFormattingRule: TextFormattingRule;
|
|
97
|
+
textFormattingRule: Types.TextFormattingRule;
|
|
130
98
|
}
|
|
131
99
|
interface PatchProjectParams {
|
|
132
100
|
name?: string;
|
|
@@ -134,7 +102,7 @@ export declare namespace Project {
|
|
|
134
102
|
chartEnabled?: boolean;
|
|
135
103
|
subtaskingEnabled?: boolean;
|
|
136
104
|
projectLeaderCanEditProjectLeader?: boolean;
|
|
137
|
-
textFormattingRule?: TextFormattingRule;
|
|
105
|
+
textFormattingRule?: Types.TextFormattingRule;
|
|
138
106
|
archived?: boolean;
|
|
139
107
|
}
|
|
140
108
|
interface GetProjectsParams {
|
|
@@ -150,14 +118,13 @@ export declare namespace Project {
|
|
|
150
118
|
interface DeleteProjectAdministrators {
|
|
151
119
|
userId: number;
|
|
152
120
|
}
|
|
153
|
-
type IssueTypeColor = "#e30000" | "#990000" | "#934981" | "#814fbc" | "#2779ca" | "#007e9a" | "#7ea800" | "#ff9200" | "#ff3265" | "#666665";
|
|
154
121
|
interface PostIssueTypeParams {
|
|
155
122
|
name: string;
|
|
156
|
-
color: IssueTypeColor;
|
|
123
|
+
color: Types.IssueTypeColor;
|
|
157
124
|
}
|
|
158
125
|
interface PatchIssueTypeParams {
|
|
159
126
|
name?: string;
|
|
160
|
-
color?: IssueTypeColor;
|
|
127
|
+
color?: Types.IssueTypeColor;
|
|
161
128
|
}
|
|
162
129
|
interface DeleteIssueTypeParams {
|
|
163
130
|
substituteIssueTypeId: number;
|
|
@@ -170,9 +137,9 @@ export declare namespace Project {
|
|
|
170
137
|
}
|
|
171
138
|
interface PostVersionsParams {
|
|
172
139
|
name: string;
|
|
173
|
-
description
|
|
174
|
-
startDate
|
|
175
|
-
releaseDueDate
|
|
140
|
+
description?: string;
|
|
141
|
+
startDate?: string;
|
|
142
|
+
releaseDueDate?: string;
|
|
176
143
|
}
|
|
177
144
|
interface PatchVersionsParams {
|
|
178
145
|
name: string;
|
|
@@ -182,7 +149,7 @@ export declare namespace Project {
|
|
|
182
149
|
archived?: boolean;
|
|
183
150
|
}
|
|
184
151
|
interface PostCustomFieldParams {
|
|
185
|
-
typeId:
|
|
152
|
+
typeId: Types.CustomFieldType;
|
|
186
153
|
name: string;
|
|
187
154
|
applicableIssueTypes?: number[];
|
|
188
155
|
description?: string;
|
|
@@ -246,7 +213,7 @@ export declare namespace Project {
|
|
|
246
213
|
description?: string;
|
|
247
214
|
hookUrl?: string;
|
|
248
215
|
allEvent?: boolean;
|
|
249
|
-
activityTypeIds?:
|
|
216
|
+
activityTypeIds?: Types.WebhookActivityId[];
|
|
250
217
|
}
|
|
251
218
|
interface PatchWebhookParams {
|
|
252
219
|
name?: string;
|
|
@@ -255,16 +222,6 @@ export declare namespace Project {
|
|
|
255
222
|
allEvent?: boolean;
|
|
256
223
|
activityTypeIds?: number[];
|
|
257
224
|
}
|
|
258
|
-
enum FieldType {
|
|
259
|
-
Text = 1,
|
|
260
|
-
TextArea = 2,
|
|
261
|
-
Numeric = 3,
|
|
262
|
-
Date = 4,
|
|
263
|
-
SingleList = 5,
|
|
264
|
-
MultipleList = 6,
|
|
265
|
-
CheckBox = 7,
|
|
266
|
-
Radio = 8
|
|
267
|
-
}
|
|
268
225
|
interface PostStarParams {
|
|
269
226
|
issueId?: number;
|
|
270
227
|
commentId?: number;
|
|
@@ -272,14 +229,13 @@ export declare namespace Project {
|
|
|
272
229
|
pullRequestId?: number;
|
|
273
230
|
pullRequestCommentId?: number;
|
|
274
231
|
}
|
|
275
|
-
type ProjectStatusColor = "#ea2c00" | "#e87758" | "#e07b9a" | "#868cb7" | "#3b9dbd" | "#4caf93" | "#b0be3c" | "#eda62a" | "#f42858" | "#393939";
|
|
276
232
|
interface PostStatusParams {
|
|
277
233
|
name: string;
|
|
278
|
-
color: ProjectStatusColor;
|
|
234
|
+
color: Types.ProjectStatusColor;
|
|
279
235
|
}
|
|
280
236
|
interface PatchStatusParams {
|
|
281
237
|
name?: string;
|
|
282
|
-
color?: ProjectStatusColor;
|
|
238
|
+
color?: Types.ProjectStatusColor;
|
|
283
239
|
}
|
|
284
240
|
}
|
|
285
241
|
export declare namespace Issue {
|