@nomalism-com/types 0.42.7 → 0.42.9

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
@@ -4931,10 +4931,12 @@ var updateBodyKeys51 = {
4931
4931
  var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
4932
4932
  var sendBodyKeys = {
4933
4933
  owner_id: joi87.string().uuid().allow(null).required(),
4934
- to: joi87.object().keys({
4935
- name: joi87.string().allow("", null).default("").required(),
4936
- address: joi87.string().email({ tlds: { allow: false } }).required()
4937
- }).required(),
4934
+ to: joi87.array().items(
4935
+ joi87.object().keys({
4936
+ name: joi87.string().allow("", null).default("").required(),
4937
+ address: joi87.string().email({ tlds: { allow: false } }).required()
4938
+ })
4939
+ ).required(),
4938
4940
  from: joi87.object().keys({
4939
4941
  name: joi87.string().allow("", null).default("").required(),
4940
4942
  address: joi87.string().email({ tlds: { allow: false } }).required()
package/dist/index.js CHANGED
@@ -4931,10 +4931,12 @@ var updateBodyKeys51 = {
4931
4931
  var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
4932
4932
  var sendBodyKeys = {
4933
4933
  owner_id: joi87.string().uuid().allow(null).required(),
4934
- to: joi87.object().keys({
4935
- name: joi87.string().allow("", null).default("").required(),
4936
- address: joi87.string().email({ tlds: { allow: false } }).required()
4937
- }).required(),
4934
+ to: joi87.array().items(
4935
+ joi87.object().keys({
4936
+ name: joi87.string().allow("", null).default("").required(),
4937
+ address: joi87.string().email({ tlds: { allow: false } }).required()
4938
+ })
4939
+ ).required(),
4938
4940
  from: joi87.object().keys({
4939
4941
  name: joi87.string().allow("", null).default("").required(),
4940
4942
  address: joi87.string().email({ tlds: { allow: false } }).required()
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.7",
4
+ "version": "0.42.9",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",