@remnawave/backend-contract 0.0.56 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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>;
|