@nomalism-com/types 1.3.5 → 1.3.7
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
|
@@ -5120,6 +5120,7 @@ var createBodyKeys60 = {
|
|
|
5120
5120
|
designation: joi10.string().empty("").optional(),
|
|
5121
5121
|
type: joi10.string().valid(...productTypes).optional(),
|
|
5122
5122
|
vat_tax_id: joi10.string().uuid().empty("").optional(),
|
|
5123
|
+
reason_for_exemption: joi10.string().empty("").optional(),
|
|
5123
5124
|
weight: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5124
5125
|
width: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5125
5126
|
height: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
@@ -5148,6 +5149,7 @@ var updateBodyKeys52 = {
|
|
|
5148
5149
|
price_sale: joi10.number().positive().allow(0).optional(),
|
|
5149
5150
|
unit_of_measure_quantity_notation: joi10.string().empty("").optional(),
|
|
5150
5151
|
vat_tax: joi10.string().empty("").optional(),
|
|
5152
|
+
reason_for_exemption: joi10.string().empty("").optional(),
|
|
5151
5153
|
state: joi10.string().valid(...productState).optional()
|
|
5152
5154
|
};
|
|
5153
5155
|
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;
|
|
45
46
|
weight?: number | null;
|
|
46
47
|
width?: number | null;
|
|
47
48
|
height?: number | null;
|
|
@@ -69,6 +70,7 @@ export interface IUpdateRequest {
|
|
|
69
70
|
price_cost?: number;
|
|
70
71
|
price_sale?: number;
|
|
71
72
|
vat_tax?: string;
|
|
73
|
+
reason_for_exemption?: string;
|
|
72
74
|
}
|
|
73
75
|
export interface IFindProductSheetByReference {
|
|
74
76
|
selector: string;
|
|
@@ -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.7",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|