@remnawave/backend-contract 0.0.41 → 0.0.42
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@ const models_1 = require("../../models");
|
|
7
7
|
var GetOneNodeCommand;
|
8
8
|
(function (GetOneNodeCommand) {
|
9
9
|
GetOneNodeCommand.url = api_1.REST_API.NODES.GET_ONE;
|
10
|
+
GetOneNodeCommand.TSQ_url = GetOneNodeCommand.url(':uuid');
|
10
11
|
GetOneNodeCommand.RequestSchema = zod_1.z.object({
|
11
12
|
uuid: zod_1.z.string().uuid(),
|
12
13
|
});
|
@@ -6,23 +6,23 @@ exports.NodesSchema = zod_1.z.object({
|
|
6
6
|
uuid: zod_1.z.string().uuid(),
|
7
7
|
name: zod_1.z.string(),
|
8
8
|
address: zod_1.z.string(),
|
9
|
-
port: zod_1.z.number().int()
|
10
|
-
isConnected: zod_1.z.boolean()
|
11
|
-
isDisabled: zod_1.z.boolean()
|
12
|
-
isConnecting: zod_1.z.boolean()
|
13
|
-
isNodeOnline: zod_1.z.boolean()
|
14
|
-
isXrayRunning: zod_1.z.boolean()
|
15
|
-
lastStatusChange: zod_1.z.
|
16
|
-
lastStatusMessage: zod_1.z.
|
17
|
-
xrayVersion: zod_1.z.
|
18
|
-
isTrafficTrackingActive: zod_1.z.boolean()
|
19
|
-
trafficResetDay: zod_1.z.number().int()
|
20
|
-
trafficLimitBytes: zod_1.z.
|
21
|
-
trafficUsedBytes: zod_1.z.
|
22
|
-
notifyPercent: zod_1.z.number().int()
|
23
|
-
cpuCount: zod_1.z.number().int()
|
24
|
-
cpuModel: zod_1.z.
|
25
|
-
totalRam: zod_1.z.
|
9
|
+
port: zod_1.z.nullable(zod_1.z.number().int()),
|
10
|
+
isConnected: zod_1.z.boolean(),
|
11
|
+
isDisabled: zod_1.z.boolean(),
|
12
|
+
isConnecting: zod_1.z.boolean(),
|
13
|
+
isNodeOnline: zod_1.z.boolean(),
|
14
|
+
isXrayRunning: zod_1.z.boolean(),
|
15
|
+
lastStatusChange: zod_1.z.nullable(zod_1.z.date()),
|
16
|
+
lastStatusMessage: zod_1.z.nullable(zod_1.z.string()),
|
17
|
+
xrayVersion: zod_1.z.nullable(zod_1.z.string()),
|
18
|
+
isTrafficTrackingActive: zod_1.z.boolean(),
|
19
|
+
trafficResetDay: zod_1.z.nullable(zod_1.z.number().int()),
|
20
|
+
trafficLimitBytes: zod_1.z.nullable(zod_1.z.number()),
|
21
|
+
trafficUsedBytes: zod_1.z.nullable(zod_1.z.number()),
|
22
|
+
notifyPercent: zod_1.z.nullable(zod_1.z.number().int()),
|
23
|
+
cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
|
24
|
+
cpuModel: zod_1.z.nullable(zod_1.z.string()),
|
25
|
+
totalRam: zod_1.z.nullable(zod_1.z.string()),
|
26
26
|
createdAt: zod_1.z.date(),
|
27
27
|
updatedAt: zod_1.z.date(),
|
28
28
|
});
|
package/models/nodes.schema.ts
CHANGED
@@ -4,24 +4,24 @@ export const NodesSchema = z.object({
|
|
4
4
|
uuid: z.string().uuid(),
|
5
5
|
name: z.string(),
|
6
6
|
address: z.string(),
|
7
|
-
port: z.number().int()
|
8
|
-
isConnected: z.boolean()
|
9
|
-
isDisabled: z.boolean()
|
10
|
-
isConnecting: z.boolean()
|
11
|
-
isNodeOnline: z.boolean()
|
12
|
-
isXrayRunning: z.boolean()
|
13
|
-
lastStatusChange: z.
|
14
|
-
lastStatusMessage: z.
|
15
|
-
xrayVersion: z.
|
16
|
-
isTrafficTrackingActive: z.boolean()
|
17
|
-
trafficResetDay: z.number().int()
|
18
|
-
trafficLimitBytes: z.
|
19
|
-
trafficUsedBytes: z.
|
20
|
-
notifyPercent: z.number().int()
|
7
|
+
port: z.nullable(z.number().int()),
|
8
|
+
isConnected: z.boolean(),
|
9
|
+
isDisabled: z.boolean(),
|
10
|
+
isConnecting: z.boolean(),
|
11
|
+
isNodeOnline: z.boolean(),
|
12
|
+
isXrayRunning: z.boolean(),
|
13
|
+
lastStatusChange: z.nullable(z.date()),
|
14
|
+
lastStatusMessage: z.nullable(z.string()),
|
15
|
+
xrayVersion: z.nullable(z.string()),
|
16
|
+
isTrafficTrackingActive: z.boolean(),
|
17
|
+
trafficResetDay: z.nullable(z.number().int()),
|
18
|
+
trafficLimitBytes: z.nullable(z.number()),
|
19
|
+
trafficUsedBytes: z.nullable(z.number()),
|
20
|
+
notifyPercent: z.nullable(z.number().int()),
|
21
21
|
|
22
|
-
cpuCount: z.number().int()
|
23
|
-
cpuModel: z.
|
24
|
-
totalRam: z.
|
22
|
+
cpuCount: z.nullable(z.number().int()),
|
23
|
+
cpuModel: z.nullable(z.string()),
|
24
|
+
totalRam: z.nullable(z.string()),
|
25
25
|
|
26
26
|
createdAt: z.date(),
|
27
27
|
updatedAt: z.date(),
|