@remnawave/backend-contract 0.0.43 → 0.0.44
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ exports.NodesSchema = zod_1.z.object({
|
|
12
12
|
isConnecting: zod_1.z.boolean(),
|
13
13
|
isNodeOnline: zod_1.z.boolean(),
|
14
14
|
isXrayRunning: zod_1.z.boolean(),
|
15
|
-
lastStatusChange: zod_1.z.nullable(zod_1.z.
|
15
|
+
lastStatusChange: zod_1.z.nullable(zod_1.z.string().transform((str) => new Date(str))),
|
16
16
|
lastStatusMessage: zod_1.z.nullable(zod_1.z.string()),
|
17
17
|
xrayVersion: zod_1.z.nullable(zod_1.z.string()),
|
18
18
|
isTrafficTrackingActive: zod_1.z.boolean(),
|
package/models/nodes.schema.ts
CHANGED
@@ -10,7 +10,7 @@ export const NodesSchema = z.object({
|
|
10
10
|
isConnecting: z.boolean(),
|
11
11
|
isNodeOnline: z.boolean(),
|
12
12
|
isXrayRunning: z.boolean(),
|
13
|
-
lastStatusChange: z.nullable(z.
|
13
|
+
lastStatusChange: z.nullable(z.string().transform((str) => new Date(str))),
|
14
14
|
lastStatusMessage: z.nullable(z.string()),
|
15
15
|
xrayVersion: z.nullable(z.string()),
|
16
16
|
isTrafficTrackingActive: z.boolean(),
|