@remnawave/backend-contract 2.6.52 → 2.6.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
1
  export * from './get-stats-node-users-usage.command';
2
- export * from './get-stats-nodes-realtime-usage.command';
3
2
  export * from './get-stats-nodes-usage.command';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/bandwidth-stats/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/bandwidth-stats/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC"}
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-stats-node-users-usage.command"), exports);
18
- __exportStar(require("./get-stats-nodes-realtime-usage.command"), exports);
19
18
  __exportStar(require("./get-stats-nodes-usage.command"), exports);
@@ -499,11 +499,6 @@ export declare const ERRORS: {
499
499
  readonly message: "Get nodes user usage by range error";
500
500
  readonly httpCode: 500;
501
501
  };
502
- readonly GET_NODES_REALTIME_USAGE_ERROR: {
503
- readonly code: "A095";
504
- readonly message: "Get nodes realtime usage error";
505
- readonly httpCode: 500;
506
- };
507
502
  readonly CREATE_HWID_USER_DEVICE_ERROR: {
508
503
  readonly code: "A096";
509
504
  readonly message: "Create hwid user device error";
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqrBN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuJ3B,CAAC"}
@@ -470,11 +470,6 @@ exports.ERRORS = {
470
470
  message: 'Get nodes user usage by range error',
471
471
  httpCode: 500,
472
472
  },
473
- GET_NODES_REALTIME_USAGE_ERROR: {
474
- code: 'A095',
475
- message: 'Get nodes realtime usage error',
476
- httpCode: 500,
477
- },
478
473
  CREATE_HWID_USER_DEVICE_ERROR: {
479
474
  code: 'A096',
480
475
  message: 'Create hwid user device error',
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-stats-node-users-usage.command"), exports);
18
- __exportStar(require("./get-stats-nodes-realtime-usage.command"), exports);
19
18
  __exportStar(require("./get-stats-nodes-usage.command"), exports);
@@ -470,11 +470,6 @@ exports.ERRORS = {
470
470
  message: 'Get nodes user usage by range error',
471
471
  httpCode: 500,
472
472
  },
473
- GET_NODES_REALTIME_USAGE_ERROR: {
474
- code: 'A095',
475
- message: 'Get nodes realtime usage error',
476
- httpCode: 500,
477
- },
478
473
  CREATE_HWID_USER_DEVICE_ERROR: {
479
474
  code: 'A096',
480
475
  message: 'Create hwid user device error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.6.52",
3
+ "version": "2.6.53",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
@@ -1,65 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace GetStatsNodesRealtimeUsageCommand {
3
- const url: "/api/bandwidth-stats/nodes/realtime";
4
- const TSQ_url: "/api/bandwidth-stats/nodes/realtime";
5
- const endpointDetails: import("../../../constants").EndpointDetails;
6
- const ResponseSchema: z.ZodObject<{
7
- response: z.ZodArray<z.ZodObject<{
8
- nodeUuid: z.ZodString;
9
- nodeName: z.ZodString;
10
- countryCode: z.ZodString;
11
- downloadBytes: z.ZodNumber;
12
- uploadBytes: z.ZodNumber;
13
- totalBytes: z.ZodNumber;
14
- downloadSpeedBps: z.ZodNumber;
15
- uploadSpeedBps: z.ZodNumber;
16
- totalSpeedBps: z.ZodNumber;
17
- }, "strip", z.ZodTypeAny, {
18
- nodeUuid: string;
19
- nodeName: string;
20
- countryCode: string;
21
- downloadBytes: number;
22
- uploadBytes: number;
23
- totalBytes: number;
24
- downloadSpeedBps: number;
25
- uploadSpeedBps: number;
26
- totalSpeedBps: number;
27
- }, {
28
- nodeUuid: string;
29
- nodeName: string;
30
- countryCode: string;
31
- downloadBytes: number;
32
- uploadBytes: number;
33
- totalBytes: number;
34
- downloadSpeedBps: number;
35
- uploadSpeedBps: number;
36
- totalSpeedBps: number;
37
- }>, "many">;
38
- }, "strip", z.ZodTypeAny, {
39
- response: {
40
- nodeUuid: string;
41
- nodeName: string;
42
- countryCode: string;
43
- downloadBytes: number;
44
- uploadBytes: number;
45
- totalBytes: number;
46
- downloadSpeedBps: number;
47
- uploadSpeedBps: number;
48
- totalSpeedBps: number;
49
- }[];
50
- }, {
51
- response: {
52
- nodeUuid: string;
53
- nodeName: string;
54
- countryCode: string;
55
- downloadBytes: number;
56
- uploadBytes: number;
57
- totalBytes: number;
58
- downloadSpeedBps: number;
59
- uploadSpeedBps: number;
60
- totalSpeedBps: number;
61
- }[];
62
- }>;
63
- type Response = z.infer<typeof ResponseSchema>;
64
- }
65
- //# sourceMappingURL=get-stats-nodes-realtime-usage.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-stats-nodes-realtime-usage.command.d.ts","sourceRoot":"","sources":["../../../../../commands/bandwidth-stats/nodes/get-stats-nodes-realtime-usage.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,uCAA8C,CAAC;IACxD,MAAM,OAAO,uCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAczB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetStatsNodesRealtimeUsageCommand = void 0;
4
- const zod_1 = require("zod");
5
- const api_1 = require("../../../api");
6
- const constants_1 = require("../../../constants");
7
- var GetStatsNodesRealtimeUsageCommand;
8
- (function (GetStatsNodesRealtimeUsageCommand) {
9
- GetStatsNodesRealtimeUsageCommand.url = api_1.REST_API.BANDWIDTH_STATS.NODES.GET_REALTIME;
10
- GetStatsNodesRealtimeUsageCommand.TSQ_url = GetStatsNodesRealtimeUsageCommand.url;
11
- GetStatsNodesRealtimeUsageCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.BANDWIDTH_STATS_ROUTES.NODES.GET_REALTIME, 'get', 'Get Nodes Realtime Usage');
12
- GetStatsNodesRealtimeUsageCommand.ResponseSchema = zod_1.z.object({
13
- response: zod_1.z.array(zod_1.z.object({
14
- nodeUuid: zod_1.z.string().uuid(),
15
- nodeName: zod_1.z.string(),
16
- countryCode: zod_1.z.string(),
17
- downloadBytes: zod_1.z.number(),
18
- uploadBytes: zod_1.z.number(),
19
- totalBytes: zod_1.z.number(),
20
- downloadSpeedBps: zod_1.z.number(),
21
- uploadSpeedBps: zod_1.z.number(),
22
- totalSpeedBps: zod_1.z.number(),
23
- })),
24
- });
25
- })(GetStatsNodesRealtimeUsageCommand || (exports.GetStatsNodesRealtimeUsageCommand = GetStatsNodesRealtimeUsageCommand = {}));
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetStatsNodesRealtimeUsageCommand = void 0;
4
- const zod_1 = require("zod");
5
- const api_1 = require("../../../api");
6
- const constants_1 = require("../../../constants");
7
- var GetStatsNodesRealtimeUsageCommand;
8
- (function (GetStatsNodesRealtimeUsageCommand) {
9
- GetStatsNodesRealtimeUsageCommand.url = api_1.REST_API.BANDWIDTH_STATS.NODES.GET_REALTIME;
10
- GetStatsNodesRealtimeUsageCommand.TSQ_url = GetStatsNodesRealtimeUsageCommand.url;
11
- GetStatsNodesRealtimeUsageCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.BANDWIDTH_STATS_ROUTES.NODES.GET_REALTIME, 'get', 'Get Nodes Realtime Usage');
12
- GetStatsNodesRealtimeUsageCommand.ResponseSchema = zod_1.z.object({
13
- response: zod_1.z.array(zod_1.z.object({
14
- nodeUuid: zod_1.z.string().uuid(),
15
- nodeName: zod_1.z.string(),
16
- countryCode: zod_1.z.string(),
17
- downloadBytes: zod_1.z.number(),
18
- uploadBytes: zod_1.z.number(),
19
- totalBytes: zod_1.z.number(),
20
- downloadSpeedBps: zod_1.z.number(),
21
- uploadSpeedBps: zod_1.z.number(),
22
- totalSpeedBps: zod_1.z.number(),
23
- })),
24
- });
25
- })(GetStatsNodesRealtimeUsageCommand || (exports.GetStatsNodesRealtimeUsageCommand = GetStatsNodesRealtimeUsageCommand = {}));