@remnawave/backend-contract
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -26,3 +26,3 @@ import { z } from 'zod'; | ||
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
expireAt: z.ZodEffects<z.ZodString, Date, string>; | ||
expireAt: z.ZodEffects<z.ZodDate, Date, unknown>; | ||
createdAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>; | ||
@@ -50,3 +50,2 @@ lastTrafficResetAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>; | ||
username: string; | ||
expireAt: string; | ||
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined; | ||
@@ -59,2 +58,3 @@ createdAt?: string | undefined; | ||
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined; | ||
expireAt?: unknown; | ||
lastTrafficResetAt?: string | undefined; | ||
@@ -61,0 +61,0 @@ trojanPassword?: string | undefined; |
@@ -82,8 +82,6 @@ "use strict"; | ||
expireAt: zod_1.z | ||
.string({ | ||
.preprocess((val) => new Date(val), zod_1.z.date({ | ||
required_error: 'Expiration date is required', | ||
invalid_type_error: 'Invalid date format', | ||
}) | ||
.datetime({ message: 'Invalid date format', offset: true, local: true }) | ||
.transform((str) => new Date(str)) | ||
})) | ||
.describe('Date format: 2025-01-17T15:38:45.065Z'), | ||
@@ -90,0 +88,0 @@ createdAt: zod_1.z |
@@ -82,8 +82,6 @@ "use strict"; | ||
expireAt: zod_1.z | ||
.string({ | ||
.preprocess((val) => new Date(val), zod_1.z.date({ | ||
required_error: 'Expiration date is required', | ||
invalid_type_error: 'Invalid date format', | ||
}) | ||
.datetime({ message: 'Invalid date format', offset: true, local: true }) | ||
.transform((str) => new Date(str)) | ||
})) | ||
.describe('Date format: 2025-01-17T15:38:45.065Z'), | ||
@@ -90,0 +88,0 @@ createdAt: zod_1.z |
{ | ||
"name": "@remnawave/backend-contract", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"public": true, | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
Sorry, the diff of this file is not supported yet
480225
11504