@remnawave/backend-contract 0.0.63 → 0.0.64

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. package/build/backend/api/controllers/nodes.d.ts +3 -0
  2. package/build/backend/api/controllers/nodes.d.ts.map +1 -1
  3. package/build/backend/api/controllers/nodes.js +3 -0
  4. package/build/backend/api/index.d.ts +1 -1
  5. package/build/backend/api/index.d.ts.map +1 -1
  6. package/build/backend/api/index.js +1 -1
  7. package/build/backend/api/routes.d.ts +3 -0
  8. package/build/backend/api/routes.d.ts.map +1 -1
  9. package/build/backend/api/routes.js +3 -0
  10. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  11. package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
  12. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
  13. package/build/backend/commands/api-tokens/find.command.js +1 -1
  14. package/build/backend/commands/auth/login.command.d.ts.map +1 -1
  15. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/create.command.js +2 -2
  17. package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
  18. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  19. package/build/backend/commands/hosts/get-all.command.js +1 -1
  20. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  21. package/build/backend/commands/hosts/reorder.command.js +1 -1
  22. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  23. package/build/backend/commands/hosts/update.command.js +2 -2
  24. package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +1 -1
  25. package/build/backend/commands/inbounds/get-inbounds.command.js +1 -1
  26. package/build/backend/commands/keygen/get-pubkey.command.d.ts.map +1 -1
  27. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  28. package/build/backend/commands/nodes/create.command.js +1 -1
  29. package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
  30. package/build/backend/commands/nodes/disable.command.d.ts.map +1 -1
  31. package/build/backend/commands/nodes/disable.command.js +1 -1
  32. package/build/backend/commands/nodes/enable.command.d.ts.map +1 -1
  33. package/build/backend/commands/nodes/enable.command.js +1 -1
  34. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  35. package/build/backend/commands/nodes/get-all.command.js +1 -1
  36. package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts +70 -0
  37. package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts.map +1 -0
  38. package/build/backend/commands/nodes/get-nodes-usage-by-range.command.js +26 -0
  39. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  40. package/build/backend/commands/nodes/get-one.command.js +1 -1
  41. package/build/backend/commands/nodes/index.d.ts +1 -0
  42. package/build/backend/commands/nodes/index.d.ts.map +1 -1
  43. package/build/backend/commands/nodes/index.js +1 -0
  44. package/build/backend/commands/nodes/restart-all.command.d.ts.map +1 -1
  45. package/build/backend/commands/nodes/restart.command.d.ts.map +1 -1
  46. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  47. package/build/backend/commands/nodes/update.command.js +1 -1
  48. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -1
  49. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
  50. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
  51. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -1
  52. package/build/backend/commands/system/get-bandwidth-stats.command.js +1 -1
  53. package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -1
  54. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
  55. package/build/backend/commands/system/get-stats.command.js +1 -1
  56. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  57. package/build/backend/commands/users/create-user.command.js +1 -1
  58. package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
  59. package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
  60. package/build/backend/commands/users/disable-user.command.ts.js +1 -1
  61. package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
  62. package/build/backend/commands/users/enable-user.command.js +1 -1
  63. package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
  64. package/build/backend/commands/users/get-all-users-v2.command.js +1 -1
  65. package/build/backend/commands/users/get-all-users.command.d.ts +1 -1
  66. package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
  67. package/build/backend/commands/users/get-all-users.command.js +1 -1
  68. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
  69. package/build/backend/commands/users/get-user-by-short-uuid.command.js +1 -1
  70. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
  71. package/build/backend/commands/users/get-user-by-subscription-uuid.command.js +1 -1
  72. package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
  73. package/build/backend/commands/users/get-user-by-username.command.js +1 -1
  74. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  75. package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
  76. package/build/backend/commands/users/index.d.ts +1 -1
  77. package/build/backend/commands/users/index.d.ts.map +1 -1
  78. package/build/backend/commands/users/index.js +1 -1
  79. package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
  80. package/build/backend/commands/users/revoke-user-subscription.command.js +1 -1
  81. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  82. package/build/backend/commands/users/update-user.command.js +1 -1
  83. package/build/backend/commands/xray/get-config.command.d.ts.map +1 -1
  84. package/build/backend/commands/xray/update-config.command.d.ts.map +1 -1
  85. package/build/backend/constants/errors/errors.d.ts +5 -0
  86. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  87. package/build/backend/constants/errors/errors.js +5 -0
  88. package/build/backend/constants/index.d.ts +1 -1
  89. package/build/backend/constants/index.d.ts.map +1 -1
  90. package/build/backend/constants/index.js +1 -1
  91. package/build/backend/constants/nodes/index.d.ts +1 -1
  92. package/build/backend/constants/nodes/index.d.ts.map +1 -1
  93. package/build/backend/constants/nodes/index.js +1 -1
  94. package/build/backend/models/users.schema.d.ts.map +1 -1
  95. package/build/frontend/api/controllers/nodes.js +3 -0
  96. package/build/frontend/api/index.js +1 -1
  97. package/build/frontend/api/routes.js +3 -0
  98. package/build/frontend/commands/api-tokens/find.command.js +1 -1
  99. package/build/frontend/commands/hosts/create.command.js +2 -2
  100. package/build/frontend/commands/hosts/get-all.command.js +1 -1
  101. package/build/frontend/commands/hosts/reorder.command.js +1 -1
  102. package/build/frontend/commands/hosts/update.command.js +2 -2
  103. package/build/frontend/commands/inbounds/get-inbounds.command.js +1 -1
  104. package/build/frontend/commands/nodes/create.command.js +1 -1
  105. package/build/frontend/commands/nodes/disable.command.js +1 -1
  106. package/build/frontend/commands/nodes/enable.command.js +1 -1
  107. package/build/frontend/commands/nodes/get-all.command.js +1 -1
  108. package/build/frontend/commands/nodes/get-nodes-usage-by-range.command.js +26 -0
  109. package/build/frontend/commands/nodes/get-one.command.js +1 -1
  110. package/build/frontend/commands/nodes/index.js +1 -0
  111. package/build/frontend/commands/nodes/update.command.js +1 -1
  112. package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
  113. package/build/frontend/commands/system/get-bandwidth-stats.command.js +1 -1
  114. package/build/frontend/commands/system/get-stats.command.js +1 -1
  115. package/build/frontend/commands/users/create-user.command.js +1 -1
  116. package/build/frontend/commands/users/disable-user.command.ts.js +1 -1
  117. package/build/frontend/commands/users/enable-user.command.js +1 -1
  118. package/build/frontend/commands/users/get-all-users-v2.command.js +1 -1
  119. package/build/frontend/commands/users/get-all-users.command.js +1 -1
  120. package/build/frontend/commands/users/get-user-by-short-uuid.command.js +1 -1
  121. package/build/frontend/commands/users/get-user-by-subscription-uuid.command.js +1 -1
  122. package/build/frontend/commands/users/get-user-by-username.command.js +1 -1
  123. package/build/frontend/commands/users/get-user-by-uuid.command.js +1 -1
  124. package/build/frontend/commands/users/index.js +1 -1
  125. package/build/frontend/commands/users/revoke-user-subscription.command.js +1 -1
  126. package/build/frontend/commands/users/update-user.command.js +1 -1
  127. package/build/frontend/constants/errors/errors.js +5 -0
  128. package/build/frontend/constants/index.js +1 -1
  129. package/build/frontend/constants/nodes/index.js +1 -1
  130. package/package.json +1 -1
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetUserByUsernameCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const users_schema_1 = require("../../models/users.schema");
6
+ const api_1 = require("../../api");
7
7
  var GetUserByUsernameCommand;
8
8
  (function (GetUserByUsernameCommand) {
9
9
  GetUserByUsernameCommand.url = api_1.REST_API.USERS.GET_BY_USERNAME;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetUserByUuidCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const users_schema_1 = require("../../models/users.schema");
6
+ const api_1 = require("../../api");
7
7
  var GetUserByUuidCommand;
8
8
  (function (GetUserByUuidCommand) {
9
9
  GetUserByUuidCommand.url = api_1.REST_API.USERS.GET_BY_UUID;
@@ -22,7 +22,7 @@ __exportStar(require("./get-all-users-v2.command"), exports);
22
22
  __exportStar(require("./get-all-users.command"), exports);
23
23
  __exportStar(require("./get-user-by-short-uuid.command"), exports);
24
24
  __exportStar(require("./get-user-by-subscription-uuid.command"), exports);
25
+ __exportStar(require("./get-user-by-username.command"), exports);
25
26
  __exportStar(require("./get-user-by-uuid.command"), exports);
26
27
  __exportStar(require("./revoke-user-subscription.command"), exports);
27
28
  __exportStar(require("./update-user.command"), exports);
28
- __exportStar(require("./get-user-by-username.command"), exports);
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RevokeUserSubscriptionCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const users_schema_1 = require("../../models/users.schema");
6
+ const api_1 = require("../../api");
7
7
  var RevokeUserSubscriptionCommand;
8
8
  (function (RevokeUserSubscriptionCommand) {
9
9
  RevokeUserSubscriptionCommand.url = api_1.REST_API.USERS.REVOKE_SUBSCRIPTION;
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateUserCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const constants_1 = require("../../constants");
7
6
  const models_1 = require("../../models");
7
+ const api_1 = require("../../api");
8
8
  var UpdateUserCommand;
9
9
  (function (UpdateUserCommand) {
10
10
  UpdateUserCommand.url = api_1.REST_API.USERS.UPDATE;
@@ -268,4 +268,9 @@ exports.ERRORS = {
268
268
  message: 'Enabled nodes not found',
269
269
  httpCode: 409,
270
270
  },
271
+ GET_NODES_USAGE_BY_RANGE_ERROR: {
272
+ code: 'A055',
273
+ message: 'Get nodes usage by range error',
274
+ httpCode: 500,
275
+ },
271
276
  };
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./errors"), exports);
18
+ __exportStar(require("./events"), exports);
18
19
  __exportStar(require("./hosts"), exports);
19
20
  __exportStar(require("./nodes"), exports);
20
21
  __exportStar(require("./roles"), exports);
21
22
  __exportStar(require("./templates"), exports);
22
23
  __exportStar(require("./users"), exports);
23
- __exportStar(require("./events"), exports);
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./status"), exports);
18
17
  __exportStar(require("./cycle"), exports);
18
+ __exportStar(require("./status"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "build/backend/index.js",
6
6
  "browser": "build/frontend/index.js",