@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.
@@ -1,7 +1,7 @@
1
1
  export const API_TOKENS_CONTROLLER = 'tokens' as const;
2
2
 
3
3
  export const API_TOKENS_ROUTES = {
4
- CREATE: '',
5
- DELETE: '',
4
+ CREATE: 'create',
5
+ DELETE: 'delete',
6
6
  GET_ALL: '',
7
7
  } as const;
@@ -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((date) => date > new Date(), {
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((date) => date > new Date(), {
87
+ .refine(() => new Date(), {
88
88
  message: 'Expiration date cannot be in the past',
89
89
  }),
90
90
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "index.js",
6
6
  "scripts": {