@remnawave/backend-contract 0.0.63 → 0.0.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) 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 +36 -0
  28. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  29. package/build/backend/commands/nodes/create.command.js +4 -1
  30. package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
  31. package/build/backend/commands/nodes/disable.command.d.ts +33 -0
  32. package/build/backend/commands/nodes/disable.command.d.ts.map +1 -1
  33. package/build/backend/commands/nodes/disable.command.js +1 -1
  34. package/build/backend/commands/nodes/enable.command.d.ts +33 -0
  35. package/build/backend/commands/nodes/enable.command.d.ts.map +1 -1
  36. package/build/backend/commands/nodes/enable.command.js +1 -1
  37. package/build/backend/commands/nodes/get-all.command.d.ts +33 -0
  38. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  39. package/build/backend/commands/nodes/get-all.command.js +1 -1
  40. package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts +70 -0
  41. package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts.map +1 -0
  42. package/build/backend/commands/nodes/get-nodes-usage-by-range.command.js +26 -0
  43. package/build/backend/commands/nodes/get-one.command.d.ts +33 -0
  44. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  45. package/build/backend/commands/nodes/get-one.command.js +1 -1
  46. package/build/backend/commands/nodes/index.d.ts +1 -0
  47. package/build/backend/commands/nodes/index.d.ts.map +1 -1
  48. package/build/backend/commands/nodes/index.js +1 -0
  49. package/build/backend/commands/nodes/restart-all.command.d.ts.map +1 -1
  50. package/build/backend/commands/nodes/restart.command.d.ts.map +1 -1
  51. package/build/backend/commands/nodes/update.command.d.ts +49 -0
  52. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  53. package/build/backend/commands/nodes/update.command.js +4 -1
  54. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -1
  55. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
  56. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
  57. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -1
  58. package/build/backend/commands/system/get-bandwidth-stats.command.js +1 -1
  59. package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -1
  60. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
  61. package/build/backend/commands/system/get-stats.command.js +1 -1
  62. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  63. package/build/backend/commands/users/create-user.command.js +1 -1
  64. package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
  65. package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
  66. package/build/backend/commands/users/disable-user.command.ts.js +1 -1
  67. package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
  68. package/build/backend/commands/users/enable-user.command.js +1 -1
  69. package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
  70. package/build/backend/commands/users/get-all-users-v2.command.js +1 -1
  71. package/build/backend/commands/users/get-all-users.command.d.ts +1 -1
  72. package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
  73. package/build/backend/commands/users/get-all-users.command.js +1 -1
  74. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
  75. package/build/backend/commands/users/get-user-by-short-uuid.command.js +1 -1
  76. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
  77. package/build/backend/commands/users/get-user-by-subscription-uuid.command.js +1 -1
  78. package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
  79. package/build/backend/commands/users/get-user-by-username.command.js +1 -1
  80. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  81. package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
  82. package/build/backend/commands/users/index.d.ts +1 -1
  83. package/build/backend/commands/users/index.d.ts.map +1 -1
  84. package/build/backend/commands/users/index.js +1 -1
  85. package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
  86. package/build/backend/commands/users/revoke-user-subscription.command.js +1 -1
  87. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  88. package/build/backend/commands/users/update-user.command.js +1 -1
  89. package/build/backend/commands/xray/get-config.command.d.ts.map +1 -1
  90. package/build/backend/commands/xray/update-config.command.d.ts.map +1 -1
  91. package/build/backend/constants/errors/errors.d.ts +5 -0
  92. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  93. package/build/backend/constants/errors/errors.js +5 -0
  94. package/build/backend/constants/index.d.ts +1 -1
  95. package/build/backend/constants/index.d.ts.map +1 -1
  96. package/build/backend/constants/index.js +1 -1
  97. package/build/backend/constants/nodes/index.d.ts +1 -1
  98. package/build/backend/constants/nodes/index.d.ts.map +1 -1
  99. package/build/backend/constants/nodes/index.js +1 -1
  100. package/build/backend/models/nodes.schema.d.ts +23 -0
  101. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  102. package/build/backend/models/nodes.schema.js +2 -0
  103. package/build/backend/models/users.schema.d.ts.map +1 -1
  104. package/build/frontend/api/controllers/nodes.js +3 -0
  105. package/build/frontend/api/index.js +1 -1
  106. package/build/frontend/api/routes.js +3 -0
  107. package/build/frontend/commands/api-tokens/find.command.js +1 -1
  108. package/build/frontend/commands/hosts/create.command.js +2 -2
  109. package/build/frontend/commands/hosts/get-all.command.js +1 -1
  110. package/build/frontend/commands/hosts/reorder.command.js +1 -1
  111. package/build/frontend/commands/hosts/update.command.js +2 -2
  112. package/build/frontend/commands/inbounds/get-inbounds.command.js +1 -1
  113. package/build/frontend/commands/nodes/create.command.js +4 -1
  114. package/build/frontend/commands/nodes/disable.command.js +1 -1
  115. package/build/frontend/commands/nodes/enable.command.js +1 -1
  116. package/build/frontend/commands/nodes/get-all.command.js +1 -1
  117. package/build/frontend/commands/nodes/get-nodes-usage-by-range.command.js +26 -0
  118. package/build/frontend/commands/nodes/get-one.command.js +1 -1
  119. package/build/frontend/commands/nodes/index.js +1 -0
  120. package/build/frontend/commands/nodes/update.command.js +4 -1
  121. package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
  122. package/build/frontend/commands/system/get-bandwidth-stats.command.js +1 -1
  123. package/build/frontend/commands/system/get-stats.command.js +1 -1
  124. package/build/frontend/commands/users/create-user.command.js +1 -1
  125. package/build/frontend/commands/users/disable-user.command.ts.js +1 -1
  126. package/build/frontend/commands/users/enable-user.command.js +1 -1
  127. package/build/frontend/commands/users/get-all-users-v2.command.js +1 -1
  128. package/build/frontend/commands/users/get-all-users.command.js +1 -1
  129. package/build/frontend/commands/users/get-user-by-short-uuid.command.js +1 -1
  130. package/build/frontend/commands/users/get-user-by-subscription-uuid.command.js +1 -1
  131. package/build/frontend/commands/users/get-user-by-username.command.js +1 -1
  132. package/build/frontend/commands/users/get-user-by-uuid.command.js +1 -1
  133. package/build/frontend/commands/users/index.js +1 -1
  134. package/build/frontend/commands/users/revoke-user-subscription.command.js +1 -1
  135. package/build/frontend/commands/users/update-user.command.js +1 -1
  136. package/build/frontend/constants/errors/errors.js +5 -0
  137. package/build/frontend/constants/index.js +1 -1
  138. package/build/frontend/constants/nodes/index.js +1 -1
  139. package/build/frontend/models/nodes.schema.js +2 -0
  140. package/package.json +1 -1
@@ -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);
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"get-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/xray/get-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,wBAA2B,CAAC;IACrC,MAAM,OAAO,wBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/xray/get-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,wBAA2B,CAAC;IACrC,MAAM,OAAO,wBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/xray/update-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,2BAA8B,CAAC;IACxC,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,aAAa,oCAAoB,CAAC;IAE/C,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/xray/update-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,2BAA8B,CAAC;IACxC,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,aAAa,oCAAoB,CAAC;IAE/C,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -289,5 +289,10 @@ export declare const ERRORS: {
289
289
  readonly message: "Enabled nodes not found";
290
290
  readonly httpCode: 409;
291
291
  };
292
+ readonly GET_NODES_USAGE_BY_RANGE_ERROR: {
293
+ readonly code: "A055";
294
+ readonly message: "Get nodes usage by range error";
295
+ readonly httpCode: 500;
296
+ };
292
297
  };
293
298
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0G3B,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+G3B,CAAC"}
@@ -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
  };
@@ -1,8 +1,8 @@
1
1
  export * from './errors';
2
+ export * from './events';
2
3
  export * from './hosts';
3
4
  export * from './nodes';
4
5
  export * from './roles';
5
6
  export * from './templates';
6
7
  export * from './users';
7
- export * from './events';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -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);
@@ -1,3 +1,3 @@
1
- export * from './status';
2
1
  export * from './cycle';
2
+ export * from './status';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
@@ -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);
@@ -23,6 +23,19 @@ export declare const NodesSchema: z.ZodObject<{
23
23
  totalRam: z.ZodNullable<z.ZodString>;
24
24
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
25
25
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
26
+ excludedInbounds: z.ZodArray<z.ZodObject<{
27
+ uuid: z.ZodString;
28
+ tag: z.ZodString;
29
+ type: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ uuid: string;
32
+ type: string;
33
+ tag: string;
34
+ }, {
35
+ uuid: string;
36
+ type: string;
37
+ tag: string;
38
+ }>, "many">;
26
39
  }, "strip", z.ZodTypeAny, {
27
40
  uuid: string;
28
41
  createdAt: Date;
@@ -47,6 +60,11 @@ export declare const NodesSchema: z.ZodObject<{
47
60
  cpuCount: number | null;
48
61
  cpuModel: string | null;
49
62
  totalRam: string | null;
63
+ excludedInbounds: {
64
+ uuid: string;
65
+ type: string;
66
+ tag: string;
67
+ }[];
50
68
  }, {
51
69
  uuid: string;
52
70
  createdAt: string;
@@ -71,5 +89,10 @@ export declare const NodesSchema: z.ZodObject<{
71
89
  cpuCount: number | null;
72
90
  cpuModel: string | null;
73
91
  totalRam: string | null;
92
+ excludedInbounds: {
93
+ uuid: string;
94
+ type: string;
95
+ tag: string;
96
+ }[];
74
97
  }>;
75
98
  //# sourceMappingURL=nodes.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BtB,CAAC"}
1
+ {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BtB,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodesSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const inbounds_schema_1 = require("./inbounds.schema");
5
6
  exports.NodesSchema = zod_1.z.object({
6
7
  uuid: zod_1.z.string().uuid(),
7
8
  name: zod_1.z.string(),
@@ -26,4 +27,5 @@ exports.NodesSchema = zod_1.z.object({
26
27
  totalRam: zod_1.z.nullable(zod_1.z.string()),
27
28
  createdAt: zod_1.z.string().transform((str) => new Date(str)),
28
29
  updatedAt: zod_1.z.string().transform((str) => new Date(str)),
30
+ excludedInbounds: zod_1.z.array(inbounds_schema_1.InboundsSchema),
29
31
  });
@@ -1 +1 @@
1
- {"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../../models/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCtB,CAAC"}
1
+ {"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../../models/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCtB,CAAC"}
@@ -12,4 +12,7 @@ exports.NODES_ROUTES = {
12
12
  DISABLE: 'disable',
13
13
  GET_ALL: 'get-all',
14
14
  GET_ONE: 'get-one',
15
+ STATS: {
16
+ USAGE_BY_RANGE: 'usage/range',
17
+ },
15
18
  };
@@ -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("./routes"), exports);
18
17
  __exportStar(require("./controllers"), exports);
18
+ __exportStar(require("./routes"), exports);
@@ -58,6 +58,9 @@ exports.REST_API = {
58
58
  DISABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.DISABLE}/${uuid}`,
59
59
  ENABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ENABLE}/${uuid}`,
60
60
  RESTART_ALL: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.RESTART_ALL}`,
61
+ STATS: {
62
+ USAGE_BY_RANGE: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.STATS.USAGE_BY_RANGE}`,
63
+ },
61
64
  },
62
65
  XRAY: {
63
66
  GET_CONFIG: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.GET_CONFIG}`,
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FindAllApiTokensCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const api_tokens_schema_1 = require("../../models/api-tokens.schema");
6
+ const api_1 = require("../../api");
7
7
  var FindAllApiTokensCommand;
8
8
  (function (FindAllApiTokensCommand) {
9
9
  FindAllApiTokensCommand.url = api_1.REST_API.API_TOKENS.GET_ALL;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateHostCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
- const alpn_1 = require("../../constants/hosts/alpn");
7
5
  const fingerprints_1 = require("../../constants/hosts/fingerprints");
6
+ const alpn_1 = require("../../constants/hosts/alpn");
8
7
  const models_1 = require("../../models");
8
+ const api_1 = require("../../api");
9
9
  var CreateHostCommand;
10
10
  (function (CreateHostCommand) {
11
11
  CreateHostCommand.url = api_1.REST_API.HOSTS.CREATE;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetAllHostsCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
7
  var GetAllHostsCommand;
8
8
  (function (GetAllHostsCommand) {
9
9
  GetAllHostsCommand.url = api_1.REST_API.HOSTS.GET_ALL;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReorderHostCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
7
  var ReorderHostCommand;
8
8
  (function (ReorderHostCommand) {
9
9
  ReorderHostCommand.url = api_1.REST_API.HOSTS.REORDER;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateHostCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
- const alpn_1 = require("../../constants/hosts/alpn");
7
5
  const fingerprints_1 = require("../../constants/hosts/fingerprints");
6
+ const alpn_1 = require("../../constants/hosts/alpn");
8
7
  const models_1 = require("../../models");
8
+ const api_1 = require("../../api");
9
9
  var UpdateHostCommand;
10
10
  (function (UpdateHostCommand) {
11
11
  UpdateHostCommand.url = api_1.REST_API.HOSTS.UPDATE;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetInboundsCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const inbounds_schema_1 = require("../../models/inbounds.schema");
6
+ const api_1 = require("../../api");
7
7
  var GetInboundsCommand;
8
8
  (function (GetInboundsCommand) {
9
9
  GetInboundsCommand.url = api_1.REST_API.INBOUNDS.GET_INBOUNDS;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateNodeCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
7
  var CreateNodeCommand;
8
8
  (function (CreateNodeCommand) {
9
9
  CreateNodeCommand.url = api_1.REST_API.NODES.CREATE;
@@ -24,6 +24,9 @@ var CreateNodeCommand;
24
24
  .int()
25
25
  .min(1, 'Traffic reset day must be greater than 0')
26
26
  .max(31, 'Traffic reset day must be less than 31')),
27
+ excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
28
+ invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
+ })),
27
30
  });
28
31
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
29
32
  response: models_1.NodesSchema,
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DisableNodeCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
7
  var DisableNodeCommand;
8
8
  (function (DisableNodeCommand) {
9
9
  DisableNodeCommand.url = api_1.REST_API.NODES.DISABLE;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EnableNodeCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
7
  var EnableNodeCommand;
8
8
  (function (EnableNodeCommand) {
9
9
  EnableNodeCommand.url = api_1.REST_API.NODES.ENABLE;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetAllNodesCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
7
  var GetAllNodesCommand;
8
8
  (function (GetAllNodesCommand) {
9
9
  GetAllNodesCommand.url = api_1.REST_API.NODES.GET_ALL;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetNodesUsageByRangeCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ var GetNodesUsageByRangeCommand;
7
+ (function (GetNodesUsageByRangeCommand) {
8
+ GetNodesUsageByRangeCommand.url = api_1.REST_API.NODES.STATS.USAGE_BY_RANGE;
9
+ GetNodesUsageByRangeCommand.TSQ_url = GetNodesUsageByRangeCommand.url;
10
+ GetNodesUsageByRangeCommand.RequestQuerySchema = zod_1.z.object({
11
+ start: zod_1.z.string().transform((str) => new Date(str)),
12
+ end: zod_1.z.string().transform((str) => new Date(str)),
13
+ });
14
+ GetNodesUsageByRangeCommand.ResponseSchema = zod_1.z.object({
15
+ response: zod_1.z.array(zod_1.z.object({
16
+ nodeUuid: zod_1.z.string().uuid(),
17
+ nodeName: zod_1.z.string(),
18
+ total: zod_1.z.number(),
19
+ totalDownload: zod_1.z.number(),
20
+ totalUpload: zod_1.z.number(),
21
+ humanReadableTotal: zod_1.z.string(),
22
+ humanReadableTotalDownload: zod_1.z.string(),
23
+ humanReadableTotalUpload: zod_1.z.string(),
24
+ })),
25
+ });
26
+ })(GetNodesUsageByRangeCommand || (exports.GetNodesUsageByRangeCommand = GetNodesUsageByRangeCommand = {}));
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetOneNodeCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
7
  var GetOneNodeCommand;
8
8
  (function (GetOneNodeCommand) {
9
9
  GetOneNodeCommand.url = api_1.REST_API.NODES.GET_ONE;
@@ -19,6 +19,7 @@ __exportStar(require("./delete.command"), exports);
19
19
  __exportStar(require("./disable.command"), exports);
20
20
  __exportStar(require("./enable.command"), exports);
21
21
  __exportStar(require("./get-all.command"), exports);
22
+ __exportStar(require("./get-nodes-usage-by-range.command"), exports);
22
23
  __exportStar(require("./get-one.command"), exports);
23
24
  __exportStar(require("./restart-all.command"), exports);
24
25
  __exportStar(require("./restart.command"), exports);
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateNodeCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
7
  var UpdateNodeCommand;
8
8
  (function (UpdateNodeCommand) {
9
9
  UpdateNodeCommand.url = api_1.REST_API.NODES.UPDATE;
@@ -24,6 +24,9 @@ var UpdateNodeCommand;
24
24
  .number()
25
25
  .min(1, 'Traffic reset day must be greater than 0')
26
26
  .max(31, 'Traffic reset day must be less than 31')),
27
+ excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
28
+ invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
+ })),
27
30
  });
28
31
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
29
32
  response: models_1.NodesSchema,
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetSubscriptionInfoByShortUuidCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const constants_1 = require("../../constants");
6
+ const api_1 = require("../../api");
7
7
  var GetSubscriptionInfoByShortUuidCommand;
8
8
  (function (GetSubscriptionInfoByShortUuidCommand) {
9
9
  GetSubscriptionInfoByShortUuidCommand.url = api_1.REST_API.SUBSCRIPTION.GET_INFO;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetBandwidthStatsCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const base_stat_schema_1 = require("../../models/base-stat.schema");
6
+ const api_1 = require("../../api");
7
7
  var GetBandwidthStatsCommand;
8
8
  (function (GetBandwidthStatsCommand) {
9
9
  GetBandwidthStatsCommand.url = api_1.REST_API.SYSTEM.BANDWIDTH;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetStatsCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
5
  const constants_1 = require("../../constants");
6
+ const api_1 = require("../../api");
7
7
  var GetStatsCommand;
8
8
  (function (GetStatsCommand) {
9
9
  GetStatsCommand.url = api_1.REST_API.SYSTEM.STATS;
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateUserCommand = 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 CreateUserCommand;
9
9
  (function (CreateUserCommand) {
10
10
  CreateUserCommand.url = api_1.REST_API.USERS.CREATE;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DisableUserCommand = 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 DisableUserCommand;
8
8
  (function (DisableUserCommand) {
9
9
  DisableUserCommand.url = api_1.REST_API.USERS.DISABLE_USER;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EnableUserCommand = 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 EnableUserCommand;
8
8
  (function (EnableUserCommand) {
9
9
  EnableUserCommand.url = api_1.REST_API.USERS.ENABLE_USER;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetAllUsersV2Command = 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 GetAllUsersV2Command;
8
8
  (function (GetAllUsersV2Command) {
9
9
  GetAllUsersV2Command.url = api_1.REST_API.USERS.GET_ALL_V2;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetAllUsersCommand = 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 GetAllUsersCommand;
8
8
  (function (GetAllUsersCommand) {
9
9
  GetAllUsersCommand.url = api_1.REST_API.USERS.GET_ALL;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetUserByShortUuidCommand = 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 GetUserByShortUuidCommand;
8
8
  (function (GetUserByShortUuidCommand) {
9
9
  GetUserByShortUuidCommand.url = api_1.REST_API.USERS.GET_BY_SHORT_UUID;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetUserBySubscriptionUuidCommand = 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 GetUserBySubscriptionUuidCommand;
8
8
  (function (GetUserBySubscriptionUuidCommand) {
9
9
  GetUserBySubscriptionUuidCommand.url = api_1.REST_API.USERS.GET_BY_SUBSCRIPTION_UUID;
@@ -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);