@hed-hog/core 0.0.330 → 0.0.332

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 (60) hide show
  1. package/dist/ai/ai.service.d.ts +1 -1
  2. package/dist/auth/auth.controller.d.ts +23 -23
  3. package/dist/auth/auth.service.d.ts +41 -41
  4. package/dist/challenge/challenge.service.d.ts +14 -14
  5. package/dist/core/system.controller.d.ts +2 -2
  6. package/dist/core/system.service.d.ts +2 -2
  7. package/dist/dashboard/dashboard/dashboard.controller.d.ts +87 -87
  8. package/dist/dashboard/dashboard/dashboard.service.d.ts +87 -87
  9. package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +33 -33
  10. package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +33 -33
  11. package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +42 -42
  12. package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +42 -42
  13. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +12 -12
  14. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +12 -12
  15. package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +7 -7
  16. package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +7 -7
  17. package/dist/dashboard/dashboard-role/dashboard-role.controller.d.ts +33 -33
  18. package/dist/dashboard/dashboard-role/dashboard-role.service.d.ts +33 -33
  19. package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts +3 -3
  20. package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts +3 -3
  21. package/dist/file/file.controller.d.ts +8 -8
  22. package/dist/file/file.service.d.ts +18 -18
  23. package/dist/mail/mail.controller.d.ts +15 -15
  24. package/dist/mail/mail.service.d.ts +15 -15
  25. package/dist/mail-profile/mail-profile.controller.d.ts +9 -9
  26. package/dist/mail-profile/mail-profile.service.d.ts +9 -9
  27. package/dist/mail-sent/mail-sent.controller.d.ts +17 -17
  28. package/dist/mail-sent/mail-sent.service.d.ts +17 -17
  29. package/dist/mcp-chat/mcp-chat.controller.d.ts +10 -10
  30. package/dist/mcp-chat/mcp-chat.service.d.ts +10 -10
  31. package/dist/menu/menu.controller.d.ts +11 -11
  32. package/dist/menu/menu.service.d.ts +11 -11
  33. package/dist/profile/profile.controller.d.ts +17 -17
  34. package/dist/profile/profile.service.d.ts +17 -17
  35. package/dist/role/role.controller.d.ts +12 -12
  36. package/dist/role/role.service.d.ts +12 -12
  37. package/dist/route/route.service.d.ts.map +1 -1
  38. package/dist/route/route.service.js +14 -0
  39. package/dist/route/route.service.js.map +1 -1
  40. package/dist/screen/screen.controller.d.ts +3 -3
  41. package/dist/screen/screen.service.d.ts +3 -3
  42. package/dist/session/session.controller.d.ts +4 -4
  43. package/dist/session/session.service.d.ts +12 -12
  44. package/dist/setting/setting.controller.d.ts +13 -13
  45. package/dist/setting/setting.service.d.ts +13 -13
  46. package/dist/user/user.controller.d.ts +24 -24
  47. package/dist/user/user.service.d.ts +55 -55
  48. package/hedhog/data/menu.yaml +18 -4
  49. package/hedhog/frontend/app/account/layout.tsx.ejs +1 -1
  50. package/hedhog/frontend/app/configurations/[slug]/components/setting-field.tsx.ejs +27 -23
  51. package/hedhog/frontend/app/mail/template/page.tsx.ejs +5 -5
  52. package/hedhog/frontend/app/menu/page.tsx.ejs +7 -2
  53. package/hedhog/frontend/app/preferences/page.tsx.ejs +1 -1
  54. package/hedhog/frontend/app/roles/page.tsx.ejs +7 -2
  55. package/hedhog/frontend/app/routes/page.tsx.ejs +1339 -0
  56. package/hedhog/frontend/app/users/page.tsx.ejs +1 -1
  57. package/hedhog/frontend/messages/en.json +108 -1
  58. package/hedhog/frontend/messages/pt.json +108 -1
  59. package/package.json +5 -5
  60. package/src/route/route.service.ts +14 -0
@@ -18,93 +18,93 @@ export declare class DashboardRoleService {
18
18
  role: {
19
19
  role_locale: ({
20
20
  locale: {
21
- created_at: Date;
22
- id: number;
23
- updated_at: Date;
24
- name: string;
25
21
  code: string;
22
+ name: string;
23
+ id: number;
26
24
  region: string;
25
+ created_at: Date;
26
+ updated_at: Date;
27
27
  enabled: boolean;
28
28
  };
29
29
  } & {
30
- created_at: Date;
30
+ name: string;
31
31
  id: number;
32
+ description: string | null;
33
+ created_at: Date;
32
34
  updated_at: Date;
33
- name: string;
34
35
  locale_id: number;
35
- description: string | null;
36
36
  role_id: number;
37
37
  })[];
38
38
  } & {
39
- created_at: Date;
40
39
  id: number;
40
+ created_at: Date;
41
41
  updated_at: Date;
42
42
  slug: string;
43
43
  };
44
44
  } & {
45
- created_at: Date;
46
45
  id: number;
46
+ created_at: Date;
47
47
  updated_at: Date;
48
48
  role_id: number;
49
49
  dashboard_id: number;
50
50
  })[]>;
51
51
  create(data: CreateDashboardRoleDTO, locale: string): Promise<{
52
- dashboard: {
53
- dashboard_locale: ({
52
+ role: {
53
+ role_locale: ({
54
54
  locale: {
55
- created_at: Date;
56
- id: number;
57
- updated_at: Date;
58
- name: string;
59
55
  code: string;
56
+ name: string;
57
+ id: number;
60
58
  region: string;
59
+ created_at: Date;
60
+ updated_at: Date;
61
61
  enabled: boolean;
62
62
  };
63
63
  } & {
64
- created_at: Date;
64
+ name: string;
65
65
  id: number;
66
+ description: string | null;
67
+ created_at: Date;
66
68
  updated_at: Date;
67
- name: string;
68
69
  locale_id: number;
69
- dashboard_id: number;
70
+ role_id: number;
70
71
  })[];
71
72
  } & {
72
- created_at: Date;
73
73
  id: number;
74
+ created_at: Date;
74
75
  updated_at: Date;
75
76
  slug: string;
76
- icon: string | null;
77
- is_template: boolean;
78
77
  };
79
- role: {
80
- role_locale: ({
78
+ dashboard: {
79
+ dashboard_locale: ({
81
80
  locale: {
82
- created_at: Date;
83
- id: number;
84
- updated_at: Date;
85
- name: string;
86
81
  code: string;
82
+ name: string;
83
+ id: number;
87
84
  region: string;
85
+ created_at: Date;
86
+ updated_at: Date;
88
87
  enabled: boolean;
89
88
  };
90
89
  } & {
91
- created_at: Date;
90
+ name: string;
92
91
  id: number;
92
+ created_at: Date;
93
93
  updated_at: Date;
94
- name: string;
95
94
  locale_id: number;
96
- description: string | null;
97
- role_id: number;
95
+ dashboard_id: number;
98
96
  })[];
99
97
  } & {
100
- created_at: Date;
101
98
  id: number;
99
+ created_at: Date;
102
100
  updated_at: Date;
103
101
  slug: string;
102
+ icon: string | null;
103
+ is_template: boolean;
104
104
  };
105
105
  } & {
106
- created_at: Date;
107
106
  id: number;
107
+ created_at: Date;
108
108
  updated_at: Date;
109
109
  role_id: number;
110
110
  dashboard_id: number;
@@ -15,24 +15,24 @@ export declare class DashboardUserController {
15
15
  data: any[];
16
16
  }>;
17
17
  get(id: number): Promise<{
18
- created_at: Date;
19
18
  id: number;
19
+ created_at: Date;
20
20
  updated_at: Date;
21
21
  user_id: number;
22
22
  dashboard_id: number;
23
23
  is_home: boolean;
24
24
  }>;
25
25
  create(data: CreateDTO): Promise<{
26
- created_at: Date;
27
26
  id: number;
27
+ created_at: Date;
28
28
  updated_at: Date;
29
29
  user_id: number;
30
30
  dashboard_id: number;
31
31
  is_home: boolean;
32
32
  }>;
33
33
  update(id: number, data: UpdateDTO): Promise<{
34
- created_at: Date;
35
34
  id: number;
35
+ created_at: Date;
36
36
  updated_at: Date;
37
37
  user_id: number;
38
38
  dashboard_id: number;
@@ -17,16 +17,16 @@ export declare class DashboardUserService {
17
17
  data: any[];
18
18
  }>;
19
19
  get(id: number): Promise<{
20
- created_at: Date;
21
20
  id: number;
21
+ created_at: Date;
22
22
  updated_at: Date;
23
23
  user_id: number;
24
24
  dashboard_id: number;
25
25
  is_home: boolean;
26
26
  }>;
27
27
  create(data: CreateDTO): Promise<{
28
- created_at: Date;
29
28
  id: number;
29
+ created_at: Date;
30
30
  updated_at: Date;
31
31
  user_id: number;
32
32
  dashboard_id: number;
@@ -36,8 +36,8 @@ export declare class DashboardUserService {
36
36
  id: number;
37
37
  data: UpdateDTO;
38
38
  }): Promise<{
39
- created_at: Date;
40
39
  id: number;
40
+ created_at: Date;
41
41
  updated_at: Date;
42
42
  user_id: number;
43
43
  dashboard_id: number;
@@ -15,13 +15,13 @@ export declare class FileController {
15
15
  data: any[];
16
16
  }>;
17
17
  show(id: any): Promise<{
18
- created_at: Date;
19
- id: number;
20
- updated_at: Date;
21
18
  filename: string;
22
- path: string;
23
19
  location: string;
20
+ id: number;
21
+ path: string;
24
22
  size: number;
23
+ created_at: Date;
24
+ updated_at: Date;
25
25
  provider_id: number;
26
26
  mimetype_id: number;
27
27
  }>;
@@ -34,13 +34,13 @@ export declare class FileController {
34
34
  download(token: string, res: Response, locale: string): Promise<void>;
35
35
  open(token: string, res: Response, locale: string): Promise<void>;
36
36
  upload(file: MulterFile, body: UploadFileDTO): Promise<{
37
- created_at: Date;
38
- id: number;
39
- updated_at: Date;
40
37
  filename: string;
41
- path: string;
42
38
  location: string;
39
+ id: number;
40
+ path: string;
43
41
  size: number;
42
+ created_at: Date;
43
+ updated_at: Date;
44
44
  provider_id: number;
45
45
  mimetype_id: number;
46
46
  }>;
@@ -21,13 +21,13 @@ export declare class FileService implements OnModuleInit {
21
21
  acceptMimetypes(mimetype: string): Promise<boolean>;
22
22
  maxFileSize(size: number): Promise<boolean>;
23
23
  uploadFromString(destination: string, filename: string, filecontent: string, mimetype?: string): Promise<{
24
- created_at: Date;
25
- id: number;
26
- updated_at: Date;
27
24
  filename: string;
28
- path: string;
29
25
  location: string;
26
+ id: number;
27
+ path: string;
30
28
  size: number;
29
+ created_at: Date;
30
+ updated_at: Date;
31
31
  provider_id: number;
32
32
  mimetype_id: number;
33
33
  }>;
@@ -35,19 +35,19 @@ export declare class FileService implements OnModuleInit {
35
35
  getBuffer(fileId: number): Promise<{
36
36
  file: {
37
37
  file_mimetype: {
38
- created_at: Date;
38
+ name: string;
39
39
  id: number;
40
+ created_at: Date;
40
41
  updated_at: Date;
41
- name: string;
42
42
  };
43
43
  } & {
44
- created_at: Date;
45
- id: number;
46
- updated_at: Date;
47
44
  filename: string;
48
- path: string;
49
45
  location: string;
46
+ id: number;
47
+ path: string;
50
48
  size: number;
49
+ created_at: Date;
50
+ updated_at: Date;
51
51
  provider_id: number;
52
52
  mimetype_id: number;
53
53
  };
@@ -55,13 +55,13 @@ export declare class FileService implements OnModuleInit {
55
55
  }>;
56
56
  getLocalFile(fileId: number, res: any): Promise<void>;
57
57
  upload(destination: string, fileBuffer: MulterFile): Promise<{
58
- created_at: Date;
59
- id: number;
60
- updated_at: Date;
61
58
  filename: string;
62
- path: string;
63
59
  location: string;
60
+ id: number;
61
+ path: string;
64
62
  size: number;
63
+ created_at: Date;
64
+ updated_at: Date;
65
65
  provider_id: number;
66
66
  mimetype_id: number;
67
67
  }>;
@@ -76,13 +76,13 @@ export declare class FileService implements OnModuleInit {
76
76
  data: any[];
77
77
  }>;
78
78
  get(fileId: number): Promise<{
79
- created_at: Date;
80
- id: number;
81
- updated_at: Date;
82
79
  filename: string;
83
- path: string;
84
80
  location: string;
81
+ id: number;
82
+ path: string;
85
83
  size: number;
84
+ created_at: Date;
85
+ updated_at: Date;
86
86
  provider_id: number;
87
87
  mimetype_id: number;
88
88
  }>;
@@ -25,8 +25,8 @@ export declare class MailController {
25
25
  subject: string;
26
26
  body: string;
27
27
  mail_var: {
28
- id: number;
29
28
  name: string;
29
+ id: number;
30
30
  }[];
31
31
  locale: {
32
32
  code: string;
@@ -37,24 +37,24 @@ export declare class MailController {
37
37
  getHtml(id: number, res: Response, queryLocale?: string, decoratorLocale?: string): Promise<void>;
38
38
  create(data: CreateDTO): Promise<{
39
39
  mail_locale: {
40
- mail_id: number;
41
- subject: string;
40
+ id: number;
42
41
  body: string;
43
42
  created_at: Date;
44
- id: number;
45
43
  updated_at: Date;
44
+ subject: string;
46
45
  locale_id: number;
46
+ mail_id: number;
47
47
  }[];
48
48
  mail_var: {
49
- mail_id: number;
50
- created_at: Date;
49
+ name: string;
51
50
  id: number;
51
+ created_at: Date;
52
52
  updated_at: Date;
53
- name: string;
53
+ mail_id: number;
54
54
  }[];
55
55
  } & {
56
- created_at: Date;
57
56
  id: number;
57
+ created_at: Date;
58
58
  updated_at: Date;
59
59
  slug: string;
60
60
  }>;
@@ -66,24 +66,24 @@ export declare class MailController {
66
66
  }>;
67
67
  update(id: number, data: UpdateDTO): Promise<{
68
68
  mail_locale: {
69
- mail_id: number;
70
- subject: string;
69
+ id: number;
71
70
  body: string;
72
71
  created_at: Date;
73
- id: number;
74
72
  updated_at: Date;
73
+ subject: string;
75
74
  locale_id: number;
75
+ mail_id: number;
76
76
  }[];
77
77
  mail_var: {
78
- mail_id: number;
79
- created_at: Date;
78
+ name: string;
80
79
  id: number;
80
+ created_at: Date;
81
81
  updated_at: Date;
82
- name: string;
82
+ mail_id: number;
83
83
  }[];
84
84
  } & {
85
- created_at: Date;
86
85
  id: number;
86
+ created_at: Date;
87
87
  updated_at: Date;
88
88
  slug: string;
89
89
  }>;
@@ -52,8 +52,8 @@ export declare class MailService implements OnModuleInit {
52
52
  subject: string;
53
53
  body: string;
54
54
  mail_var: {
55
- id: number;
56
55
  name: string;
56
+ id: number;
57
57
  }[];
58
58
  locale: {
59
59
  code: string;
@@ -63,24 +63,24 @@ export declare class MailService implements OnModuleInit {
63
63
  }>;
64
64
  create(data: CreateDTO): Promise<{
65
65
  mail_locale: {
66
- mail_id: number;
67
- subject: string;
66
+ id: number;
68
67
  body: string;
69
68
  created_at: Date;
70
- id: number;
71
69
  updated_at: Date;
70
+ subject: string;
72
71
  locale_id: number;
72
+ mail_id: number;
73
73
  }[];
74
74
  mail_var: {
75
- mail_id: number;
76
- created_at: Date;
75
+ name: string;
77
76
  id: number;
77
+ created_at: Date;
78
78
  updated_at: Date;
79
- name: string;
79
+ mail_id: number;
80
80
  }[];
81
81
  } & {
82
- created_at: Date;
83
82
  id: number;
83
+ created_at: Date;
84
84
  updated_at: Date;
85
85
  slug: string;
86
86
  }>;
@@ -89,24 +89,24 @@ export declare class MailService implements OnModuleInit {
89
89
  data: UpdateDTO;
90
90
  }): Promise<{
91
91
  mail_locale: {
92
- mail_id: number;
93
- subject: string;
92
+ id: number;
94
93
  body: string;
95
94
  created_at: Date;
96
- id: number;
97
95
  updated_at: Date;
96
+ subject: string;
98
97
  locale_id: number;
98
+ mail_id: number;
99
99
  }[];
100
100
  mail_var: {
101
- mail_id: number;
102
- created_at: Date;
101
+ name: string;
103
102
  id: number;
103
+ created_at: Date;
104
104
  updated_at: Date;
105
- name: string;
105
+ mail_id: number;
106
106
  }[];
107
107
  } & {
108
- created_at: Date;
109
108
  id: number;
109
+ created_at: Date;
110
110
  updated_at: Date;
111
111
  slug: string;
112
112
  }>;
@@ -15,12 +15,12 @@ export declare class MailProfileController {
15
15
  data: any[];
16
16
  }>;
17
17
  get(id: number): Promise<{
18
- created_at: Date;
18
+ name: string;
19
19
  id: number;
20
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
21
+ created_at: Date;
20
22
  updated_at: Date;
21
- name: string;
22
23
  slug: string;
23
- provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
24
24
  from_name: string | null;
25
25
  from_email: string;
26
26
  reply_to_name: string | null;
@@ -38,12 +38,12 @@ export declare class MailProfileController {
38
38
  ses_region: string | null;
39
39
  }>;
40
40
  create(data: CreateDTO): Promise<{
41
- created_at: Date;
41
+ name: string;
42
42
  id: number;
43
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
44
+ created_at: Date;
43
45
  updated_at: Date;
44
- name: string;
45
46
  slug: string;
46
- provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
47
47
  from_name: string | null;
48
48
  from_email: string;
49
49
  reply_to_name: string | null;
@@ -65,12 +65,12 @@ export declare class MailProfileController {
65
65
  destination: string;
66
66
  }>;
67
67
  update(id: number, data: UpdateDTO): Promise<{
68
- created_at: Date;
68
+ name: string;
69
69
  id: number;
70
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
71
+ created_at: Date;
70
72
  updated_at: Date;
71
- name: string;
72
73
  slug: string;
73
- provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
74
74
  from_name: string | null;
75
75
  from_email: string;
76
76
  reply_to_name: string | null;
@@ -21,12 +21,12 @@ export declare class MailProfileService {
21
21
  data: any[];
22
22
  }>;
23
23
  get(id: number): Promise<{
24
- created_at: Date;
24
+ name: string;
25
25
  id: number;
26
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
27
+ created_at: Date;
26
28
  updated_at: Date;
27
- name: string;
28
29
  slug: string;
29
- provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
30
30
  from_name: string | null;
31
31
  from_email: string;
32
32
  reply_to_name: string | null;
@@ -44,12 +44,12 @@ export declare class MailProfileService {
44
44
  ses_region: string | null;
45
45
  }>;
46
46
  create(data: CreateDTO): Promise<{
47
- created_at: Date;
47
+ name: string;
48
48
  id: number;
49
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
50
+ created_at: Date;
49
51
  updated_at: Date;
50
- name: string;
51
52
  slug: string;
52
- provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
53
53
  from_name: string | null;
54
54
  from_email: string;
55
55
  reply_to_name: string | null;
@@ -70,12 +70,12 @@ export declare class MailProfileService {
70
70
  id: number;
71
71
  data: UpdateDTO;
72
72
  }): Promise<{
73
- created_at: Date;
73
+ name: string;
74
74
  id: number;
75
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
76
+ created_at: Date;
75
77
  updated_at: Date;
76
- name: string;
77
78
  slug: string;
78
- provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
79
79
  from_name: string | null;
80
80
  from_email: string;
81
81
  reply_to_name: string | null;
@@ -19,7 +19,7 @@ export declare class MailSentController {
19
19
  mail_sent_user?: {
20
20
  id: number;
21
21
  recipient_email: string;
22
- status: "received" | "read" | "error";
22
+ status: "error" | "received" | "read";
23
23
  read_at: Date | null;
24
24
  error_code: string | null;
25
25
  error_message: string | null;
@@ -37,40 +37,40 @@ export declare class MailSentController {
37
37
  next: number;
38
38
  }>;
39
39
  get(id: number, locale: string): Promise<{
40
- mail_id: number;
41
- subject: string;
40
+ id: number;
41
+ body: string;
42
42
  from: string;
43
+ created_at: Date;
44
+ updated_at: Date;
45
+ subject: string;
46
+ mail_id: number;
43
47
  to: string | null;
44
48
  cc: string | null;
45
49
  bcc: string | null;
50
+ }>;
51
+ create(data: CreateDTO): Promise<{
52
+ id: number;
46
53
  body: string;
54
+ from: string;
47
55
  created_at: Date;
48
- id: number;
49
56
  updated_at: Date;
50
- }>;
51
- create(data: CreateDTO): Promise<{
52
- mail_id: number;
53
57
  subject: string;
54
- from: string;
58
+ mail_id: number;
55
59
  to: string | null;
56
60
  cc: string | null;
57
61
  bcc: string | null;
62
+ }>;
63
+ update(locale: string, id: number, data: UpdateDTO): Promise<{
64
+ id: number;
58
65
  body: string;
66
+ from: string;
59
67
  created_at: Date;
60
- id: number;
61
68
  updated_at: Date;
62
- }>;
63
- update(locale: string, id: number, data: UpdateDTO): Promise<{
64
- mail_id: number;
65
69
  subject: string;
66
- from: string;
70
+ mail_id: number;
67
71
  to: string | null;
68
72
  cc: string | null;
69
73
  bcc: string | null;
70
- body: string;
71
- created_at: Date;
72
- id: number;
73
- updated_at: Date;
74
74
  }>;
75
75
  delete(locale: string, data: DeleteDTO): Promise<{
76
76
  count: number;
@@ -41,43 +41,43 @@ export declare class MailSentService {
41
41
  next: number;
42
42
  }>;
43
43
  get(locale: string, id: number): Promise<{
44
- mail_id: number;
45
- subject: string;
44
+ id: number;
45
+ body: string;
46
46
  from: string;
47
+ created_at: Date;
48
+ updated_at: Date;
49
+ subject: string;
50
+ mail_id: number;
47
51
  to: string | null;
48
52
  cc: string | null;
49
53
  bcc: string | null;
54
+ }>;
55
+ create({ body, from, mail_id, subject, bcc, cc, to }: CreateDTO): Promise<{
56
+ id: number;
50
57
  body: string;
58
+ from: string;
51
59
  created_at: Date;
52
- id: number;
53
60
  updated_at: Date;
54
- }>;
55
- create({ body, from, mail_id, subject, bcc, cc, to }: CreateDTO): Promise<{
56
- mail_id: number;
57
61
  subject: string;
58
- from: string;
62
+ mail_id: number;
59
63
  to: string | null;
60
64
  cc: string | null;
61
65
  bcc: string | null;
62
- body: string;
63
- created_at: Date;
64
- id: number;
65
- updated_at: Date;
66
66
  }>;
67
67
  update(locale: string, { id, data }: {
68
68
  id: number;
69
69
  data: UpdateDTO;
70
70
  }): Promise<{
71
- mail_id: number;
72
- subject: string;
71
+ id: number;
72
+ body: string;
73
73
  from: string;
74
+ created_at: Date;
75
+ updated_at: Date;
76
+ subject: string;
77
+ mail_id: number;
74
78
  to: string | null;
75
79
  cc: string | null;
76
80
  bcc: string | null;
77
- body: string;
78
- created_at: Date;
79
- id: number;
80
- updated_at: Date;
81
81
  }>;
82
82
  delete(locale: string, { ids }: DeleteDTO): Promise<{
83
83
  count: number;