@nomalism-com/types 0.40.52 → 0.40.53
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
|
@@ -1804,10 +1804,12 @@ var valueByVatTaxKeys = {
|
|
|
1804
1804
|
total: joi16.number().positive().required()
|
|
1805
1805
|
};
|
|
1806
1806
|
var createProviderFinancialCreditNoteBodyKeys = {
|
|
1807
|
-
|
|
1807
|
+
provider_id: joi16.string().uuid().optional(),
|
|
1808
|
+
nif: joi16.string().optional(),
|
|
1808
1809
|
external_document_name: joi16.string().required(),
|
|
1809
1810
|
account_code: joi16.string().allow(null, "").empty("").optional(),
|
|
1810
|
-
|
|
1811
|
+
auto_pay: joi16.boolean().default(false).optional(),
|
|
1812
|
+
emission_date: joi16.date().required(),
|
|
1811
1813
|
parent_document_header_id: joi16.string().uuid().optional().allow(null, ""),
|
|
1812
1814
|
observations: joi16.string().allow(null, "").required(),
|
|
1813
1815
|
values: joi16.array().unique("taxPercentage").items(joi16.object().keys(valueByVatTaxKeys).required()).required()
|
package/dist/index.js
CHANGED
|
@@ -1804,10 +1804,12 @@ var valueByVatTaxKeys = {
|
|
|
1804
1804
|
total: joi16.number().positive().required()
|
|
1805
1805
|
};
|
|
1806
1806
|
var createProviderFinancialCreditNoteBodyKeys = {
|
|
1807
|
-
|
|
1807
|
+
provider_id: joi16.string().uuid().optional(),
|
|
1808
|
+
nif: joi16.string().optional(),
|
|
1808
1809
|
external_document_name: joi16.string().required(),
|
|
1809
1810
|
account_code: joi16.string().allow(null, "").empty("").optional(),
|
|
1810
|
-
|
|
1811
|
+
auto_pay: joi16.boolean().default(false).optional(),
|
|
1812
|
+
emission_date: joi16.date().required(),
|
|
1811
1813
|
parent_document_header_id: joi16.string().uuid().optional().allow(null, ""),
|
|
1812
1814
|
observations: joi16.string().allow(null, "").required(),
|
|
1813
1815
|
values: joi16.array().unique("taxPercentage").items(joi16.object().keys(valueByVatTaxKeys).required()).required()
|
|
@@ -13,11 +13,13 @@ export interface IValueByVatTax {
|
|
|
13
13
|
total: number;
|
|
14
14
|
}
|
|
15
15
|
export interface ICreateProviderFinancialCreditNoteRequest {
|
|
16
|
+
provider_id?: string;
|
|
17
|
+
nif?: string;
|
|
16
18
|
external_document_name: string;
|
|
17
|
-
provider_id: string;
|
|
18
|
-
parent_document_header_id: string | null;
|
|
19
19
|
account_code?: string | null;
|
|
20
|
+
auto_pay?: boolean;
|
|
20
21
|
emission_date: Date;
|
|
22
|
+
parent_document_header_id: string | null;
|
|
21
23
|
observations: string;
|
|
22
24
|
values: IValueByVatTax[];
|
|
23
25
|
}
|
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.53",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|