@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 +0 -1
- package/build/constants/domains/white-list.js +52 -8
- package/build/constants/errors/errors.js +1 -1
- package/commands/auth/index.ts +1 -1
- package/commands/auth/verify-email.command.ts +3 -3
- package/commands/category/find-category.command.ts +1 -0
- package/constants/category/enums/category-type.enum.ts +1 -1
- package/constants/category/enums/index.ts +1 -1
- package/constants/category/index.ts +1 -1
- package/constants/domains/white-list.ts +52 -8
- package/constants/errors/errors.ts +1 -1
- package/constants/index.ts +1 -1
- package/constants/user/enums/user-status.ts +1 -1
- package/package.json +1 -1
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 = [
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'
|
|
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
|
+
];
|
package/commands/auth/index.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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 = [
|
|
2
|
-
'
|
|
3
|
-
'
|
|
4
|
-
'
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
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
|
+
];
|
package/constants/index.ts
CHANGED