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