@nomalism-com/types 0.42.5 → 0.42.7

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 = {
@@ -4959,8 +4958,7 @@ var sendBodyKeys = {
4959
4958
  filename: joi87.string().required(),
4960
4959
  path: joi87.string().required()
4961
4960
  })
4962
- ).required(),
4963
- variables: joi87.array().items(joi87.string()).required()
4961
+ ).required()
4964
4962
  };
4965
4963
  var sendBody = joi87.object().keys(sendBodyKeys).messages(messages);
4966
4964
 
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 = {
@@ -4959,8 +4958,7 @@ var sendBodyKeys = {
4959
4958
  filename: joi87.string().required(),
4960
4959
  path: joi87.string().required()
4961
4960
  })
4962
- ).required(),
4963
- variables: joi87.array().items(joi87.string()).required()
4961
+ ).required()
4964
4962
  };
4965
4963
  var sendBody = joi87.object().keys(sendBodyKeys).messages(messages);
4966
4964
 
@@ -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;
@@ -34,7 +31,6 @@ export interface ISendRequest {
34
31
  subject: string;
35
32
  html: string;
36
33
  attachments: IEmailAttachment[];
37
- variables: string[];
38
34
  }
39
35
  export interface IRepository {
40
36
  find(): Promise<IEntityExtended[]>;
@@ -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.5",
4
+ "version": "0.42.7",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",