lemmy-js-client 0.13.4-rc.2 → 0.15.0-rc.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/websocket.js CHANGED
@@ -284,6 +284,24 @@ var LemmyWebsocket = /** @class */ (function () {
284
284
  LemmyWebsocket.prototype.addAdmin = function (form) {
285
285
  return wrapper(others_1.UserOperation.AddAdmin, form);
286
286
  };
287
+ /**
288
+ * Get the unread registration applications count.
289
+ */
290
+ LemmyWebsocket.prototype.getUnreadRegistrationApplicationCount = function (form) {
291
+ return wrapper(others_1.UserOperation.GetUnreadRegistrationApplicationCount, form);
292
+ };
293
+ /**
294
+ * List the unread registration applications.
295
+ */
296
+ LemmyWebsocket.prototype.listRegistrationApplications = function (form) {
297
+ return wrapper(others_1.UserOperation.ListRegistrationApplications, form);
298
+ };
299
+ /**
300
+ * Approve a registration application
301
+ */
302
+ LemmyWebsocket.prototype.approveRegistrationApplication = function (form) {
303
+ return wrapper(others_1.UserOperation.ApproveRegistrationApplication, form);
304
+ };
287
305
  /**
288
306
  * Get the details for a person.
289
307
  */
@@ -375,6 +393,18 @@ var LemmyWebsocket = /** @class */ (function () {
375
393
  LemmyWebsocket.prototype.getReportCount = function (form) {
376
394
  return wrapper(others_1.UserOperation.GetReportCount, form);
377
395
  };
396
+ /**
397
+ * Get your unread counts
398
+ */
399
+ LemmyWebsocket.prototype.getUnreadCount = function (form) {
400
+ return wrapper(others_1.UserOperation.GetUnreadCount, form);
401
+ };
402
+ /**
403
+ * Verify your email
404
+ */
405
+ LemmyWebsocket.prototype.verifyEmail = function (form) {
406
+ return wrapper(others_1.UserOperation.VerifyEmail, form);
407
+ };
378
408
  /**
379
409
  * Delete your account.
380
410
  */
@@ -441,30 +471,6 @@ var LemmyWebsocket = /** @class */ (function () {
441
471
  LemmyWebsocket.prototype.blockCommunity = function (form) {
442
472
  return wrapper(others_1.UserOperation.BlockCommunity, form);
443
473
  };
444
- /**
445
- * Purge / Delete a person from the database.
446
- */
447
- LemmyWebsocket.prototype.purgePerson = function (form) {
448
- return wrapper(others_1.UserOperation.PurgePerson, form);
449
- };
450
- /**
451
- * Purge / Delete a community from the database.
452
- */
453
- LemmyWebsocket.prototype.purgeCommunity = function (form) {
454
- return wrapper(others_1.UserOperation.PurgeCommunity, form);
455
- };
456
- /**
457
- * Purge / Delete a post from the database.
458
- */
459
- LemmyWebsocket.prototype.purgePost = function (form) {
460
- return wrapper(others_1.UserOperation.PurgePost, form);
461
- };
462
- /**
463
- * Purge / Delete a comment from the database.
464
- */
465
- LemmyWebsocket.prototype.purgeComment = function (form) {
466
- return wrapper(others_1.UserOperation.PurgeComment, form);
467
- };
468
474
  return LemmyWebsocket;
469
475
  }());
470
476
  exports.LemmyWebsocket = LemmyWebsocket;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.13.4-rc.2",
4
+ "version": "0.15.0-rc.3",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -16,18 +16,23 @@
16
16
  },
17
17
  "repository": "https://github.com/LemmyNet/lemmy-js-client",
18
18
  "devDependencies": {
19
- "@types/node": "^16.10.2",
19
+ "@types/node": "^16.11.11",
20
20
  "@types/node-fetch": "^3.0.3",
21
- "eslint": "^7.32.0",
22
- "eslint-plugin-jane": "^9.0.6",
23
- "husky": "^7.0.2",
24
- "lint-staged": "^11.1.2",
25
- "node-fetch": "^3.0.0",
26
- "prettier": "^2.4.1",
21
+ "@typescript-eslint/eslint-plugin": "^5.5.0",
22
+ "@typescript-eslint/parser": "^5.5.0",
23
+ "eslint": "^8.3.0",
24
+ "eslint-plugin-prettier": "^4.0.0",
25
+ "husky": "^7.0.4",
26
+ "lint-staged": "^12.1.2",
27
+ "node-fetch": "^3.1.0",
28
+ "prettier": "^2.5.0",
29
+ "prettier-plugin-import-sort": "^0.0.7",
30
+ "prettier-plugin-organize-imports": "^2.3.4",
31
+ "prettier-plugin-packagejson": "^2.2.15",
27
32
  "sortpack": "^2.2.0",
28
33
  "typedoc": "^0.21.6",
29
34
  "typedoc-plugin-sourcefile-url": "^1.0.6",
30
- "typescript": "^4.4.3"
35
+ "typescript": "^4.5.2"
31
36
  },
32
37
  "types": "./dist/index.d.ts",
33
38
  "lint-staged": {
@@ -38,5 +43,11 @@
38
43
  "package.json": [
39
44
  "sortpack"
40
45
  ]
46
+ },
47
+ "importSort": {
48
+ ".js, .jsx, .ts, .tsx": {
49
+ "style": "module",
50
+ "parser": "typescript"
51
+ }
41
52
  }
42
53
  }