@purpleschool/gptbot 0.2.4 → 0.2.7

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/api/routes.ts CHANGED
@@ -14,7 +14,6 @@ export const REST_API = {
14
14
  USERS: {
15
15
  GET: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET}`,
16
16
  POST: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.POST}`,
17
-
18
17
  },
19
18
  PAGE: {
20
19
  GET: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.GET_ALL}`,
@@ -1,11 +1,55 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WHITE_LIST = void 0;
4
- exports.WHITE_LIST = ['mail.ru', 'yandex.ru', 'gmail.com', 'rambler.ru', 'bk.ru', 'inbox.ru', 'list.ru',
5
- 'ya.ru', 'hotmail.com', 'outlook.com', 'msn.com', 'live.com', 'qip.ru', 'pochta.ru',
6
- 'icloud.com', 'mail.com', 'tut.by', 'ukr.net', 'e1.ru', 'online.ua', 'bigmir.net',
7
- 'meta.ua', 'me.com', 'yandex.com', 'yandex.kz', 'mail.ua', 'protonmail.com',
8
- 'zoho.com', 'gmx.com', 'web.de', 'aol.com', 'gmx.net', 'yandex.by', 'live.ru',
9
- 'inbox.lv', 'mail.kz', 'outlook.ru', 'yandex.ua', 'email.com', 'fastmail.com',
10
- 'hinet.net', 'zohomail.com', 'tut.net', 'yahoo.com', 'rocketmail.com', 'live.fr',
11
- 'yahoo.co.jp', 'rediffmail.com', 'ymail.com', 'hushmail.com'];
4
+ exports.WHITE_LIST = [
5
+ 'mail.ru',
6
+ 'yandex.ru',
7
+ 'gmail.com',
8
+ 'rambler.ru',
9
+ 'bk.ru',
10
+ 'inbox.ru',
11
+ 'list.ru',
12
+ 'ya.ru',
13
+ 'hotmail.com',
14
+ 'outlook.com',
15
+ 'msn.com',
16
+ 'live.com',
17
+ 'qip.ru',
18
+ 'pochta.ru',
19
+ 'icloud.com',
20
+ 'mail.com',
21
+ 'tut.by',
22
+ 'ukr.net',
23
+ 'e1.ru',
24
+ 'online.ua',
25
+ 'bigmir.net',
26
+ 'meta.ua',
27
+ 'me.com',
28
+ 'yandex.com',
29
+ 'yandex.kz',
30
+ 'mail.ua',
31
+ 'protonmail.com',
32
+ 'zoho.com',
33
+ 'gmx.com',
34
+ 'web.de',
35
+ 'aol.com',
36
+ 'gmx.net',
37
+ 'yandex.by',
38
+ 'live.ru',
39
+ 'inbox.lv',
40
+ 'mail.kz',
41
+ 'outlook.ru',
42
+ 'yandex.ua',
43
+ 'email.com',
44
+ 'fastmail.com',
45
+ 'hinet.net',
46
+ 'zohomail.com',
47
+ 'tut.net',
48
+ 'yahoo.com',
49
+ 'rocketmail.com',
50
+ 'live.fr',
51
+ 'yahoo.co.jp',
52
+ 'rediffmail.com',
53
+ 'ymail.com',
54
+ 'hushmail.com',
55
+ ];
@@ -404,5 +404,5 @@ exports.ERRORS = {
404
404
  code: 'A097',
405
405
  message: 'Не удалось подтвердить почту',
406
406
  httpCode: 500,
407
- }
407
+ },
408
408
  };
@@ -3,4 +3,4 @@ export * from './restore-password.command';
3
3
  export * from './login.command';
4
4
  export * from './register-user.command';
5
5
  export * from './create-user.command';
6
- export * from './verify-email.command'
6
+ export * from './verify-email.command';
@@ -5,9 +5,9 @@ export namespace VerifyEmailCommand {
5
5
  export const RequestSchema = UserSchema.pick({
6
6
  verifyTokenHash: true,
7
7
  email: true,
8
- })
8
+ });
9
9
 
10
- export type Request = z.infer<typeof RequestSchema>
10
+ export type Request = z.infer<typeof RequestSchema>;
11
11
 
12
12
  export const ResponseSchema = z.object({
13
13
  data: z.object({
@@ -15,4 +15,4 @@ export namespace VerifyEmailCommand {
15
15
  }),
16
16
  });
17
17
  export type Response = z.infer<typeof ResponseSchema>;
18
- }
18
+ }
@@ -32,6 +32,7 @@ export namespace FindCategoryCommand {
32
32
  ),
33
33
  systemCategory: z.nullable(CategorySchema),
34
34
  });
35
+ export type ResponseByFormatted = z.infer<typeof ResponseByFormattedSchema>;
35
36
 
36
37
  export type Response = z.infer<typeof ResponseSchema>;
37
38
 
@@ -2,4 +2,4 @@ export enum CATEGORY_TYPE {
2
2
  SUB = 'sub',
3
3
  MAIN = 'main',
4
4
  SYSTEM = 'system',
5
- }
5
+ }
@@ -1 +1 @@
1
- export * from './category-type.enum'
1
+ export * from './category-type.enum';
@@ -1 +1 @@
1
- export * from './enums'
1
+ export * from './enums';
@@ -1,8 +1,52 @@
1
- export const WHITE_LIST = ['mail.ru', 'yandex.ru', 'gmail.com', 'rambler.ru', 'bk.ru', 'inbox.ru', 'list.ru',
2
- 'ya.ru', 'hotmail.com', 'outlook.com', 'msn.com', 'live.com', 'qip.ru', 'pochta.ru',
3
- 'icloud.com', 'mail.com', 'tut.by', 'ukr.net', 'e1.ru', 'online.ua', 'bigmir.net',
4
- 'meta.ua', 'me.com', 'yandex.com', 'yandex.kz', 'mail.ua', 'protonmail.com',
5
- 'zoho.com', 'gmx.com', 'web.de', 'aol.com', 'gmx.net', 'yandex.by', 'live.ru',
6
- 'inbox.lv', 'mail.kz', 'outlook.ru', 'yandex.ua', 'email.com', 'fastmail.com',
7
- 'hinet.net', 'zohomail.com', 'tut.net', 'yahoo.com', 'rocketmail.com', 'live.fr',
8
- 'yahoo.co.jp', 'rediffmail.com', 'ymail.com', 'hushmail.com'];
1
+ export const WHITE_LIST = [
2
+ 'mail.ru',
3
+ 'yandex.ru',
4
+ 'gmail.com',
5
+ 'rambler.ru',
6
+ 'bk.ru',
7
+ 'inbox.ru',
8
+ 'list.ru',
9
+ 'ya.ru',
10
+ 'hotmail.com',
11
+ 'outlook.com',
12
+ 'msn.com',
13
+ 'live.com',
14
+ 'qip.ru',
15
+ 'pochta.ru',
16
+ 'icloud.com',
17
+ 'mail.com',
18
+ 'tut.by',
19
+ 'ukr.net',
20
+ 'e1.ru',
21
+ 'online.ua',
22
+ 'bigmir.net',
23
+ 'meta.ua',
24
+ 'me.com',
25
+ 'yandex.com',
26
+ 'yandex.kz',
27
+ 'mail.ua',
28
+ 'protonmail.com',
29
+ 'zoho.com',
30
+ 'gmx.com',
31
+ 'web.de',
32
+ 'aol.com',
33
+ 'gmx.net',
34
+ 'yandex.by',
35
+ 'live.ru',
36
+ 'inbox.lv',
37
+ 'mail.kz',
38
+ 'outlook.ru',
39
+ 'yandex.ua',
40
+ 'email.com',
41
+ 'fastmail.com',
42
+ 'hinet.net',
43
+ 'zohomail.com',
44
+ 'tut.net',
45
+ 'yahoo.com',
46
+ 'rocketmail.com',
47
+ 'live.fr',
48
+ 'yahoo.co.jp',
49
+ 'rediffmail.com',
50
+ 'ymail.com',
51
+ 'hushmail.com',
52
+ ];
@@ -403,5 +403,5 @@ export const ERRORS = {
403
403
  code: 'A097',
404
404
  message: 'Не удалось подтвердить почту',
405
405
  httpCode: 500,
406
- }
406
+ },
407
407
  };
@@ -5,4 +5,4 @@ export * from './order';
5
5
  export * from './chat';
6
6
  export * from './subscription';
7
7
  export * from './product';
8
- export * from './category';
8
+ export * from './category';
@@ -1,4 +1,4 @@
1
1
  export enum USER_STATUS {
2
2
  ACTIVE = 'active',
3
3
  INACTIVE = 'inactive',
4
- }
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.2.4",
3
+ "version": "0.2.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {