@nomalism-com/types 0.40.42 → 0.40.44
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 +6 -6
- package/dist/index.js +6 -6
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +1 -1
- package/dist/modules/supply/documentHeader/interfaces.d.ts +1 -1
- package/dist/modules/user/providers/interface.d.ts +2 -2
- package/dist/shared/entities/stock.d.ts +1 -1
- package/dist/shared/entities/user.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1529,7 +1529,7 @@ var createFromHeaderBodyKeys = {
|
|
|
1529
1529
|
global_discount: joi10.number().min(0).max(100).optional(),
|
|
1530
1530
|
current_account: joi10.boolean().optional(),
|
|
1531
1531
|
store_operator_id: joi10.string().uuid().allow(null).optional(),
|
|
1532
|
-
account_code: joi10.
|
|
1532
|
+
account_code: joi10.string().allow(null, "").empty("").optional()
|
|
1533
1533
|
};
|
|
1534
1534
|
var createFromHeaderBody = joi10.object().keys(createFromHeaderBodyKeys).messages(messages);
|
|
1535
1535
|
var findQueryKeys6 = {
|
|
@@ -1804,7 +1804,7 @@ var valueByVatTaxKeys = {
|
|
|
1804
1804
|
var createProviderFinancialCreditNoteBodyKeys = {
|
|
1805
1805
|
emission_date: joi16.date().required(),
|
|
1806
1806
|
external_document_name: joi16.string().required(),
|
|
1807
|
-
account_code: joi16.
|
|
1807
|
+
account_code: joi16.string().allow(null, "").empty("").optional(),
|
|
1808
1808
|
provider_id: joi16.string().uuid().required(),
|
|
1809
1809
|
parent_document_header_id: joi16.string().uuid().optional().allow(null, ""),
|
|
1810
1810
|
observations: joi16.string().allow(null, "").required(),
|
|
@@ -1829,7 +1829,7 @@ var createProviderServiceInvoiceBodyKeys = {
|
|
|
1829
1829
|
provider_id: joi17.string().uuid().required(),
|
|
1830
1830
|
emission_date: joi17.date().required(),
|
|
1831
1831
|
external_document_name: joi17.string().required(),
|
|
1832
|
-
account_code: joi17.
|
|
1832
|
+
account_code: joi17.string().allow(null, "").empty("").optional(),
|
|
1833
1833
|
observations: joi17.string().allow(null, "").required(),
|
|
1834
1834
|
values: joi17.array().unique("taxPercentage").items(joi17.object().keys(valueByVatTaxKeys2).required()).required()
|
|
1835
1835
|
};
|
|
@@ -2814,7 +2814,7 @@ var createBodyKeys28 = {
|
|
|
2814
2814
|
inactive: joi40.boolean().default(false).optional(),
|
|
2815
2815
|
default_discount: joi40.number().positive().allow(0).default(0).max(100).optional(),
|
|
2816
2816
|
exemption_reason_id: joi40.string().uuid().allow(null).optional(),
|
|
2817
|
-
default_account_code: joi40.
|
|
2817
|
+
default_account_code: joi40.string().allow(null, "").empty("").optional(),
|
|
2818
2818
|
main_persona: joi40.object().keys(createMainPersonaKeys3).required(),
|
|
2819
2819
|
provider_type_id: joi40.string().uuid().allow(null).optional(),
|
|
2820
2820
|
country_id: joi40.string().uuid().allow(null).optional(),
|
|
@@ -2833,7 +2833,7 @@ var updateBodyKeys24 = {
|
|
|
2833
2833
|
inactive: joi40.boolean().optional(),
|
|
2834
2834
|
default_discount: joi40.number().positive().allow(0).max(100).optional(),
|
|
2835
2835
|
exemption_reason_id: joi40.string().uuid().allow(null).optional(),
|
|
2836
|
-
default_account_code: joi40.
|
|
2836
|
+
default_account_code: joi40.string().allow(null, "").empty("").optional(),
|
|
2837
2837
|
provider_type_id: joi40.string().uuid().allow(null).optional(),
|
|
2838
2838
|
country_id: joi40.string().uuid().allow(null).optional(),
|
|
2839
2839
|
language_id: joi40.string().uuid().allow(null).optional(),
|
|
@@ -4447,7 +4447,7 @@ var senEmailBodyKeys = {
|
|
|
4447
4447
|
retificacao_aconselhamento: joi80.boolean().required(),
|
|
4448
4448
|
montagem: joi80.boolean().required()
|
|
4449
4449
|
}),
|
|
4450
|
-
address: joi80.string().
|
|
4450
|
+
address: joi80.string().optional(),
|
|
4451
4451
|
email: joi80.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
|
4452
4452
|
};
|
|
4453
4453
|
var sendEmailBody = joi80.object().keys(senEmailBodyKeys).messages(messages);
|
package/dist/index.js
CHANGED
|
@@ -1529,7 +1529,7 @@ var createFromHeaderBodyKeys = {
|
|
|
1529
1529
|
global_discount: joi10.number().min(0).max(100).optional(),
|
|
1530
1530
|
current_account: joi10.boolean().optional(),
|
|
1531
1531
|
store_operator_id: joi10.string().uuid().allow(null).optional(),
|
|
1532
|
-
account_code: joi10.
|
|
1532
|
+
account_code: joi10.string().allow(null, "").empty("").optional()
|
|
1533
1533
|
};
|
|
1534
1534
|
var createFromHeaderBody = joi10.object().keys(createFromHeaderBodyKeys).messages(messages);
|
|
1535
1535
|
var findQueryKeys6 = {
|
|
@@ -1804,7 +1804,7 @@ var valueByVatTaxKeys = {
|
|
|
1804
1804
|
var createProviderFinancialCreditNoteBodyKeys = {
|
|
1805
1805
|
emission_date: joi16.date().required(),
|
|
1806
1806
|
external_document_name: joi16.string().required(),
|
|
1807
|
-
account_code: joi16.
|
|
1807
|
+
account_code: joi16.string().allow(null, "").empty("").optional(),
|
|
1808
1808
|
provider_id: joi16.string().uuid().required(),
|
|
1809
1809
|
parent_document_header_id: joi16.string().uuid().optional().allow(null, ""),
|
|
1810
1810
|
observations: joi16.string().allow(null, "").required(),
|
|
@@ -1829,7 +1829,7 @@ var createProviderServiceInvoiceBodyKeys = {
|
|
|
1829
1829
|
provider_id: joi17.string().uuid().required(),
|
|
1830
1830
|
emission_date: joi17.date().required(),
|
|
1831
1831
|
external_document_name: joi17.string().required(),
|
|
1832
|
-
account_code: joi17.
|
|
1832
|
+
account_code: joi17.string().allow(null, "").empty("").optional(),
|
|
1833
1833
|
observations: joi17.string().allow(null, "").required(),
|
|
1834
1834
|
values: joi17.array().unique("taxPercentage").items(joi17.object().keys(valueByVatTaxKeys2).required()).required()
|
|
1835
1835
|
};
|
|
@@ -2814,7 +2814,7 @@ var createBodyKeys28 = {
|
|
|
2814
2814
|
inactive: joi40.boolean().default(false).optional(),
|
|
2815
2815
|
default_discount: joi40.number().positive().allow(0).default(0).max(100).optional(),
|
|
2816
2816
|
exemption_reason_id: joi40.string().uuid().allow(null).optional(),
|
|
2817
|
-
default_account_code: joi40.
|
|
2817
|
+
default_account_code: joi40.string().allow(null, "").empty("").optional(),
|
|
2818
2818
|
main_persona: joi40.object().keys(createMainPersonaKeys3).required(),
|
|
2819
2819
|
provider_type_id: joi40.string().uuid().allow(null).optional(),
|
|
2820
2820
|
country_id: joi40.string().uuid().allow(null).optional(),
|
|
@@ -2833,7 +2833,7 @@ var updateBodyKeys24 = {
|
|
|
2833
2833
|
inactive: joi40.boolean().optional(),
|
|
2834
2834
|
default_discount: joi40.number().positive().allow(0).max(100).optional(),
|
|
2835
2835
|
exemption_reason_id: joi40.string().uuid().allow(null).optional(),
|
|
2836
|
-
default_account_code: joi40.
|
|
2836
|
+
default_account_code: joi40.string().allow(null, "").empty("").optional(),
|
|
2837
2837
|
provider_type_id: joi40.string().uuid().allow(null).optional(),
|
|
2838
2838
|
country_id: joi40.string().uuid().allow(null).optional(),
|
|
2839
2839
|
language_id: joi40.string().uuid().allow(null).optional(),
|
|
@@ -4447,7 +4447,7 @@ var senEmailBodyKeys = {
|
|
|
4447
4447
|
retificacao_aconselhamento: joi80.boolean().required(),
|
|
4448
4448
|
montagem: joi80.boolean().required()
|
|
4449
4449
|
}),
|
|
4450
|
-
address: joi80.string().
|
|
4450
|
+
address: joi80.string().optional(),
|
|
4451
4451
|
email: joi80.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
|
4452
4452
|
};
|
|
4453
4453
|
var sendEmailBody = joi80.object().keys(senEmailBodyKeys).messages(messages);
|
|
@@ -16,7 +16,7 @@ export interface ICreateProviderFinancialCreditNoteRequest {
|
|
|
16
16
|
external_document_name: string;
|
|
17
17
|
provider_id: string;
|
|
18
18
|
parent_document_header_id: string | null;
|
|
19
|
-
account_code?:
|
|
19
|
+
account_code?: string | null;
|
|
20
20
|
emission_date: Date;
|
|
21
21
|
observations: string;
|
|
22
22
|
values: IValueByVatTax[];
|
|
@@ -6,7 +6,7 @@ export interface IValueByVatTax {
|
|
|
6
6
|
export interface ICreateProviderServiceInvoiceRequest {
|
|
7
7
|
provider_id: string;
|
|
8
8
|
external_document_name: string;
|
|
9
|
-
account_code?:
|
|
9
|
+
account_code?: string | null;
|
|
10
10
|
emission_date: Date;
|
|
11
11
|
observations: string;
|
|
12
12
|
values: IValueByVatTax[];
|
|
@@ -117,7 +117,7 @@ export interface IDeliveryAdresses {
|
|
|
117
117
|
export interface ICreateFromHeaderRequest {
|
|
118
118
|
document_type_id: number;
|
|
119
119
|
emission_date?: Date;
|
|
120
|
-
account_code?:
|
|
120
|
+
account_code?: string | null;
|
|
121
121
|
from_header: string[];
|
|
122
122
|
from_lines: string[];
|
|
123
123
|
payments: (IPayment.ICreateRequest | IPayment.ICreateForThisDocumentHeaderRequest)[];
|
|
@@ -40,7 +40,7 @@ export interface ICreateRequest {
|
|
|
40
40
|
inactive?: boolean;
|
|
41
41
|
default_discount?: number;
|
|
42
42
|
exemption_reason_id?: string | null;
|
|
43
|
-
default_account_code?:
|
|
43
|
+
default_account_code?: string | null;
|
|
44
44
|
main_persona: ICreateMainPersona;
|
|
45
45
|
provider_type_id?: string | null;
|
|
46
46
|
country_id?: string | null;
|
|
@@ -68,7 +68,7 @@ export interface IUpdateRequest {
|
|
|
68
68
|
default_delivery_method_id?: string;
|
|
69
69
|
default_vehicle_id?: string | null;
|
|
70
70
|
exemption_reason_id?: string | null;
|
|
71
|
-
default_account_code?:
|
|
71
|
+
default_account_code?: string | null;
|
|
72
72
|
}
|
|
73
73
|
export interface IFindByNumberRequest {
|
|
74
74
|
number: number;
|
|
@@ -269,7 +269,7 @@ export type DocumentHeader = {
|
|
|
269
269
|
owner_id: string;
|
|
270
270
|
owner_number: number;
|
|
271
271
|
owner_name: string | null;
|
|
272
|
-
account_code:
|
|
272
|
+
account_code: string | null;
|
|
273
273
|
billing_persona_id: string | null;
|
|
274
274
|
billing_persona_nif: string | null;
|
|
275
275
|
billing_persona_name: string | null;
|
|
@@ -103,7 +103,7 @@ export type Providers = {
|
|
|
103
103
|
default_delivery_method_id: string | null;
|
|
104
104
|
default_vehicle_id: string | null;
|
|
105
105
|
default_discount: number;
|
|
106
|
-
default_account_code:
|
|
106
|
+
default_account_code: string | null;
|
|
107
107
|
created_at: Date;
|
|
108
108
|
updated_at: Date;
|
|
109
109
|
created_by: 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.44",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|