@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.
- package/build/backend/api/controllers/nodes.d.ts +3 -0
- package/build/backend/api/controllers/nodes.d.ts.map +1 -1
- package/build/backend/api/controllers/nodes.js +3 -0
- package/build/backend/api/index.d.ts +1 -1
- package/build/backend/api/index.d.ts.map +1 -1
- package/build/backend/api/index.js +1 -1
- package/build/backend/api/routes.d.ts +3 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +3 -0
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/find.command.js +1 -1
- package/build/backend/commands/auth/login.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +2 -2
- package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-all.command.js +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.js +1 -1
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +2 -2
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +1 -1
- package/build/backend/commands/inbounds/get-inbounds.command.js +1 -1
- package/build/backend/commands/keygen/get-pubkey.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -1
- package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/disable.command.js +1 -1
- package/build/backend/commands/nodes/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/enable.command.js +1 -1
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-all.command.js +1 -1
- package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts +70 -0
- package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/get-nodes-usage-by-range.command.js +26 -0
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.js +1 -1
- package/build/backend/commands/nodes/index.d.ts +1 -0
- package/build/backend/commands/nodes/index.d.ts.map +1 -1
- package/build/backend/commands/nodes/index.js +1 -0
- package/build/backend/commands/nodes/restart-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/restart.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +1 -1
- package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-bandwidth-stats.command.js +1 -1
- package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.js +1 -1
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +1 -1
- package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
- package/build/backend/commands/users/disable-user.command.ts.js +1 -1
- package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/enable-user.command.js +1 -1
- package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users-v2.command.js +1 -1
- package/build/backend/commands/users/get-all-users.command.d.ts +1 -1
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users.command.js +1 -1
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-short-uuid.command.js +1 -1
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.js +1 -1
- package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-username.command.js +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
- package/build/backend/commands/users/index.d.ts +1 -1
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +1 -1
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/revoke-user-subscription.command.js +1 -1
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +1 -1
- package/build/backend/commands/xray/get-config.command.d.ts.map +1 -1
- package/build/backend/commands/xray/update-config.command.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.d.ts +5 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +5 -0
- package/build/backend/constants/index.d.ts +1 -1
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +1 -1
- package/build/backend/constants/nodes/index.d.ts +1 -1
- package/build/backend/constants/nodes/index.d.ts.map +1 -1
- package/build/backend/constants/nodes/index.js +1 -1
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/frontend/api/controllers/nodes.js +3 -0
- package/build/frontend/api/index.js +1 -1
- package/build/frontend/api/routes.js +3 -0
- package/build/frontend/commands/api-tokens/find.command.js +1 -1
- package/build/frontend/commands/hosts/create.command.js +2 -2
- package/build/frontend/commands/hosts/get-all.command.js +1 -1
- package/build/frontend/commands/hosts/reorder.command.js +1 -1
- package/build/frontend/commands/hosts/update.command.js +2 -2
- package/build/frontend/commands/inbounds/get-inbounds.command.js +1 -1
- package/build/frontend/commands/nodes/create.command.js +1 -1
- package/build/frontend/commands/nodes/disable.command.js +1 -1
- package/build/frontend/commands/nodes/enable.command.js +1 -1
- package/build/frontend/commands/nodes/get-all.command.js +1 -1
- package/build/frontend/commands/nodes/get-nodes-usage-by-range.command.js +26 -0
- package/build/frontend/commands/nodes/get-one.command.js +1 -1
- package/build/frontend/commands/nodes/index.js +1 -0
- package/build/frontend/commands/nodes/update.command.js +1 -1
- package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
- package/build/frontend/commands/system/get-bandwidth-stats.command.js +1 -1
- package/build/frontend/commands/system/get-stats.command.js +1 -1
- package/build/frontend/commands/users/create-user.command.js +1 -1
- package/build/frontend/commands/users/disable-user.command.ts.js +1 -1
- package/build/frontend/commands/users/enable-user.command.js +1 -1
- package/build/frontend/commands/users/get-all-users-v2.command.js +1 -1
- package/build/frontend/commands/users/get-all-users.command.js +1 -1
- package/build/frontend/commands/users/get-user-by-short-uuid.command.js +1 -1
- package/build/frontend/commands/users/get-user-by-subscription-uuid.command.js +1 -1
- package/build/frontend/commands/users/get-user-by-username.command.js +1 -1
- package/build/frontend/commands/users/get-user-by-uuid.command.js +1 -1
- package/build/frontend/commands/users/index.js +1 -1
- package/build/frontend/commands/users/revoke-user-subscription.command.js +1 -1
- package/build/frontend/commands/users/update-user.command.js +1 -1
- package/build/frontend/constants/errors/errors.js +5 -0
- package/build/frontend/constants/index.js +1 -1
- package/build/frontend/constants/nodes/index.js +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAapB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyB7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,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.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;
|
@@ -4,8 +4,8 @@ export declare namespace GetAllUsersCommand {
|
|
4
4
|
const TSQ_url: "/api/users/";
|
5
5
|
const SortableFields: readonly ["username", "status", "expireAt", "createdAt", "onlineAt", "usedTrafficBytes", "trafficLimitBytes"];
|
6
6
|
const SearchableFields: readonly ["username", "shortUuid", "subscriptionUuid", "uuid", "status"];
|
7
|
-
type SortableField = (typeof SortableFields)[number];
|
8
7
|
type SearchableField = (typeof SearchableFields)[number];
|
8
|
+
type SortableField = (typeof SortableFields)[number];
|
9
9
|
const RequestQuerySchema: z.ZodObject<{
|
10
10
|
limit: z.ZodEffects<z.ZodDefault<z.ZodString>, number, string | undefined>;
|
11
11
|
offset: z.ZodEffects<z.ZodDefault<z.ZodString>, number, string | undefined>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-all-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"get-all-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAyB,CAAC;IACnC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,cAAc,+GAQjB,CAAC;IAEJ,MAAM,gBAAgB,0EAMnB,CAAC;IAEX,KAAY,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IAChE,KAAY,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;IAErD,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;MAa7B,CAAC;IAIH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,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.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;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAoB,CAAC;IAElC,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.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;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-subscription-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-subscription-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"get-user-by-subscription-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-subscription-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,sCAA0C,CAAC;IACpD,MAAM,OAAO,QAA2B,CAAC;IAEzC,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.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;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,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.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;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,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.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;
|
@@ -6,8 +6,8 @@ export * from './get-all-users-v2.command';
|
|
6
6
|
export * from './get-all-users.command';
|
7
7
|
export * from './get-user-by-short-uuid.command';
|
8
8
|
export * from './get-user-by-subscription-uuid.command';
|
9
|
+
export * from './get-user-by-username.command';
|
9
10
|
export * from './get-user-by-uuid.command';
|
10
11
|
export * from './revoke-user-subscription.command';
|
11
12
|
export * from './update-user.command';
|
12
|
-
export * from './get-user-by-username.command';
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC"}
|
@@ -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;
|
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;
|
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;
|
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;
|
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
|
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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,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 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/nodes/index.ts"],"names":[],"mappings":"AAAA,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);
|
@@ -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;
|
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"}
|
@@ -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;
|
@@ -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;
|
@@ -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;
|