@nomalism-com/types 0.40.131 → 0.42.1

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
@@ -4914,21 +4914,19 @@ __export(route_schema_exports86, {
4914
4914
  import joi87 from "joi";
4915
4915
  var createBodyKeys55 = {
4916
4916
  name: joi87.string().required(),
4917
- to: joi87.string().required(),
4918
- subject: joi87.string().required(),
4919
4917
  body: joi87.string().required(),
4920
4918
  attachments: joi87.array().items(
4921
4919
  joi87.object().keys({
4922
4920
  multimedia_id: joi87.string().uuid().required(),
4923
4921
  name: joi87.string().required()
4924
4922
  })
4925
- ).required()
4923
+ ).required(),
4924
+ key: joi87.string().required(),
4925
+ rapid: joi87.boolean().required()
4926
4926
  };
4927
4927
  var createBody56 = joi87.object().keys(createBodyKeys55).messages(messages);
4928
4928
  var updateBodyKeys51 = {
4929
4929
  name: joi87.string().optional(),
4930
- to: joi87.string().optional(),
4931
- subject: joi87.string().optional(),
4932
4930
  body: joi87.string().optional()
4933
4931
  };
4934
4932
  var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
@@ -4938,12 +4936,6 @@ var sendBodyKeys = {
4938
4936
  name: joi87.string().allow("", null).default("").required(),
4939
4937
  address: joi87.string().email({ tlds: { allow: false } }).required()
4940
4938
  }).required(),
4941
- to: joi87.array().items(
4942
- joi87.object().keys({
4943
- name: joi87.string().allow("", null).default("").required(),
4944
- address: joi87.string().email({ tlds: { allow: false } }).required()
4945
- })
4946
- ).required(),
4947
4939
  cc: joi87.array().items(
4948
4940
  joi87.object().keys({
4949
4941
  name: joi87.string().allow("", null).default("").required(),
@@ -4956,7 +4948,6 @@ var sendBodyKeys = {
4956
4948
  address: joi87.string().email({ tlds: { allow: false } }).required()
4957
4949
  })
4958
4950
  ).required(),
4959
- subject: joi87.string().required(),
4960
4951
  html: joi87.string().required(),
4961
4952
  attachments: joi87.array().items(
4962
4953
  joi87.object().keys({
package/dist/index.js CHANGED
@@ -4914,21 +4914,19 @@ __export(route_schema_exports86, {
4914
4914
  import joi87 from "joi";
4915
4915
  var createBodyKeys55 = {
4916
4916
  name: joi87.string().required(),
4917
- to: joi87.string().required(),
4918
- subject: joi87.string().required(),
4919
4917
  body: joi87.string().required(),
4920
4918
  attachments: joi87.array().items(
4921
4919
  joi87.object().keys({
4922
4920
  multimedia_id: joi87.string().uuid().required(),
4923
4921
  name: joi87.string().required()
4924
4922
  })
4925
- ).required()
4923
+ ).required(),
4924
+ key: joi87.string().required(),
4925
+ rapid: joi87.boolean().required()
4926
4926
  };
4927
4927
  var createBody56 = joi87.object().keys(createBodyKeys55).messages(messages);
4928
4928
  var updateBodyKeys51 = {
4929
4929
  name: joi87.string().optional(),
4930
- to: joi87.string().optional(),
4931
- subject: joi87.string().optional(),
4932
4930
  body: joi87.string().optional()
4933
4931
  };
4934
4932
  var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
@@ -4938,12 +4936,6 @@ var sendBodyKeys = {
4938
4936
  name: joi87.string().allow("", null).default("").required(),
4939
4937
  address: joi87.string().email({ tlds: { allow: false } }).required()
4940
4938
  }).required(),
4941
- to: joi87.array().items(
4942
- joi87.object().keys({
4943
- name: joi87.string().allow("", null).default("").required(),
4944
- address: joi87.string().email({ tlds: { allow: false } }).required()
4945
- })
4946
- ).required(),
4947
4939
  cc: joi87.array().items(
4948
4940
  joi87.object().keys({
4949
4941
  name: joi87.string().allow("", null).default("").required(),
@@ -4956,7 +4948,6 @@ var sendBodyKeys = {
4956
4948
  address: joi87.string().email({ tlds: { allow: false } }).required()
4957
4949
  })
4958
4950
  ).required(),
4959
- subject: joi87.string().required(),
4960
4951
  html: joi87.string().required(),
4961
4952
  attachments: joi87.array().items(
4962
4953
  joi87.object().keys({
@@ -14,24 +14,20 @@ export interface ICreateAttachments {
14
14
  }
15
15
  export interface ICreateRequest {
16
16
  name: string;
17
- to: string;
18
- subject: string;
19
17
  body: string;
20
18
  attachments: ICreateAttachments[];
19
+ key: string;
20
+ rapid: boolean;
21
21
  }
22
22
  export interface IUpdateRequest {
23
23
  name?: string;
24
- to?: string;
25
- subject?: string;
26
24
  body?: string;
27
25
  }
28
26
  export interface ISendRequest {
29
27
  owner_id: string | null;
30
28
  from: IEmailAddress;
31
- to: IEmailAddress[];
32
29
  cc: IEmailAddress[];
33
30
  bcc: IEmailAddress[];
34
- subject: string;
35
31
  html: string;
36
32
  attachments: IEmailAttachment[];
37
33
  }
@@ -95,9 +95,9 @@ export type EmailLog = {
95
95
  export type EmailTemplate = {
96
96
  id: string;
97
97
  name: string;
98
- to: string;
99
- subject: string;
100
98
  body: string;
99
+ key: string;
100
+ rapid: Boolean;
101
101
  created_by: string;
102
102
  updated_by: string;
103
103
  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.40.131",
4
+ "version": "0.42.1",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",