@nomalism-com/types 1.3.6 → 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,6 +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(),
|
|
5125
|
+
reason_for_exemption: joi10.string().empty("").allow(null, "").optional(),
|
|
5123
5126
|
weight: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5124
5127
|
width: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5125
5128
|
height: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
@@ -5148,7 +5151,7 @@ var updateBodyKeys52 = {
|
|
|
5148
5151
|
price_sale: joi10.number().positive().allow(0).optional(),
|
|
5149
5152
|
unit_of_measure_quantity_notation: joi10.string().empty("").optional(),
|
|
5150
5153
|
vat_tax: joi10.string().empty("").optional(),
|
|
5151
|
-
reason_for_exemption: joi10.string().empty("").optional(),
|
|
5154
|
+
reason_for_exemption: joi10.string().empty("").allow(null, "").optional(),
|
|
5152
5155
|
state: joi10.string().valid(...productState).optional()
|
|
5153
5156
|
};
|
|
5154
5157
|
var updateBody52 = joi10.object().keys(updateBodyKeys52).messages(messages);
|
|
@@ -42,6 +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 | null;
|
|
45
46
|
weight?: number | null;
|
|
46
47
|
width?: number | null;
|
|
47
48
|
height?: number | null;
|
|
@@ -69,7 +70,7 @@ export interface IUpdateRequest {
|
|
|
69
70
|
price_cost?: number;
|
|
70
71
|
price_sale?: number;
|
|
71
72
|
vat_tax?: string;
|
|
72
|
-
reason_for_exemption?: string;
|
|
73
|
+
reason_for_exemption?: string | null;
|
|
73
74
|
}
|
|
74
75
|
export interface IFindProductSheetByReference {
|
|
75
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;
|
|
@@ -635,6 +635,7 @@ export type ProductSheet = {
|
|
|
635
635
|
values: unknown;
|
|
636
636
|
imported_from_sheets: boolean;
|
|
637
637
|
vat_tax_id: string;
|
|
638
|
+
reason_for_exemption: string | null;
|
|
638
639
|
unit_of_measure_quantity_id: string;
|
|
639
640
|
cabide_product_color: string | null;
|
|
640
641
|
weight: number | null;
|
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",
|