@nomalism-com/types 0.43.81 → 0.43.82

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
@@ -4902,6 +4902,7 @@ var LowerName80 = UpperName80[0].toLowerCase() + UpperName80.substring(1);
4902
4902
  var route_schema_exports85 = {};
4903
4903
  __export(route_schema_exports85, {
4904
4904
  createBody: () => createBody55,
4905
+ previewBody: () => previewBody,
4905
4906
  sendBody: () => sendBody,
4906
4907
  updateBody: () => updateBody49
4907
4908
  });
@@ -4957,6 +4958,9 @@ var sendBodyKeys = {
4957
4958
  ).required()
4958
4959
  };
4959
4960
  var sendBody = joi86.object().keys(sendBodyKeys).messages(messages);
4961
+ var previewBody = joi86.object().keys({
4962
+ body: joi86.string().required()
4963
+ }).messages(messages);
4960
4964
 
4961
4965
  // src/modules/integration/emailTemplateAttachment/interfaces.ts
4962
4966
  var interfaces_exports50 = {};
package/dist/index.js CHANGED
@@ -4902,6 +4902,7 @@ var LowerName80 = UpperName80[0].toLowerCase() + UpperName80.substring(1);
4902
4902
  var route_schema_exports85 = {};
4903
4903
  __export(route_schema_exports85, {
4904
4904
  createBody: () => createBody55,
4905
+ previewBody: () => previewBody,
4905
4906
  sendBody: () => sendBody,
4906
4907
  updateBody: () => updateBody49
4907
4908
  });
@@ -4957,6 +4958,9 @@ var sendBodyKeys = {
4957
4958
  ).required()
4958
4959
  };
4959
4960
  var sendBody = joi86.object().keys(sendBodyKeys).messages(messages);
4961
+ var previewBody = joi86.object().keys({
4962
+ body: joi86.string().required()
4963
+ }).messages(messages);
4960
4964
 
4961
4965
  // src/modules/integration/emailTemplateAttachment/interfaces.ts
4962
4966
  var interfaces_exports50 = {};
@@ -1,4 +1,6 @@
1
1
  import joi from 'joi';
2
+ import { EmailPreviewRequest } from './interfaces';
2
3
  export declare const createBody: joi.ObjectSchema<any>;
3
4
  export declare const updateBody: joi.ObjectSchema<any>;
4
5
  export declare const sendBody: joi.ObjectSchema<any>;
6
+ export declare const previewBody: joi.ObjectSchema<EmailPreviewRequest>;
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.43.81",
4
+ "version": "0.43.82",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",