@nomalism-com/types 0.16.21 → 0.16.23
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,8 +1,49 @@
|
|
|
1
|
+
import * as IShared from '../../../shared/interface';
|
|
1
2
|
import { EmailLog } from '../../../shared/entities';
|
|
2
3
|
export type Entity = EmailLog;
|
|
3
4
|
export declare const Route = "email_log";
|
|
4
5
|
export declare const UpperName = "EmailLog";
|
|
5
6
|
export declare const LowerName: string;
|
|
7
|
+
export interface IFindRequest {
|
|
8
|
+
date_start: Date;
|
|
9
|
+
date_end: Date;
|
|
10
|
+
}
|
|
11
|
+
export interface IFindResponse {
|
|
12
|
+
id: string;
|
|
13
|
+
template: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
to: string;
|
|
16
|
+
subject: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IEmailAddress {
|
|
19
|
+
name: string;
|
|
20
|
+
address: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IEmailAttachmentByHref {
|
|
23
|
+
href: string;
|
|
24
|
+
filename: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IEmailAttachmentByCid {
|
|
27
|
+
cid: string;
|
|
28
|
+
path: string;
|
|
29
|
+
filename: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IFindByIdResponse<T = unknown> {
|
|
32
|
+
id: string;
|
|
33
|
+
template: string;
|
|
34
|
+
created_at: string;
|
|
35
|
+
sent: boolean;
|
|
36
|
+
accepted: string[];
|
|
37
|
+
rejected: string[];
|
|
38
|
+
from: IEmailAddress;
|
|
39
|
+
to: IEmailAddress[];
|
|
40
|
+
cc: IEmailAddress[];
|
|
41
|
+
bcc: IEmailAddress[];
|
|
42
|
+
subject: string;
|
|
43
|
+
html: string;
|
|
44
|
+
attachments: (IEmailAttachmentByHref | IEmailAttachmentByCid)[];
|
|
45
|
+
variables: T;
|
|
46
|
+
}
|
|
6
47
|
export interface ICreateRequest {
|
|
7
48
|
template: string;
|
|
8
49
|
variables: unknown;
|
|
@@ -10,5 +51,7 @@ export interface ICreateRequest {
|
|
|
10
51
|
smtp_response: unknown;
|
|
11
52
|
}
|
|
12
53
|
export interface IRepository {
|
|
54
|
+
find(params: IFindRequest): Promise<IFindResponse[]>;
|
|
55
|
+
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse>;
|
|
13
56
|
create(data: ICreateRequest): Promise<void>;
|
|
14
57
|
}
|
|
@@ -75,7 +75,6 @@ export type Providers = {
|
|
|
75
75
|
user_id: string;
|
|
76
76
|
main_persona_id: string;
|
|
77
77
|
number: number;
|
|
78
|
-
nif: string | null;
|
|
79
78
|
country_id: string | null;
|
|
80
79
|
language_id: string | null;
|
|
81
80
|
support_language_id: string | null;
|
|
@@ -129,7 +128,6 @@ export type Clients = {
|
|
|
129
128
|
user_id: string;
|
|
130
129
|
main_persona_id: string;
|
|
131
130
|
number: number;
|
|
132
|
-
nif: string | null;
|
|
133
131
|
country_id: string | null;
|
|
134
132
|
language_id: string | null;
|
|
135
133
|
client_type_id: string | null;
|
|
@@ -222,7 +220,6 @@ export type Commissioner = {
|
|
|
222
220
|
user_id: string;
|
|
223
221
|
main_persona_id: string;
|
|
224
222
|
number: number;
|
|
225
|
-
nif: string | null;
|
|
226
223
|
country_id: string | null;
|
|
227
224
|
language_id: string | null;
|
|
228
225
|
default_percentage: number;
|