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