@nomalism-com/types 0.40.38 → 0.40.40
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
|
@@ -4436,6 +4436,12 @@ var senEmailBodyKeys = {
|
|
|
4436
4436
|
description: joi80.string().required(),
|
|
4437
4437
|
telephone: joi80.string().required(),
|
|
4438
4438
|
type: joi80.string().valid("particular", "professional", "company"),
|
|
4439
|
+
budget_options: joi80.object().keys({
|
|
4440
|
+
retificacao: joi80.boolean().required(),
|
|
4441
|
+
retificacao_aconselhamento: joi80.boolean().required(),
|
|
4442
|
+
montagem: joi80.boolean().required()
|
|
4443
|
+
}),
|
|
4444
|
+
address: joi80.string().required(),
|
|
4439
4445
|
email: joi80.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
|
4440
4446
|
};
|
|
4441
4447
|
var sendEmailBody = joi80.object().keys(senEmailBodyKeys).messages(messages);
|
package/dist/index.js
CHANGED
|
@@ -4436,6 +4436,12 @@ var senEmailBodyKeys = {
|
|
|
4436
4436
|
description: joi80.string().required(),
|
|
4437
4437
|
telephone: joi80.string().required(),
|
|
4438
4438
|
type: joi80.string().valid("particular", "professional", "company"),
|
|
4439
|
+
budget_options: joi80.object().keys({
|
|
4440
|
+
retificacao: joi80.boolean().required(),
|
|
4441
|
+
retificacao_aconselhamento: joi80.boolean().required(),
|
|
4442
|
+
montagem: joi80.boolean().required()
|
|
4443
|
+
}),
|
|
4444
|
+
address: joi80.string().required(),
|
|
4439
4445
|
email: joi80.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
|
4440
4446
|
};
|
|
4441
4447
|
var sendEmailBody = joi80.object().keys(senEmailBodyKeys).messages(messages);
|
|
@@ -8,6 +8,11 @@ export declare const IProjectInfoTypeEnum: {
|
|
|
8
8
|
professional: 'professional';
|
|
9
9
|
company: 'company';
|
|
10
10
|
};
|
|
11
|
+
export type IBudgetOptionsType = {
|
|
12
|
+
retificacao: boolean;
|
|
13
|
+
retificacao_aconselhamento: boolean;
|
|
14
|
+
montagem: boolean;
|
|
15
|
+
};
|
|
11
16
|
export type IProjectInfoType = (typeof IProjectInfoTypeEnum)[keyof typeof IProjectInfoTypeEnum];
|
|
12
17
|
export declare const projectInfoTypes: string[];
|
|
13
18
|
export type ISendEmail = Omit<Entity, 'created_at' | 'updated_at' | 'document_header_id' | 'id' | 'email_log'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IProjectInfoType } from '../../modules/integration/projectInfo/interfaces';
|
|
1
|
+
import { IProjectInfoType, IBudgetOptionsType } from '../../modules/integration/projectInfo/interfaces';
|
|
2
2
|
/**
|
|
3
3
|
* Model Observation
|
|
4
4
|
*
|
|
@@ -59,6 +59,8 @@ export type ProjectInfo = {
|
|
|
59
59
|
name: string;
|
|
60
60
|
email: string;
|
|
61
61
|
telephone: string;
|
|
62
|
+
address: string;
|
|
63
|
+
budget_options: IBudgetOptionsType;
|
|
62
64
|
description: string;
|
|
63
65
|
document_header_id: string;
|
|
64
66
|
email_log: string;
|
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.
|
|
4
|
+
"version": "0.40.40",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|