@nomalism-com/types 0.42.0 → 0.42.2
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
|
@@ -4927,17 +4927,15 @@ var createBodyKeys55 = {
|
|
|
4927
4927
|
var createBody56 = joi87.object().keys(createBodyKeys55).messages(messages);
|
|
4928
4928
|
var updateBodyKeys51 = {
|
|
4929
4929
|
name: joi87.string().optional(),
|
|
4930
|
-
body: joi87.string().optional()
|
|
4931
|
-
attachments: joi87.array().items(
|
|
4932
|
-
joi87.object().keys({
|
|
4933
|
-
multimedia_id: joi87.string().uuid().required(),
|
|
4934
|
-
name: joi87.string().required()
|
|
4935
|
-
})
|
|
4936
|
-
).optional()
|
|
4930
|
+
body: joi87.string().optional()
|
|
4937
4931
|
};
|
|
4938
4932
|
var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
|
|
4939
4933
|
var sendBodyKeys = {
|
|
4940
4934
|
owner_id: joi87.string().uuid().allow(null).required(),
|
|
4935
|
+
to: joi87.object().keys({
|
|
4936
|
+
name: joi87.string().allow("", null).default("").required(),
|
|
4937
|
+
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4938
|
+
}).required(),
|
|
4941
4939
|
from: joi87.object().keys({
|
|
4942
4940
|
name: joi87.string().allow("", null).default("").required(),
|
|
4943
4941
|
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
@@ -4954,6 +4952,7 @@ var sendBodyKeys = {
|
|
|
4954
4952
|
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4955
4953
|
})
|
|
4956
4954
|
).required(),
|
|
4955
|
+
subject: joi87.string().required(),
|
|
4957
4956
|
html: joi87.string().required(),
|
|
4958
4957
|
attachments: joi87.array().items(
|
|
4959
4958
|
joi87.object().keys({
|
package/dist/index.js
CHANGED
|
@@ -4927,17 +4927,15 @@ var createBodyKeys55 = {
|
|
|
4927
4927
|
var createBody56 = joi87.object().keys(createBodyKeys55).messages(messages);
|
|
4928
4928
|
var updateBodyKeys51 = {
|
|
4929
4929
|
name: joi87.string().optional(),
|
|
4930
|
-
body: joi87.string().optional()
|
|
4931
|
-
attachments: joi87.array().items(
|
|
4932
|
-
joi87.object().keys({
|
|
4933
|
-
multimedia_id: joi87.string().uuid().required(),
|
|
4934
|
-
name: joi87.string().required()
|
|
4935
|
-
})
|
|
4936
|
-
).optional()
|
|
4930
|
+
body: joi87.string().optional()
|
|
4937
4931
|
};
|
|
4938
4932
|
var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
|
|
4939
4933
|
var sendBodyKeys = {
|
|
4940
4934
|
owner_id: joi87.string().uuid().allow(null).required(),
|
|
4935
|
+
to: joi87.object().keys({
|
|
4936
|
+
name: joi87.string().allow("", null).default("").required(),
|
|
4937
|
+
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4938
|
+
}).required(),
|
|
4941
4939
|
from: joi87.object().keys({
|
|
4942
4940
|
name: joi87.string().allow("", null).default("").required(),
|
|
4943
4941
|
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
@@ -4954,6 +4952,7 @@ var sendBodyKeys = {
|
|
|
4954
4952
|
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4955
4953
|
})
|
|
4956
4954
|
).required(),
|
|
4955
|
+
subject: joi87.string().required(),
|
|
4957
4956
|
html: joi87.string().required(),
|
|
4958
4957
|
attachments: joi87.array().items(
|
|
4959
4958
|
joi87.object().keys({
|
|
@@ -6,6 +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: string;
|
|
10
|
+
subject: string;
|
|
9
11
|
attachments: EmailTemplateAttachment[];
|
|
10
12
|
}
|
|
11
13
|
export interface ICreateAttachments {
|
|
@@ -22,13 +24,14 @@ export interface ICreateRequest {
|
|
|
22
24
|
export interface IUpdateRequest {
|
|
23
25
|
name?: string;
|
|
24
26
|
body?: string;
|
|
25
|
-
attachments?: string[];
|
|
26
27
|
}
|
|
27
28
|
export interface ISendRequest {
|
|
28
29
|
owner_id: string | null;
|
|
29
30
|
from: IEmailAddress;
|
|
31
|
+
to: IEmailAddress[];
|
|
30
32
|
cc: IEmailAddress[];
|
|
31
33
|
bcc: IEmailAddress[];
|
|
34
|
+
subject: string;
|
|
32
35
|
html: string;
|
|
33
36
|
attachments: IEmailAttachment[];
|
|
34
37
|
}
|
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.2",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|