@nomalism-com/types 0.42.1 → 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
@@ -4932,6 +4932,10 @@ var updateBodyKeys51 = {
4932
4932
  var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
4933
4933
  var sendBodyKeys = {
4934
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(),
4935
4939
  from: joi87.object().keys({
4936
4940
  name: joi87.string().allow("", null).default("").required(),
4937
4941
  address: joi87.string().email({ tlds: { allow: false } }).required()
@@ -4948,6 +4952,7 @@ var sendBodyKeys = {
4948
4952
  address: joi87.string().email({ tlds: { allow: false } }).required()
4949
4953
  })
4950
4954
  ).required(),
4955
+ subject: joi87.string().required(),
4951
4956
  html: joi87.string().required(),
4952
4957
  attachments: joi87.array().items(
4953
4958
  joi87.object().keys({
package/dist/index.js CHANGED
@@ -4932,6 +4932,10 @@ var updateBodyKeys51 = {
4932
4932
  var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
4933
4933
  var sendBodyKeys = {
4934
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(),
4935
4939
  from: joi87.object().keys({
4936
4940
  name: joi87.string().allow("", null).default("").required(),
4937
4941
  address: joi87.string().email({ tlds: { allow: false } }).required()
@@ -4948,6 +4952,7 @@ var sendBodyKeys = {
4948
4952
  address: joi87.string().email({ tlds: { allow: false } }).required()
4949
4953
  })
4950
4954
  ).required(),
4955
+ subject: joi87.string().required(),
4951
4956
  html: joi87.string().required(),
4952
4957
  attachments: joi87.array().items(
4953
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 {
@@ -26,8 +28,10 @@ export interface IUpdateRequest {
26
28
  export interface ISendRequest {
27
29
  owner_id: string | null;
28
30
  from: IEmailAddress;
31
+ to: IEmailAddress[];
29
32
  cc: IEmailAddress[];
30
33
  bcc: IEmailAddress[];
34
+ subject: string;
31
35
  html: string;
32
36
  attachments: IEmailAttachment[];
33
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.1",
4
+ "version": "0.42.2",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",