backlog-js 0.12.3 → 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
@@ -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
- return this.get("users/" + userId);
77
+ return this.get("users/".concat(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
- return this.patch("users/" + userId, params);
89
+ return this.patch("users/".concat(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
- return this.delete("users/" + userId);
95
+ return this.delete("users/".concat(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
- return this.download("users/" + userId + "/icon");
107
+ return this.download("users/".concat(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
- return this.get("users/" + userId + "/activities", params);
113
+ return this.get("users/".concat(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
- return this.get("users/" + userId + "/stars", params);
119
+ return this.get("users/".concat(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
- return this.get("users/" + userId + "/stars/count", params);
125
+ return this.get("users/".concat(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
- return this.get("groups/" + groupId);
167
+ return this.get("groups/".concat(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
- return this.patch("groups/" + groupId, params);
175
+ return this.patch("groups/".concat(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
- return this.delete("groups/" + groupId);
183
+ return this.delete("groups/".concat(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
- return this.get("projects/" + projectIdOrKey + "/statuses");
197
+ return this.get("projects/".concat(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
- return this.get("projects/" + projectIdOrKey);
227
+ return this.get("projects/".concat(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
- return this.patch("projects/" + projectIdOrKey, params);
233
+ return this.patch("projects/".concat(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
- return this.delete("projects/" + projectIdOrKey);
239
+ return this.delete("projects/".concat(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
- return this.download("projects/" + projectIdOrKey + "/image");
245
+ return this.download("projects/".concat(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
- return this.get("projects/" + projectIdOrKey + "/activities", params);
251
+ return this.get("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/users", { userId: userId });
257
+ return this.post("projects/".concat(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
- return this.get("projects/" + projectIdOrKey + "/users");
263
+ return this.get("projects/".concat(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
- return this.delete("projects/" + projectIdOrKey + "/users", params);
269
+ return this.delete("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/administrators", params);
275
+ return this.post("projects/".concat(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
- return this.get("projects/" + projectIdOrKey + "/administrators");
281
+ return this.get("projects/".concat(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
- return this.delete("projects/" + projectIdOrKey + "/administrators", params);
287
+ return this.delete("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/statuses", params);
293
+ return this.post("projects/".concat(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
- return this.patch("projects/" + projectIdOrKey + "/statuses/" + id, params);
299
+ return this.patch("projects/".concat(projectIdOrKey, "/statuses/").concat(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
- return this.delete("projects/" + projectIdOrKey + "/statuses/" + id, { substituteStatusId: substituteStatusId });
305
+ return this.delete("projects/".concat(projectIdOrKey, "/statuses/").concat(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
- return this.patch("projects/" + projectIdOrKey + "/statuses/updateDisplayOrder", { statusId: statusId });
311
+ return this.patch("projects/".concat(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
- return this.get("projects/" + projectIdOrKey + "/issueTypes");
317
+ return this.get("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/issueTypes", params);
323
+ return this.post("projects/".concat(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
- return this.patch("projects/" + projectIdOrKey + "/issueTypes/" + id, params);
329
+ return this.patch("projects/".concat(projectIdOrKey, "/issueTypes/").concat(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
- return this.delete("projects/" + projectIdOrKey + "/issueTypes/" + id, params);
335
+ return this.delete("projects/".concat(projectIdOrKey, "/issueTypes/").concat(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
- return this.get("projects/" + projectIdOrKey + "/categories");
341
+ return this.get("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/categories", params);
347
+ return this.post("projects/".concat(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
- return this.patch("projects/" + projectIdOrKey + "/categories/" + id, params);
353
+ return this.patch("projects/".concat(projectIdOrKey, "/categories/").concat(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
- return this.delete("projects/" + projectIdOrKey + "/categories/" + id);
359
+ return this.delete("projects/".concat(projectIdOrKey, "/categories/").concat(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
- return this.get("projects/" + projectIdOrKey + "/versions");
365
+ return this.get("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/versions", params);
371
+ return this.post("projects/".concat(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
- return this.patch("projects/" + projectIdOrKey + "/versions/" + id, params);
377
+ return this.patch("projects/".concat(projectIdOrKey, "/versions/").concat(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
- return this.delete("projects/" + projectIdOrKey + "/versions/" + id);
383
+ return this.delete("projects/".concat(projectIdOrKey, "/versions/").concat(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
- return this.get("projects/" + projectIdOrKey + "/customFields");
389
+ return this.get("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/customFields", params);
395
+ return this.post("projects/".concat(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
- return this.patch("projects/" + projectIdOrKey + "/customFields/" + id, params);
401
+ return this.patch("projects/".concat(projectIdOrKey, "/customFields/").concat(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
- return this.delete("projects/" + projectIdOrKey + "/customFields/" + id);
407
+ return this.delete("projects/".concat(projectIdOrKey, "/customFields/").concat(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
- return this.post("projects/" + projectIdOrKey + "/customFields/" + id + "/items", params);
413
+ return this.post("projects/".concat(projectIdOrKey, "/customFields/").concat(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
- return this.patch("projects/" + projectIdOrKey + "/customFields/" + id + "/items/" + itemId, params);
419
+ return this.patch("projects/".concat(projectIdOrKey, "/customFields/").concat(id, "/items/").concat(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
- return this.delete("projects/" + projectIdOrKey + "/customFields/" + id + "/items/" + itemId);
425
+ return this.delete("projects/".concat(projectIdOrKey, "/customFields/").concat(id, "/items/").concat(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
- return this.get("projects/" + projectIdOrKey + "/files/metadata/" + path, params);
431
+ return this.get("projects/".concat(projectIdOrKey, "/files/metadata/").concat(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
- return this.download("projects/" + projectIdOrKey + "/files/" + sharedFileId);
437
+ return this.download("projects/".concat(projectIdOrKey, "/files/").concat(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
- return this.get("projects/" + projectIdOrKey + "/diskUsage");
443
+ return this.get("projects/".concat(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
- return this.get("projects/" + projectIdOrKey + "/webhooks");
449
+ return this.get("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/webhooks", params);
455
+ return this.post("projects/".concat(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
- return this.get("projects/" + projectIdOrKey + "/webhooks/" + webhookId);
461
+ return this.get("projects/".concat(projectIdOrKey, "/webhooks/").concat(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
- return this.patch("projects/" + projectIdOrKey + "/webhooks/" + webhookId, params);
467
+ return this.patch("projects/".concat(projectIdOrKey, "/webhooks/").concat(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
- return this.delete("projects/" + projectIdOrKey + "/webhooks/" + webhookId);
473
+ return this.delete("projects/".concat(projectIdOrKey, "/webhooks/").concat(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
- return this.patch("issues/" + issueIdOrKey, params);
497
+ return this.patch("issues/".concat(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
- return this.get("issues/" + issueIdOrKey);
503
+ return this.get("issues/".concat(issueIdOrKey));
264
504
  };
505
+ /**
506
+ * https://developer.nulab.com/docs/backlog/api/2/delete-issue/
507
+ */
265
508
  Backlog.prototype.deleteIssuesCount = function (issueIdOrKey) {
266
- return this.delete("issues/" + issueIdOrKey);
509
+ return this.delete("issues/".concat(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
- return this.get("issues/" + issueIdOrKey + "/comments", params);
515
+ return this.get("issues/".concat(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
- return this.post("issues/" + issueIdOrKey + "/comments", params);
521
+ return this.post("issues/".concat(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
- return this.get("issues/" + issueIdOrKey + "/comments/count");
527
+ return this.get("issues/".concat(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
- return this.get("issues/" + issueIdOrKey + "/comments/" + commentId);
533
+ return this.get("issues/".concat(issueIdOrKey, "/comments/").concat(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
- return this.delete("issues/" + issueIdOrKey + "/comments/" + commentId);
539
+ return this.delete("issues/".concat(issueIdOrKey, "/comments/").concat(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
- return this.patch("issues/" + issueIdOrKey + "/comments/" + commentId, params);
545
+ return this.patch("issues/".concat(issueIdOrKey, "/comments/").concat(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
- return this.get("issues/" + issueIdOrKey + "/comments/" + commentId + "/notifications");
551
+ return this.get("issues/".concat(issueIdOrKey, "/comments/").concat(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
- return this.post("issues/" + issueIdOrKey + "/comments/" + commentId + "/notifications", prams);
557
+ return this.post("issues/".concat(issueIdOrKey, "/comments/").concat(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
- return this.get("issues/" + issueIdOrKey + "/attachments");
563
+ return this.get("issues/".concat(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
- return this.download("issues/" + issueIdOrKey + "/attachments/" + attachmentId);
569
+ return this.download("issues/".concat(issueIdOrKey, "/attachments/").concat(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
- return this.delete("issues/" + issueIdOrKey + "/attachments/" + attachmentId);
575
+ return this.delete("issues/".concat(issueIdOrKey, "/attachments/").concat(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
- return this.get("issues/" + issueIdOrKey + "/participants");
581
+ return this.get("issues/".concat(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
- return this.get("issues/" + issueIdOrKey + "/sharedFiles");
587
+ return this.get("issues/".concat(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
- return this.post("issues/" + issueIdOrKey + "/sharedFiles", params);
593
+ return this.post("issues/".concat(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
- return this.delete("issues/" + issueIdOrKey + "/sharedFiles/" + id);
599
+ return this.delete("issues/".concat(issueIdOrKey, "/sharedFiles/").concat(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
- return this.get("wikis/" + wikiId);
629
+ return this.get("wikis/".concat(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
- return this.patch("wikis/" + wikiId, params);
635
+ return this.patch("wikis/".concat(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
- return this.delete("wikis/" + wikiId, { mailNotify: mailNotify });
641
+ return this.delete("wikis/".concat(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
- return this.get("wikis/" + wikiId + "/attachments");
647
+ return this.get("wikis/".concat(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
- return this.post("wikis/" + wikiId + "/attachments", { attachmentId: attachmentId });
653
+ return this.post("wikis/".concat(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
- return this.download("wikis/" + wikiId + "/attachments/" + attachmentId);
659
+ return this.download("wikis/".concat(wikiId, "/attachments/").concat(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
- return this.delete("wikis/" + wikiId + "/attachments/" + attachmentId);
665
+ return this.delete("wikis/".concat(wikiId, "/attachments/").concat(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
- return this.get("wikis/" + wikiId + "/sharedFiles");
671
+ return this.get("wikis/".concat(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
- return this.post("wikis/" + wikiId + "/sharedFiles", { fileId: fileId });
677
+ return this.post("wikis/".concat(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
- return this.delete("wikis/" + wikiId + "/sharedFiles/" + id);
683
+ return this.delete("wikis/".concat(wikiId, "/sharedFiles/").concat(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
- return this.get("wikis/" + wikiId + "/history", params);
689
+ return this.get("wikis/".concat(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
- return this.get("wikis/" + wikiId + "/stars");
695
+ return this.get("wikis/".concat(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
- return this.post("notifications/" + id + "/markAsRead");
725
+ return this.post("notifications/".concat(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
- return this.get("projects/" + projectIdOrKey + "/git/repositories");
731
+ return this.get("projects/".concat(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
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName);
737
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(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
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests", params);
743
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(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
- 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);
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
- return this.post("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests", params);
755
+ return this.post("projects/".concat(projectIdOrKey, "/git/repositories/").concat(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
- return this.get("projects/" + projectIdOrKey + "/git/repositories/" + repoIdOrName + "/pullRequests/" + number);
761
+ return this.get("projects/".concat(projectIdOrKey, "/git/repositories/").concat(repoIdOrName, "/pullRequests/").concat(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
- 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);
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
- 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);
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
- 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);
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
- 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"));
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
- 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);
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
- 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"));
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
- 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));
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
- 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));
417
810
  };
811
+ /**
812
+ * https://developer.nulab.com/docs/backlog/api/2/get-watching-list
813
+ */
418
814
  Backlog.prototype.getWatchingListItems = function (userId) {
419
- return this.get("users/" + userId + "/watchings");
815
+ return this.get("users/".concat(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
- return this.get("users/" + userId + "/watchings/count");
821
+ return this.get("users/".concat(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
- return this.get("watchings/" + watchId);
827
+ return this.get("watchings/".concat(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
- return this.patch("watchings/" + watchId, { note: note });
839
+ return this.patch("watchings/".concat(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
- return this.delete("watchings/" + watchId);
845
+ return this.delete("watchings/".concat(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
- return this.post("watchings/" + watchId + "/markAsRead");
851
+ return this.post("watchings/".concat(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
- return this.get("projects/" + projectIdOrKey + "/groups");
859
+ return this.get("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/groups", params);
867
+ return this.post("projects/".concat(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
- return this.delete("projects/" + projectIdOrKey + "/groups");
875
+ return this.delete("projects/".concat(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
- return this.download("groups/" + groupId + "/icon");
883
+ return this.download("groups/".concat(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
- return this.get("teams/" + teamId);
907
+ return this.get("teams/".concat(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
- return this.patch("teams/" + teamId, params);
913
+ return this.patch("teams/".concat(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
- return this.delete("teams/" + teamId);
919
+ return this.delete("teams/".concat(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
- return this.download("teams/" + teamId + "/icon");
925
+ return this.download("teams/".concat(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
- return this.get("projects/" + projectIdOrKey + "/teams");
931
+ return this.get("projects/".concat(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
- return this.post("projects/" + projectIdOrKey + "/teams", { teamId: teamId });
937
+ return this.post("projects/".concat(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
- return this.delete("projects/" + projectIdOrKey + "/teams", { teamId: teamId });
943
+ return this.delete("projects/".concat(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;
@@ -646,9 +1107,9 @@ var OAuth2 = (function () {
646
1107
  redirect_uri: options.redirectUri,
647
1108
  state: options.state
648
1109
  };
649
- return "https://" + options.host + "/OAuth2AccessRequest.action?" +
1110
+ return "https://".concat(options.host, "/OAuth2AccessRequest.action?") +
650
1111
  Object.keys(params)
651
- .map(function (key) { return params[key] ? key + "=" + params[key] : ''; })
1112
+ .map(function (key) { return params[key] ? "".concat(key, "=").concat(params[key]) : ''; })
652
1113
  .filter(function (x) { return x.length > 0; })
653
1114
  .join('&');
654
1115
  };
@@ -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
  }
@@ -795,7 +1256,7 @@ var Request = (function () {
795
1256
  Object.keys(params).forEach(function (key) { return query[key] = params[key]; });
796
1257
  }
797
1258
  var queryStr = this.toQueryString(query);
798
- var url = this.restBaseURL + "/" + path + (queryStr.length > 0 ? "?" + queryStr : '');
1259
+ var url = "".concat(this.restBaseURL, "/").concat(path) + (queryStr.length > 0 ? "?".concat(queryStr) : '');
799
1260
  return fetch(url, init).then(this.checkStatus);
800
1261
  };
801
1262
  Request.prototype.checkStatus = function (response) {
@@ -823,14 +1284,14 @@ var Request = (function () {
823
1284
  };
824
1285
  Object.defineProperty(Request.prototype, "webAppBaseURL", {
825
1286
  get: function () {
826
- return "https://" + this.configure.host;
1287
+ return "https://".concat(this.configure.host);
827
1288
  },
828
1289
  enumerable: false,
829
1290
  configurable: true
830
1291
  });
831
1292
  Object.defineProperty(Request.prototype, "restBaseURL", {
832
1293
  get: function () {
833
- return this.webAppBaseURL + "/api/v2";
1294
+ return "".concat(this.webAppBaseURL, "/api/v2");
834
1295
  },
835
1296
  enumerable: false,
836
1297
  configurable: true
@@ -1944,7 +2405,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
1944
2405
  ) {
1945
2406
  obj = [];
1946
2407
  obj[index] = leaf;
1947
- } else {
2408
+ } else if (cleanRoot !== '__proto__') {
1948
2409
  obj[cleanRoot] = leaf;
1949
2410
  }
1950
2411
  }
@@ -2092,6 +2553,7 @@ var arrayPrefixGenerators = {
2092
2553
  };
2093
2554
 
2094
2555
  var isArray = Array.isArray;
2556
+ var split = String.prototype.split;
2095
2557
  var push = Array.prototype.push;
2096
2558
  var pushToArray = function (arr, valueOrArray) {
2097
2559
  push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
@@ -2128,6 +2590,8 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
2128
2590
  || typeof v === 'bigint';
2129
2591
  };
2130
2592
 
2593
+ var sentinel = {};
2594
+
2131
2595
  var stringify = function stringify(
2132
2596
  object,
2133
2597
  prefix,
@@ -2147,8 +2611,23 @@ var stringify = function stringify(
2147
2611
  ) {
2148
2612
  var obj = object;
2149
2613
 
2150
- if (sideChannel.has(object)) {
2151
- 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
+ }
2152
2631
  }
2153
2632
 
2154
2633
  if (typeof filter === 'function') {
@@ -2175,6 +2654,14 @@ var stringify = function stringify(
2175
2654
  if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
2176
2655
  if (encoder) {
2177
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
+ }
2178
2665
  return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
2179
2666
  }
2180
2667
  return [formatter(prefix) + '=' + formatter(String(obj))];
@@ -2189,7 +2676,7 @@ var stringify = function stringify(
2189
2676
  var objKeys;
2190
2677
  if (generateArrayPrefix === 'comma' && isArray(obj)) {
2191
2678
  // we need to join elements in
2192
- objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
2679
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
2193
2680
  } else if (isArray(filter)) {
2194
2681
  objKeys = filter;
2195
2682
  } else {
@@ -2197,9 +2684,9 @@ var stringify = function stringify(
2197
2684
  objKeys = sort ? keys.sort(sort) : keys;
2198
2685
  }
2199
2686
 
2200
- for (var i = 0; i < objKeys.length; ++i) {
2201
- var key = objKeys[i];
2202
- 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];
2203
2690
 
2204
2691
  if (skipNulls && value === null) {
2205
2692
  continue;
@@ -2209,8 +2696,9 @@ var stringify = function stringify(
2209
2696
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
2210
2697
  : prefix + (allowDots ? '.' + key : '[' + key + ']');
2211
2698
 
2212
- sideChannel.set(object, true);
2699
+ sideChannel.set(object, step);
2213
2700
  var valueSideChannel = getSideChannel();
2701
+ valueSideChannel.set(sentinel, sideChannel);
2214
2702
  pushToArray(values, stringify(
2215
2703
  value,
2216
2704
  keyPrefix,
@@ -2238,7 +2726,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
2238
2726
  return defaults;
2239
2727
  }
2240
2728
 
2241
- if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
2729
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
2242
2730
  throw new TypeError('Encoder has to be a function.');
2243
2731
  }
2244
2732
 
@@ -2542,6 +3030,7 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
2542
3030
 
2543
3031
  i += 1;
2544
3032
  c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
3033
+ /* eslint operator-linebreak: [2, "before"] */
2545
3034
  out += hexTable[0xF0 | (c >> 18)]
2546
3035
  + hexTable[0x80 | ((c >> 12) & 0x3F)]
2547
3036
  + hexTable[0x80 | ((c >> 6) & 0x3F)]