@remnawave/backend-contract 0.0.55 → 0.0.56
Sign up to get free protection for your applications and to get access to all the features.
@@ -86,6 +86,15 @@ var CreateUserCommand;
|
|
86
86
|
.refine(() => new Date(), {
|
87
87
|
message: 'Expiration date cannot be in the past',
|
88
88
|
}),
|
89
|
+
createdAt: zod_1.z.coerce
|
90
|
+
.date({
|
91
|
+
required_error: 'Expiration date is required',
|
92
|
+
invalid_type_error: 'Invalid expiration date format',
|
93
|
+
})
|
94
|
+
.refine(() => new Date(), {
|
95
|
+
message: 'Expiration date cannot be in the past',
|
96
|
+
})
|
97
|
+
.optional(),
|
89
98
|
});
|
90
99
|
CreateUserCommand.ResponseSchema = zod_1.z.object({
|
91
100
|
response: models_1.UsersSchema,
|
@@ -87,6 +87,15 @@ export namespace CreateUserCommand {
|
|
87
87
|
.refine(() => new Date(), {
|
88
88
|
message: 'Expiration date cannot be in the past',
|
89
89
|
}),
|
90
|
+
createdAt: z.coerce
|
91
|
+
.date({
|
92
|
+
required_error: 'Expiration date is required',
|
93
|
+
invalid_type_error: 'Invalid expiration date format',
|
94
|
+
})
|
95
|
+
.refine(() => new Date(), {
|
96
|
+
message: 'Expiration date cannot be in the past',
|
97
|
+
})
|
98
|
+
.optional(),
|
90
99
|
});
|
91
100
|
|
92
101
|
export type Request = z.infer<typeof RequestSchema>;
|