@remnawave/backend-contract
Advanced tools
Comparing version 0.0.56 to 0.0.57
@@ -98,2 +98,11 @@ "use strict"; | ||
.optional(), | ||
lastTrafficResetAt: zod_1.z.coerce | ||
.date({ | ||
required_error: 'Expiration date is required', | ||
invalid_type_error: 'Invalid expiration date format', | ||
}) | ||
.refine(() => new Date(), { | ||
message: 'Expiration date cannot be in the past', | ||
}) | ||
.optional(), | ||
}); | ||
@@ -100,0 +109,0 @@ CreateUserCommand.ResponseSchema = zod_1.z.object({ |
@@ -99,2 +99,11 @@ import { z } from 'zod'; | ||
.optional(), | ||
lastTrafficResetAt: z.coerce | ||
.date({ | ||
required_error: 'Expiration date is required', | ||
invalid_type_error: 'Invalid expiration date format', | ||
}) | ||
.refine(() => new Date(), { | ||
message: 'Expiration date cannot be in the past', | ||
}) | ||
.optional(), | ||
}); | ||
@@ -101,0 +110,0 @@ |
{ | ||
"name": "@remnawave/backend-contract", | ||
"version": "0.0.56", | ||
"version": "0.0.57", | ||
"description": "A contract library for Remnawave", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
158862
3904