@remnawave/backend-contract 0.0.53 → 0.0.55
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.API_TOKENS_ROUTES = exports.API_TOKENS_CONTROLLER = void 0;
|
4
4
|
exports.API_TOKENS_CONTROLLER = 'tokens';
|
5
5
|
exports.API_TOKENS_ROUTES = {
|
6
|
-
CREATE: '',
|
7
|
-
DELETE: '',
|
6
|
+
CREATE: 'create',
|
7
|
+
DELETE: 'delete',
|
8
8
|
GET_ALL: '',
|
9
9
|
};
|
@@ -83,7 +83,7 @@ var CreateUserCommand;
|
|
83
83
|
required_error: 'Expiration date is required',
|
84
84
|
invalid_type_error: 'Invalid expiration date format',
|
85
85
|
})
|
86
|
-
.refine((
|
86
|
+
.refine(() => new Date(), {
|
87
87
|
message: 'Expiration date cannot be in the past',
|
88
88
|
}),
|
89
89
|
});
|
@@ -84,7 +84,7 @@ export namespace CreateUserCommand {
|
|
84
84
|
required_error: 'Expiration date is required',
|
85
85
|
invalid_type_error: 'Invalid expiration date format',
|
86
86
|
})
|
87
|
-
.refine((
|
87
|
+
.refine(() => new Date(), {
|
88
88
|
message: 'Expiration date cannot be in the past',
|
89
89
|
}),
|
90
90
|
});
|