@remnawave/backend-contract 0.0.42 → 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(),
|
@@ -23,6 +23,6 @@ exports.NodesSchema = zod_1.z.object({
|
|
23
23
|
cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
|
24
24
|
cpuModel: zod_1.z.nullable(zod_1.z.string()),
|
25
25
|
totalRam: zod_1.z.nullable(zod_1.z.string()),
|
26
|
-
createdAt: zod_1.z.
|
27
|
-
updatedAt: zod_1.z.
|
26
|
+
createdAt: zod_1.z.string().transform((str) => new Date(str)),
|
27
|
+
updatedAt: zod_1.z.string().transform((str) => new Date(str)),
|
28
28
|
});
|
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(),
|
@@ -23,6 +23,6 @@ export const NodesSchema = z.object({
|
|
23
23
|
cpuModel: z.nullable(z.string()),
|
24
24
|
totalRam: z.nullable(z.string()),
|
25
25
|
|
26
|
-
createdAt: z.
|
27
|
-
updatedAt: z.
|
26
|
+
createdAt: z.string().transform((str) => new Date(str)),
|
27
|
+
updatedAt: z.string().transform((str) => new Date(str)),
|
28
28
|
});
|