backlog-js 0.12.4 → 0.12.5

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/dist/backlog.js CHANGED
@@ -17,471 +17,934 @@ var __extends = (this && this.__extends) || (function () {
17
17
  })();
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var request_1 = require("./request");
20
- var Backlog = (function (_super) {
20
+ var Backlog = /** @class */ (function (_super) {
21
21
  __extends(Backlog, _super);
22
22
  function Backlog(configure) {
23
23
  return _super.call(this, configure) || this;
24
24
  }
25
+ /**
26
+ * https://developer.nulab.com/docs/backlog/api/2/get-space/
27
+ */
25
28
  Backlog.prototype.getSpace = function () {
26
29
  return this.get('space');
27
30
  };
31
+ /**
32
+ * https://developer.nulab.com/docs/backlog/api/2/get-recent-updates/
33
+ */
28
34
  Backlog.prototype.getSpaceActivities = function (params) {
29
35
  return this.get('space/activities', params);
30
36
  };
37
+ /**
38
+ * https://developer.nulab.com/docs/backlog/api/2/get-space-logo/
39
+ */
31
40
  Backlog.prototype.getSpaceIcon = function () {
32
41
  return this.download('space/image');
33
42
  };
43
+ /**
44
+ * https://developer.nulab.com/docs/backlog/api/2/get-space-notification/
45
+ */
34
46
  Backlog.prototype.getSpaceNotification = function () {
35
47
  return this.get('space/notification');
36
48
  };
49
+ /**
50
+ * https://developer.nulab.com/docs/backlog/api/2/update-space-notification/
51
+ */
37
52
  Backlog.prototype.putSpaceNotification = function (params) {
38
53
  return this.put('space/notification', params);
39
54
  };
55
+ /**
56
+ * https://developer.nulab.com/docs/backlog/api/2/get-space-disk-usage/
57
+ */
40
58
  Backlog.prototype.getSpaceDiskUsage = function () {
41
59
  return this.get('space/diskUsage');
42
60
  };
61
+ /**
62
+ * https://developer.nulab.com/docs/backlog/api/2/post-attachment-file/
63
+ */
43
64
  Backlog.prototype.postSpaceAttachment = function (form) {
44
65
  return this.upload("space/attachment", form);
45
66
  };
67
+ /**
68
+ * https://developer.nulab.com/docs/backlog/api/2/get-user-list/
69
+ */
46
70
  Backlog.prototype.getUsers = function () {
47
71
  return this.get("users");
48
72
  };
73
+ /**
74
+ * https://developer.nulab.com/docs/backlog/api/2/get-user/
75
+ */
49
76
  Backlog.prototype.getUser = function (userId) {
50
77
  return this.get("users/" + userId);
51
78
  };
79
+ /**
80
+ * https://developer.nulab.com/docs/backlog/api/2/add-user/
81
+ */
52
82
  Backlog.prototype.postUser = function (params) {
53
83
  return this.post("users", params);
54
84
  };
85
+ /**
86
+ * https://developer.nulab.com/docs/backlog/api/2/update-user/
87
+ */
55
88
  Backlog.prototype.patchUser = function (userId, params) {
56
89
  return this.patch("users/" + userId, params);
57
90
  };
91
+ /**
92
+ * https://developer.nulab.com/docs/backlog/api/2/delete-user/
93
+ */
58
94
  Backlog.prototype.deleteUser = function (userId) {
59
95
  return this.delete("users/" + userId);
60
96
  };
97
+ /**
98
+ * https://developer.nulab.com/docs/backlog/api/2/get-own-user/
99
+ */
61
100
  Backlog.prototype.getMyself = function () {
62
101
  return this.get('users/myself');
63
102
  };
103
+ /**
104
+ * https://developer.nulab.com/docs/backlog/api/2/get-user-icon/
105
+ */
64
106
  Backlog.prototype.getUserIcon = function (userId) {
65
107
  return this.download("users/" + userId + "/icon");
66
108
  };
109
+ /**
110
+ * https://developer.nulab.com/docs/backlog/api/2/get-user-recent-updates/
111
+ */
67
112
  Backlog.prototype.getUserActivities = function (userId, params) {
68
113
  return this.get("users/" + userId + "/activities", params);
69
114
  };
115
+ /**
116
+ * https://developer.nulab.com/docs/backlog/api/2/get-received-star-list/
117
+ */
70
118
  Backlog.prototype.getUserStars = function (userId, params) {
71
119
  return this.get("users/" + userId + "/stars", params);
72
120
  };
121
+ /**
122
+ * https://developer.nulab.com/docs/backlog/api/2/count-user-received-stars/
123
+ */
73
124
  Backlog.prototype.getUserStarsCount = function (userId, params) {
74
125
  return this.get("users/" + userId + "/stars/count", params);
75
126
  };
127
+ /**
128
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-recently-viewed-issues/
129
+ */
76
130
  Backlog.prototype.getRecentlyViewedIssues = function (params) {
77
131
  return this.get('users/myself/recentlyViewedIssues', params);
78
132
  };
133
+ /**
134
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-recently-viewed-projects/
135
+ */
79
136
  Backlog.prototype.getRecentlyViewedProjects = function (params) {
80
137
  return this.get('users/myself/recentlyViewedProjects', params);
81
138
  };
139
+ /**
140
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-recently-viewed-wikis/
141
+ */
82
142
  Backlog.prototype.getRecentlyViewedWikis = function (params) {
83
143
  return this.get('users/myself/recentlyViewedWikis', params);
84
144
  };
145
+ /**
146
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-groups/
147
+ * @deprecated
148
+ */
85
149
  Backlog.prototype.getGroups = function (params) {
86
150
  console.warn("Deprecated: Use getTeams instead.");
87
151
  return this.get('groups', params);
88
152
  };
153
+ /**
154
+ * https://developer.nulab.com/docs/backlog/api/2/add-group/
155
+ * @deprecated
156
+ */
89
157
  Backlog.prototype.postGroups = function (params) {
90
158
  console.warn("Deprecated: Use postTeam instead.");
91
159
  return this.post('groups', params);
92
160
  };
161
+ /**
162
+ * https://developer.nulab.com/docs/backlog/api/2/get-group/
163
+ * @deprecated
164
+ */
93
165
  Backlog.prototype.getGroup = function (groupId) {
94
166
  console.warn("Deprecated: Use getTeam instead.");
95
167
  return this.get("groups/" + groupId);
96
168
  };
169
+ /**
170
+ * https://developer.nulab.com/docs/backlog/api/2/update-group/
171
+ * @deprecated
172
+ */
97
173
  Backlog.prototype.patchGroup = function (groupId, params) {
98
174
  console.warn("Deprecated: Use patchTeam instead.");
99
175
  return this.patch("groups/" + groupId, params);
100
176
  };
177
+ /**
178
+ * https://developer.nulab.com/docs/backlog/api/2/delete-group/
179
+ * @deprecated
180
+ */
101
181
  Backlog.prototype.deleteGroup = function (groupId) {
102
182
  console.warn("Deprecated: Use deleteTeam instead.");
103
183
  return this.delete("groups/" + groupId);
104
184
  };
185
+ /**
186
+ * https://developer.nulab.com/docs/backlog/api/2/get-status-list/
187
+ * @deprecated
188
+ */
105
189
  Backlog.prototype.getStatuses = function () {
106
190
  console.warn("Deprecated: Use getProjectStatuses instead.");
107
191
  return this.get('statuses');
108
192
  };
193
+ /**
194
+ * https://developer.nulab.com/docs/backlog/api/2/get-status-list-of-project/
195
+ */
109
196
  Backlog.prototype.getProjectStatuses = function (projectIdOrKey) {
110
197
  return this.get("projects/" + projectIdOrKey + "/statuses");
111
198
  };
199
+ /**
200
+ * https://developer.nulab.com/docs/backlog/api/2/get-resolution-list/
201
+ */
112
202
  Backlog.prototype.getResolutions = function () {
113
203
  return this.get('resolutions');
114
204
  };
205
+ /**
206
+ * https://developer.nulab.com/docs/backlog/api/2/get-priority-list/
207
+ */
115
208
  Backlog.prototype.getPriorities = function () {
116
209
  return this.get('priorities');
117
210
  };
211
+ /**
212
+ * https://developer.nulab.com/docs/backlog/api/2/get-project-list/
213
+ */
118
214
  Backlog.prototype.getProjects = function (params) {
119
215
  return this.get('projects', params);
120
216
  };
217
+ /**
218
+ * https://developer.nulab.com/docs/backlog/api/2/add-project/
219
+ */
121
220
  Backlog.prototype.postProject = function (params) {
122
221
  return this.post('projects', params);
123
222
  };
223
+ /**
224
+ * https://developer.nulab.com/docs/backlog/api/2/get-project/
225
+ */
124
226
  Backlog.prototype.getProject = function (projectIdOrKey) {
125
227
  return this.get("projects/" + projectIdOrKey);
126
228
  };
229
+ /**
230
+ * https://developer.nulab.com/docs/backlog/api/2/update-project/
231
+ */
127
232
  Backlog.prototype.patchProject = function (projectIdOrKey, params) {
128
233
  return this.patch("projects/" + projectIdOrKey, params);
129
234
  };
235
+ /**
236
+ * https://developer.nulab.com/docs/backlog/api/2/delete-project/
237
+ */
130
238
  Backlog.prototype.deleteProject = function (projectIdOrKey) {
131
239
  return this.delete("projects/" + projectIdOrKey);
132
240
  };
241
+ /**
242
+ * https://developer.nulab.com/docs/backlog/api/2/get-project-icon/
243
+ */
133
244
  Backlog.prototype.getProjectIcon = function (projectIdOrKey) {
134
245
  return this.download("projects/" + projectIdOrKey + "/image");
135
246
  };
247
+ /**
248
+ * https://developer.nulab.com/docs/backlog/api/2/get-project-recent-updates/
249
+ */
136
250
  Backlog.prototype.getProjectActivities = function (projectIdOrKey, params) {
137
251
  return this.get("projects/" + projectIdOrKey + "/activities", params);
138
252
  };
253
+ /**
254
+ * https://developer.nulab.com/docs/backlog/api/2/add-project-user/
255
+ */
139
256
  Backlog.prototype.postProjectUser = function (projectIdOrKey, userId) {
140
257
  return this.post("projects/" + projectIdOrKey + "/users", { userId: userId });
141
258
  };
259
+ /**
260
+ * https://developer.nulab.com/docs/backlog/api/2/get-project-user-list/
261
+ */
142
262
  Backlog.prototype.getProjectUsers = function (projectIdOrKey) {
143
263
  return this.get("projects/" + projectIdOrKey + "/users");
144
264
  };
265
+ /**
266
+ * https://developer.nulab.com/docs/backlog/api/2/delete-project-user/
267
+ */
145
268
  Backlog.prototype.deleteProjectUsers = function (projectIdOrKey, params) {
146
269
  return this.delete("projects/" + projectIdOrKey + "/users", params);
147
270
  };
271
+ /**
272
+ * https://developer.nulab.com/docs/backlog/api/2/add-project-administrator/
273
+ */
148
274
  Backlog.prototype.postProjectAdministrators = function (projectIdOrKey, params) {
149
275
  return this.post("projects/" + projectIdOrKey + "/administrators", params);
150
276
  };
277
+ /**
278
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-project-administrators/
279
+ */
151
280
  Backlog.prototype.getProjectAdministrators = function (projectIdOrKey) {
152
281
  return this.get("projects/" + projectIdOrKey + "/administrators");
153
282
  };
283
+ /**
284
+ * https://developer.nulab.com/docs/backlog/api/2/delete-project-administrator/
285
+ */
154
286
  Backlog.prototype.deleteProjectAdministrators = function (projectIdOrKey, params) {
155
287
  return this.delete("projects/" + projectIdOrKey + "/administrators", params);
156
288
  };
289
+ /**
290
+ * https://developer.nulab.com/docs/backlog/api/2/add-status/
291
+ */
157
292
  Backlog.prototype.postProjectStatus = function (projectIdOrKey, params) {
158
293
  return this.post("projects/" + projectIdOrKey + "/statuses", params);
159
294
  };
295
+ /**
296
+ * https://developer.nulab.com/docs/backlog/api/2/update-status/
297
+ */
160
298
  Backlog.prototype.patchProjectStatus = function (projectIdOrKey, id, params) {
161
299
  return this.patch("projects/" + projectIdOrKey + "/statuses/" + id, params);
162
300
  };
301
+ /**
302
+ * https://developer.nulab.com/docs/backlog/api/2/delete-status/
303
+ */
163
304
  Backlog.prototype.deleteProjectStatus = function (projectIdOrKey, id, substituteStatusId) {
164
305
  return this.delete("projects/" + projectIdOrKey + "/statuses/" + id, { substituteStatusId: substituteStatusId });
165
306
  };
307
+ /**
308
+ * https://developer.nulab.com/docs/backlog/api/2/update-order-of-status/
309
+ */
166
310
  Backlog.prototype.patchProjectStatusOrder = function (projectIdOrKey, statusId) {
167
311
  return this.patch("projects/" + projectIdOrKey + "/statuses/updateDisplayOrder", { statusId: statusId });
168
312
  };
313
+ /**
314
+ * https://developer.nulab.com/docs/backlog/api/2/get-issue-type-list/
315
+ */
169
316
  Backlog.prototype.getIssueTypes = function (projectIdOrKey) {
170
317
  return this.get("projects/" + projectIdOrKey + "/issueTypes");
171
318
  };
319
+ /**
320
+ * https://developer.nulab.com/docs/backlog/api/2/add-issue-type/
321
+ */
172
322
  Backlog.prototype.postIssueType = function (projectIdOrKey, params) {
173
323
  return this.post("projects/" + projectIdOrKey + "/issueTypes", params);
174
324
  };
325
+ /**
326
+ * https://developer.nulab.com/docs/backlog/api/2/update-issue-type/
327
+ */
175
328
  Backlog.prototype.patchIssueType = function (projectIdOrKey, id, params) {
176
329
  return this.patch("projects/" + projectIdOrKey + "/issueTypes/" + id, params);
177
330
  };
331
+ /**
332
+ * https://developer.nulab.com/docs/backlog/api/2/delete-issue-type/
333
+ */
178
334
  Backlog.prototype.deleteIssueType = function (projectIdOrKey, id, params) {
179
335
  return this.delete("projects/" + projectIdOrKey + "/issueTypes/" + id, params);
180
336
  };
337
+ /**
338
+ * https://developer.nulab.com/docs/backlog/api/2/get-category-list/
339
+ */
181
340
  Backlog.prototype.getCategories = function (projectIdOrKey) {
182
341
  return this.get("projects/" + projectIdOrKey + "/categories");
183
342
  };
343
+ /**
344
+ * https://developer.nulab.com/docs/backlog/api/2/add-category/
345
+ */
184
346
  Backlog.prototype.postCategories = function (projectIdOrKey, params) {
185
347
  return this.post("projects/" + projectIdOrKey + "/categories", params);
186
348
  };
349
+ /**
350
+ * https://developer.nulab.com/docs/backlog/api/2/update-category/
351
+ */
187
352
  Backlog.prototype.patchCategories = function (projectIdOrKey, id, params) {
188
353
  return this.patch("projects/" + projectIdOrKey + "/categories/" + id, params);
189
354
  };
355
+ /**
356
+ * https://developer.nulab.com/docs/backlog/api/2/delete-category/
357
+ */
190
358
  Backlog.prototype.deleteCategories = function (projectIdOrKey, id) {
191
359
  return this.delete("projects/" + projectIdOrKey + "/categories/" + id);
192
360
  };
361
+ /**
362
+ * https://developer.nulab.com/docs/backlog/api/2/get-version-milestone-list/
363
+ */
193
364
  Backlog.prototype.getVersions = function (projectIdOrKey) {
194
365
  return this.get("projects/" + projectIdOrKey + "/versions");
195
366
  };
367
+ /**
368
+ * https://developer.nulab.com/docs/backlog/api/2/add-version-milestone/
369
+ */
196
370
  Backlog.prototype.postVersions = function (projectIdOrKey, params) {
197
371
  return this.post("projects/" + projectIdOrKey + "/versions", params);
198
372
  };
373
+ /**
374
+ * https://developer.nulab.com/docs/backlog/api/2/update-version-milestone/
375
+ */
199
376
  Backlog.prototype.patchVersions = function (projectIdOrKey, id, params) {
200
377
  return this.patch("projects/" + projectIdOrKey + "/versions/" + id, params);
201
378
  };
379
+ /**
380
+ * https://developer.nulab.com/docs/backlog/api/2/delete-version/
381
+ */
202
382
  Backlog.prototype.deleteVersions = function (projectIdOrKey, id) {
203
383
  return this.delete("projects/" + projectIdOrKey + "/versions/" + id);
204
384
  };
385
+ /**
386
+ * https://developer.nulab.com/docs/backlog/api/2/get-custom-field-list/
387
+ */
205
388
  Backlog.prototype.getCustomFields = function (projectIdOrKey) {
206
389
  return this.get("projects/" + projectIdOrKey + "/customFields");
207
390
  };
391
+ /**
392
+ * https://developer.nulab.com/docs/backlog/api/2/add-custom-field/
393
+ */
208
394
  Backlog.prototype.postCustomField = function (projectIdOrKey, params) {
209
395
  return this.post("projects/" + projectIdOrKey + "/customFields", params);
210
396
  };
397
+ /**
398
+ * https://developer.nulab.com/docs/backlog/api/2/update-custom-field/
399
+ */
211
400
  Backlog.prototype.patchCustomField = function (projectIdOrKey, id, params) {
212
401
  return this.patch("projects/" + projectIdOrKey + "/customFields/" + id, params);
213
402
  };
403
+ /**
404
+ * https://developer.nulab.com/docs/backlog/api/2/delete-custom-field/
405
+ */
214
406
  Backlog.prototype.deleteCustomField = function (projectIdOrKey, id) {
215
407
  return this.delete("projects/" + projectIdOrKey + "/customFields/" + id);
216
408
  };
409
+ /**
410
+ * https://developer.nulab.com/docs/backlog/api/2/add-list-item-for-list-type-custom-field/
411
+ */
217
412
  Backlog.prototype.postCustomFieldItem = function (projectIdOrKey, id, params) {
218
413
  return this.post("projects/" + projectIdOrKey + "/customFields/" + id + "/items", params);
219
414
  };
415
+ /**
416
+ * https://developer.nulab.com/docs/backlog/api/2/update-list-item-for-list-type-custom-field/
417
+ */
220
418
  Backlog.prototype.patchCustomFieldItem = function (projectIdOrKey, id, itemId, params) {
221
419
  return this.patch("projects/" + projectIdOrKey + "/customFields/" + id + "/items/" + itemId, params);
222
420
  };
421
+ /**
422
+ * https://developer.nulab.com/docs/backlog/api/2/delete-list-item-for-list-type-custom-field/
423
+ */
223
424
  Backlog.prototype.deleteCustomFieldItem = function (projectIdOrKey, id, itemId) {
224
425
  return this.delete("projects/" + projectIdOrKey + "/customFields/" + id + "/items/" + itemId);
225
426
  };
427
+ /**
428
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-shared-files/
429
+ */
226
430
  Backlog.prototype.getSharedFiles = function (projectIdOrKey, path, params) {
227
431
  return this.get("projects/" + projectIdOrKey + "/files/metadata/" + path, params);
228
432
  };
433
+ /**
434
+ * https://developer.nulab.com/docs/backlog/api/2/get-file/
435
+ */
229
436
  Backlog.prototype.getSharedFile = function (projectIdOrKey, sharedFileId) {
230
437
  return this.download("projects/" + projectIdOrKey + "/files/" + sharedFileId);
231
438
  };
439
+ /**
440
+ * https://developer.nulab.com/docs/backlog/api/2/get-project-disk-usage/
441
+ */
232
442
  Backlog.prototype.getProjectsDiskUsage = function (projectIdOrKey) {
233
443
  return this.get("projects/" + projectIdOrKey + "/diskUsage");
234
444
  };
445
+ /**
446
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-webhooks/
447
+ */
235
448
  Backlog.prototype.getWebhooks = function (projectIdOrKey) {
236
449
  return this.get("projects/" + projectIdOrKey + "/webhooks");
237
450
  };
451
+ /**
452
+ * https://developer.nulab.com/docs/backlog/api/2/add-webhook/
453
+ */
238
454
  Backlog.prototype.postWebhook = function (projectIdOrKey, params) {
239
455
  return this.post("projects/" + projectIdOrKey + "/webhooks", params);
240
456
  };
457
+ /**
458
+ * https://developer.nulab.com/docs/backlog/api/2/get-webhook/
459
+ */
241
460
  Backlog.prototype.getWebhook = function (projectIdOrKey, webhookId) {
242
461
  return this.get("projects/" + projectIdOrKey + "/webhooks/" + webhookId);
243
462
  };
463
+ /**
464
+ * https://developer.nulab.com/docs/backlog/api/2/update-webhook/
465
+ */
244
466
  Backlog.prototype.patchWebhook = function (projectIdOrKey, webhookId, params) {
245
467
  return this.patch("projects/" + projectIdOrKey + "/webhooks/" + webhookId, params);
246
468
  };
469
+ /**
470
+ * https://developer.nulab.com/docs/backlog/api/2/delete-webhook/
471
+ */
247
472
  Backlog.prototype.deleteWebhook = function (projectIdOrKey, webhookId) {
248
473
  return this.delete("projects/" + projectIdOrKey + "/webhooks/" + webhookId);
249
474
  };
475
+ /**
476
+ * https://developer.nulab.com/docs/backlog/api/2/get-issue-list/
477
+ */
250
478
  Backlog.prototype.getIssues = function (params) {
251
479
  return this.get('issues', params);
252
480
  };
481
+ /**
482
+ * https://developer.nulab.com/docs/backlog/api/2/count-issue/
483
+ */
253
484
  Backlog.prototype.getIssuesCount = function (params) {
254
485
  return this.get('issues/count', params);
255
486
  };
487
+ /**
488
+ * https://developer.nulab.com/docs/backlog/api/2/add-issue/
489
+ */
256
490
  Backlog.prototype.postIssue = function (params) {
257
491
  return this.post('issues', params);
258
492
  };
493
+ /**
494
+ * https://developer.nulab.com/docs/backlog/api/2/update-issue/
495
+ */
259
496
  Backlog.prototype.patchIssue = function (issueIdOrKey, params) {
260
497
  return this.patch("issues/" + issueIdOrKey, params);
261
498
  };
499
+ /**
500
+ * https://developer.nulab.com/docs/backlog/api/2/get-issue/
501
+ */
262
502
  Backlog.prototype.getIssue = function (issueIdOrKey) {
263
503
  return this.get("issues/" + issueIdOrKey);
264
504
  };
505
+ /**
506
+ * https://developer.nulab.com/docs/backlog/api/2/delete-issue/
507
+ */
265
508
  Backlog.prototype.deleteIssuesCount = function (issueIdOrKey) {
266
509
  return this.delete("issues/" + issueIdOrKey);
267
510
  };
511
+ /**
512
+ * https://developer.nulab.com/docs/backlog/api/2/get-comment-list/
513
+ */
268
514
  Backlog.prototype.getIssueComments = function (issueIdOrKey, params) {
269
515
  return this.get("issues/" + issueIdOrKey + "/comments", params);
270
516
  };
517
+ /**
518
+ * https://developer.nulab.com/docs/backlog/api/2/add-comment/
519
+ */
271
520
  Backlog.prototype.postIssueComments = function (issueIdOrKey, params) {
272
521
  return this.post("issues/" + issueIdOrKey + "/comments", params);
273
522
  };
523
+ /**
524
+ * https://developer.nulab.com/docs/backlog/api/2/count-comment/
525
+ */
274
526
  Backlog.prototype.getIssueCommentsCount = function (issueIdOrKey) {
275
527
  return this.get("issues/" + issueIdOrKey + "/comments/count");
276
528
  };
529
+ /**
530
+ * https://developer.nulab.com/docs/backlog/api/2/get-comment/
531
+ */
277
532
  Backlog.prototype.getIssueComment = function (issueIdOrKey, commentId) {
278
533
  return this.get("issues/" + issueIdOrKey + "/comments/" + commentId);
279
534
  };
535
+ /**
536
+ * https://developer.nulab.com/docs/backlog/api/2/delete-comment/
537
+ */
280
538
  Backlog.prototype.deleteIssueComment = function (issueIdOrKey, commentId) {
281
539
  return this.delete("issues/" + issueIdOrKey + "/comments/" + commentId);
282
540
  };
541
+ /**
542
+ * https://developer.nulab.com/docs/backlog/api/2/update-comment/
543
+ */
283
544
  Backlog.prototype.patchIssueComment = function (issueIdOrKey, commentId, params) {
284
545
  return this.patch("issues/" + issueIdOrKey + "/comments/" + commentId, params);
285
546
  };
547
+ /**
548
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-comment-notifications/
549
+ */
286
550
  Backlog.prototype.getIssueCommentNotifications = function (issueIdOrKey, commentId) {
287
551
  return this.get("issues/" + issueIdOrKey + "/comments/" + commentId + "/notifications");
288
552
  };
553
+ /**
554
+ * https://developer.nulab.com/docs/backlog/api/2/add-comment-notification/
555
+ */
289
556
  Backlog.prototype.postIssueCommentNotifications = function (issueIdOrKey, commentId, prams) {
290
557
  return this.post("issues/" + issueIdOrKey + "/comments/" + commentId + "/notifications", prams);
291
558
  };
559
+ /**
560
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-issue-attachments/
561
+ */
292
562
  Backlog.prototype.getIssueAttachments = function (issueIdOrKey) {
293
563
  return this.get("issues/" + issueIdOrKey + "/attachments");
294
564
  };
565
+ /**
566
+ * https://developer.nulab.com/docs/backlog/api/2/get-issue-attachment/
567
+ */
295
568
  Backlog.prototype.getIssueAttachment = function (issueIdOrKey, attachmentId) {
296
569
  return this.download("issues/" + issueIdOrKey + "/attachments/" + attachmentId);
297
570
  };
571
+ /**
572
+ * https://developer.nulab.com/docs/backlog/api/2/delete-issue-attachment/
573
+ */
298
574
  Backlog.prototype.deleteIssueAttachment = function (issueIdOrKey, attachmentId) {
299
575
  return this.delete("issues/" + issueIdOrKey + "/attachments/" + attachmentId);
300
576
  };
577
+ /**
578
+ * https://developer.nulab.com/docs/backlog/api/2/get-issue-participant-list/
579
+ */
301
580
  Backlog.prototype.getIssueParticipants = function (issueIdOrKey) {
302
581
  return this.get("issues/" + issueIdOrKey + "/participants");
303
582
  };
583
+ /**
584
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-linked-shared-files/
585
+ */
304
586
  Backlog.prototype.getIssueSharedFiles = function (issueIdOrKey) {
305
587
  return this.get("issues/" + issueIdOrKey + "/sharedFiles");
306
588
  };
589
+ /**
590
+ * https://developer.nulab.com/docs/backlog/api/2/link-shared-files-to-issue/
591
+ */
307
592
  Backlog.prototype.linkIssueSharedFiles = function (issueIdOrKey, params) {
308
593
  return this.post("issues/" + issueIdOrKey + "/sharedFiles", params);
309
594
  };
595
+ /**
596
+ * https://developer.nulab.com/docs/backlog/api/2/remove-link-to-shared-file-from-issue/
597
+ */
310
598
  Backlog.prototype.unlinkIssueSharedFile = function (issueIdOrKey, id) {
311
599
  return this.delete("issues/" + issueIdOrKey + "/sharedFiles/" + id);
312
600
  };
601
+ /**
602
+ * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-list/
603
+ */
313
604
  Backlog.prototype.getWikis = function (params) {
314
605
  return this.get("wikis", params);
315
606
  };
607
+ /**
608
+ * https://developer.nulab.com/docs/backlog/api/2/count-wiki-page/
609
+ */
316
610
  Backlog.prototype.getWikisCount = function (projectIdOrKey) {
317
611
  return this.get("wikis/count", { projectIdOrKey: projectIdOrKey });
318
612
  };
613
+ /**
614
+ * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-tag-list/
615
+ */
319
616
  Backlog.prototype.getWikisTags = function (projectIdOrKey) {
320
617
  return this.get("wikis/tags", { projectIdOrKey: projectIdOrKey });
321
618
  };
619
+ /**
620
+ * https://developer.nulab.com/docs/backlog/api/2/add-wiki-page/
621
+ */
322
622
  Backlog.prototype.postWiki = function (params) {
323
623
  return this.post("wikis", params);
324
624
  };
625
+ /**
626
+ * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page/
627
+ */
325
628
  Backlog.prototype.getWiki = function (wikiId) {
326
629
  return this.get("wikis/" + wikiId);
327
630
  };
631
+ /**
632
+ * https://developer.nulab.com/docs/backlog/api/2/update-wiki-page/
633
+ */
328
634
  Backlog.prototype.patchWiki = function (wikiId, params) {
329
635
  return this.patch("wikis/" + wikiId, params);
330
636
  };
637
+ /**
638
+ * https://developer.nulab.com/docs/backlog/api/2/delete-wiki-page/
639
+ */
331
640
  Backlog.prototype.deleteWiki = function (wikiId, mailNotify) {
332
641
  return this.delete("wikis/" + wikiId, { mailNotify: mailNotify });
333
642
  };
643
+ /**
644
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-wiki-attachments/
645
+ */
334
646
  Backlog.prototype.getWikisAttachments = function (wikiId) {
335
647
  return this.get("wikis/" + wikiId + "/attachments");
336
648
  };
649
+ /**
650
+ * https://developer.nulab.com/docs/backlog/api/2/attach-file-to-wiki/
651
+ */
337
652
  Backlog.prototype.postWikisAttachments = function (wikiId, attachmentId) {
338
653
  return this.post("wikis/" + wikiId + "/attachments", { attachmentId: attachmentId });
339
654
  };
655
+ /**
656
+ * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-attachment/
657
+ */
340
658
  Backlog.prototype.getWikiAttachment = function (wikiId, attachmentId) {
341
659
  return this.download("wikis/" + wikiId + "/attachments/" + attachmentId);
342
660
  };
661
+ /**
662
+ * https://developer.nulab.com/docs/backlog/api/2/remove-wiki-attachment/
663
+ */
343
664
  Backlog.prototype.deleteWikisAttachments = function (wikiId, attachmentId) {
344
665
  return this.delete("wikis/" + wikiId + "/attachments/" + attachmentId);
345
666
  };
667
+ /**
668
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-shared-files-on-wiki/
669
+ */
346
670
  Backlog.prototype.getWikisSharedFiles = function (wikiId) {
347
671
  return this.get("wikis/" + wikiId + "/sharedFiles");
348
672
  };
673
+ /**
674
+ * https://developer.nulab.com/docs/backlog/api/2/link-shared-files-to-wiki/
675
+ */
349
676
  Backlog.prototype.linkWikisSharedFiles = function (wikiId, fileId) {
350
677
  return this.post("wikis/" + wikiId + "/sharedFiles", { fileId: fileId });
351
678
  };
679
+ /**
680
+ * https://developer.nulab.com/docs/backlog/api/2/remove-link-to-shared-file-from-wiki/
681
+ */
352
682
  Backlog.prototype.unlinkWikisSharedFiles = function (wikiId, id) {
353
683
  return this.delete("wikis/" + wikiId + "/sharedFiles/" + id);
354
684
  };
685
+ /**
686
+ * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-history/
687
+ */
355
688
  Backlog.prototype.getWikisHistory = function (wikiId, params) {
356
689
  return this.get("wikis/" + wikiId + "/history", params);
357
690
  };
691
+ /**
692
+ * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-star/
693
+ */
358
694
  Backlog.prototype.getWikisStars = function (wikiId) {
359
695
  return this.get("wikis/" + wikiId + "/stars");
360
696
  };
697
+ /**
698
+ * https://developer.nulab.com/docs/backlog/api/2/add-star/
699
+ */
361
700
  Backlog.prototype.postStar = function (params) {
362
701
  return this.post('stars', params);
363
702
  };
703
+ /**
704
+ * https://developer.nulab.com/docs/backlog/api/2/get-notification/
705
+ */
364
706
  Backlog.prototype.getNotifications = function (params) {
365
707
  return this.get('notifications', params);
366
708
  };
709
+ /**
710
+ * https://developer.nulab.com/docs/backlog/api/2/count-notification/
711
+ */
367
712
  Backlog.prototype.getNotificationsCount = function (params) {
368
713
  return this.get('notifications/count', params);
369
714
  };
715
+ /**
716
+ * https://developer.nulab.com/docs/backlog/api/2/reset-unread-notification-count/
717
+ */
370
718
  Backlog.prototype.resetNotificationsMarkAsRead = function () {
371
719
  return this.post('notifications/markAsRead');
372
720
  };
721
+ /**
722
+ * https://developer.nulab.com/docs/backlog/api/2/read-notification/
723
+ */
373
724
  Backlog.prototype.markAsReadNotification = function (id) {
374
725
  return this.post("notifications/" + id + "/markAsRead");
375
726
  };
727
+ /**
728
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-git-repositories/
729
+ */
376
730
  Backlog.prototype.getGitRepositories = function (projectIdOrKey) {
377
731
  return this.get("projects/" + projectIdOrKey + "/git/repositories");
378
732
  };
733
+ /**
734
+ * https://developer.nulab.com/docs/backlog/api/2/get-git-repository/
735
+ */
379
736
  Backlog.prototype.getGitRepository = function (projectIdOrKey, repoIdOrName) {
380
737
  return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName);
381
738
  };
739
+ /**
740
+ * https://developer.nulab.com/docs/backlog/api/2/get-pull-request-list/
741
+ */
382
742
  Backlog.prototype.getPullRequests = function (projectIdOrKey, repoIdOrName, params) {
383
743
  return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests", params);
384
744
  };
745
+ /**
746
+ * https://developer.nulab.com/docs/backlog/api/2/get-number-of-pull-requests/
747
+ */
385
748
  Backlog.prototype.getPullRequestsCount = function (projectIdOrKey, repoIdOrName, params) {
386
749
  return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/count", params);
387
750
  };
751
+ /**
752
+ * https://developer.nulab.com/docs/backlog/api/2/add-pull-request/
753
+ */
388
754
  Backlog.prototype.postPullRequest = function (projectIdOrKey, repoIdOrName, params) {
389
755
  return this.post("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests", params);
390
756
  };
757
+ /**
758
+ * https://developer.nulab.com/docs/backlog/api/2/get-pull-request/
759
+ */
391
760
  Backlog.prototype.getPullRequest = function (projectIdOrKey, repoIdOrName, number) {
392
761
  return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number);
393
762
  };
763
+ /**
764
+ * https://developer.nulab.com/docs/backlog/api/2/update-pull-request/
765
+ */
394
766
  Backlog.prototype.patchPullRequest = function (projectIdOrKey, repoIdOrName, number, params) {
395
767
  return this.patch("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number, params);
396
768
  };
769
+ /**
770
+ * https://developer.nulab.com/docs/backlog/api/2/get-pull-request-comment/
771
+ */
397
772
  Backlog.prototype.getPullRequestComments = function (projectIdOrKey, repoIdOrName, number, params) {
398
773
  return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/comments", params);
399
774
  };
775
+ /**
776
+ * https://developer.nulab.com/docs/backlog/api/2/add-pull-request-comment/
777
+ */
400
778
  Backlog.prototype.postPullRequestComments = function (projectIdOrKey, repoIdOrName, number, params) {
401
779
  return this.post("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/comments", params);
402
780
  };
781
+ /**
782
+ * https://developer.nulab.com/docs/backlog/api/2/get-number-of-pull-request-comments/
783
+ */
403
784
  Backlog.prototype.getPullRequestCommentsCount = function (projectIdOrKey, repoIdOrName, number) {
404
785
  return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/comments/count");
405
786
  };
787
+ /**
788
+ * https://developer.nulab.com/docs/backlog/api/2/update-pull-request-comment-information/
789
+ */
406
790
  Backlog.prototype.patchPullRequestComments = function (projectIdOrKey, repoIdOrName, number, commentId, params) {
407
791
  return this.patch("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/comments/" + commentId, params);
408
792
  };
793
+ /**
794
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-pull-request-attachment/
795
+ */
409
796
  Backlog.prototype.getPullRequestAttachments = function (projectIdOrKey, repoIdOrName, number) {
410
797
  return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/attachments");
411
798
  };
799
+ /**
800
+ * https://developer.nulab.com/docs/backlog/api/2/download-pull-request-attachment/
801
+ */
412
802
  Backlog.prototype.getPullRequestAttachment = function (projectIdOrKey, repoIdOrName, number, attachmentId) {
413
803
  return this.download("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/attachments/" + attachmentId);
414
804
  };
805
+ /**
806
+ * https://developer.nulab.com/docs/backlog/api/2/delete-pull-request-attachments/
807
+ */
415
808
  Backlog.prototype.deletePullRequestAttachment = function (projectIdOrKey, repoIdOrName, number, attachmentId) {
416
809
  return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/attachments/" + attachmentId);
417
810
  };
811
+ /**
812
+ * https://developer.nulab.com/docs/backlog/api/2/get-watching-list
813
+ */
418
814
  Backlog.prototype.getWatchingListItems = function (userId) {
419
815
  return this.get("users/" + userId + "/watchings");
420
816
  };
817
+ /**
818
+ * https://developer.nulab.com/docs/backlog/api/2/count-watching
819
+ */
421
820
  Backlog.prototype.getWatchingListCount = function (userId) {
422
821
  return this.get("users/" + userId + "/watchings/count");
423
822
  };
823
+ /**
824
+ * https://developer.nulab.com/docs/backlog/api/2/get-watching
825
+ */
424
826
  Backlog.prototype.getWatchingListItem = function (watchId) {
425
827
  return this.get("watchings/" + watchId);
426
828
  };
829
+ /**
830
+ * https://developer.nulab.com/docs/backlog/api/2/add-watching
831
+ */
427
832
  Backlog.prototype.postWatchingListItem = function (params) {
428
833
  return this.post("watchings", params);
429
834
  };
835
+ /**
836
+ * https://developer.nulab.com/docs/backlog/api/2/update-watching
837
+ */
430
838
  Backlog.prototype.patchWatchingListItem = function (watchId, note) {
431
839
  return this.patch("watchings/" + watchId, { note: note });
432
840
  };
841
+ /**
842
+ * https://developer.nulab.com/docs/backlog/api/2/delete-watching
843
+ */
433
844
  Backlog.prototype.deletehWatchingListItem = function (watchId) {
434
845
  return this.delete("watchings/" + watchId);
435
846
  };
847
+ /**
848
+ * https://developer.nulab.com/docs/backlog/api/2/mark-watching-as-read
849
+ */
436
850
  Backlog.prototype.resetWatchingListItemAsRead = function (watchId) {
437
851
  return this.post("watchings/" + watchId + "/markAsRead");
438
852
  };
853
+ /**
854
+ * https://developer.nulab.com/docs/backlog/api/2/get-project-group-list
855
+ * @deprecated
856
+ */
439
857
  Backlog.prototype.getProjectGroupList = function (projectIdOrKey) {
440
858
  console.warn("Deprecated: Use getProjectTeams instead.");
441
859
  return this.get("projects/" + projectIdOrKey + "/groups");
442
860
  };
861
+ /**
862
+ * https://developer.nulab.com/docs/backlog/api/2/add-project-group
863
+ * @deprecated
864
+ */
443
865
  Backlog.prototype.postProjectGroup = function (projectIdOrKey, params) {
444
866
  console.warn("Deprecated: Use postProjectTeam instead.");
445
867
  return this.post("projects/" + projectIdOrKey + "/groups", params);
446
868
  };
869
+ /**
870
+ * https://developer.nulab.com/docs/backlog/api/2/delete-project-group
871
+ * @deprecated
872
+ */
447
873
  Backlog.prototype.deleteProjectGroup = function (projectIdOrKey) {
448
874
  console.warn("Deprecated: Use deleteProjectTeam instead.");
449
875
  return this.delete("projects/" + projectIdOrKey + "/groups");
450
876
  };
877
+ /**
878
+ * https://developer.nulab.com/docs/backlog/api/2/get-group-icon
879
+ * @deprecated
880
+ */
451
881
  Backlog.prototype.getGroupIcon = function (groupId) {
452
882
  console.warn("Deprecated: Use getTeamIcon instead.");
453
883
  return this.download("groups/" + groupId + "/icon");
454
884
  };
885
+ /**
886
+ * https://developer.nulab.com/docs/backlog/api/2/get-licence
887
+ */
455
888
  Backlog.prototype.getLicence = function () {
456
889
  return this.get("space/licence");
457
890
  };
891
+ /**
892
+ * https://developer.nulab.com/docs/backlog/api/2/get-list-of-teams/
893
+ */
458
894
  Backlog.prototype.getTeams = function (params) {
459
895
  return this.get("teams", params);
460
896
  };
897
+ /**
898
+ * https://developer.nulab.com/docs/backlog/api/2/add-team/
899
+ */
461
900
  Backlog.prototype.postTeam = function (members) {
462
901
  return this.post("teams", { members: members });
463
902
  };
903
+ /**
904
+ * https://developer.nulab.com/docs/backlog/api/2/get-team/
905
+ */
464
906
  Backlog.prototype.getTeam = function (teamId) {
465
907
  return this.get("teams/" + teamId);
466
908
  };
909
+ /**
910
+ * https://developer.nulab.com/docs/backlog/api/2/update-team/
911
+ */
467
912
  Backlog.prototype.patchTeam = function (teamId, params) {
468
913
  return this.patch("teams/" + teamId, params);
469
914
  };
915
+ /**
916
+ * https://developer.nulab.com/docs/backlog/api/2/delete-team/
917
+ */
470
918
  Backlog.prototype.deleteTeam = function (teamId) {
471
919
  return this.delete("teams/" + teamId);
472
920
  };
921
+ /**
922
+ * https://developer.nulab.com/docs/backlog/api/2/get-team-icon/
923
+ */
473
924
  Backlog.prototype.getTeamIcon = function (teamId) {
474
925
  return this.download("teams/" + teamId + "/icon");
475
926
  };
927
+ /**
928
+ * https://developer.nulab.com/docs/backlog/api/2/get-project-team-list/
929
+ */
476
930
  Backlog.prototype.getProjectTeams = function (projectIdOrKey) {
477
931
  return this.get("projects/" + projectIdOrKey + "/teams");
478
932
  };
933
+ /**
934
+ * https://developer.nulab.com/docs/backlog/api/2/add-project-team/
935
+ */
479
936
  Backlog.prototype.postProjectTeam = function (projectIdOrKey, teamId) {
480
937
  return this.post("projects/" + projectIdOrKey + "/teams", { teamId: teamId });
481
938
  };
939
+ /**
940
+ * https://developer.nulab.com/docs/backlog/api/2/delete-project-team/
941
+ */
482
942
  Backlog.prototype.deleteProjectTeam = function (projectIdOrKey, teamId) {
483
943
  return this.delete("projects/" + projectIdOrKey + "/teams", { teamId: teamId });
484
944
  };
945
+ /**
946
+ * https://developer.nulab.com/docs/backlog/api/2/get-rate-limit/
947
+ */
485
948
  Backlog.prototype.getRateLimit = function () {
486
949
  return this.get("rateLimit");
487
950
  };
@@ -521,7 +984,6 @@ exports.default = Backlog;
521
984
  Object.defineProperty(exports, "__esModule", { value: true });
522
985
 
523
986
  },{}],3:[function(require,module,exports){
524
- (function (global){(function (){
525
987
  "use strict";
526
988
  var __extends = (this && this.__extends) || (function () {
527
989
  var extendStatics = function (d, b) {
@@ -540,7 +1002,7 @@ var __extends = (this && this.__extends) || (function () {
540
1002
  })();
541
1003
  Object.defineProperty(exports, "__esModule", { value: true });
542
1004
  exports.UnexpectedError = exports.BacklogAuthError = exports.BacklogApiError = exports.BacklogError = void 0;
543
- var BacklogError = (function (_super) {
1005
+ var BacklogError = /** @class */ (function (_super) {
544
1006
  __extends(BacklogError, _super);
545
1007
  function BacklogError(name, response, body) {
546
1008
  var _this = _super.call(this, response.statusText) || this;
@@ -587,9 +1049,9 @@ var BacklogError = (function (_super) {
587
1049
  configurable: true
588
1050
  });
589
1051
  return BacklogError;
590
- }(global.Error));
1052
+ }(Error));
591
1053
  exports.BacklogError = BacklogError;
592
- var BacklogApiError = (function (_super) {
1054
+ var BacklogApiError = /** @class */ (function (_super) {
593
1055
  __extends(BacklogApiError, _super);
594
1056
  function BacklogApiError(response, body) {
595
1057
  return _super.call(this, 'BacklogApiError', response, body) || this;
@@ -597,7 +1059,7 @@ var BacklogApiError = (function (_super) {
597
1059
  return BacklogApiError;
598
1060
  }(BacklogError));
599
1061
  exports.BacklogApiError = BacklogApiError;
600
- var BacklogAuthError = (function (_super) {
1062
+ var BacklogAuthError = /** @class */ (function (_super) {
601
1063
  __extends(BacklogAuthError, _super);
602
1064
  function BacklogAuthError(response, body) {
603
1065
  return _super.call(this, 'BacklogAuthError', response, body) || this;
@@ -605,7 +1067,7 @@ var BacklogAuthError = (function (_super) {
605
1067
  return BacklogAuthError;
606
1068
  }(BacklogError));
607
1069
  exports.BacklogAuthError = BacklogAuthError;
608
- var UnexpectedError = (function (_super) {
1070
+ var UnexpectedError = /** @class */ (function (_super) {
609
1071
  __extends(UnexpectedError, _super);
610
1072
  function UnexpectedError(response) {
611
1073
  return _super.call(this, 'UnexpectedError', response) || this;
@@ -614,7 +1076,6 @@ var UnexpectedError = (function (_super) {
614
1076
  }(BacklogError));
615
1077
  exports.UnexpectedError = UnexpectedError;
616
1078
 
617
- }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
618
1079
  },{}],4:[function(require,module,exports){
619
1080
  "use strict";
620
1081
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -634,7 +1095,7 @@ exports.Error = Error;
634
1095
  "use strict";
635
1096
  Object.defineProperty(exports, "__esModule", { value: true });
636
1097
  var request_1 = require("./request");
637
- var OAuth2 = (function () {
1098
+ var OAuth2 = /** @class */ (function () {
638
1099
  function OAuth2(credentials, timeout) {
639
1100
  this.credentials = credentials;
640
1101
  this.timeout = timeout;
@@ -749,7 +1210,7 @@ var Issue;
749
1210
  Object.defineProperty(exports, "__esModule", { value: true });
750
1211
  var Error = require("./error");
751
1212
  var qs = require("qs");
752
- var Request = (function () {
1213
+ var Request = /** @class */ (function () {
753
1214
  function Request(configure) {
754
1215
  this.configure = configure;
755
1216
  }