@purpleschool/rugpt-lib-common 0.0.95 → 0.0.97

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.
@@ -1,4 +1,31 @@
1
1
  export declare const ERRORS: {
2
+ APP_LOGIN: {
3
+ ISSUE_RATE_LIMIT: {
4
+ code: string;
5
+ message: string;
6
+ httpCode: number;
7
+ };
8
+ INVALID_CODE: {
9
+ code: string;
10
+ message: string;
11
+ httpCode: number;
12
+ };
13
+ EXPIRED_CODE: {
14
+ code: string;
15
+ message: string;
16
+ httpCode: number;
17
+ };
18
+ ATTEMPTS_EXHAUSTED: {
19
+ code: string;
20
+ message: string;
21
+ httpCode: number;
22
+ };
23
+ ACCOUNT_DELETED: {
24
+ code: string;
25
+ message: string;
26
+ httpCode: number;
27
+ };
28
+ };
2
29
  TOKEN_RESERVATION: {
3
30
  CREATE_ERROR: {
4
31
  code: string;
@@ -5697,6 +5724,11 @@ export declare const ERRORS: {
5697
5724
  message: string;
5698
5725
  httpCode: number;
5699
5726
  };
5727
+ CUSTOM_STYLE_DESCRIPTION_REQUIRED: {
5728
+ code: string;
5729
+ message: string;
5730
+ httpCode: number;
5731
+ };
5700
5732
  MAX_PROMPT_LENGTH_EXCEEDED: {
5701
5733
  code: string;
5702
5734
  message: string;
@@ -2,6 +2,33 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ERRORS = void 0;
4
4
  exports.ERRORS = {
5
+ APP_LOGIN: {
6
+ ISSUE_RATE_LIMIT: {
7
+ code: "APP_LOGIN_ISSUE_RATE_LIMIT",
8
+ message: "Коды нельзя перевыпускать так часто. Попробуйте через минуту",
9
+ httpCode: 429,
10
+ },
11
+ INVALID_CODE: {
12
+ code: "APP_LOGIN_INVALID_CODE",
13
+ message: "Неверный код",
14
+ httpCode: 400,
15
+ },
16
+ EXPIRED_CODE: {
17
+ code: "APP_LOGIN_EXPIRED_CODE",
18
+ message: "Срок действия кода истёк",
19
+ httpCode: 400,
20
+ },
21
+ ATTEMPTS_EXHAUSTED: {
22
+ code: "APP_LOGIN_ATTEMPTS_EXHAUSTED",
23
+ message: "Попытки ввода кода исчерпаны",
24
+ httpCode: 400,
25
+ },
26
+ ACCOUNT_DELETED: {
27
+ code: "APP_LOGIN_ACCOUNT_DELETED",
28
+ message: "Аккаунт удалён",
29
+ httpCode: 403,
30
+ },
31
+ },
5
32
  TOKEN_RESERVATION: {
6
33
  CREATE_ERROR: {
7
34
  code: "TOKEN_RESERVATION.CREATE_ERROR",
@@ -5700,6 +5727,11 @@ exports.ERRORS = {
5700
5727
  message: "Некорректные параметры картинки",
5701
5728
  httpCode: 400,
5702
5729
  },
5730
+ CUSTOM_STYLE_DESCRIPTION_REQUIRED: {
5731
+ code: "INTERIOR_DESIGN.CUSTOM_STYLE_DESCRIPTION_REQUIRED",
5732
+ message: "Опишите свой стиль",
5733
+ httpCode: 400,
5734
+ },
5703
5735
  MAX_PROMPT_LENGTH_EXCEEDED: {
5704
5736
  code: "INTERIOR_DESIGN.MAX_PROMPT_LENGTH_EXCEEDED",
5705
5737
  message: "Превышена максимальная длина запроса",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/rugpt-lib-common",
3
- "version": "0.0.95",
3
+ "version": "0.0.97",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",