@nomalism-com/types 0.16.20 → 0.16.22
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.
|
@@ -7,11 +7,16 @@ export declare const LowerName: string;
|
|
|
7
7
|
export interface IEntityExtended extends Entity {
|
|
8
8
|
attachments: EmailTemplateAttachment[];
|
|
9
9
|
}
|
|
10
|
+
export interface ICreateAttachments {
|
|
11
|
+
multimedia_id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
10
14
|
export interface ICreateRequest {
|
|
11
15
|
name: string;
|
|
12
16
|
to: string;
|
|
13
17
|
subject: string;
|
|
14
18
|
body: string;
|
|
19
|
+
attachments: ICreateAttachments[];
|
|
15
20
|
}
|
|
16
21
|
export interface IUpdateRequest {
|
|
17
22
|
name?: string;
|
|
@@ -11,6 +11,13 @@ exports.createBodyKeys = {
|
|
|
11
11
|
to: joi_1.default.string().required(),
|
|
12
12
|
subject: joi_1.default.string().required(),
|
|
13
13
|
body: joi_1.default.string().required(),
|
|
14
|
+
attachments: joi_1.default
|
|
15
|
+
.array()
|
|
16
|
+
.items(joi_1.default.object().keys({
|
|
17
|
+
multimedia_id: joi_1.default.string().uuid().required(),
|
|
18
|
+
name: joi_1.default.string().required(),
|
|
19
|
+
}))
|
|
20
|
+
.required(),
|
|
14
21
|
};
|
|
15
22
|
exports.createBody = joi_1.default.object().keys(exports.createBodyKeys).messages(messages_1.messages);
|
|
16
23
|
exports.updateBodyKeys = {
|
|
@@ -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;
|