@remnawave/backend-contract
Advanced tools
Comparing version 0.0.55 to 0.0.56
@@ -89,2 +89,11 @@ "use strict"; | ||
}), | ||
createdAt: 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(), | ||
}); | ||
@@ -91,0 +100,0 @@ CreateUserCommand.ResponseSchema = zod_1.z.object({ |
@@ -90,2 +90,11 @@ import { z } from 'zod'; | ||
}), | ||
createdAt: 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(), | ||
}); | ||
@@ -92,0 +101,0 @@ |
{ | ||
"name": "@remnawave/backend-contract", | ||
"version": "0.0.55", | ||
"version": "0.0.56", | ||
"description": "A contract library for Remnawave", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
158174
3886