@remnawave/backend-contract 0.0.56 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
@@ -95,6 +95,15 @@ var CreateUserCommand;
|
|
95
95
|
message: 'Expiration date cannot be in the past',
|
96
96
|
})
|
97
97
|
.optional(),
|
98
|
+
lastTrafficResetAt: zod_1.z.coerce
|
99
|
+
.date({
|
100
|
+
required_error: 'Expiration date is required',
|
101
|
+
invalid_type_error: 'Invalid expiration date format',
|
102
|
+
})
|
103
|
+
.refine(() => new Date(), {
|
104
|
+
message: 'Expiration date cannot be in the past',
|
105
|
+
})
|
106
|
+
.optional(),
|
98
107
|
});
|
99
108
|
CreateUserCommand.ResponseSchema = zod_1.z.object({
|
100
109
|
response: models_1.UsersSchema,
|
@@ -96,6 +96,15 @@ export namespace CreateUserCommand {
|
|
96
96
|
message: 'Expiration date cannot be in the past',
|
97
97
|
})
|
98
98
|
.optional(),
|
99
|
+
lastTrafficResetAt: z.coerce
|
100
|
+
.date({
|
101
|
+
required_error: 'Expiration date is required',
|
102
|
+
invalid_type_error: 'Invalid expiration date format',
|
103
|
+
})
|
104
|
+
.refine(() => new Date(), {
|
105
|
+
message: 'Expiration date cannot be in the past',
|
106
|
+
})
|
107
|
+
.optional(),
|
99
108
|
});
|
100
109
|
|
101
110
|
export type Request = z.infer<typeof RequestSchema>;
|