@vitnode/core 1.2.0-canary.31 → 1.2.0-canary.32

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.
Files changed (90) hide show
  1. package/dist/scripts/get-config.d.ts +6 -2
  2. package/dist/scripts/get-config.d.ts.map +1 -1
  3. package/dist/scripts/prepare-database.d.ts.map +1 -1
  4. package/dist/scripts/run-interactive-shell-command.d.ts.map +1 -1
  5. package/dist/scripts/scripts.js +4 -2
  6. package/dist/scripts/shared/file-utils.d.ts.map +1 -1
  7. package/dist/src/api/config.js +3 -3
  8. package/dist/src/api/lib/logger-middleware.d.ts +3 -3
  9. package/dist/src/api/lib/logger-middleware.d.ts.map +1 -1
  10. package/dist/src/api/lib/logger-middleware.js +6 -6
  11. package/dist/src/api/middlewares/global.middleware.d.ts +15 -5
  12. package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
  13. package/dist/src/api/middlewares/global.middleware.js +4 -2
  14. package/dist/src/api/middlewares/rate-limiter.middleware.d.ts +1 -1
  15. package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -1
  16. package/dist/src/api/middlewares/rate-limiter.middleware.js +8 -2
  17. package/dist/src/api/models/device.js +1 -1
  18. package/dist/src/api/models/email.d.ts +10 -6
  19. package/dist/src/api/models/email.d.ts.map +1 -1
  20. package/dist/src/api/models/email.js +27 -8
  21. package/dist/src/api/models/session-admin.js +3 -3
  22. package/dist/src/api/models/session.js +1 -1
  23. package/dist/src/api/models/sso.d.ts.map +1 -1
  24. package/dist/src/api/models/sso.js +2 -2
  25. package/dist/src/api/models/user/sign-up.d.ts +1 -1
  26. package/dist/src/api/models/user/sign-up.js +1 -1
  27. package/dist/src/api/models/user.d.ts +1 -1
  28. package/dist/src/api/models/user.d.ts.map +1 -1
  29. package/dist/src/api/modules/admin/admin.module.d.ts +32 -32
  30. package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +16 -16
  31. package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +16 -16
  32. package/dist/src/api/modules/admin/routes/session.route.d.ts +4 -4
  33. package/dist/src/api/modules/admin/users/routes/list.route.d.ts +12 -12
  34. package/dist/src/api/modules/admin/users/routes/users.route.d.ts +12 -12
  35. package/dist/src/api/modules/admin/users/users.admin.module.d.ts +12 -12
  36. package/dist/src/api/modules/middleware/route.js +1 -1
  37. package/dist/src/api/modules/users/routes/session.route.d.ts +4 -4
  38. package/dist/src/api/modules/users/routes/sign-up.route.d.ts +8 -8
  39. package/dist/src/api/modules/users/routes/test.route.d.ts +1 -1
  40. package/dist/src/api/modules/users/routes/test.route.d.ts.map +1 -1
  41. package/dist/src/api/modules/users/routes/test.route.js +7 -8
  42. package/dist/src/api/modules/users/users.module.d.ts +11 -11
  43. package/dist/src/app_admin/core/debug/page.d.ts +2 -2
  44. package/dist/src/app_admin/core/debug/page.d.ts.map +1 -1
  45. package/dist/src/app_admin/core/debug/page.js +2 -1
  46. package/dist/src/app_admin/core/users/page.d.ts +2 -2
  47. package/dist/src/app_admin/core/users/page.d.ts.map +1 -1
  48. package/dist/src/app_admin/core/users/page.js +2 -1
  49. package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +2 -2
  50. package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts.map +1 -1
  51. package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +2 -1
  52. package/dist/src/components/form/fields/combobox-async.js +1 -1
  53. package/dist/src/components/form/fields/combobox.js +1 -1
  54. package/dist/src/components/table/content.d.ts.map +1 -1
  55. package/dist/src/components/table/content.js +57 -60
  56. package/dist/src/components/table/data-table.d.ts.map +1 -1
  57. package/dist/src/components/table/data-table.js +26 -29
  58. package/dist/src/components/ui/button.d.ts +1 -1
  59. package/dist/src/components/ui/menubar.js +1 -1
  60. package/dist/src/components/ui/sidebar.d.ts +1 -1
  61. package/dist/src/components/ui/sidebar.d.ts.map +1 -1
  62. package/dist/src/components/ui/sidebar.js +1 -1
  63. package/dist/src/emails/default-template.d.ts +30 -0
  64. package/dist/src/emails/default-template.d.ts.map +1 -0
  65. package/dist/src/emails/default-template.js +106 -0
  66. package/dist/src/lib/api/get-session-admin-api.d.ts +1 -1
  67. package/dist/src/lib/api/get-session-api.d.ts +1 -1
  68. package/dist/src/lib/config.d.ts +2 -2
  69. package/dist/src/lib/config.d.ts.map +1 -1
  70. package/dist/src/lib/config.js +5 -8
  71. package/dist/src/lib/fetcher/core.d.ts.map +1 -1
  72. package/dist/src/lib/fetcher/core.js +5 -1
  73. package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
  74. package/dist/src/views/admin/layouts/admin-layout.js +2 -2
  75. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts +17 -1
  76. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts.map +1 -1
  77. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.js +2 -1
  78. package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.d.ts +2 -2
  79. package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +1 -1
  80. package/dist/src/views/auth/sign-up/form/use-form.d.ts +4 -4
  81. package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
  82. package/dist/src/views/layouts/theme/header/header.js +3 -3
  83. package/dist/src/vitnode.config.d.ts +3 -4
  84. package/dist/src/vitnode.config.d.ts.map +1 -1
  85. package/dist/tsconfig.tsbuildinfo +1 -1
  86. package/package.json +24 -24
  87. package/src/app_admin/core/debug/page.tsx +2 -1
  88. package/src/app_admin/core/users/page.tsx +2 -1
  89. package/dist/emails/my-email.d.ts +0 -2
  90. package/dist/emails/my-email.d.ts.map +0 -1
@@ -3,18 +3,18 @@ export declare const listUsersAdminRoute: {
3
3
  handler: (c: import("hono").Context<import("../../../../middlewares/global.middleware").EnvVitNode, "/list", {
4
4
  in: {
5
5
  query: {
6
- orderBy?: "name" | "createdAt" | undefined;
7
- cursor?: string | undefined;
8
6
  order?: "asc" | "desc" | undefined;
7
+ cursor?: string | undefined;
8
+ orderBy?: "name" | "createdAt" | undefined;
9
9
  first?: string | undefined;
10
10
  last?: string | undefined;
11
11
  };
12
12
  };
13
13
  out: {
14
14
  query: {
15
- orderBy?: "name" | "createdAt" | undefined;
16
- cursor?: string | undefined;
17
15
  order?: "asc" | "desc" | undefined;
16
+ cursor?: string | undefined;
17
+ orderBy?: "name" | "createdAt" | undefined;
18
18
  first?: string | undefined;
19
19
  last?: string | undefined;
20
20
  };
@@ -56,15 +56,15 @@ export declare const listUsersAdminRoute: {
56
56
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
57
57
  orderBy: z.ZodOptional<z.ZodEnum<["name", "createdAt"]>>;
58
58
  }, "strip", z.ZodTypeAny, {
59
- orderBy?: "name" | "createdAt" | undefined;
60
- cursor?: string | undefined;
61
59
  order?: "asc" | "desc" | undefined;
60
+ cursor?: string | undefined;
61
+ orderBy?: "name" | "createdAt" | undefined;
62
62
  first?: string | undefined;
63
63
  last?: string | undefined;
64
64
  }, {
65
- orderBy?: "name" | "createdAt" | undefined;
66
- cursor?: string | undefined;
67
65
  order?: "asc" | "desc" | undefined;
66
+ cursor?: string | undefined;
67
+ orderBy?: "name" | "createdAt" | undefined;
68
68
  first?: string | undefined;
69
69
  last?: string | undefined;
70
70
  }>;
@@ -87,24 +87,24 @@ export declare const listUsersAdminRoute: {
87
87
  birthday: z.ZodNullable<z.ZodDate>;
88
88
  language: z.ZodString;
89
89
  }, "strip", z.ZodTypeAny, {
90
+ email: string;
90
91
  id: number;
91
92
  name: string;
92
93
  createdAt: Date;
93
94
  language: string;
94
95
  nameCode: string;
95
- email: string;
96
96
  newsletter: boolean;
97
97
  avatarColor: string;
98
98
  emailVerified: boolean;
99
99
  roleId: number;
100
100
  birthday: Date | null;
101
101
  }, {
102
+ email: string;
102
103
  id: number;
103
104
  name: string;
104
105
  createdAt: Date;
105
106
  language: string;
106
107
  nameCode: string;
107
- email: string;
108
108
  newsletter: boolean;
109
109
  avatarColor: string;
110
110
  emailVerified: boolean;
@@ -135,12 +135,12 @@ export declare const listUsersAdminRoute: {
135
135
  }>;
136
136
  }, "strip", z.ZodTypeAny, {
137
137
  edges: {
138
+ email: string;
138
139
  id: number;
139
140
  name: string;
140
141
  createdAt: Date;
141
142
  language: string;
142
143
  nameCode: string;
143
- email: string;
144
144
  newsletter: boolean;
145
145
  avatarColor: string;
146
146
  emailVerified: boolean;
@@ -157,12 +157,12 @@ export declare const listUsersAdminRoute: {
157
157
  };
158
158
  }, {
159
159
  edges: {
160
+ email: string;
160
161
  id: number;
161
162
  name: string;
162
163
  createdAt: Date;
163
164
  language: string;
164
165
  nameCode: string;
165
- email: string;
166
166
  newsletter: boolean;
167
167
  avatarColor: string;
168
168
  emailVerified: boolean;
@@ -3,18 +3,18 @@ export declare const usersAdminRoute: {
3
3
  handler: (c: import("hono").Context<import("../../../../middlewares/global.middleware").EnvVitNode, "/list", {
4
4
  in: {
5
5
  query: {
6
- orderBy?: "id" | "name" | "createdAt" | "email" | undefined;
7
- cursor?: string | undefined;
8
6
  order?: "asc" | "desc" | undefined;
7
+ cursor?: string | undefined;
8
+ orderBy?: "email" | "id" | "name" | "createdAt" | undefined;
9
9
  first?: string | undefined;
10
10
  last?: string | undefined;
11
11
  };
12
12
  };
13
13
  out: {
14
14
  query: {
15
- orderBy?: "id" | "name" | "createdAt" | "email" | undefined;
16
- cursor?: string | undefined;
17
15
  order?: "asc" | "desc" | undefined;
16
+ cursor?: string | undefined;
17
+ orderBy?: "email" | "id" | "name" | "createdAt" | undefined;
18
18
  first?: string | undefined;
19
19
  last?: string | undefined;
20
20
  };
@@ -56,15 +56,15 @@ export declare const usersAdminRoute: {
56
56
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
57
57
  orderBy: z.ZodOptional<z.ZodEnum<["id", "name", "email", "createdAt"]>>;
58
58
  }, "strip", z.ZodTypeAny, {
59
- orderBy?: "id" | "name" | "createdAt" | "email" | undefined;
60
- cursor?: string | undefined;
61
59
  order?: "asc" | "desc" | undefined;
60
+ cursor?: string | undefined;
61
+ orderBy?: "email" | "id" | "name" | "createdAt" | undefined;
62
62
  first?: string | undefined;
63
63
  last?: string | undefined;
64
64
  }, {
65
- orderBy?: "id" | "name" | "createdAt" | "email" | undefined;
66
- cursor?: string | undefined;
67
65
  order?: "asc" | "desc" | undefined;
66
+ cursor?: string | undefined;
67
+ orderBy?: "email" | "id" | "name" | "createdAt" | undefined;
68
68
  first?: string | undefined;
69
69
  last?: string | undefined;
70
70
  }>;
@@ -87,24 +87,24 @@ export declare const usersAdminRoute: {
87
87
  birthday: z.ZodNullable<z.ZodDate>;
88
88
  language: z.ZodString;
89
89
  }, "strip", z.ZodTypeAny, {
90
+ email: string;
90
91
  id: number;
91
92
  name: string;
92
93
  createdAt: Date;
93
94
  language: string;
94
95
  nameCode: string;
95
- email: string;
96
96
  newsletter: boolean;
97
97
  avatarColor: string;
98
98
  emailVerified: boolean;
99
99
  roleId: number;
100
100
  birthday: Date | null;
101
101
  }, {
102
+ email: string;
102
103
  id: number;
103
104
  name: string;
104
105
  createdAt: Date;
105
106
  language: string;
106
107
  nameCode: string;
107
- email: string;
108
108
  newsletter: boolean;
109
109
  avatarColor: string;
110
110
  emailVerified: boolean;
@@ -135,12 +135,12 @@ export declare const usersAdminRoute: {
135
135
  }>;
136
136
  }, "strip", z.ZodTypeAny, {
137
137
  edges: {
138
+ email: string;
138
139
  id: number;
139
140
  name: string;
140
141
  createdAt: Date;
141
142
  language: string;
142
143
  nameCode: string;
143
- email: string;
144
144
  newsletter: boolean;
145
145
  avatarColor: string;
146
146
  emailVerified: boolean;
@@ -157,12 +157,12 @@ export declare const usersAdminRoute: {
157
157
  };
158
158
  }, {
159
159
  edges: {
160
+ email: string;
160
161
  id: number;
161
162
  name: string;
162
163
  createdAt: Date;
163
164
  language: string;
164
165
  nameCode: string;
165
- email: string;
166
166
  newsletter: boolean;
167
167
  avatarColor: string;
168
168
  emailVerified: boolean;
@@ -2,18 +2,18 @@ export declare const usersAdminModule: import("../../../../api/lib/module").Buil
2
2
  handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/list", {
3
3
  in: {
4
4
  query: {
5
- orderBy?: "name" | "createdAt" | undefined;
6
- cursor?: string | undefined;
7
5
  order?: "asc" | "desc" | undefined;
6
+ cursor?: string | undefined;
7
+ orderBy?: "name" | "createdAt" | undefined;
8
8
  first?: string | undefined;
9
9
  last?: string | undefined;
10
10
  };
11
11
  };
12
12
  out: {
13
13
  query: {
14
- orderBy?: "name" | "createdAt" | undefined;
15
- cursor?: string | undefined;
16
14
  order?: "asc" | "desc" | undefined;
15
+ cursor?: string | undefined;
16
+ orderBy?: "name" | "createdAt" | undefined;
17
17
  first?: string | undefined;
18
18
  last?: string | undefined;
19
19
  };
@@ -55,15 +55,15 @@ export declare const usersAdminModule: import("../../../../api/lib/module").Buil
55
55
  order: import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>;
56
56
  orderBy: import("zod").ZodOptional<import("zod").ZodEnum<["name", "createdAt"]>>;
57
57
  }, "strip", import("zod").ZodTypeAny, {
58
- orderBy?: "name" | "createdAt" | undefined;
59
- cursor?: string | undefined;
60
58
  order?: "asc" | "desc" | undefined;
59
+ cursor?: string | undefined;
60
+ orderBy?: "name" | "createdAt" | undefined;
61
61
  first?: string | undefined;
62
62
  last?: string | undefined;
63
63
  }, {
64
- orderBy?: "name" | "createdAt" | undefined;
65
- cursor?: string | undefined;
66
64
  order?: "asc" | "desc" | undefined;
65
+ cursor?: string | undefined;
66
+ orderBy?: "name" | "createdAt" | undefined;
67
67
  first?: string | undefined;
68
68
  last?: string | undefined;
69
69
  }>;
@@ -86,24 +86,24 @@ export declare const usersAdminModule: import("../../../../api/lib/module").Buil
86
86
  birthday: import("zod").ZodNullable<import("zod").ZodDate>;
87
87
  language: import("zod").ZodString;
88
88
  }, "strip", import("zod").ZodTypeAny, {
89
+ email: string;
89
90
  id: number;
90
91
  name: string;
91
92
  createdAt: Date;
92
93
  language: string;
93
94
  nameCode: string;
94
- email: string;
95
95
  newsletter: boolean;
96
96
  avatarColor: string;
97
97
  emailVerified: boolean;
98
98
  roleId: number;
99
99
  birthday: Date | null;
100
100
  }, {
101
+ email: string;
101
102
  id: number;
102
103
  name: string;
103
104
  createdAt: Date;
104
105
  language: string;
105
106
  nameCode: string;
106
- email: string;
107
107
  newsletter: boolean;
108
108
  avatarColor: string;
109
109
  emailVerified: boolean;
@@ -134,12 +134,12 @@ export declare const usersAdminModule: import("../../../../api/lib/module").Buil
134
134
  }>;
135
135
  }, "strip", import("zod").ZodTypeAny, {
136
136
  edges: {
137
+ email: string;
137
138
  id: number;
138
139
  name: string;
139
140
  createdAt: Date;
140
141
  language: string;
141
142
  nameCode: string;
142
- email: string;
143
143
  newsletter: boolean;
144
144
  avatarColor: string;
145
145
  emailVerified: boolean;
@@ -156,12 +156,12 @@ export declare const usersAdminModule: import("../../../../api/lib/module").Buil
156
156
  };
157
157
  }, {
158
158
  edges: {
159
+ email: string;
159
160
  id: number;
160
161
  name: string;
161
162
  createdAt: Date;
162
163
  language: string;
163
164
  nameCode: string;
164
- email: string;
165
165
  newsletter: boolean;
166
166
  avatarColor: string;
167
167
  emailVerified: boolean;
@@ -35,7 +35,7 @@ export const routeMiddleware = buildRoute({
35
35
  handler: (c)=>{
36
36
  const sso = c.get('core').authorization.ssoAdapters;
37
37
  return c.json({
38
- isEmail: !!c.get('core').emailAdapter,
38
+ isEmail: !!c.get('core').email?.adapter,
39
39
  sso: sso.map((s)=>({
40
40
  id: s.id,
41
41
  name: s.name
@@ -38,11 +38,11 @@ export declare const sessionRoute: {
38
38
  birthday: z.ZodNullable<z.ZodDate>;
39
39
  isAdmin: z.ZodBoolean;
40
40
  }, "strip", z.ZodTypeAny, {
41
+ email: string;
41
42
  id: number;
42
43
  name: string;
43
44
  createdAt: Date;
44
45
  nameCode: string;
45
- email: string;
46
46
  newsletter: boolean;
47
47
  avatarColor: string;
48
48
  emailVerified: boolean;
@@ -50,11 +50,11 @@ export declare const sessionRoute: {
50
50
  birthday: Date | null;
51
51
  isAdmin: boolean;
52
52
  }, {
53
+ email: string;
53
54
  id: number;
54
55
  name: string;
55
56
  createdAt: Date;
56
57
  nameCode: string;
57
- email: string;
58
58
  newsletter: boolean;
59
59
  avatarColor: string;
60
60
  emailVerified: boolean;
@@ -64,11 +64,11 @@ export declare const sessionRoute: {
64
64
  }>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  user: {
67
+ email: string;
67
68
  id: number;
68
69
  name: string;
69
70
  createdAt: Date;
70
71
  nameCode: string;
71
- email: string;
72
72
  newsletter: boolean;
73
73
  avatarColor: string;
74
74
  emailVerified: boolean;
@@ -78,11 +78,11 @@ export declare const sessionRoute: {
78
78
  } | null;
79
79
  }, {
80
80
  user: {
81
+ email: string;
81
82
  id: number;
82
83
  name: string;
83
84
  createdAt: Date;
84
85
  nameCode: string;
85
- email: string;
86
86
  newsletter: boolean;
87
87
  avatarColor: string;
88
88
  emailVerified: boolean;
@@ -5,13 +5,13 @@ export declare const zodSignUpSchema: z.ZodObject<{
5
5
  password: z.ZodString;
6
6
  newsletter: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- name: string;
9
8
  email: string;
9
+ name: string;
10
10
  password: string;
11
11
  newsletter?: boolean | undefined;
12
12
  }, {
13
- name: string;
14
13
  email: string;
14
+ name: string;
15
15
  password: string;
16
16
  newsletter?: boolean | undefined;
17
17
  }>;
@@ -19,16 +19,16 @@ export declare const signUpRoute: {
19
19
  handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/sign_up", {
20
20
  in: {
21
21
  json: {
22
- name: string;
23
22
  email: string;
23
+ name: string;
24
24
  password: string;
25
25
  newsletter?: boolean | undefined;
26
26
  };
27
27
  };
28
28
  out: {
29
29
  json: {
30
- name: string;
31
30
  email: string;
31
+ name: string;
32
32
  password: string;
33
33
  newsletter?: boolean | undefined;
34
34
  };
@@ -55,13 +55,13 @@ export declare const signUpRoute: {
55
55
  password: z.ZodString;
56
56
  newsletter: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- name: string;
59
58
  email: string;
59
+ name: string;
60
60
  password: string;
61
61
  newsletter?: boolean | undefined;
62
62
  }, {
63
- name: string;
64
63
  email: string;
64
+ name: string;
65
65
  password: string;
66
66
  newsletter?: boolean | undefined;
67
67
  }>;
@@ -78,12 +78,12 @@ export declare const signUpRoute: {
78
78
  emailVerified: z.ZodBoolean;
79
79
  email: z.ZodString;
80
80
  }, "strip", z.ZodTypeAny, {
81
- id: number;
82
81
  email: string;
82
+ id: number;
83
83
  emailVerified: boolean;
84
84
  }, {
85
- id: number;
86
85
  email: string;
86
+ id: number;
87
87
  emailVerified: boolean;
88
88
  }>;
89
89
  };
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const testRoute: {
3
- handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/test", {}>) => Response & import("hono").TypedResponse<"test", 200 | 201, "text">;
3
+ handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/test", {}>) => Promise<Response & import("hono").TypedResponse<"test", 200 | 201, "text">>;
4
4
  pluginId: "@vitnode/core";
5
5
  route: {
6
6
  method: "post";
@@ -1 +1 @@
1
- {"version":3,"file":"test.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/test.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCpB,CAAC"}
1
+ {"version":3,"file":"test.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/test.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCpB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { buildRoute } from "../../../lib/route.js";
3
3
  import { CONFIG_PLUGIN } from "../../../../config.js";
4
- // import { EmailModel } from '../../../models/email';
5
4
  export const testRoute = buildRoute({
6
5
  ...CONFIG_PLUGIN,
7
6
  route: {
@@ -27,14 +26,14 @@ export const testRoute = buildRoute({
27
26
  }
28
27
  }
29
28
  },
30
- handler: (c)=>{
31
- // new EmailModel(c).send({
32
- // html: '<p>Test email</p>',
33
- // to: 'ithereplay@gmail.com',
34
- // subject: 'Test Email',
35
- // });
29
+ handler: async (c)=>{
30
+ await c.get('email').send({
31
+ to: 'ithereplay@gmail.com',
32
+ subject: 'Test Email',
33
+ content: 'This is a test email'
34
+ });
36
35
  // throw new Error('Test error');
37
- c.get('log').warn('This is a test warn log');
36
+ await c.get('log').warn('This is a test warn log');
38
37
  return c.text('test');
39
38
  }
40
39
  });
@@ -37,11 +37,11 @@ export declare const usersModule: import("../../../api/lib/module").BuildModuleR
37
37
  birthday: import("zod").ZodNullable<import("zod").ZodDate>;
38
38
  isAdmin: import("zod").ZodBoolean;
39
39
  }, "strip", import("zod").ZodTypeAny, {
40
+ email: string;
40
41
  id: number;
41
42
  name: string;
42
43
  createdAt: Date;
43
44
  nameCode: string;
44
- email: string;
45
45
  newsletter: boolean;
46
46
  avatarColor: string;
47
47
  emailVerified: boolean;
@@ -49,11 +49,11 @@ export declare const usersModule: import("../../../api/lib/module").BuildModuleR
49
49
  birthday: Date | null;
50
50
  isAdmin: boolean;
51
51
  }, {
52
+ email: string;
52
53
  id: number;
53
54
  name: string;
54
55
  createdAt: Date;
55
56
  nameCode: string;
56
- email: string;
57
57
  newsletter: boolean;
58
58
  avatarColor: string;
59
59
  emailVerified: boolean;
@@ -63,11 +63,11 @@ export declare const usersModule: import("../../../api/lib/module").BuildModuleR
63
63
  }>>;
64
64
  }, "strip", import("zod").ZodTypeAny, {
65
65
  user: {
66
+ email: string;
66
67
  id: number;
67
68
  name: string;
68
69
  createdAt: Date;
69
70
  nameCode: string;
70
- email: string;
71
71
  newsletter: boolean;
72
72
  avatarColor: string;
73
73
  emailVerified: boolean;
@@ -77,11 +77,11 @@ export declare const usersModule: import("../../../api/lib/module").BuildModuleR
77
77
  } | null;
78
78
  }, {
79
79
  user: {
80
+ email: string;
80
81
  id: number;
81
82
  name: string;
82
83
  createdAt: Date;
83
84
  nameCode: string;
84
- email: string;
85
85
  newsletter: boolean;
86
86
  avatarColor: string;
87
87
  emailVerified: boolean;
@@ -218,16 +218,16 @@ export declare const usersModule: import("../../../api/lib/module").BuildModuleR
218
218
  handler: (c: import("hono").Context<import("../../middlewares/global.middleware").EnvVitNode, "/sign_up", {
219
219
  in: {
220
220
  json: {
221
- name: string;
222
221
  email: string;
222
+ name: string;
223
223
  password: string;
224
224
  newsletter?: boolean | undefined;
225
225
  };
226
226
  };
227
227
  out: {
228
228
  json: {
229
- name: string;
230
229
  email: string;
230
+ name: string;
231
231
  password: string;
232
232
  newsletter?: boolean | undefined;
233
233
  };
@@ -254,13 +254,13 @@ export declare const usersModule: import("../../../api/lib/module").BuildModuleR
254
254
  password: import("zod").ZodString;
255
255
  newsletter: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
256
256
  }, "strip", import("zod").ZodTypeAny, {
257
- name: string;
258
257
  email: string;
258
+ name: string;
259
259
  password: string;
260
260
  newsletter?: boolean | undefined;
261
261
  }, {
262
- name: string;
263
262
  email: string;
263
+ name: string;
264
264
  password: string;
265
265
  newsletter?: boolean | undefined;
266
266
  }>;
@@ -277,12 +277,12 @@ export declare const usersModule: import("../../../api/lib/module").BuildModuleR
277
277
  emailVerified: import("zod").ZodBoolean;
278
278
  email: import("zod").ZodString;
279
279
  }, "strip", import("zod").ZodTypeAny, {
280
- id: number;
281
280
  email: string;
281
+ id: number;
282
282
  emailVerified: boolean;
283
283
  }, {
284
- id: number;
285
284
  email: string;
285
+ id: number;
286
286
  emailVerified: boolean;
287
287
  }>;
288
288
  };
@@ -294,7 +294,7 @@ export declare const usersModule: import("../../../api/lib/module").BuildModuleR
294
294
  getRoutingPath: () => "/sign_up";
295
295
  };
296
296
  }, {
297
- handler: (c: import("hono").Context<import("../../middlewares/global.middleware").EnvVitNode, "/test", {}>) => Response & import("hono").TypedResponse<"test", 200 | 201, "text">;
297
+ handler: (c: import("hono").Context<import("../../middlewares/global.middleware").EnvVitNode, "/test", {}>) => Promise<Response & import("hono").TypedResponse<"test", 200 | 201, "text">>;
298
298
  pluginId: "@vitnode/core";
299
299
  route: {
300
300
  method: "post";
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- declare const SystemLogsView: React.LazyExoticComponent<({ searchParams, }: {
2
+ declare const SystemLogsView: React.ComponentType<{
3
3
  searchParams: Promise<Record<string, string | string[] | undefined>>;
4
- }) => Promise<import("react/jsx-runtime").JSX.Element>>;
4
+ }>;
5
5
  export declare const generateMetadata: () => Promise<{
6
6
  title: string;
7
7
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../src/app_admin/core/debug/page.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,QAAA,MAAM,cAAc;;uDAMnB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;EAO5B,CAAC;AAEF,wBAA8B,IAAI,CAChC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,oDAkBnD"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../src/app_admin/core/debug/page.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,QAAA,MAAM,cAAc;;EAMnB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;EAO5B,CAAC;AAEF,wBAA8B,IAAI,CAChC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,oDAkBnD"}
@@ -1,11 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getTranslations } from "next-intl/server";
3
+ import dynamic from "next/dynamic";
3
4
  import React from "react";
4
5
  import { I18nProvider } from "../../../components/i18n-provider.js";
5
6
  import { DataTableSkeleton } from "../../../components/table/data-table.js";
6
7
  import { HeaderContent } from "../../../components/ui/header-content.js";
7
8
  import { ClearCacheAction } from "../../../views/admin/views/core/debug/actions/clear-cache/clear-cache.js";
8
- const SystemLogsView = /*#__PURE__*/ React.lazy(async ()=>import("../../../views/admin/views/core/debug/system-logs/system-logs-view.js").then((module)=>({
9
+ const SystemLogsView = dynamic(async ()=>import("../../../views/admin/views/core/debug/system-logs/system-logs-view.js").then((module)=>({
9
10
  default: module.SystemLogsView
10
11
  })));
11
12
  export const generateMetadata = async ()=>{
@@ -1,8 +1,8 @@
1
1
  import type { Metadata } from 'next/dist/types';
2
2
  import React from 'react';
3
- declare const UsersAdminView: React.LazyExoticComponent<({ searchParams, }: {
3
+ declare const UsersAdminView: React.ComponentType<{
4
4
  searchParams: Promise<Record<string, string | string[] | undefined>>;
5
- }) => Promise<import("react/jsx-runtime").JSX.Element>>;
5
+ }>;
6
6
  export declare const generateMetadata: () => Promise<Metadata>;
7
7
  export default function Page(props: React.ComponentProps<typeof UsersAdminView>): Promise<import("react/jsx-runtime").JSX.Element>;
8
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../src/app_admin/core/users/page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,cAAc;;uDAInB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,QAAQ,CAMzD,CAAC;AAEF,wBAA8B,IAAI,CAChC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,oDAgBnD"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../src/app_admin/core/users/page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,cAAc;;EAInB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,QAAQ,CAMzD,CAAC;AAEF,wBAA8B,IAAI,CAChC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,oDAgBnD"}
@@ -1,9 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getTranslations } from "next-intl/server";
3
+ import dynamic from "next/dynamic";
3
4
  import React from "react";
4
5
  import { DataTableSkeleton } from "../../../components/table/data-table.js";
5
6
  import { HeaderContent } from "../../../components/ui/header-content.js";
6
- const UsersAdminView = /*#__PURE__*/ React.lazy(async ()=>import("../../../views/admin/views/core/users/users-admin-view.js").then((module)=>({
7
+ const UsersAdminView = dynamic(async ()=>import("../../../views/admin/views/core/users/users-admin-view.js").then((module)=>({
7
8
  default: module.UsersAdminView
8
9
  })));
9
10
  export const generateMetadata = async ()=>{
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { AlertDialog } from '../ui/alert-dialog';
3
- declare const ContentConfirmAction: React.LazyExoticComponent<({ onSubmit, textSubmit, }: {
3
+ declare const ContentConfirmAction: React.ComponentType<{
4
4
  onSubmit: (props: {
5
5
  onClose: () => void;
6
6
  }) => Promise<void> | void;
7
7
  textSubmit?: string;
8
- }) => import("react/jsx-runtime").JSX.Element>;
8
+ }>;
9
9
  export declare const ConfirmActionAlertDialog: ({ children, title, description, textSubmit, onSubmit, ...props }: Omit<React.ComponentProps<typeof AlertDialog>, "children"> & React.ComponentProps<typeof ContentConfirmAction> & {
10
10
  children: React.ReactNode;
11
11
  description?: React.ReactNode;