backlog-js 0.12.5 → 0.12.6

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
@@ -74,7 +74,7 @@ var Backlog = /** @class */ (function (_super) {
74
74
  * https://developer.nulab.com/docs/backlog/api/2/get-user/
75
75
  */
76
76
  Backlog.prototype.getUser = function (userId) {
77
- return this.get("users/" + userId);
77
+ return this.get("users/".concat(userId));
78
78
  };
79
79
  /**
80
80
  * https://developer.nulab.com/docs/backlog/api/2/add-user/
@@ -86,13 +86,13 @@ var Backlog = /** @class */ (function (_super) {
86
86
  * https://developer.nulab.com/docs/backlog/api/2/update-user/
87
87
  */
88
88
  Backlog.prototype.patchUser = function (userId, params) {
89
- return this.patch("users/" + userId, params);
89
+ return this.patch("users/".concat(userId), params);
90
90
  };
91
91
  /**
92
92
  * https://developer.nulab.com/docs/backlog/api/2/delete-user/
93
93
  */
94
94
  Backlog.prototype.deleteUser = function (userId) {
95
- return this.delete("users/" + userId);
95
+ return this.delete("users/".concat(userId));
96
96
  };
97
97
  /**
98
98
  * https://developer.nulab.com/docs/backlog/api/2/get-own-user/
@@ -104,25 +104,25 @@ var Backlog = /** @class */ (function (_super) {
104
104
  * https://developer.nulab.com/docs/backlog/api/2/get-user-icon/
105
105
  */
106
106
  Backlog.prototype.getUserIcon = function (userId) {
107
- return this.download("users/" + userId + "/icon");
107
+ return this.download("users/".concat(userId, "/icon"));
108
108
  };
109
109
  /**
110
110
  * https://developer.nulab.com/docs/backlog/api/2/get-user-recent-updates/
111
111
  */
112
112
  Backlog.prototype.getUserActivities = function (userId, params) {
113
- return this.get("users/" + userId + "/activities", params);
113
+ return this.get("users/".concat(userId, "/activities"), params);
114
114
  };
115
115
  /**
116
116
  * https://developer.nulab.com/docs/backlog/api/2/get-received-star-list/
117
117
  */
118
118
  Backlog.prototype.getUserStars = function (userId, params) {
119
- return this.get("users/" + userId + "/stars", params);
119
+ return this.get("users/".concat(userId, "/stars"), params);
120
120
  };
121
121
  /**
122
122
  * https://developer.nulab.com/docs/backlog/api/2/count-user-received-stars/
123
123
  */
124
124
  Backlog.prototype.getUserStarsCount = function (userId, params) {
125
- return this.get("users/" + userId + "/stars/count", params);
125
+ return this.get("users/".concat(userId, "/stars/count"), params);
126
126
  };
127
127
  /**
128
128
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-recently-viewed-issues/
@@ -164,7 +164,7 @@ var Backlog = /** @class */ (function (_super) {
164
164
  */
165
165
  Backlog.prototype.getGroup = function (groupId) {
166
166
  console.warn("Deprecated: Use getTeam instead.");
167
- return this.get("groups/" + groupId);
167
+ return this.get("groups/".concat(groupId));
168
168
  };
169
169
  /**
170
170
  * https://developer.nulab.com/docs/backlog/api/2/update-group/
@@ -172,7 +172,7 @@ var Backlog = /** @class */ (function (_super) {
172
172
  */
173
173
  Backlog.prototype.patchGroup = function (groupId, params) {
174
174
  console.warn("Deprecated: Use patchTeam instead.");
175
- return this.patch("groups/" + groupId, params);
175
+ return this.patch("groups/".concat(groupId), params);
176
176
  };
177
177
  /**
178
178
  * https://developer.nulab.com/docs/backlog/api/2/delete-group/
@@ -180,7 +180,7 @@ var Backlog = /** @class */ (function (_super) {
180
180
  */
181
181
  Backlog.prototype.deleteGroup = function (groupId) {
182
182
  console.warn("Deprecated: Use deleteTeam instead.");
183
- return this.delete("groups/" + groupId);
183
+ return this.delete("groups/".concat(groupId));
184
184
  };
185
185
  /**
186
186
  * https://developer.nulab.com/docs/backlog/api/2/get-status-list/
@@ -194,7 +194,7 @@ var Backlog = /** @class */ (function (_super) {
194
194
  * https://developer.nulab.com/docs/backlog/api/2/get-status-list-of-project/
195
195
  */
196
196
  Backlog.prototype.getProjectStatuses = function (projectIdOrKey) {
197
- return this.get("projects/" + projectIdOrKey + "/statuses");
197
+ return this.get("projects/".concat(projectIdOrKey, "/statuses"));
198
198
  };
199
199
  /**
200
200
  * https://developer.nulab.com/docs/backlog/api/2/get-resolution-list/
@@ -224,253 +224,253 @@ var Backlog = /** @class */ (function (_super) {
224
224
  * https://developer.nulab.com/docs/backlog/api/2/get-project/
225
225
  */
226
226
  Backlog.prototype.getProject = function (projectIdOrKey) {
227
- return this.get("projects/" + projectIdOrKey);
227
+ return this.get("projects/".concat(projectIdOrKey));
228
228
  };
229
229
  /**
230
230
  * https://developer.nulab.com/docs/backlog/api/2/update-project/
231
231
  */
232
232
  Backlog.prototype.patchProject = function (projectIdOrKey, params) {
233
- return this.patch("projects/" + projectIdOrKey, params);
233
+ return this.patch("projects/".concat(projectIdOrKey), params);
234
234
  };
235
235
  /**
236
236
  * https://developer.nulab.com/docs/backlog/api/2/delete-project/
237
237
  */
238
238
  Backlog.prototype.deleteProject = function (projectIdOrKey) {
239
- return this.delete("projects/" + projectIdOrKey);
239
+ return this.delete("projects/".concat(projectIdOrKey));
240
240
  };
241
241
  /**
242
242
  * https://developer.nulab.com/docs/backlog/api/2/get-project-icon/
243
243
  */
244
244
  Backlog.prototype.getProjectIcon = function (projectIdOrKey) {
245
- return this.download("projects/" + projectIdOrKey + "/image");
245
+ return this.download("projects/".concat(projectIdOrKey, "/image"));
246
246
  };
247
247
  /**
248
248
  * https://developer.nulab.com/docs/backlog/api/2/get-project-recent-updates/
249
249
  */
250
250
  Backlog.prototype.getProjectActivities = function (projectIdOrKey, params) {
251
- return this.get("projects/" + projectIdOrKey + "/activities", params);
251
+ return this.get("projects/".concat(projectIdOrKey, "/activities"), params);
252
252
  };
253
253
  /**
254
254
  * https://developer.nulab.com/docs/backlog/api/2/add-project-user/
255
255
  */
256
256
  Backlog.prototype.postProjectUser = function (projectIdOrKey, userId) {
257
- return this.post("projects/" + projectIdOrKey + "/users", { userId: userId });
257
+ return this.post("projects/".concat(projectIdOrKey, "/users"), { userId: userId });
258
258
  };
259
259
  /**
260
260
  * https://developer.nulab.com/docs/backlog/api/2/get-project-user-list/
261
261
  */
262
262
  Backlog.prototype.getProjectUsers = function (projectIdOrKey) {
263
- return this.get("projects/" + projectIdOrKey + "/users");
263
+ return this.get("projects/".concat(projectIdOrKey, "/users"));
264
264
  };
265
265
  /**
266
266
  * https://developer.nulab.com/docs/backlog/api/2/delete-project-user/
267
267
  */
268
268
  Backlog.prototype.deleteProjectUsers = function (projectIdOrKey, params) {
269
- return this.delete("projects/" + projectIdOrKey + "/users", params);
269
+ return this.delete("projects/".concat(projectIdOrKey, "/users"), params);
270
270
  };
271
271
  /**
272
272
  * https://developer.nulab.com/docs/backlog/api/2/add-project-administrator/
273
273
  */
274
274
  Backlog.prototype.postProjectAdministrators = function (projectIdOrKey, params) {
275
- return this.post("projects/" + projectIdOrKey + "/administrators", params);
275
+ return this.post("projects/".concat(projectIdOrKey, "/administrators"), params);
276
276
  };
277
277
  /**
278
278
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-project-administrators/
279
279
  */
280
280
  Backlog.prototype.getProjectAdministrators = function (projectIdOrKey) {
281
- return this.get("projects/" + projectIdOrKey + "/administrators");
281
+ return this.get("projects/".concat(projectIdOrKey, "/administrators"));
282
282
  };
283
283
  /**
284
284
  * https://developer.nulab.com/docs/backlog/api/2/delete-project-administrator/
285
285
  */
286
286
  Backlog.prototype.deleteProjectAdministrators = function (projectIdOrKey, params) {
287
- return this.delete("projects/" + projectIdOrKey + "/administrators", params);
287
+ return this.delete("projects/".concat(projectIdOrKey, "/administrators"), params);
288
288
  };
289
289
  /**
290
290
  * https://developer.nulab.com/docs/backlog/api/2/add-status/
291
291
  */
292
292
  Backlog.prototype.postProjectStatus = function (projectIdOrKey, params) {
293
- return this.post("projects/" + projectIdOrKey + "/statuses", params);
293
+ return this.post("projects/".concat(projectIdOrKey, "/statuses"), params);
294
294
  };
295
295
  /**
296
296
  * https://developer.nulab.com/docs/backlog/api/2/update-status/
297
297
  */
298
298
  Backlog.prototype.patchProjectStatus = function (projectIdOrKey, id, params) {
299
- return this.patch("projects/" + projectIdOrKey + "/statuses/" + id, params);
299
+ return this.patch("projects/".concat(projectIdOrKey, "/statuses/").concat(id), params);
300
300
  };
301
301
  /**
302
302
  * https://developer.nulab.com/docs/backlog/api/2/delete-status/
303
303
  */
304
304
  Backlog.prototype.deleteProjectStatus = function (projectIdOrKey, id, substituteStatusId) {
305
- return this.delete("projects/" + projectIdOrKey + "/statuses/" + id, { substituteStatusId: substituteStatusId });
305
+ return this.delete("projects/".concat(projectIdOrKey, "/statuses/").concat(id), { substituteStatusId: substituteStatusId });
306
306
  };
307
307
  /**
308
308
  * https://developer.nulab.com/docs/backlog/api/2/update-order-of-status/
309
309
  */
310
310
  Backlog.prototype.patchProjectStatusOrder = function (projectIdOrKey, statusId) {
311
- return this.patch("projects/" + projectIdOrKey + "/statuses/updateDisplayOrder", { statusId: statusId });
311
+ return this.patch("projects/".concat(projectIdOrKey, "/statuses/updateDisplayOrder"), { statusId: statusId });
312
312
  };
313
313
  /**
314
314
  * https://developer.nulab.com/docs/backlog/api/2/get-issue-type-list/
315
315
  */
316
316
  Backlog.prototype.getIssueTypes = function (projectIdOrKey) {
317
- return this.get("projects/" + projectIdOrKey + "/issueTypes");
317
+ return this.get("projects/".concat(projectIdOrKey, "/issueTypes"));
318
318
  };
319
319
  /**
320
320
  * https://developer.nulab.com/docs/backlog/api/2/add-issue-type/
321
321
  */
322
322
  Backlog.prototype.postIssueType = function (projectIdOrKey, params) {
323
- return this.post("projects/" + projectIdOrKey + "/issueTypes", params);
323
+ return this.post("projects/".concat(projectIdOrKey, "/issueTypes"), params);
324
324
  };
325
325
  /**
326
326
  * https://developer.nulab.com/docs/backlog/api/2/update-issue-type/
327
327
  */
328
328
  Backlog.prototype.patchIssueType = function (projectIdOrKey, id, params) {
329
- return this.patch("projects/" + projectIdOrKey + "/issueTypes/" + id, params);
329
+ return this.patch("projects/".concat(projectIdOrKey, "/issueTypes/").concat(id), params);
330
330
  };
331
331
  /**
332
332
  * https://developer.nulab.com/docs/backlog/api/2/delete-issue-type/
333
333
  */
334
334
  Backlog.prototype.deleteIssueType = function (projectIdOrKey, id, params) {
335
- return this.delete("projects/" + projectIdOrKey + "/issueTypes/" + id, params);
335
+ return this.delete("projects/".concat(projectIdOrKey, "/issueTypes/").concat(id), params);
336
336
  };
337
337
  /**
338
338
  * https://developer.nulab.com/docs/backlog/api/2/get-category-list/
339
339
  */
340
340
  Backlog.prototype.getCategories = function (projectIdOrKey) {
341
- return this.get("projects/" + projectIdOrKey + "/categories");
341
+ return this.get("projects/".concat(projectIdOrKey, "/categories"));
342
342
  };
343
343
  /**
344
344
  * https://developer.nulab.com/docs/backlog/api/2/add-category/
345
345
  */
346
346
  Backlog.prototype.postCategories = function (projectIdOrKey, params) {
347
- return this.post("projects/" + projectIdOrKey + "/categories", params);
347
+ return this.post("projects/".concat(projectIdOrKey, "/categories"), params);
348
348
  };
349
349
  /**
350
350
  * https://developer.nulab.com/docs/backlog/api/2/update-category/
351
351
  */
352
352
  Backlog.prototype.patchCategories = function (projectIdOrKey, id, params) {
353
- return this.patch("projects/" + projectIdOrKey + "/categories/" + id, params);
353
+ return this.patch("projects/".concat(projectIdOrKey, "/categories/").concat(id), params);
354
354
  };
355
355
  /**
356
356
  * https://developer.nulab.com/docs/backlog/api/2/delete-category/
357
357
  */
358
358
  Backlog.prototype.deleteCategories = function (projectIdOrKey, id) {
359
- return this.delete("projects/" + projectIdOrKey + "/categories/" + id);
359
+ return this.delete("projects/".concat(projectIdOrKey, "/categories/").concat(id));
360
360
  };
361
361
  /**
362
362
  * https://developer.nulab.com/docs/backlog/api/2/get-version-milestone-list/
363
363
  */
364
364
  Backlog.prototype.getVersions = function (projectIdOrKey) {
365
- return this.get("projects/" + projectIdOrKey + "/versions");
365
+ return this.get("projects/".concat(projectIdOrKey, "/versions"));
366
366
  };
367
367
  /**
368
368
  * https://developer.nulab.com/docs/backlog/api/2/add-version-milestone/
369
369
  */
370
370
  Backlog.prototype.postVersions = function (projectIdOrKey, params) {
371
- return this.post("projects/" + projectIdOrKey + "/versions", params);
371
+ return this.post("projects/".concat(projectIdOrKey, "/versions"), params);
372
372
  };
373
373
  /**
374
374
  * https://developer.nulab.com/docs/backlog/api/2/update-version-milestone/
375
375
  */
376
376
  Backlog.prototype.patchVersions = function (projectIdOrKey, id, params) {
377
- return this.patch("projects/" + projectIdOrKey + "/versions/" + id, params);
377
+ return this.patch("projects/".concat(projectIdOrKey, "/versions/").concat(id), params);
378
378
  };
379
379
  /**
380
380
  * https://developer.nulab.com/docs/backlog/api/2/delete-version/
381
381
  */
382
382
  Backlog.prototype.deleteVersions = function (projectIdOrKey, id) {
383
- return this.delete("projects/" + projectIdOrKey + "/versions/" + id);
383
+ return this.delete("projects/".concat(projectIdOrKey, "/versions/").concat(id));
384
384
  };
385
385
  /**
386
386
  * https://developer.nulab.com/docs/backlog/api/2/get-custom-field-list/
387
387
  */
388
388
  Backlog.prototype.getCustomFields = function (projectIdOrKey) {
389
- return this.get("projects/" + projectIdOrKey + "/customFields");
389
+ return this.get("projects/".concat(projectIdOrKey, "/customFields"));
390
390
  };
391
391
  /**
392
392
  * https://developer.nulab.com/docs/backlog/api/2/add-custom-field/
393
393
  */
394
394
  Backlog.prototype.postCustomField = function (projectIdOrKey, params) {
395
- return this.post("projects/" + projectIdOrKey + "/customFields", params);
395
+ return this.post("projects/".concat(projectIdOrKey, "/customFields"), params);
396
396
  };
397
397
  /**
398
398
  * https://developer.nulab.com/docs/backlog/api/2/update-custom-field/
399
399
  */
400
400
  Backlog.prototype.patchCustomField = function (projectIdOrKey, id, params) {
401
- return this.patch("projects/" + projectIdOrKey + "/customFields/" + id, params);
401
+ return this.patch("projects/".concat(projectIdOrKey, "/customFields/").concat(id), params);
402
402
  };
403
403
  /**
404
404
  * https://developer.nulab.com/docs/backlog/api/2/delete-custom-field/
405
405
  */
406
406
  Backlog.prototype.deleteCustomField = function (projectIdOrKey, id) {
407
- return this.delete("projects/" + projectIdOrKey + "/customFields/" + id);
407
+ return this.delete("projects/".concat(projectIdOrKey, "/customFields/").concat(id));
408
408
  };
409
409
  /**
410
410
  * https://developer.nulab.com/docs/backlog/api/2/add-list-item-for-list-type-custom-field/
411
411
  */
412
412
  Backlog.prototype.postCustomFieldItem = function (projectIdOrKey, id, params) {
413
- return this.post("projects/" + projectIdOrKey + "/customFields/" + id + "/items", params);
413
+ return this.post("projects/".concat(projectIdOrKey, "/customFields/").concat(id, "/items"), params);
414
414
  };
415
415
  /**
416
416
  * https://developer.nulab.com/docs/backlog/api/2/update-list-item-for-list-type-custom-field/
417
417
  */
418
418
  Backlog.prototype.patchCustomFieldItem = function (projectIdOrKey, id, itemId, params) {
419
- return this.patch("projects/" + projectIdOrKey + "/customFields/" + id + "/items/" + itemId, params);
419
+ return this.patch("projects/".concat(projectIdOrKey, "/customFields/").concat(id, "/items/").concat(itemId), params);
420
420
  };
421
421
  /**
422
422
  * https://developer.nulab.com/docs/backlog/api/2/delete-list-item-for-list-type-custom-field/
423
423
  */
424
424
  Backlog.prototype.deleteCustomFieldItem = function (projectIdOrKey, id, itemId) {
425
- return this.delete("projects/" + projectIdOrKey + "/customFields/" + id + "/items/" + itemId);
425
+ return this.delete("projects/".concat(projectIdOrKey, "/customFields/").concat(id, "/items/").concat(itemId));
426
426
  };
427
427
  /**
428
428
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-shared-files/
429
429
  */
430
430
  Backlog.prototype.getSharedFiles = function (projectIdOrKey, path, params) {
431
- return this.get("projects/" + projectIdOrKey + "/files/metadata/" + path, params);
431
+ return this.get("projects/".concat(projectIdOrKey, "/files/metadata/").concat(path), params);
432
432
  };
433
433
  /**
434
434
  * https://developer.nulab.com/docs/backlog/api/2/get-file/
435
435
  */
436
436
  Backlog.prototype.getSharedFile = function (projectIdOrKey, sharedFileId) {
437
- return this.download("projects/" + projectIdOrKey + "/files/" + sharedFileId);
437
+ return this.download("projects/".concat(projectIdOrKey, "/files/").concat(sharedFileId));
438
438
  };
439
439
  /**
440
440
  * https://developer.nulab.com/docs/backlog/api/2/get-project-disk-usage/
441
441
  */
442
442
  Backlog.prototype.getProjectsDiskUsage = function (projectIdOrKey) {
443
- return this.get("projects/" + projectIdOrKey + "/diskUsage");
443
+ return this.get("projects/".concat(projectIdOrKey, "/diskUsage"));
444
444
  };
445
445
  /**
446
446
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-webhooks/
447
447
  */
448
448
  Backlog.prototype.getWebhooks = function (projectIdOrKey) {
449
- return this.get("projects/" + projectIdOrKey + "/webhooks");
449
+ return this.get("projects/".concat(projectIdOrKey, "/webhooks"));
450
450
  };
451
451
  /**
452
452
  * https://developer.nulab.com/docs/backlog/api/2/add-webhook/
453
453
  */
454
454
  Backlog.prototype.postWebhook = function (projectIdOrKey, params) {
455
- return this.post("projects/" + projectIdOrKey + "/webhooks", params);
455
+ return this.post("projects/".concat(projectIdOrKey, "/webhooks"), params);
456
456
  };
457
457
  /**
458
458
  * https://developer.nulab.com/docs/backlog/api/2/get-webhook/
459
459
  */
460
460
  Backlog.prototype.getWebhook = function (projectIdOrKey, webhookId) {
461
- return this.get("projects/" + projectIdOrKey + "/webhooks/" + webhookId);
461
+ return this.get("projects/".concat(projectIdOrKey, "/webhooks/").concat(webhookId));
462
462
  };
463
463
  /**
464
464
  * https://developer.nulab.com/docs/backlog/api/2/update-webhook/
465
465
  */
466
466
  Backlog.prototype.patchWebhook = function (projectIdOrKey, webhookId, params) {
467
- return this.patch("projects/" + projectIdOrKey + "/webhooks/" + webhookId, params);
467
+ return this.patch("projects/".concat(projectIdOrKey, "/webhooks/").concat(webhookId), params);
468
468
  };
469
469
  /**
470
470
  * https://developer.nulab.com/docs/backlog/api/2/delete-webhook/
471
471
  */
472
472
  Backlog.prototype.deleteWebhook = function (projectIdOrKey, webhookId) {
473
- return this.delete("projects/" + projectIdOrKey + "/webhooks/" + webhookId);
473
+ return this.delete("projects/".concat(projectIdOrKey, "/webhooks/").concat(webhookId));
474
474
  };
475
475
  /**
476
476
  * https://developer.nulab.com/docs/backlog/api/2/get-issue-list/
@@ -494,109 +494,109 @@ var Backlog = /** @class */ (function (_super) {
494
494
  * https://developer.nulab.com/docs/backlog/api/2/update-issue/
495
495
  */
496
496
  Backlog.prototype.patchIssue = function (issueIdOrKey, params) {
497
- return this.patch("issues/" + issueIdOrKey, params);
497
+ return this.patch("issues/".concat(issueIdOrKey), params);
498
498
  };
499
499
  /**
500
500
  * https://developer.nulab.com/docs/backlog/api/2/get-issue/
501
501
  */
502
502
  Backlog.prototype.getIssue = function (issueIdOrKey) {
503
- return this.get("issues/" + issueIdOrKey);
503
+ return this.get("issues/".concat(issueIdOrKey));
504
504
  };
505
505
  /**
506
506
  * https://developer.nulab.com/docs/backlog/api/2/delete-issue/
507
507
  */
508
508
  Backlog.prototype.deleteIssuesCount = function (issueIdOrKey) {
509
- return this.delete("issues/" + issueIdOrKey);
509
+ return this.delete("issues/".concat(issueIdOrKey));
510
510
  };
511
511
  /**
512
512
  * https://developer.nulab.com/docs/backlog/api/2/get-comment-list/
513
513
  */
514
514
  Backlog.prototype.getIssueComments = function (issueIdOrKey, params) {
515
- return this.get("issues/" + issueIdOrKey + "/comments", params);
515
+ return this.get("issues/".concat(issueIdOrKey, "/comments"), params);
516
516
  };
517
517
  /**
518
518
  * https://developer.nulab.com/docs/backlog/api/2/add-comment/
519
519
  */
520
520
  Backlog.prototype.postIssueComments = function (issueIdOrKey, params) {
521
- return this.post("issues/" + issueIdOrKey + "/comments", params);
521
+ return this.post("issues/".concat(issueIdOrKey, "/comments"), params);
522
522
  };
523
523
  /**
524
524
  * https://developer.nulab.com/docs/backlog/api/2/count-comment/
525
525
  */
526
526
  Backlog.prototype.getIssueCommentsCount = function (issueIdOrKey) {
527
- return this.get("issues/" + issueIdOrKey + "/comments/count");
527
+ return this.get("issues/".concat(issueIdOrKey, "/comments/count"));
528
528
  };
529
529
  /**
530
530
  * https://developer.nulab.com/docs/backlog/api/2/get-comment/
531
531
  */
532
532
  Backlog.prototype.getIssueComment = function (issueIdOrKey, commentId) {
533
- return this.get("issues/" + issueIdOrKey + "/comments/" + commentId);
533
+ return this.get("issues/".concat(issueIdOrKey, "/comments/").concat(commentId));
534
534
  };
535
535
  /**
536
536
  * https://developer.nulab.com/docs/backlog/api/2/delete-comment/
537
537
  */
538
538
  Backlog.prototype.deleteIssueComment = function (issueIdOrKey, commentId) {
539
- return this.delete("issues/" + issueIdOrKey + "/comments/" + commentId);
539
+ return this.delete("issues/".concat(issueIdOrKey, "/comments/").concat(commentId));
540
540
  };
541
541
  /**
542
542
  * https://developer.nulab.com/docs/backlog/api/2/update-comment/
543
543
  */
544
544
  Backlog.prototype.patchIssueComment = function (issueIdOrKey, commentId, params) {
545
- return this.patch("issues/" + issueIdOrKey + "/comments/" + commentId, params);
545
+ return this.patch("issues/".concat(issueIdOrKey, "/comments/").concat(commentId), params);
546
546
  };
547
547
  /**
548
548
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-comment-notifications/
549
549
  */
550
550
  Backlog.prototype.getIssueCommentNotifications = function (issueIdOrKey, commentId) {
551
- return this.get("issues/" + issueIdOrKey + "/comments/" + commentId + "/notifications");
551
+ return this.get("issues/".concat(issueIdOrKey, "/comments/").concat(commentId, "/notifications"));
552
552
  };
553
553
  /**
554
554
  * https://developer.nulab.com/docs/backlog/api/2/add-comment-notification/
555
555
  */
556
556
  Backlog.prototype.postIssueCommentNotifications = function (issueIdOrKey, commentId, prams) {
557
- return this.post("issues/" + issueIdOrKey + "/comments/" + commentId + "/notifications", prams);
557
+ return this.post("issues/".concat(issueIdOrKey, "/comments/").concat(commentId, "/notifications"), prams);
558
558
  };
559
559
  /**
560
560
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-issue-attachments/
561
561
  */
562
562
  Backlog.prototype.getIssueAttachments = function (issueIdOrKey) {
563
- return this.get("issues/" + issueIdOrKey + "/attachments");
563
+ return this.get("issues/".concat(issueIdOrKey, "/attachments"));
564
564
  };
565
565
  /**
566
566
  * https://developer.nulab.com/docs/backlog/api/2/get-issue-attachment/
567
567
  */
568
568
  Backlog.prototype.getIssueAttachment = function (issueIdOrKey, attachmentId) {
569
- return this.download("issues/" + issueIdOrKey + "/attachments/" + attachmentId);
569
+ return this.download("issues/".concat(issueIdOrKey, "/attachments/").concat(attachmentId));
570
570
  };
571
571
  /**
572
572
  * https://developer.nulab.com/docs/backlog/api/2/delete-issue-attachment/
573
573
  */
574
574
  Backlog.prototype.deleteIssueAttachment = function (issueIdOrKey, attachmentId) {
575
- return this.delete("issues/" + issueIdOrKey + "/attachments/" + attachmentId);
575
+ return this.delete("issues/".concat(issueIdOrKey, "/attachments/").concat(attachmentId));
576
576
  };
577
577
  /**
578
578
  * https://developer.nulab.com/docs/backlog/api/2/get-issue-participant-list/
579
579
  */
580
580
  Backlog.prototype.getIssueParticipants = function (issueIdOrKey) {
581
- return this.get("issues/" + issueIdOrKey + "/participants");
581
+ return this.get("issues/".concat(issueIdOrKey, "/participants"));
582
582
  };
583
583
  /**
584
584
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-linked-shared-files/
585
585
  */
586
586
  Backlog.prototype.getIssueSharedFiles = function (issueIdOrKey) {
587
- return this.get("issues/" + issueIdOrKey + "/sharedFiles");
587
+ return this.get("issues/".concat(issueIdOrKey, "/sharedFiles"));
588
588
  };
589
589
  /**
590
590
  * https://developer.nulab.com/docs/backlog/api/2/link-shared-files-to-issue/
591
591
  */
592
592
  Backlog.prototype.linkIssueSharedFiles = function (issueIdOrKey, params) {
593
- return this.post("issues/" + issueIdOrKey + "/sharedFiles", params);
593
+ return this.post("issues/".concat(issueIdOrKey, "/sharedFiles"), params);
594
594
  };
595
595
  /**
596
596
  * https://developer.nulab.com/docs/backlog/api/2/remove-link-to-shared-file-from-issue/
597
597
  */
598
598
  Backlog.prototype.unlinkIssueSharedFile = function (issueIdOrKey, id) {
599
- return this.delete("issues/" + issueIdOrKey + "/sharedFiles/" + id);
599
+ return this.delete("issues/".concat(issueIdOrKey, "/sharedFiles/").concat(id));
600
600
  };
601
601
  /**
602
602
  * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-list/
@@ -626,73 +626,73 @@ var Backlog = /** @class */ (function (_super) {
626
626
  * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page/
627
627
  */
628
628
  Backlog.prototype.getWiki = function (wikiId) {
629
- return this.get("wikis/" + wikiId);
629
+ return this.get("wikis/".concat(wikiId));
630
630
  };
631
631
  /**
632
632
  * https://developer.nulab.com/docs/backlog/api/2/update-wiki-page/
633
633
  */
634
634
  Backlog.prototype.patchWiki = function (wikiId, params) {
635
- return this.patch("wikis/" + wikiId, params);
635
+ return this.patch("wikis/".concat(wikiId), params);
636
636
  };
637
637
  /**
638
638
  * https://developer.nulab.com/docs/backlog/api/2/delete-wiki-page/
639
639
  */
640
640
  Backlog.prototype.deleteWiki = function (wikiId, mailNotify) {
641
- return this.delete("wikis/" + wikiId, { mailNotify: mailNotify });
641
+ return this.delete("wikis/".concat(wikiId), { mailNotify: mailNotify });
642
642
  };
643
643
  /**
644
644
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-wiki-attachments/
645
645
  */
646
646
  Backlog.prototype.getWikisAttachments = function (wikiId) {
647
- return this.get("wikis/" + wikiId + "/attachments");
647
+ return this.get("wikis/".concat(wikiId, "/attachments"));
648
648
  };
649
649
  /**
650
650
  * https://developer.nulab.com/docs/backlog/api/2/attach-file-to-wiki/
651
651
  */
652
652
  Backlog.prototype.postWikisAttachments = function (wikiId, attachmentId) {
653
- return this.post("wikis/" + wikiId + "/attachments", { attachmentId: attachmentId });
653
+ return this.post("wikis/".concat(wikiId, "/attachments"), { attachmentId: attachmentId });
654
654
  };
655
655
  /**
656
656
  * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-attachment/
657
657
  */
658
658
  Backlog.prototype.getWikiAttachment = function (wikiId, attachmentId) {
659
- return this.download("wikis/" + wikiId + "/attachments/" + attachmentId);
659
+ return this.download("wikis/".concat(wikiId, "/attachments/").concat(attachmentId));
660
660
  };
661
661
  /**
662
662
  * https://developer.nulab.com/docs/backlog/api/2/remove-wiki-attachment/
663
663
  */
664
664
  Backlog.prototype.deleteWikisAttachments = function (wikiId, attachmentId) {
665
- return this.delete("wikis/" + wikiId + "/attachments/" + attachmentId);
665
+ return this.delete("wikis/".concat(wikiId, "/attachments/").concat(attachmentId));
666
666
  };
667
667
  /**
668
668
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-shared-files-on-wiki/
669
669
  */
670
670
  Backlog.prototype.getWikisSharedFiles = function (wikiId) {
671
- return this.get("wikis/" + wikiId + "/sharedFiles");
671
+ return this.get("wikis/".concat(wikiId, "/sharedFiles"));
672
672
  };
673
673
  /**
674
674
  * https://developer.nulab.com/docs/backlog/api/2/link-shared-files-to-wiki/
675
675
  */
676
676
  Backlog.prototype.linkWikisSharedFiles = function (wikiId, fileId) {
677
- return this.post("wikis/" + wikiId + "/sharedFiles", { fileId: fileId });
677
+ return this.post("wikis/".concat(wikiId, "/sharedFiles"), { fileId: fileId });
678
678
  };
679
679
  /**
680
680
  * https://developer.nulab.com/docs/backlog/api/2/remove-link-to-shared-file-from-wiki/
681
681
  */
682
682
  Backlog.prototype.unlinkWikisSharedFiles = function (wikiId, id) {
683
- return this.delete("wikis/" + wikiId + "/sharedFiles/" + id);
683
+ return this.delete("wikis/".concat(wikiId, "/sharedFiles/").concat(id));
684
684
  };
685
685
  /**
686
686
  * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-history/
687
687
  */
688
688
  Backlog.prototype.getWikisHistory = function (wikiId, params) {
689
- return this.get("wikis/" + wikiId + "/history", params);
689
+ return this.get("wikis/".concat(wikiId, "/history"), params);
690
690
  };
691
691
  /**
692
692
  * https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-star/
693
693
  */
694
694
  Backlog.prototype.getWikisStars = function (wikiId) {
695
- return this.get("wikis/" + wikiId + "/stars");
695
+ return this.get("wikis/".concat(wikiId, "/stars"));
696
696
  };
697
697
  /**
698
698
  * https://developer.nulab.com/docs/backlog/api/2/add-star/
@@ -722,109 +722,109 @@ var Backlog = /** @class */ (function (_super) {
722
722
  * https://developer.nulab.com/docs/backlog/api/2/read-notification/
723
723
  */
724
724
  Backlog.prototype.markAsReadNotification = function (id) {
725
- return this.post("notifications/" + id + "/markAsRead");
725
+ return this.post("notifications/".concat(id, "/markAsRead"));
726
726
  };
727
727
  /**
728
728
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-git-repositories/
729
729
  */
730
730
  Backlog.prototype.getGitRepositories = function (projectIdOrKey) {
731
- return this.get("projects/" + projectIdOrKey + "/git/repositories");
731
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories"));
732
732
  };
733
733
  /**
734
734
  * https://developer.nulab.com/docs/backlog/api/2/get-git-repository/
735
735
  */
736
736
  Backlog.prototype.getGitRepository = function (projectIdOrKey, repoIdOrName) {
737
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName);
737
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName));
738
738
  };
739
739
  /**
740
740
  * https://developer.nulab.com/docs/backlog/api/2/get-pull-request-list/
741
741
  */
742
742
  Backlog.prototype.getPullRequests = function (projectIdOrKey, repoIdOrName, params) {
743
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests", params);
743
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests"), params);
744
744
  };
745
745
  /**
746
746
  * https://developer.nulab.com/docs/backlog/api/2/get-number-of-pull-requests/
747
747
  */
748
748
  Backlog.prototype.getPullRequestsCount = function (projectIdOrKey, repoIdOrName, params) {
749
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/count", params);
749
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/count"), params);
750
750
  };
751
751
  /**
752
752
  * https://developer.nulab.com/docs/backlog/api/2/add-pull-request/
753
753
  */
754
754
  Backlog.prototype.postPullRequest = function (projectIdOrKey, repoIdOrName, params) {
755
- return this.post("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests", params);
755
+ return this.post("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests"), params);
756
756
  };
757
757
  /**
758
758
  * https://developer.nulab.com/docs/backlog/api/2/get-pull-request/
759
759
  */
760
760
  Backlog.prototype.getPullRequest = function (projectIdOrKey, repoIdOrName, number) {
761
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number);
761
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(number));
762
762
  };
763
763
  /**
764
764
  * https://developer.nulab.com/docs/backlog/api/2/update-pull-request/
765
765
  */
766
766
  Backlog.prototype.patchPullRequest = function (projectIdOrKey, repoIdOrName, number, params) {
767
- return this.patch("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number, params);
767
+ return this.patch("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(number), params);
768
768
  };
769
769
  /**
770
770
  * https://developer.nulab.com/docs/backlog/api/2/get-pull-request-comment/
771
771
  */
772
772
  Backlog.prototype.getPullRequestComments = function (projectIdOrKey, repoIdOrName, number, params) {
773
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/comments", params);
773
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(number, "/comments"), params);
774
774
  };
775
775
  /**
776
776
  * https://developer.nulab.com/docs/backlog/api/2/add-pull-request-comment/
777
777
  */
778
778
  Backlog.prototype.postPullRequestComments = function (projectIdOrKey, repoIdOrName, number, params) {
779
- return this.post("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/comments", params);
779
+ return this.post("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(number, "/comments"), params);
780
780
  };
781
781
  /**
782
782
  * https://developer.nulab.com/docs/backlog/api/2/get-number-of-pull-request-comments/
783
783
  */
784
784
  Backlog.prototype.getPullRequestCommentsCount = function (projectIdOrKey, repoIdOrName, number) {
785
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/comments/count");
785
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(number, "/comments/count"));
786
786
  };
787
787
  /**
788
788
  * https://developer.nulab.com/docs/backlog/api/2/update-pull-request-comment-information/
789
789
  */
790
790
  Backlog.prototype.patchPullRequestComments = function (projectIdOrKey, repoIdOrName, number, commentId, params) {
791
- return this.patch("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/comments/" + commentId, params);
791
+ return this.patch("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(number, "/comments/").concat(commentId), params);
792
792
  };
793
793
  /**
794
794
  * https://developer.nulab.com/docs/backlog/api/2/get-list-of-pull-request-attachment/
795
795
  */
796
796
  Backlog.prototype.getPullRequestAttachments = function (projectIdOrKey, repoIdOrName, number) {
797
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/attachments");
797
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(number, "/attachments"));
798
798
  };
799
799
  /**
800
800
  * https://developer.nulab.com/docs/backlog/api/2/download-pull-request-attachment/
801
801
  */
802
802
  Backlog.prototype.getPullRequestAttachment = function (projectIdOrKey, repoIdOrName, number, attachmentId) {
803
- return this.download("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/attachments/" + attachmentId);
803
+ return this.download("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(number, "/attachments/").concat(attachmentId));
804
804
  };
805
805
  /**
806
806
  * https://developer.nulab.com/docs/backlog/api/2/delete-pull-request-attachments/
807
807
  */
808
808
  Backlog.prototype.deletePullRequestAttachment = function (projectIdOrKey, repoIdOrName, number, attachmentId) {
809
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number + "/attachments/" + attachmentId);
809
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(number, "/attachments/").concat(attachmentId));
810
810
  };
811
811
  /**
812
812
  * https://developer.nulab.com/docs/backlog/api/2/get-watching-list
813
813
  */
814
814
  Backlog.prototype.getWatchingListItems = function (userId) {
815
- return this.get("users/" + userId + "/watchings");
815
+ return this.get("users/".concat(userId, "/watchings"));
816
816
  };
817
817
  /**
818
818
  * https://developer.nulab.com/docs/backlog/api/2/count-watching
819
819
  */
820
820
  Backlog.prototype.getWatchingListCount = function (userId) {
821
- return this.get("users/" + userId + "/watchings/count");
821
+ return this.get("users/".concat(userId, "/watchings/count"));
822
822
  };
823
823
  /**
824
824
  * https://developer.nulab.com/docs/backlog/api/2/get-watching
825
825
  */
826
826
  Backlog.prototype.getWatchingListItem = function (watchId) {
827
- return this.get("watchings/" + watchId);
827
+ return this.get("watchings/".concat(watchId));
828
828
  };
829
829
  /**
830
830
  * https://developer.nulab.com/docs/backlog/api/2/add-watching
@@ -836,19 +836,19 @@ var Backlog = /** @class */ (function (_super) {
836
836
  * https://developer.nulab.com/docs/backlog/api/2/update-watching
837
837
  */
838
838
  Backlog.prototype.patchWatchingListItem = function (watchId, note) {
839
- return this.patch("watchings/" + watchId, { note: note });
839
+ return this.patch("watchings/".concat(watchId), { note: note });
840
840
  };
841
841
  /**
842
842
  * https://developer.nulab.com/docs/backlog/api/2/delete-watching
843
843
  */
844
844
  Backlog.prototype.deletehWatchingListItem = function (watchId) {
845
- return this.delete("watchings/" + watchId);
845
+ return this.delete("watchings/".concat(watchId));
846
846
  };
847
847
  /**
848
848
  * https://developer.nulab.com/docs/backlog/api/2/mark-watching-as-read
849
849
  */
850
850
  Backlog.prototype.resetWatchingListItemAsRead = function (watchId) {
851
- return this.post("watchings/" + watchId + "/markAsRead");
851
+ return this.post("watchings/".concat(watchId, "/markAsRead"));
852
852
  };
853
853
  /**
854
854
  * https://developer.nulab.com/docs/backlog/api/2/get-project-group-list
@@ -856,7 +856,7 @@ var Backlog = /** @class */ (function (_super) {
856
856
  */
857
857
  Backlog.prototype.getProjectGroupList = function (projectIdOrKey) {
858
858
  console.warn("Deprecated: Use getProjectTeams instead.");
859
- return this.get("projects/" + projectIdOrKey + "/groups");
859
+ return this.get("projects/".concat(projectIdOrKey, "/groups"));
860
860
  };
861
861
  /**
862
862
  * https://developer.nulab.com/docs/backlog/api/2/add-project-group
@@ -864,7 +864,7 @@ var Backlog = /** @class */ (function (_super) {
864
864
  */
865
865
  Backlog.prototype.postProjectGroup = function (projectIdOrKey, params) {
866
866
  console.warn("Deprecated: Use postProjectTeam instead.");
867
- return this.post("projects/" + projectIdOrKey + "/groups", params);
867
+ return this.post("projects/".concat(projectIdOrKey, "/groups"), params);
868
868
  };
869
869
  /**
870
870
  * https://developer.nulab.com/docs/backlog/api/2/delete-project-group
@@ -872,7 +872,7 @@ var Backlog = /** @class */ (function (_super) {
872
872
  */
873
873
  Backlog.prototype.deleteProjectGroup = function (projectIdOrKey) {
874
874
  console.warn("Deprecated: Use deleteProjectTeam instead.");
875
- return this.delete("projects/" + projectIdOrKey + "/groups");
875
+ return this.delete("projects/".concat(projectIdOrKey, "/groups"));
876
876
  };
877
877
  /**
878
878
  * https://developer.nulab.com/docs/backlog/api/2/get-group-icon
@@ -880,7 +880,7 @@ var Backlog = /** @class */ (function (_super) {
880
880
  */
881
881
  Backlog.prototype.getGroupIcon = function (groupId) {
882
882
  console.warn("Deprecated: Use getTeamIcon instead.");
883
- return this.download("groups/" + groupId + "/icon");
883
+ return this.download("groups/".concat(groupId, "/icon"));
884
884
  };
885
885
  /**
886
886
  * https://developer.nulab.com/docs/backlog/api/2/get-licence
@@ -904,43 +904,43 @@ var Backlog = /** @class */ (function (_super) {
904
904
  * https://developer.nulab.com/docs/backlog/api/2/get-team/
905
905
  */
906
906
  Backlog.prototype.getTeam = function (teamId) {
907
- return this.get("teams/" + teamId);
907
+ return this.get("teams/".concat(teamId));
908
908
  };
909
909
  /**
910
910
  * https://developer.nulab.com/docs/backlog/api/2/update-team/
911
911
  */
912
912
  Backlog.prototype.patchTeam = function (teamId, params) {
913
- return this.patch("teams/" + teamId, params);
913
+ return this.patch("teams/".concat(teamId), params);
914
914
  };
915
915
  /**
916
916
  * https://developer.nulab.com/docs/backlog/api/2/delete-team/
917
917
  */
918
918
  Backlog.prototype.deleteTeam = function (teamId) {
919
- return this.delete("teams/" + teamId);
919
+ return this.delete("teams/".concat(teamId));
920
920
  };
921
921
  /**
922
922
  * https://developer.nulab.com/docs/backlog/api/2/get-team-icon/
923
923
  */
924
924
  Backlog.prototype.getTeamIcon = function (teamId) {
925
- return this.download("teams/" + teamId + "/icon");
925
+ return this.download("teams/".concat(teamId, "/icon"));
926
926
  };
927
927
  /**
928
928
  * https://developer.nulab.com/docs/backlog/api/2/get-project-team-list/
929
929
  */
930
930
  Backlog.prototype.getProjectTeams = function (projectIdOrKey) {
931
- return this.get("projects/" + projectIdOrKey + "/teams");
931
+ return this.get("projects/".concat(projectIdOrKey, "/teams"));
932
932
  };
933
933
  /**
934
934
  * https://developer.nulab.com/docs/backlog/api/2/add-project-team/
935
935
  */
936
936
  Backlog.prototype.postProjectTeam = function (projectIdOrKey, teamId) {
937
- return this.post("projects/" + projectIdOrKey + "/teams", { teamId: teamId });
937
+ return this.post("projects/".concat(projectIdOrKey, "/teams"), { teamId: teamId });
938
938
  };
939
939
  /**
940
940
  * https://developer.nulab.com/docs/backlog/api/2/delete-project-team/
941
941
  */
942
942
  Backlog.prototype.deleteProjectTeam = function (projectIdOrKey, teamId) {
943
- return this.delete("projects/" + projectIdOrKey + "/teams", { teamId: teamId });
943
+ return this.delete("projects/".concat(projectIdOrKey, "/teams"), { teamId: teamId });
944
944
  };
945
945
  /**
946
946
  * https://developer.nulab.com/docs/backlog/api/2/get-rate-limit/
@@ -1107,9 +1107,9 @@ var OAuth2 = /** @class */ (function () {
1107
1107
  redirect_uri: options.redirectUri,
1108
1108
  state: options.state
1109
1109
  };
1110
- return "https://" + options.host + "/OAuth2AccessRequest.action?" +
1110
+ return "https://".concat(options.host, "/OAuth2AccessRequest.action?") +
1111
1111
  Object.keys(params)
1112
- .map(function (key) { return params[key] ? key + "=" + params[key] : ''; })
1112
+ .map(function (key) { return params[key] ? "".concat(key, "=").concat(params[key]) : ''; })
1113
1113
  .filter(function (x) { return x.length > 0; })
1114
1114
  .join('&');
1115
1115
  };
@@ -1256,7 +1256,7 @@ var Request = /** @class */ (function () {
1256
1256
  Object.keys(params).forEach(function (key) { return query[key] = params[key]; });
1257
1257
  }
1258
1258
  var queryStr = this.toQueryString(query);
1259
- var url = this.restBaseURL + "/" + path + (queryStr.length > 0 ? "?" + queryStr : '');
1259
+ var url = "".concat(this.restBaseURL, "/").concat(path) + (queryStr.length > 0 ? "?".concat(queryStr) : '');
1260
1260
  return fetch(url, init).then(this.checkStatus);
1261
1261
  };
1262
1262
  Request.prototype.checkStatus = function (response) {
@@ -1284,14 +1284,14 @@ var Request = /** @class */ (function () {
1284
1284
  };
1285
1285
  Object.defineProperty(Request.prototype, "webAppBaseURL", {
1286
1286
  get: function () {
1287
- return "https://" + this.configure.host;
1287
+ return "https://".concat(this.configure.host);
1288
1288
  },
1289
1289
  enumerable: false,
1290
1290
  configurable: true
1291
1291
  });
1292
1292
  Object.defineProperty(Request.prototype, "restBaseURL", {
1293
1293
  get: function () {
1294
- return this.webAppBaseURL + "/api/v2";
1294
+ return "".concat(this.webAppBaseURL, "/api/v2");
1295
1295
  },
1296
1296
  enumerable: false,
1297
1297
  configurable: true
@@ -2405,7 +2405,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
2405
2405
  ) {
2406
2406
  obj = [];
2407
2407
  obj[index] = leaf;
2408
- } else {
2408
+ } else if (cleanRoot !== '__proto__') {
2409
2409
  obj[cleanRoot] = leaf;
2410
2410
  }
2411
2411
  }
@@ -2553,6 +2553,7 @@ var arrayPrefixGenerators = {
2553
2553
  };
2554
2554
 
2555
2555
  var isArray = Array.isArray;
2556
+ var split = String.prototype.split;
2556
2557
  var push = Array.prototype.push;
2557
2558
  var pushToArray = function (arr, valueOrArray) {
2558
2559
  push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
@@ -2589,6 +2590,8 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
2589
2590
  || typeof v === 'bigint';
2590
2591
  };
2591
2592
 
2593
+ var sentinel = {};
2594
+
2592
2595
  var stringify = function stringify(
2593
2596
  object,
2594
2597
  prefix,
@@ -2608,8 +2611,23 @@ var stringify = function stringify(
2608
2611
  ) {
2609
2612
  var obj = object;
2610
2613
 
2611
- if (sideChannel.has(object)) {
2612
- throw new RangeError('Cyclic object value');
2614
+ var tmpSc = sideChannel;
2615
+ var step = 0;
2616
+ var findFlag = false;
2617
+ while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
2618
+ // Where object last appeared in the ref tree
2619
+ var pos = tmpSc.get(object);
2620
+ step += 1;
2621
+ if (typeof pos !== 'undefined') {
2622
+ if (pos === step) {
2623
+ throw new RangeError('Cyclic object value');
2624
+ } else {
2625
+ findFlag = true; // Break while
2626
+ }
2627
+ }
2628
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
2629
+ step = 0;
2630
+ }
2613
2631
  }
2614
2632
 
2615
2633
  if (typeof filter === 'function') {
@@ -2636,6 +2654,14 @@ var stringify = function stringify(
2636
2654
  if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
2637
2655
  if (encoder) {
2638
2656
  var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
2657
+ if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
2658
+ var valuesArray = split.call(String(obj), ',');
2659
+ var valuesJoined = '';
2660
+ for (var i = 0; i < valuesArray.length; ++i) {
2661
+ valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
2662
+ }
2663
+ return [formatter(keyValue) + '=' + valuesJoined];
2664
+ }
2639
2665
  return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
2640
2666
  }
2641
2667
  return [formatter(prefix) + '=' + formatter(String(obj))];
@@ -2650,7 +2676,7 @@ var stringify = function stringify(
2650
2676
  var objKeys;
2651
2677
  if (generateArrayPrefix === 'comma' && isArray(obj)) {
2652
2678
  // we need to join elements in
2653
- objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
2679
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
2654
2680
  } else if (isArray(filter)) {
2655
2681
  objKeys = filter;
2656
2682
  } else {
@@ -2658,9 +2684,9 @@ var stringify = function stringify(
2658
2684
  objKeys = sort ? keys.sort(sort) : keys;
2659
2685
  }
2660
2686
 
2661
- for (var i = 0; i < objKeys.length; ++i) {
2662
- var key = objKeys[i];
2663
- var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
2687
+ for (var j = 0; j < objKeys.length; ++j) {
2688
+ var key = objKeys[j];
2689
+ var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
2664
2690
 
2665
2691
  if (skipNulls && value === null) {
2666
2692
  continue;
@@ -2670,8 +2696,9 @@ var stringify = function stringify(
2670
2696
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
2671
2697
  : prefix + (allowDots ? '.' + key : '[' + key + ']');
2672
2698
 
2673
- sideChannel.set(object, true);
2699
+ sideChannel.set(object, step);
2674
2700
  var valueSideChannel = getSideChannel();
2701
+ valueSideChannel.set(sentinel, sideChannel);
2675
2702
  pushToArray(values, stringify(
2676
2703
  value,
2677
2704
  keyPrefix,
@@ -2699,7 +2726,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
2699
2726
  return defaults;
2700
2727
  }
2701
2728
 
2702
- if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
2729
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
2703
2730
  throw new TypeError('Encoder has to be a function.');
2704
2731
  }
2705
2732
 
@@ -3003,6 +3030,7 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
3003
3030
 
3004
3031
  i += 1;
3005
3032
  c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
3033
+ /* eslint operator-linebreak: [2, "before"] */
3006
3034
  out += hexTable[0xF0 | (c >> 18)]
3007
3035
  + hexTable[0x80 | ((c >> 12) & 0x3F)]
3008
3036
  + hexTable[0x80 | ((c >> 6) & 0x3F)]