@nomalism-com/types 1.3.7 → 1.3.8
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.js
CHANGED
|
@@ -1835,6 +1835,7 @@ var createBodyKeys10 = {
|
|
|
1835
1835
|
quantity: joi10.number().positive().allow(0).default(0).required(),
|
|
1836
1836
|
preco_venda: joi10.number().positive().allow(0).default(0).required(),
|
|
1837
1837
|
client_tax: joi10.number().positive().allow(0).required(),
|
|
1838
|
+
client_tax_reason_for_exemption: joi10.string().empty("").allow(null, "").optional(),
|
|
1838
1839
|
client_discount: joi10.number().positive().allow(0).default(0).max(100).required(),
|
|
1839
1840
|
preco_custo: joi10.number().positive().allow(0).default(0).required(),
|
|
1840
1841
|
provider_tax: joi10.number().positive().allow(0).required(),
|
|
@@ -1853,6 +1854,7 @@ var updateBodyKeys9 = {
|
|
|
1853
1854
|
quantity: joi10.number().positive().allow(0).optional(),
|
|
1854
1855
|
preco_venda: joi10.number().positive().allow(0).optional(),
|
|
1855
1856
|
client_tax: joi10.number().positive().allow(0).optional(),
|
|
1857
|
+
client_tax_reason_for_exemption: joi10.string().empty("").allow(null, "").optional(),
|
|
1856
1858
|
client_discount: joi10.number().positive().allow(0).max(100).optional(),
|
|
1857
1859
|
preco_custo: joi10.number().positive().allow(0).optional(),
|
|
1858
1860
|
provider_tax: joi10.number().positive().allow(0).optional(),
|
|
@@ -5120,7 +5122,7 @@ var createBodyKeys60 = {
|
|
|
5120
5122
|
designation: joi10.string().empty("").optional(),
|
|
5121
5123
|
type: joi10.string().valid(...productTypes).optional(),
|
|
5122
5124
|
vat_tax_id: joi10.string().uuid().empty("").optional(),
|
|
5123
|
-
reason_for_exemption: joi10.string().empty("").optional(),
|
|
5125
|
+
reason_for_exemption: joi10.string().empty("").allow(null, "").optional(),
|
|
5124
5126
|
weight: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5125
5127
|
width: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5126
5128
|
height: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
@@ -5149,7 +5151,7 @@ var updateBodyKeys52 = {
|
|
|
5149
5151
|
price_sale: joi10.number().positive().allow(0).optional(),
|
|
5150
5152
|
unit_of_measure_quantity_notation: joi10.string().empty("").optional(),
|
|
5151
5153
|
vat_tax: joi10.string().empty("").optional(),
|
|
5152
|
-
reason_for_exemption: joi10.string().empty("").optional(),
|
|
5154
|
+
reason_for_exemption: joi10.string().empty("").allow(null, "").optional(),
|
|
5153
5155
|
state: joi10.string().valid(...productState).optional()
|
|
5154
5156
|
};
|
|
5155
5157
|
var updateBody52 = joi10.object().keys(updateBodyKeys52).messages(messages);
|
|
@@ -42,7 +42,7 @@ export interface ICreateRequest {
|
|
|
42
42
|
type?: IProductType;
|
|
43
43
|
type_of_inventory?: string;
|
|
44
44
|
vat_tax_id?: string;
|
|
45
|
-
reason_for_exemption?: string;
|
|
45
|
+
reason_for_exemption?: string | null;
|
|
46
46
|
weight?: number | null;
|
|
47
47
|
width?: number | null;
|
|
48
48
|
height?: number | null;
|
|
@@ -70,7 +70,7 @@ export interface IUpdateRequest {
|
|
|
70
70
|
price_cost?: number;
|
|
71
71
|
price_sale?: number;
|
|
72
72
|
vat_tax?: string;
|
|
73
|
-
reason_for_exemption?: string;
|
|
73
|
+
reason_for_exemption?: string | null;
|
|
74
74
|
}
|
|
75
75
|
export interface IFindProductSheetByReference {
|
|
76
76
|
selector: string;
|
|
@@ -76,6 +76,7 @@ export interface ICreateRequest extends Omit<IDocumentLineAssoc.ICreateRequest,
|
|
|
76
76
|
quantity: number;
|
|
77
77
|
preco_venda: number;
|
|
78
78
|
client_tax: number;
|
|
79
|
+
client_tax_reason_for_exemption?: string | null;
|
|
79
80
|
client_discount: number;
|
|
80
81
|
preco_custo: number;
|
|
81
82
|
provider_tax: number;
|
|
@@ -88,6 +89,7 @@ export interface IUpdateRequest {
|
|
|
88
89
|
quantity?: number;
|
|
89
90
|
preco_venda?: number;
|
|
90
91
|
client_tax?: number;
|
|
92
|
+
client_tax_reason_for_exemption?: string | null;
|
|
91
93
|
client_discount?: number;
|
|
92
94
|
preco_custo?: number;
|
|
93
95
|
provider_tax?: number;
|
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": "1.3.
|
|
4
|
+
"version": "1.3.8",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|