@ai-grator/api 0.3.69 → 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
@@ -303,6 +303,16 @@ export const ERRORS = {
303
303
  code: 'GENERATION_JOB.DELETE_ERROR',
304
304
  message: 'Не удалось удалить задачу генерации',
305
305
  },
306
+ NOT_FINISHED: {
307
+ httpCode: 409,
308
+ code: 'GENERATION_JOB.NOT_FINISHED',
309
+ message: 'Задачу генерации нельзя удалить, пока она не завершилась',
310
+ },
311
+ CHAIN_JOB_NOT_DELETABLE: {
312
+ httpCode: 409,
313
+ code: 'GENERATION_JOB.CHAIN_JOB_NOT_DELETABLE',
314
+ message: 'Задачу генерации из цепочки видео нельзя удалить',
315
+ },
306
316
  FIND_ERROR: {
307
317
  httpCode: 500,
308
318
  code: 'GENERATION_JOB.FIND_ERROR',
@@ -631,6 +641,11 @@ export const ERRORS = {
631
641
  code: 'USER.BAN_ERROR',
632
642
  message: 'Не удалось заблокировать пользователя',
633
643
  },
644
+ UNBAN_ERROR: {
645
+ httpCode: 500,
646
+ code: 'USER.UNBAN_ERROR',
647
+ message: 'Не удалось разблокировать пользователя',
648
+ },
634
649
  FIND_ERROR: {
635
650
  httpCode: 500,
636
651
  code: 'USER.FIND_ERROR',
@@ -777,6 +792,11 @@ export const ERRORS = {
777
792
  code: 'ADMIN.CANNOT_BAN_ADMIN',
778
793
  message: 'Невозможно заблокировать администратора',
779
794
  },
795
+ USER_NOT_BANNED: {
796
+ httpCode: 400,
797
+ code: 'ADMIN.USER_NOT_BANNED',
798
+ message: 'Пользователь не заблокирован',
799
+ },
780
800
  STATS_ERROR: {
781
801
  httpCode: 500,
782
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.69",
3
+ "version": "0.3.71",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {