@nomalism-com/types 0.42.3 → 0.42.5
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/dist/index.cjs
CHANGED
|
@@ -4959,7 +4959,8 @@ var sendBodyKeys = {
|
|
|
4959
4959
|
filename: joi87.string().required(),
|
|
4960
4960
|
path: joi87.string().required()
|
|
4961
4961
|
})
|
|
4962
|
-
).required()
|
|
4962
|
+
).required(),
|
|
4963
|
+
variables: joi87.array().items(joi87.string()).required()
|
|
4963
4964
|
};
|
|
4964
4965
|
var sendBody = joi87.object().keys(sendBodyKeys).messages(messages);
|
|
4965
4966
|
|
package/dist/index.js
CHANGED
|
@@ -4959,7 +4959,8 @@ var sendBodyKeys = {
|
|
|
4959
4959
|
filename: joi87.string().required(),
|
|
4960
4960
|
path: joi87.string().required()
|
|
4961
4961
|
})
|
|
4962
|
-
).required()
|
|
4962
|
+
).required(),
|
|
4963
|
+
variables: joi87.array().items(joi87.string()).required()
|
|
4963
4964
|
};
|
|
4964
4965
|
var sendBody = joi87.object().keys(sendBodyKeys).messages(messages);
|
|
4965
4966
|
|
|
@@ -6,8 +6,8 @@ export declare const Route = "email_template";
|
|
|
6
6
|
export declare const UpperName = "EmailTemplate";
|
|
7
7
|
export declare const LowerName: string;
|
|
8
8
|
export interface IEntityExtended extends Entity {
|
|
9
|
-
to
|
|
10
|
-
subject
|
|
9
|
+
to?: string;
|
|
10
|
+
subject?: string;
|
|
11
11
|
attachments: EmailTemplateAttachment[];
|
|
12
12
|
}
|
|
13
13
|
export interface ICreateAttachments {
|
|
@@ -34,6 +34,7 @@ export interface ISendRequest {
|
|
|
34
34
|
subject: string;
|
|
35
35
|
html: string;
|
|
36
36
|
attachments: IEmailAttachment[];
|
|
37
|
+
variables: string[];
|
|
37
38
|
}
|
|
38
39
|
export interface IRepository {
|
|
39
40
|
find(): Promise<IEntityExtended[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.42.
|
|
4
|
+
"version": "0.42.5",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|