@nomalism-com/types 0.42.6 → 0.42.8

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
@@ -4921,8 +4921,7 @@ var createBodyKeys55 = {
4921
4921
  name: joi87.string().required()
4922
4922
  })
4923
4923
  ).required(),
4924
- key: joi87.string().required(),
4925
- rapid: joi87.boolean().required()
4924
+ key: joi87.string().required()
4926
4925
  };
4927
4926
  var createBody56 = joi87.object().keys(createBodyKeys55).messages(messages);
4928
4927
  var updateBodyKeys51 = {
@@ -4936,10 +4935,12 @@ var sendBodyKeys = {
4936
4935
  name: joi87.string().allow("", null).default("").required(),
4937
4936
  address: joi87.string().email({ tlds: { allow: false } }).required()
4938
4937
  }).required(),
4939
- from: joi87.object().keys({
4940
- name: joi87.string().allow("", null).default("").required(),
4941
- address: joi87.string().email({ tlds: { allow: false } }).required()
4942
- }).required(),
4938
+ from: joi87.array().items(
4939
+ joi87.object().keys({
4940
+ name: joi87.string().allow("", null).default("").required(),
4941
+ address: joi87.string().email({ tlds: { allow: false } }).required()
4942
+ })
4943
+ ).required(),
4943
4944
  cc: joi87.array().items(
4944
4945
  joi87.object().keys({
4945
4946
  name: joi87.string().allow("", null).default("").required(),
package/dist/index.js CHANGED
@@ -4921,8 +4921,7 @@ var createBodyKeys55 = {
4921
4921
  name: joi87.string().required()
4922
4922
  })
4923
4923
  ).required(),
4924
- key: joi87.string().required(),
4925
- rapid: joi87.boolean().required()
4924
+ key: joi87.string().required()
4926
4925
  };
4927
4926
  var createBody56 = joi87.object().keys(createBodyKeys55).messages(messages);
4928
4927
  var updateBodyKeys51 = {
@@ -4936,10 +4935,12 @@ var sendBodyKeys = {
4936
4935
  name: joi87.string().allow("", null).default("").required(),
4937
4936
  address: joi87.string().email({ tlds: { allow: false } }).required()
4938
4937
  }).required(),
4939
- from: joi87.object().keys({
4940
- name: joi87.string().allow("", null).default("").required(),
4941
- address: joi87.string().email({ tlds: { allow: false } }).required()
4942
- }).required(),
4938
+ from: joi87.array().items(
4939
+ joi87.object().keys({
4940
+ name: joi87.string().allow("", null).default("").required(),
4941
+ address: joi87.string().email({ tlds: { allow: false } }).required()
4942
+ })
4943
+ ).required(),
4943
4944
  cc: joi87.array().items(
4944
4945
  joi87.object().keys({
4945
4946
  name: joi87.string().allow("", null).default("").required(),
@@ -6,8 +6,6 @@ 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;
11
9
  attachments: EmailTemplateAttachment[];
12
10
  }
13
11
  export interface ICreateAttachments {
@@ -19,7 +17,6 @@ export interface ICreateRequest {
19
17
  body: string;
20
18
  attachments: ICreateAttachments[];
21
19
  key: string;
22
- rapid: boolean;
23
20
  }
24
21
  export interface IUpdateRequest {
25
22
  name?: string;
@@ -97,8 +97,8 @@ export type EmailTemplate = {
97
97
  name: string;
98
98
  body: string;
99
99
  key: string;
100
- rapid: Boolean;
101
- variables: string[];
100
+ rapid: boolean;
101
+ variables: unknown;
102
102
  created_by: string;
103
103
  updated_by: string;
104
104
  created_at: Date;
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.6",
4
+ "version": "0.42.8",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",