@ai-grator/api 0.3.70 → 0.3.71

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.
package/errors/errors.ts CHANGED
@@ -641,6 +641,11 @@ export const ERRORS = {
641
641
  code: 'USER.BAN_ERROR',
642
642
  message: 'Не удалось заблокировать пользователя',
643
643
  },
644
+ UNBAN_ERROR: {
645
+ httpCode: 500,
646
+ code: 'USER.UNBAN_ERROR',
647
+ message: 'Не удалось разблокировать пользователя',
648
+ },
644
649
  FIND_ERROR: {
645
650
  httpCode: 500,
646
651
  code: 'USER.FIND_ERROR',
@@ -787,6 +792,11 @@ export const ERRORS = {
787
792
  code: 'ADMIN.CANNOT_BAN_ADMIN',
788
793
  message: 'Невозможно заблокировать администратора',
789
794
  },
795
+ USER_NOT_BANNED: {
796
+ httpCode: 400,
797
+ code: 'ADMIN.USER_NOT_BANNED',
798
+ message: 'Пользователь не заблокирован',
799
+ },
790
800
  STATS_ERROR: {
791
801
  httpCode: 500,
792
802
  code: 'ADMIN.STATS_ERROR',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-grator/api",
3
- "version": "0.3.70",
3
+ "version": "0.3.71",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {