backlog-js 0.12.6 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.13.0](https://github.com/nulab/backlog-js/compare/0.12.6...0.13.0) (2023-06-02)
4
+
5
+ * add type annotation for response [#77](https://github.com/nulab/backlog-js/pull/77) ([mmktomato](https://github.com/mmktomato))
6
+ * Bump json-schema and jsprim [#76](https://github.com/nulab/backlog-js/pull/76) ([dependabot[bot]](https://github.com/apps/dependabot))
7
+ * Bump minimist and mkdirp [#75](https://github.com/nulab/backlog-js/pull/75) ([dependabot[bot]](https://github.com/apps/dependabot))
8
+ * Bump undici from 5.8.1 to 5.19.1 [#74](https://github.com/nulab/backlog-js/pull/74) ([dependabot[bot]](https://github.com/apps/dependabot))
9
+ * Bump minimatch from 3.0.4 to 3.1.2 [#72](https://github.com/nulab/backlog-js/pull/72) ([dependabot[bot]](https://github.com/apps/dependabot))
10
+ * Add Node.js v18 support to CI [#70](https://github.com/nulab/backlog-js/pull/70) ([mmktomato](https://github.com/mmktomato))
11
+ * Remove es6-promise [#69](https://github.com/nulab/backlog-js/pull/69) ([mmktomato](https://github.com/mmktomato))
12
+ * Bump shell-quote from 1.7.2 to 1.7.3 [#68](https://github.com/nulab/backlog-js/pull/68) ([dependabot[bot]](https://github.com/apps/dependabot))
13
+ * Removed DefinitelyTyped badge [#67](https://github.com/nulab/backlog-js/pull/67) ([mmktomato](https://github.com/mmktomato))
14
+
3
15
  ## [0.12.6](https://github.com/nulab/backlog-js/compare/0.12.5...0.12.6) (2022-05-11)
4
16
 
5
17
  * Bump ansi-regex from 5.0.0 to 5.0.1 [#62](https://github.com/nulab/backlog-js/pull/62) ([dependabot[bot]](https://github.com/apps/dependabot))
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # backlog-js [![CI](https://github.com/nulab/backlog-js/actions/workflows/nodejs.yml/badge.svg)](https://github.com/nulab/backlog-js/actions/workflows/nodejs.yml) [![npm version](https://badge.fury.io/js/backlog-js.svg)](https://badge.fury.io/js/backlog-js) [![TypeScript definitions on DefinitelyTyped](http://definitelytyped.org/badges/standard.svg)](http://definitelytyped.org)
1
+ # backlog-js [![CI](https://github.com/nulab/backlog-js/actions/workflows/nodejs.yml/badge.svg)](https://github.com/nulab/backlog-js/actions/workflows/nodejs.yml) [![npm version](https://badge.fury.io/js/backlog-js.svg)](https://badge.fury.io/js/backlog-js)
2
2
  Backlog API version 2 client for browser and node.
3
3
 
4
4
  ## Required reading
@@ -16,11 +16,8 @@ Append your "API Key" or "OAuth2 Access Token" to requests to the API to return
16
16
  ``` javascript
17
17
  import 'isomorphic-form-data';
18
18
  import 'isomorphic-fetch';
19
- import * as es6promise from 'es6-promise';
20
19
  import * as backlogjs from 'backlog-js';
21
20
 
22
- es6promise.polyfill();
23
-
24
21
  // 'xxx.backlog.jp' or 'xxx.backlogtool.com' or 'your package host'
25
22
  const host = 'yourSpaceHost';
26
23
  const apiKey = 'yourApiKey';
package/dist/backlog.js CHANGED
@@ -1079,7 +1079,7 @@ exports.UnexpectedError = UnexpectedError;
1079
1079
  },{}],4:[function(require,module,exports){
1080
1080
  "use strict";
1081
1081
  Object.defineProperty(exports, "__esModule", { value: true });
1082
- exports.Error = exports.Entity = exports.Option = exports.OAuth2 = exports.Backlog = void 0;
1082
+ exports.Error = exports.Types = exports.Entity = exports.Option = exports.OAuth2 = exports.Backlog = void 0;
1083
1083
  var backlog_1 = require("./backlog");
1084
1084
  exports.Backlog = backlog_1.default;
1085
1085
  var oauth2_1 = require("./oauth2");
@@ -1088,10 +1088,12 @@ var Option = require("./option");
1088
1088
  exports.Option = Option;
1089
1089
  var Entity = require("./entity");
1090
1090
  exports.Entity = Entity;
1091
+ var Types = require("./types");
1092
+ exports.Types = Types;
1091
1093
  var Error = require("./error");
1092
1094
  exports.Error = Error;
1093
1095
 
1094
- },{"./backlog":1,"./entity":2,"./error":3,"./oauth2":5,"./option":6}],5:[function(require,module,exports){
1096
+ },{"./backlog":1,"./entity":2,"./error":3,"./oauth2":5,"./option":6,"./types":8}],5:[function(require,module,exports){
1095
1097
  "use strict";
1096
1098
  Object.defineProperty(exports, "__esModule", { value: true });
1097
1099
  var request_1 = require("./request");
@@ -1141,58 +1143,7 @@ exports.default = OAuth2;
1141
1143
  },{"./request":7}],6:[function(require,module,exports){
1142
1144
  "use strict";
1143
1145
  Object.defineProperty(exports, "__esModule", { value: true });
1144
- exports.Issue = exports.Project = exports.User = exports.ActivityType = void 0;
1145
- var ActivityType;
1146
- (function (ActivityType) {
1147
- ActivityType[ActivityType["Undefined"] = -1] = "Undefined";
1148
- ActivityType[ActivityType["IssueCreated"] = 1] = "IssueCreated";
1149
- ActivityType[ActivityType["IssueUpdated"] = 2] = "IssueUpdated";
1150
- ActivityType[ActivityType["IssueCommented"] = 3] = "IssueCommented";
1151
- ActivityType[ActivityType["IssueDeleted"] = 4] = "IssueDeleted";
1152
- ActivityType[ActivityType["WikiCreated"] = 5] = "WikiCreated";
1153
- ActivityType[ActivityType["WikiUpdated"] = 6] = "WikiUpdated";
1154
- ActivityType[ActivityType["WikiDeleted"] = 7] = "WikiDeleted";
1155
- ActivityType[ActivityType["FileAdded"] = 8] = "FileAdded";
1156
- ActivityType[ActivityType["FileUpdated"] = 9] = "FileUpdated";
1157
- ActivityType[ActivityType["FileDeleted"] = 10] = "FileDeleted";
1158
- ActivityType[ActivityType["SvnCommitted"] = 11] = "SvnCommitted";
1159
- ActivityType[ActivityType["GitPushed"] = 12] = "GitPushed";
1160
- ActivityType[ActivityType["GitRepositoryCreated"] = 13] = "GitRepositoryCreated";
1161
- ActivityType[ActivityType["IssueMultiUpdated"] = 14] = "IssueMultiUpdated";
1162
- ActivityType[ActivityType["ProjectUserAdded"] = 15] = "ProjectUserAdded";
1163
- ActivityType[ActivityType["ProjectUserRemoved"] = 16] = "ProjectUserRemoved";
1164
- ActivityType[ActivityType["NotifyAdded"] = 17] = "NotifyAdded";
1165
- ActivityType[ActivityType["PullRequestAdded"] = 18] = "PullRequestAdded";
1166
- ActivityType[ActivityType["PullRequestUpdated"] = 19] = "PullRequestUpdated";
1167
- ActivityType[ActivityType["PullRequestCommented"] = 20] = "PullRequestCommented";
1168
- ActivityType[ActivityType["PullRequestMerged"] = 21] = "PullRequestMerged";
1169
- })(ActivityType = exports.ActivityType || (exports.ActivityType = {}));
1170
- var User;
1171
- (function (User) {
1172
- var RoleType;
1173
- (function (RoleType) {
1174
- RoleType[RoleType["Admin"] = 1] = "Admin";
1175
- RoleType[RoleType["User"] = 2] = "User";
1176
- RoleType[RoleType["Reporter"] = 3] = "Reporter";
1177
- RoleType[RoleType["Viewer"] = 4] = "Viewer";
1178
- RoleType[RoleType["GuestReporter"] = 5] = "GuestReporter";
1179
- RoleType[RoleType["GuestViewer"] = 6] = "GuestViewer";
1180
- })(RoleType = User.RoleType || (User.RoleType = {}));
1181
- })(User = exports.User || (exports.User = {}));
1182
- var Project;
1183
- (function (Project) {
1184
- var FieldType;
1185
- (function (FieldType) {
1186
- FieldType[FieldType["Text"] = 1] = "Text";
1187
- FieldType[FieldType["TextArea"] = 2] = "TextArea";
1188
- FieldType[FieldType["Numeric"] = 3] = "Numeric";
1189
- FieldType[FieldType["Date"] = 4] = "Date";
1190
- FieldType[FieldType["SingleList"] = 5] = "SingleList";
1191
- FieldType[FieldType["MultipleList"] = 6] = "MultipleList";
1192
- FieldType[FieldType["CheckBox"] = 7] = "CheckBox";
1193
- FieldType[FieldType["Radio"] = 8] = "Radio";
1194
- })(FieldType = Project.FieldType || (Project.FieldType = {}));
1195
- })(Project = exports.Project || (exports.Project = {}));
1146
+ exports.Issue = void 0;
1196
1147
  var Issue;
1197
1148
  (function (Issue) {
1198
1149
  var ParentChildType;
@@ -1300,9 +1251,71 @@ var Request = /** @class */ (function () {
1300
1251
  }());
1301
1252
  exports.default = Request;
1302
1253
 
1303
- },{"./error":3,"qs":19}],8:[function(require,module,exports){
1254
+ },{"./error":3,"qs":20}],8:[function(require,module,exports){
1255
+ "use strict";
1256
+ Object.defineProperty(exports, "__esModule", { value: true });
1257
+ exports.CustomFieldType = exports.ActivityType = exports.NormalRoleType = exports.ClassicRoleType = void 0;
1258
+ var ClassicRoleType;
1259
+ (function (ClassicRoleType) {
1260
+ ClassicRoleType[ClassicRoleType["Admin"] = 1] = "Admin";
1261
+ ClassicRoleType[ClassicRoleType["User"] = 2] = "User";
1262
+ ClassicRoleType[ClassicRoleType["Reporter"] = 3] = "Reporter";
1263
+ ClassicRoleType[ClassicRoleType["Viewer"] = 4] = "Viewer";
1264
+ ClassicRoleType[ClassicRoleType["GuestReporter"] = 5] = "GuestReporter";
1265
+ ClassicRoleType[ClassicRoleType["GuestViewer"] = 6] = "GuestViewer";
1266
+ })(ClassicRoleType = exports.ClassicRoleType || (exports.ClassicRoleType = {}));
1267
+ var NormalRoleType;
1268
+ (function (NormalRoleType) {
1269
+ NormalRoleType[NormalRoleType["Admin"] = 1] = "Admin";
1270
+ NormalRoleType[NormalRoleType["MemberOrGuest"] = 2] = "MemberOrGuest";
1271
+ NormalRoleType[NormalRoleType["MemberOrGuestForAddIssues"] = 3] = "MemberOrGuestForAddIssues";
1272
+ NormalRoleType[NormalRoleType["MemberOrGuestForViewIssues"] = 4] = "MemberOrGuestForViewIssues";
1273
+ })(NormalRoleType = exports.NormalRoleType || (exports.NormalRoleType = {}));
1274
+ var ActivityType;
1275
+ (function (ActivityType) {
1276
+ ActivityType[ActivityType["Undefined"] = -1] = "Undefined";
1277
+ ActivityType[ActivityType["IssueCreated"] = 1] = "IssueCreated";
1278
+ ActivityType[ActivityType["IssueUpdated"] = 2] = "IssueUpdated";
1279
+ ActivityType[ActivityType["IssueCommented"] = 3] = "IssueCommented";
1280
+ ActivityType[ActivityType["IssueDeleted"] = 4] = "IssueDeleted";
1281
+ ActivityType[ActivityType["WikiCreated"] = 5] = "WikiCreated";
1282
+ ActivityType[ActivityType["WikiUpdated"] = 6] = "WikiUpdated";
1283
+ ActivityType[ActivityType["WikiDeleted"] = 7] = "WikiDeleted";
1284
+ ActivityType[ActivityType["FileAdded"] = 8] = "FileAdded";
1285
+ ActivityType[ActivityType["FileUpdated"] = 9] = "FileUpdated";
1286
+ ActivityType[ActivityType["FileDeleted"] = 10] = "FileDeleted";
1287
+ ActivityType[ActivityType["SvnCommitted"] = 11] = "SvnCommitted";
1288
+ ActivityType[ActivityType["GitPushed"] = 12] = "GitPushed";
1289
+ ActivityType[ActivityType["GitRepositoryCreated"] = 13] = "GitRepositoryCreated";
1290
+ ActivityType[ActivityType["IssueMultiUpdated"] = 14] = "IssueMultiUpdated";
1291
+ ActivityType[ActivityType["ProjectUserAdded"] = 15] = "ProjectUserAdded";
1292
+ ActivityType[ActivityType["ProjectUserRemoved"] = 16] = "ProjectUserRemoved";
1293
+ ActivityType[ActivityType["NotifyAdded"] = 17] = "NotifyAdded";
1294
+ ActivityType[ActivityType["PullRequestAdded"] = 18] = "PullRequestAdded";
1295
+ ActivityType[ActivityType["PullRequestUpdated"] = 19] = "PullRequestUpdated";
1296
+ ActivityType[ActivityType["PullRequestCommented"] = 20] = "PullRequestCommented";
1297
+ ActivityType[ActivityType["PullRequestMerged"] = 21] = "PullRequestMerged";
1298
+ ActivityType[ActivityType["MilestoneCreated"] = 22] = "MilestoneCreated";
1299
+ ActivityType[ActivityType["MilestoneUpdated"] = 23] = "MilestoneUpdated";
1300
+ ActivityType[ActivityType["MilestoneDeleted"] = 24] = "MilestoneDeleted";
1301
+ ActivityType[ActivityType["ProjectGroupAdded"] = 25] = "ProjectGroupAdded";
1302
+ ActivityType[ActivityType["ProjectGroupDeleted"] = 26] = "ProjectGroupDeleted";
1303
+ })(ActivityType = exports.ActivityType || (exports.ActivityType = {}));
1304
+ var CustomFieldType;
1305
+ (function (CustomFieldType) {
1306
+ CustomFieldType[CustomFieldType["Text"] = 1] = "Text";
1307
+ CustomFieldType[CustomFieldType["TextArea"] = 2] = "TextArea";
1308
+ CustomFieldType[CustomFieldType["Numeric"] = 3] = "Numeric";
1309
+ CustomFieldType[CustomFieldType["Date"] = 4] = "Date";
1310
+ CustomFieldType[CustomFieldType["SingleList"] = 5] = "SingleList";
1311
+ CustomFieldType[CustomFieldType["MultipleList"] = 6] = "MultipleList";
1312
+ CustomFieldType[CustomFieldType["CheckBox"] = 7] = "CheckBox";
1313
+ CustomFieldType[CustomFieldType["Radio"] = 8] = "Radio";
1314
+ })(CustomFieldType = exports.CustomFieldType || (exports.CustomFieldType = {}));
1304
1315
 
1305
1316
  },{}],9:[function(require,module,exports){
1317
+
1318
+ },{}],10:[function(require,module,exports){
1306
1319
  'use strict';
1307
1320
 
1308
1321
  var GetIntrinsic = require('get-intrinsic');
@@ -1319,7 +1332,7 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
1319
1332
  return intrinsic;
1320
1333
  };
1321
1334
 
1322
- },{"./":10,"get-intrinsic":13}],10:[function(require,module,exports){
1335
+ },{"./":11,"get-intrinsic":14}],11:[function(require,module,exports){
1323
1336
  'use strict';
1324
1337
 
1325
1338
  var bind = require('function-bind');
@@ -1368,7 +1381,7 @@ if ($defineProperty) {
1368
1381
  module.exports.apply = applyBind;
1369
1382
  }
1370
1383
 
1371
- },{"function-bind":12,"get-intrinsic":13}],11:[function(require,module,exports){
1384
+ },{"function-bind":13,"get-intrinsic":14}],12:[function(require,module,exports){
1372
1385
  'use strict';
1373
1386
 
1374
1387
  /* eslint no-invalid-this: 1 */
@@ -1422,14 +1435,14 @@ module.exports = function bind(that) {
1422
1435
  return bound;
1423
1436
  };
1424
1437
 
1425
- },{}],12:[function(require,module,exports){
1438
+ },{}],13:[function(require,module,exports){
1426
1439
  'use strict';
1427
1440
 
1428
1441
  var implementation = require('./implementation');
1429
1442
 
1430
1443
  module.exports = Function.prototype.bind || implementation;
1431
1444
 
1432
- },{"./implementation":11}],13:[function(require,module,exports){
1445
+ },{"./implementation":12}],14:[function(require,module,exports){
1433
1446
  'use strict';
1434
1447
 
1435
1448
  var undefined;
@@ -1761,7 +1774,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
1761
1774
  return value;
1762
1775
  };
1763
1776
 
1764
- },{"function-bind":12,"has":16,"has-symbols":14}],14:[function(require,module,exports){
1777
+ },{"function-bind":13,"has":17,"has-symbols":15}],15:[function(require,module,exports){
1765
1778
  'use strict';
1766
1779
 
1767
1780
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
@@ -1776,7 +1789,7 @@ module.exports = function hasNativeSymbols() {
1776
1789
  return hasSymbolSham();
1777
1790
  };
1778
1791
 
1779
- },{"./shams":15}],15:[function(require,module,exports){
1792
+ },{"./shams":16}],16:[function(require,module,exports){
1780
1793
  'use strict';
1781
1794
 
1782
1795
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
@@ -1820,14 +1833,14 @@ module.exports = function hasSymbols() {
1820
1833
  return true;
1821
1834
  };
1822
1835
 
1823
- },{}],16:[function(require,module,exports){
1836
+ },{}],17:[function(require,module,exports){
1824
1837
  'use strict';
1825
1838
 
1826
1839
  var bind = require('function-bind');
1827
1840
 
1828
1841
  module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
1829
1842
 
1830
- },{"function-bind":12}],17:[function(require,module,exports){
1843
+ },{"function-bind":13}],18:[function(require,module,exports){
1831
1844
  var hasMap = typeof Map === 'function' && Map.prototype;
1832
1845
  var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
1833
1846
  var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
@@ -2228,7 +2241,7 @@ function arrObjKeys(obj, inspect) {
2228
2241
  return xs;
2229
2242
  }
2230
2243
 
2231
- },{"./util.inspect":8}],18:[function(require,module,exports){
2244
+ },{"./util.inspect":9}],19:[function(require,module,exports){
2232
2245
  'use strict';
2233
2246
 
2234
2247
  var replace = String.prototype.replace;
@@ -2253,7 +2266,7 @@ module.exports = {
2253
2266
  RFC3986: Format.RFC3986
2254
2267
  };
2255
2268
 
2256
- },{}],19:[function(require,module,exports){
2269
+ },{}],20:[function(require,module,exports){
2257
2270
  'use strict';
2258
2271
 
2259
2272
  var stringify = require('./stringify');
@@ -2266,7 +2279,7 @@ module.exports = {
2266
2279
  stringify: stringify
2267
2280
  };
2268
2281
 
2269
- },{"./formats":18,"./parse":20,"./stringify":21}],20:[function(require,module,exports){
2282
+ },{"./formats":19,"./parse":21,"./stringify":22}],21:[function(require,module,exports){
2270
2283
  'use strict';
2271
2284
 
2272
2285
  var utils = require('./utils');
@@ -2531,7 +2544,7 @@ module.exports = function (str, opts) {
2531
2544
  return utils.compact(obj);
2532
2545
  };
2533
2546
 
2534
- },{"./utils":22}],21:[function(require,module,exports){
2547
+ },{"./utils":23}],22:[function(require,module,exports){
2535
2548
  'use strict';
2536
2549
 
2537
2550
  var getSideChannel = require('side-channel');
@@ -2850,7 +2863,7 @@ module.exports = function (object, opts) {
2850
2863
  return joined.length > 0 ? prefix + joined : '';
2851
2864
  };
2852
2865
 
2853
- },{"./formats":18,"./utils":22,"side-channel":23}],22:[function(require,module,exports){
2866
+ },{"./formats":19,"./utils":23,"side-channel":24}],23:[function(require,module,exports){
2854
2867
  'use strict';
2855
2868
 
2856
2869
  var formats = require('./formats');
@@ -3104,7 +3117,7 @@ module.exports = {
3104
3117
  merge: merge
3105
3118
  };
3106
3119
 
3107
- },{"./formats":18}],23:[function(require,module,exports){
3120
+ },{"./formats":19}],24:[function(require,module,exports){
3108
3121
  'use strict';
3109
3122
 
3110
3123
  var GetIntrinsic = require('get-intrinsic');
@@ -3230,5 +3243,5 @@ module.exports = function getSideChannel() {
3230
3243
  return channel;
3231
3244
  };
3232
3245
 
3233
- },{"call-bind/callBound":9,"get-intrinsic":13,"object-inspect":17}]},{},[4])(4)
3246
+ },{"call-bind/callBound":10,"get-intrinsic":14,"object-inspect":18}]},{},[4])(4)
3234
3247
  });