@nomalism-com/types 0.45.69 → 0.46.2
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 +47 -33
- package/dist/index.js +47 -33
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +4 -0
- package/dist/modules/supply/documentHeader/interfaces.d.ts +5 -4
- package/dist/modules/supply/documentLine/interfaces.d.ts +2 -0
- package/dist/modules/supply/documentType/interfaces.d.ts +12 -0
- package/dist/modules/user/providers/interface.d.ts +1 -1
- package/dist/modules/user/reasonForExemption/interface.d.ts +9 -0
- package/dist/modules/user/tenant/interface.d.ts +2 -0
- package/dist/modules/user/timeSheet/interfaces.d.ts +1 -23
- package/dist/shared/entities/stock.d.ts +6 -0
- package/dist/shared/entities/user.d.ts +4 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1418,6 +1418,18 @@ var DocumentTypeCodeTypeEnum = {
|
|
|
1418
1418
|
RDP: "RDP",
|
|
1419
1419
|
NRCL: "NRCL",
|
|
1420
1420
|
FPM: "FPM",
|
|
1421
|
+
FTM: "FTM",
|
|
1422
|
+
FTD: "FTD",
|
|
1423
|
+
FRM: "FRM",
|
|
1424
|
+
FRD: "FRD",
|
|
1425
|
+
FSM: "FSM",
|
|
1426
|
+
FSD: "FSD",
|
|
1427
|
+
NCM: "NCM",
|
|
1428
|
+
NCD: "NCD",
|
|
1429
|
+
ADM: "ADM",
|
|
1430
|
+
ADD: "ADD",
|
|
1431
|
+
NCADM: "NCADM",
|
|
1432
|
+
NCADD: "NCADD",
|
|
1421
1433
|
FTO: "FTO",
|
|
1422
1434
|
FRO: "FRO",
|
|
1423
1435
|
REO: "REO",
|
|
@@ -1456,7 +1468,6 @@ var createFromHeaderMaturityDate = {
|
|
|
1456
1468
|
var createBodyKeys9 = {
|
|
1457
1469
|
document_type_id: joi10.number().required(),
|
|
1458
1470
|
external_id: joi10.string().allow(null).optional(),
|
|
1459
|
-
document_set_id: joi10.string().uuid().required(),
|
|
1460
1471
|
pdf_link: joi10.string().allow(null).optional(),
|
|
1461
1472
|
google_sheet_id: joi10.string().allow(null).optional(),
|
|
1462
1473
|
external_pdf_link: joi10.string().allow(null).optional(),
|
|
@@ -1464,7 +1475,7 @@ var createBodyKeys9 = {
|
|
|
1464
1475
|
chat_document_header_id: joi10.string().uuid().optional(),
|
|
1465
1476
|
owner_id: joi10.string().uuid().required(),
|
|
1466
1477
|
owner_number: joi10.number().required(),
|
|
1467
|
-
owner_name: joi10.string().required(),
|
|
1478
|
+
owner_name: joi10.string().allow(null, "").empty("").required(),
|
|
1468
1479
|
reason_for_exemption_id: joi10.string().uuid().allow(null).optional(),
|
|
1469
1480
|
reason_for_exemption: joi10.string().allow(null),
|
|
1470
1481
|
billing_persona_id: joi10.string().uuid().allow(null).optional(),
|
|
@@ -1532,11 +1543,13 @@ var createFromHeaderBodyKeys = {
|
|
|
1532
1543
|
email: joi10.string().email({ tlds: { allow: false } }).allow(null).optional(),
|
|
1533
1544
|
maturity_date: joi10.object().keys(createFromHeaderMaturityDate).optional(),
|
|
1534
1545
|
return_reason: joi10.string().optional(),
|
|
1535
|
-
provider_ref: joi10.string().optional(),
|
|
1536
1546
|
global_discount: joi10.number().min(0).max(100).optional(),
|
|
1537
1547
|
current_account: joi10.boolean().optional(),
|
|
1538
1548
|
store_operator_id: joi10.string().uuid().allow(null).optional(),
|
|
1549
|
+
document_set_id: joi10.string().uuid().optional(),
|
|
1550
|
+
external_document_name: joi10.string().optional(),
|
|
1539
1551
|
account_code: joi10.string().allow(null, "").empty("").optional(),
|
|
1552
|
+
copy_from_document: joi10.string().allow(null, "").empty("").optional(),
|
|
1540
1553
|
owner_ref_document: joi10.string().allow(null, "").empty("").optional()
|
|
1541
1554
|
};
|
|
1542
1555
|
var createFromHeaderBody = joi10.object().keys(createFromHeaderBodyKeys).messages(messages);
|
|
@@ -1924,6 +1937,7 @@ var createBodyKeys10 = {
|
|
|
1924
1937
|
quantity: joi18.number().positive().allow(0).default(0).required(),
|
|
1925
1938
|
preco_venda: joi18.number().positive().allow(0).default(0).required(),
|
|
1926
1939
|
client_tax: joi18.number().positive().allow(0).required(),
|
|
1940
|
+
client_tax_reason_for_exemption: joi18.string().empty("").allow(null, "").optional(),
|
|
1927
1941
|
client_discount: joi18.number().positive().allow(0).default(0).max(100).required(),
|
|
1928
1942
|
preco_custo: joi18.number().positive().allow(0).default(0).required(),
|
|
1929
1943
|
provider_tax: joi18.number().positive().allow(0).required(),
|
|
@@ -1942,6 +1956,7 @@ var updateBodyKeys9 = {
|
|
|
1942
1956
|
quantity: joi18.number().positive().allow(0).optional(),
|
|
1943
1957
|
preco_venda: joi18.number().positive().allow(0).optional(),
|
|
1944
1958
|
client_tax: joi18.number().positive().allow(0).optional(),
|
|
1959
|
+
client_tax_reason_for_exemption: joi18.string().empty("").allow(null, "").optional(),
|
|
1945
1960
|
client_discount: joi18.number().positive().allow(0).max(100).optional(),
|
|
1946
1961
|
preco_custo: joi18.number().positive().allow(0).optional(),
|
|
1947
1962
|
provider_tax: joi18.number().positive().allow(0).optional(),
|
|
@@ -2833,9 +2848,17 @@ var findWithPaginationQuery14 = joi39.object().keys(findWithPaginationQueryKeys1
|
|
|
2833
2848
|
// src/modules/user/reasonForExemption/interface.ts
|
|
2834
2849
|
var interface_exports21 = {};
|
|
2835
2850
|
__export(interface_exports21, {
|
|
2836
|
-
|
|
2851
|
+
ReasonForExemptionTypeEnum: () => ReasonForExemptionTypeEnum,
|
|
2852
|
+
Route: () => Route44,
|
|
2853
|
+
reasonForExemptionTypes: () => reasonForExemptionTypes
|
|
2837
2854
|
});
|
|
2838
2855
|
var Route44 = "reason_for_exemption";
|
|
2856
|
+
var ReasonForExemptionTypeEnum = {
|
|
2857
|
+
product: "product",
|
|
2858
|
+
client: "client",
|
|
2859
|
+
tenant: "tenant"
|
|
2860
|
+
};
|
|
2861
|
+
var reasonForExemptionTypes = Object.keys(ReasonForExemptionTypeEnum);
|
|
2839
2862
|
|
|
2840
2863
|
// src/modules/user/reasonForExemption/route.schema.ts
|
|
2841
2864
|
var route_schema_exports39 = {};
|
|
@@ -2847,6 +2870,7 @@ __export(route_schema_exports39, {
|
|
|
2847
2870
|
});
|
|
2848
2871
|
import joi40 from "joi";
|
|
2849
2872
|
var createBodyKeys28 = {
|
|
2873
|
+
type: joi40.string().valid(...reasonForExemptionTypes).required(),
|
|
2850
2874
|
name: joi40.string().required(),
|
|
2851
2875
|
description: joi40.string().required(),
|
|
2852
2876
|
saft_code: joi40.string().required(),
|
|
@@ -2854,6 +2878,7 @@ var createBodyKeys28 = {
|
|
|
2854
2878
|
};
|
|
2855
2879
|
var createBody29 = joi40.object().keys(createBodyKeys28).messages(messages);
|
|
2856
2880
|
var updateBodyKeys25 = {
|
|
2881
|
+
type: joi40.string().valid(...reasonForExemptionTypes).optional(),
|
|
2857
2882
|
name: joi40.string().optional(),
|
|
2858
2883
|
description: joi40.string().optional(),
|
|
2859
2884
|
saft_code: joi40.string().optional(),
|
|
@@ -3514,7 +3539,8 @@ var createBodyKeys40 = {
|
|
|
3514
3539
|
Timezone: joi59.string(),
|
|
3515
3540
|
telephone: joi59.string(),
|
|
3516
3541
|
fax: joi59.string(),
|
|
3517
|
-
website: joi59.string()
|
|
3542
|
+
website: joi59.string(),
|
|
3543
|
+
vat_tax_zone_saft_code: joi59.string().required()
|
|
3518
3544
|
};
|
|
3519
3545
|
var createBody41 = joi59.object().keys(createBodyKeys40).messages(messages);
|
|
3520
3546
|
var updateBodyKeys36 = {
|
|
@@ -3533,7 +3559,8 @@ var updateBodyKeys36 = {
|
|
|
3533
3559
|
Timezone: joi59.string(),
|
|
3534
3560
|
telephone: joi59.string(),
|
|
3535
3561
|
fax: joi59.string(),
|
|
3536
|
-
website: joi59.string()
|
|
3562
|
+
website: joi59.string(),
|
|
3563
|
+
vat_tax_zone_saft_code: joi59.string()
|
|
3537
3564
|
};
|
|
3538
3565
|
var updateBody36 = joi59.object().keys(updateBodyKeys36).messages(messages);
|
|
3539
3566
|
|
|
@@ -5008,6 +5035,7 @@ var createBodyKeys56 = {
|
|
|
5008
5035
|
type: joi94.string().valid(...productTypes).optional(),
|
|
5009
5036
|
external_id: joi94.string().empty("").optional(),
|
|
5010
5037
|
vat_tax_id: joi94.string().uuid().empty("").optional(),
|
|
5038
|
+
reason_for_exemption: joi94.string().empty("").allow(null, "").optional(),
|
|
5011
5039
|
weight: joi94.number().positive().allow(0).allow(null, "").optional(),
|
|
5012
5040
|
width: joi94.number().positive().allow(0).allow(null, "").optional(),
|
|
5013
5041
|
height: joi94.number().positive().allow(0).allow(null, "").optional(),
|
|
@@ -5035,6 +5063,8 @@ var updateBodyKeys50 = {
|
|
|
5035
5063
|
price_cost: joi94.number().positive().allow(0).optional(),
|
|
5036
5064
|
price_sale: joi94.number().positive().allow(0).optional(),
|
|
5037
5065
|
unit_of_measure_quantity_notation: joi94.string().empty("").optional(),
|
|
5066
|
+
vat_tax: joi94.string().empty("").optional(),
|
|
5067
|
+
reason_for_exemption: joi94.string().empty("").allow(null, "").optional(),
|
|
5038
5068
|
state: joi94.string().valid(...productState).optional()
|
|
5039
5069
|
};
|
|
5040
5070
|
var updateBody50 = joi94.object().keys(updateBodyKeys50).messages(messages);
|
|
@@ -5812,12 +5842,10 @@ var printLocationsQuery = joi118.object({
|
|
|
5812
5842
|
// src/modules/user/timeSheet/interfaces.ts
|
|
5813
5843
|
var interfaces_exports61 = {};
|
|
5814
5844
|
__export(interfaces_exports61, {
|
|
5815
|
-
IAdjustmentTypeEnum: () => IAdjustmentTypeEnum,
|
|
5816
5845
|
IClockTypeEnum: () => IClockTypeEnum,
|
|
5817
5846
|
IRegistryTypeEnum: () => IRegistryTypeEnum,
|
|
5818
5847
|
ITimesheetStateEnum: () => ITimesheetStateEnum,
|
|
5819
5848
|
Route: () => Route131,
|
|
5820
|
-
adjustmentTypes: () => adjustmentTypes,
|
|
5821
5849
|
clockTypes: () => clockTypes,
|
|
5822
5850
|
registryTypes: () => registryTypes,
|
|
5823
5851
|
timesheetStates: () => timesheetStates
|
|
@@ -5828,11 +5856,6 @@ var IClockTypeEnum = {
|
|
|
5828
5856
|
EXIT: "EXIT"
|
|
5829
5857
|
};
|
|
5830
5858
|
var clockTypes = Object.keys(IClockTypeEnum);
|
|
5831
|
-
var IAdjustmentTypeEnum = {
|
|
5832
|
-
CREDIT: "CREDIT",
|
|
5833
|
-
DEBIT: "DEBIT"
|
|
5834
|
-
};
|
|
5835
|
-
var adjustmentTypes = Object.keys(IAdjustmentTypeEnum);
|
|
5836
5859
|
var IRegistryTypeEnum = {
|
|
5837
5860
|
AUTOMATIC: "AUTOMATIC",
|
|
5838
5861
|
MANUAL: "MANUAL"
|
|
@@ -5859,16 +5882,9 @@ var clockSchema = joi119.object({
|
|
|
5859
5882
|
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
|
|
5860
5883
|
note: joi119.string().allow("", null).optional(),
|
|
5861
5884
|
created_by: joi119.string().uuid().required(),
|
|
5885
|
+
// 👈 Adicionado para auditoria nos updates
|
|
5862
5886
|
updated_by: joi119.string().uuid().required()
|
|
5863
|
-
|
|
5864
|
-
var adjustmentSchema = joi119.object({
|
|
5865
|
-
id: joi119.string().uuid(),
|
|
5866
|
-
type: joi119.string().valid(...Object.values(IAdjustmentTypeEnum)).required(),
|
|
5867
|
-
minutes: joi119.number().integer().min(1).required(),
|
|
5868
|
-
// Mínimo 1 minuto de ajuste
|
|
5869
|
-
note: joi119.string().allow("", null).optional(),
|
|
5870
|
-
created_by: joi119.string().uuid().required(),
|
|
5871
|
-
updated_by: joi119.string().uuid().required()
|
|
5887
|
+
// 👈 Adicionado para auditoria nos updates
|
|
5872
5888
|
});
|
|
5873
5889
|
var createBodyKeys64 = {
|
|
5874
5890
|
date: joi119.date().required(),
|
|
@@ -5877,22 +5893,19 @@ var createBodyKeys64 = {
|
|
|
5877
5893
|
balance: joi119.number().integer(),
|
|
5878
5894
|
state: joi119.string().valid(...Object.values(ITimesheetStateEnum)),
|
|
5879
5895
|
created_by: joi119.string().uuid().required(),
|
|
5896
|
+
// 👈 Adicionado na raiz do dia
|
|
5880
5897
|
updated_by: joi119.string().uuid().required(),
|
|
5898
|
+
// 👈 Adicionado na raiz do dia
|
|
5899
|
+
// Objeto opcional para quando se cria o dia já com a primeira picagem
|
|
5881
5900
|
clock: joi119.object({
|
|
5882
5901
|
time: joi119.date(),
|
|
5883
5902
|
type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
|
|
5884
5903
|
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
|
|
5885
5904
|
note: joi119.string().allow("", null).optional(),
|
|
5886
5905
|
created_by: joi119.string().uuid().required(),
|
|
5906
|
+
// 👈 Adicionado no clock interno
|
|
5887
5907
|
updated_by: joi119.string().uuid().required()
|
|
5888
|
-
|
|
5889
|
-
// 🔥 NOVO: Validador do objeto opcional de acerto na criação do dia
|
|
5890
|
-
adjustment: joi119.object({
|
|
5891
|
-
type: joi119.string().valid(...Object.values(IAdjustmentTypeEnum)).required(),
|
|
5892
|
-
minutes: joi119.number().integer().min(1).required(),
|
|
5893
|
-
note: joi119.string().allow("", null).optional(),
|
|
5894
|
-
created_by: joi119.string().uuid().required(),
|
|
5895
|
-
updated_by: joi119.string().uuid().required()
|
|
5908
|
+
// 👈 Adicionado no clock interno
|
|
5896
5909
|
})
|
|
5897
5910
|
};
|
|
5898
5911
|
var createBody65 = joi119.object().keys(createBodyKeys64).messages(messages);
|
|
@@ -5901,10 +5914,11 @@ var updateBodyKeys54 = {
|
|
|
5901
5914
|
balance: joi119.number().integer(),
|
|
5902
5915
|
state: joi119.string().valid(...Object.values(ITimesheetStateEnum)),
|
|
5903
5916
|
created_by: joi119.string().uuid().optional(),
|
|
5917
|
+
// 💡 Opcional no update para manter o original se quiseres
|
|
5904
5918
|
updated_by: joi119.string().uuid().required(),
|
|
5905
|
-
|
|
5906
|
-
//
|
|
5907
|
-
|
|
5919
|
+
// 👈 Obrigatório no update do dia
|
|
5920
|
+
// Array de picagens enviado pelo formulário de edição
|
|
5921
|
+
clocks: joi119.array().items(clockSchema)
|
|
5908
5922
|
};
|
|
5909
5923
|
var updateBody56 = joi119.object().keys(updateBodyKeys54).messages(messages);
|
|
5910
5924
|
|
package/dist/index.js
CHANGED
|
@@ -1418,6 +1418,18 @@ var DocumentTypeCodeTypeEnum = {
|
|
|
1418
1418
|
RDP: "RDP",
|
|
1419
1419
|
NRCL: "NRCL",
|
|
1420
1420
|
FPM: "FPM",
|
|
1421
|
+
FTM: "FTM",
|
|
1422
|
+
FTD: "FTD",
|
|
1423
|
+
FRM: "FRM",
|
|
1424
|
+
FRD: "FRD",
|
|
1425
|
+
FSM: "FSM",
|
|
1426
|
+
FSD: "FSD",
|
|
1427
|
+
NCM: "NCM",
|
|
1428
|
+
NCD: "NCD",
|
|
1429
|
+
ADM: "ADM",
|
|
1430
|
+
ADD: "ADD",
|
|
1431
|
+
NCADM: "NCADM",
|
|
1432
|
+
NCADD: "NCADD",
|
|
1421
1433
|
FTO: "FTO",
|
|
1422
1434
|
FRO: "FRO",
|
|
1423
1435
|
REO: "REO",
|
|
@@ -1456,7 +1468,6 @@ var createFromHeaderMaturityDate = {
|
|
|
1456
1468
|
var createBodyKeys9 = {
|
|
1457
1469
|
document_type_id: joi10.number().required(),
|
|
1458
1470
|
external_id: joi10.string().allow(null).optional(),
|
|
1459
|
-
document_set_id: joi10.string().uuid().required(),
|
|
1460
1471
|
pdf_link: joi10.string().allow(null).optional(),
|
|
1461
1472
|
google_sheet_id: joi10.string().allow(null).optional(),
|
|
1462
1473
|
external_pdf_link: joi10.string().allow(null).optional(),
|
|
@@ -1464,7 +1475,7 @@ var createBodyKeys9 = {
|
|
|
1464
1475
|
chat_document_header_id: joi10.string().uuid().optional(),
|
|
1465
1476
|
owner_id: joi10.string().uuid().required(),
|
|
1466
1477
|
owner_number: joi10.number().required(),
|
|
1467
|
-
owner_name: joi10.string().required(),
|
|
1478
|
+
owner_name: joi10.string().allow(null, "").empty("").required(),
|
|
1468
1479
|
reason_for_exemption_id: joi10.string().uuid().allow(null).optional(),
|
|
1469
1480
|
reason_for_exemption: joi10.string().allow(null),
|
|
1470
1481
|
billing_persona_id: joi10.string().uuid().allow(null).optional(),
|
|
@@ -1532,11 +1543,13 @@ var createFromHeaderBodyKeys = {
|
|
|
1532
1543
|
email: joi10.string().email({ tlds: { allow: false } }).allow(null).optional(),
|
|
1533
1544
|
maturity_date: joi10.object().keys(createFromHeaderMaturityDate).optional(),
|
|
1534
1545
|
return_reason: joi10.string().optional(),
|
|
1535
|
-
provider_ref: joi10.string().optional(),
|
|
1536
1546
|
global_discount: joi10.number().min(0).max(100).optional(),
|
|
1537
1547
|
current_account: joi10.boolean().optional(),
|
|
1538
1548
|
store_operator_id: joi10.string().uuid().allow(null).optional(),
|
|
1549
|
+
document_set_id: joi10.string().uuid().optional(),
|
|
1550
|
+
external_document_name: joi10.string().optional(),
|
|
1539
1551
|
account_code: joi10.string().allow(null, "").empty("").optional(),
|
|
1552
|
+
copy_from_document: joi10.string().allow(null, "").empty("").optional(),
|
|
1540
1553
|
owner_ref_document: joi10.string().allow(null, "").empty("").optional()
|
|
1541
1554
|
};
|
|
1542
1555
|
var createFromHeaderBody = joi10.object().keys(createFromHeaderBodyKeys).messages(messages);
|
|
@@ -1924,6 +1937,7 @@ var createBodyKeys10 = {
|
|
|
1924
1937
|
quantity: joi18.number().positive().allow(0).default(0).required(),
|
|
1925
1938
|
preco_venda: joi18.number().positive().allow(0).default(0).required(),
|
|
1926
1939
|
client_tax: joi18.number().positive().allow(0).required(),
|
|
1940
|
+
client_tax_reason_for_exemption: joi18.string().empty("").allow(null, "").optional(),
|
|
1927
1941
|
client_discount: joi18.number().positive().allow(0).default(0).max(100).required(),
|
|
1928
1942
|
preco_custo: joi18.number().positive().allow(0).default(0).required(),
|
|
1929
1943
|
provider_tax: joi18.number().positive().allow(0).required(),
|
|
@@ -1942,6 +1956,7 @@ var updateBodyKeys9 = {
|
|
|
1942
1956
|
quantity: joi18.number().positive().allow(0).optional(),
|
|
1943
1957
|
preco_venda: joi18.number().positive().allow(0).optional(),
|
|
1944
1958
|
client_tax: joi18.number().positive().allow(0).optional(),
|
|
1959
|
+
client_tax_reason_for_exemption: joi18.string().empty("").allow(null, "").optional(),
|
|
1945
1960
|
client_discount: joi18.number().positive().allow(0).max(100).optional(),
|
|
1946
1961
|
preco_custo: joi18.number().positive().allow(0).optional(),
|
|
1947
1962
|
provider_tax: joi18.number().positive().allow(0).optional(),
|
|
@@ -2833,9 +2848,17 @@ var findWithPaginationQuery14 = joi39.object().keys(findWithPaginationQueryKeys1
|
|
|
2833
2848
|
// src/modules/user/reasonForExemption/interface.ts
|
|
2834
2849
|
var interface_exports21 = {};
|
|
2835
2850
|
__export(interface_exports21, {
|
|
2836
|
-
|
|
2851
|
+
ReasonForExemptionTypeEnum: () => ReasonForExemptionTypeEnum,
|
|
2852
|
+
Route: () => Route44,
|
|
2853
|
+
reasonForExemptionTypes: () => reasonForExemptionTypes
|
|
2837
2854
|
});
|
|
2838
2855
|
var Route44 = "reason_for_exemption";
|
|
2856
|
+
var ReasonForExemptionTypeEnum = {
|
|
2857
|
+
product: "product",
|
|
2858
|
+
client: "client",
|
|
2859
|
+
tenant: "tenant"
|
|
2860
|
+
};
|
|
2861
|
+
var reasonForExemptionTypes = Object.keys(ReasonForExemptionTypeEnum);
|
|
2839
2862
|
|
|
2840
2863
|
// src/modules/user/reasonForExemption/route.schema.ts
|
|
2841
2864
|
var route_schema_exports39 = {};
|
|
@@ -2847,6 +2870,7 @@ __export(route_schema_exports39, {
|
|
|
2847
2870
|
});
|
|
2848
2871
|
import joi40 from "joi";
|
|
2849
2872
|
var createBodyKeys28 = {
|
|
2873
|
+
type: joi40.string().valid(...reasonForExemptionTypes).required(),
|
|
2850
2874
|
name: joi40.string().required(),
|
|
2851
2875
|
description: joi40.string().required(),
|
|
2852
2876
|
saft_code: joi40.string().required(),
|
|
@@ -2854,6 +2878,7 @@ var createBodyKeys28 = {
|
|
|
2854
2878
|
};
|
|
2855
2879
|
var createBody29 = joi40.object().keys(createBodyKeys28).messages(messages);
|
|
2856
2880
|
var updateBodyKeys25 = {
|
|
2881
|
+
type: joi40.string().valid(...reasonForExemptionTypes).optional(),
|
|
2857
2882
|
name: joi40.string().optional(),
|
|
2858
2883
|
description: joi40.string().optional(),
|
|
2859
2884
|
saft_code: joi40.string().optional(),
|
|
@@ -3514,7 +3539,8 @@ var createBodyKeys40 = {
|
|
|
3514
3539
|
Timezone: joi59.string(),
|
|
3515
3540
|
telephone: joi59.string(),
|
|
3516
3541
|
fax: joi59.string(),
|
|
3517
|
-
website: joi59.string()
|
|
3542
|
+
website: joi59.string(),
|
|
3543
|
+
vat_tax_zone_saft_code: joi59.string().required()
|
|
3518
3544
|
};
|
|
3519
3545
|
var createBody41 = joi59.object().keys(createBodyKeys40).messages(messages);
|
|
3520
3546
|
var updateBodyKeys36 = {
|
|
@@ -3533,7 +3559,8 @@ var updateBodyKeys36 = {
|
|
|
3533
3559
|
Timezone: joi59.string(),
|
|
3534
3560
|
telephone: joi59.string(),
|
|
3535
3561
|
fax: joi59.string(),
|
|
3536
|
-
website: joi59.string()
|
|
3562
|
+
website: joi59.string(),
|
|
3563
|
+
vat_tax_zone_saft_code: joi59.string()
|
|
3537
3564
|
};
|
|
3538
3565
|
var updateBody36 = joi59.object().keys(updateBodyKeys36).messages(messages);
|
|
3539
3566
|
|
|
@@ -5008,6 +5035,7 @@ var createBodyKeys56 = {
|
|
|
5008
5035
|
type: joi94.string().valid(...productTypes).optional(),
|
|
5009
5036
|
external_id: joi94.string().empty("").optional(),
|
|
5010
5037
|
vat_tax_id: joi94.string().uuid().empty("").optional(),
|
|
5038
|
+
reason_for_exemption: joi94.string().empty("").allow(null, "").optional(),
|
|
5011
5039
|
weight: joi94.number().positive().allow(0).allow(null, "").optional(),
|
|
5012
5040
|
width: joi94.number().positive().allow(0).allow(null, "").optional(),
|
|
5013
5041
|
height: joi94.number().positive().allow(0).allow(null, "").optional(),
|
|
@@ -5035,6 +5063,8 @@ var updateBodyKeys50 = {
|
|
|
5035
5063
|
price_cost: joi94.number().positive().allow(0).optional(),
|
|
5036
5064
|
price_sale: joi94.number().positive().allow(0).optional(),
|
|
5037
5065
|
unit_of_measure_quantity_notation: joi94.string().empty("").optional(),
|
|
5066
|
+
vat_tax: joi94.string().empty("").optional(),
|
|
5067
|
+
reason_for_exemption: joi94.string().empty("").allow(null, "").optional(),
|
|
5038
5068
|
state: joi94.string().valid(...productState).optional()
|
|
5039
5069
|
};
|
|
5040
5070
|
var updateBody50 = joi94.object().keys(updateBodyKeys50).messages(messages);
|
|
@@ -5812,12 +5842,10 @@ var printLocationsQuery = joi118.object({
|
|
|
5812
5842
|
// src/modules/user/timeSheet/interfaces.ts
|
|
5813
5843
|
var interfaces_exports61 = {};
|
|
5814
5844
|
__export(interfaces_exports61, {
|
|
5815
|
-
IAdjustmentTypeEnum: () => IAdjustmentTypeEnum,
|
|
5816
5845
|
IClockTypeEnum: () => IClockTypeEnum,
|
|
5817
5846
|
IRegistryTypeEnum: () => IRegistryTypeEnum,
|
|
5818
5847
|
ITimesheetStateEnum: () => ITimesheetStateEnum,
|
|
5819
5848
|
Route: () => Route131,
|
|
5820
|
-
adjustmentTypes: () => adjustmentTypes,
|
|
5821
5849
|
clockTypes: () => clockTypes,
|
|
5822
5850
|
registryTypes: () => registryTypes,
|
|
5823
5851
|
timesheetStates: () => timesheetStates
|
|
@@ -5828,11 +5856,6 @@ var IClockTypeEnum = {
|
|
|
5828
5856
|
EXIT: "EXIT"
|
|
5829
5857
|
};
|
|
5830
5858
|
var clockTypes = Object.keys(IClockTypeEnum);
|
|
5831
|
-
var IAdjustmentTypeEnum = {
|
|
5832
|
-
CREDIT: "CREDIT",
|
|
5833
|
-
DEBIT: "DEBIT"
|
|
5834
|
-
};
|
|
5835
|
-
var adjustmentTypes = Object.keys(IAdjustmentTypeEnum);
|
|
5836
5859
|
var IRegistryTypeEnum = {
|
|
5837
5860
|
AUTOMATIC: "AUTOMATIC",
|
|
5838
5861
|
MANUAL: "MANUAL"
|
|
@@ -5859,16 +5882,9 @@ var clockSchema = joi119.object({
|
|
|
5859
5882
|
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
|
|
5860
5883
|
note: joi119.string().allow("", null).optional(),
|
|
5861
5884
|
created_by: joi119.string().uuid().required(),
|
|
5885
|
+
// 👈 Adicionado para auditoria nos updates
|
|
5862
5886
|
updated_by: joi119.string().uuid().required()
|
|
5863
|
-
|
|
5864
|
-
var adjustmentSchema = joi119.object({
|
|
5865
|
-
id: joi119.string().uuid(),
|
|
5866
|
-
type: joi119.string().valid(...Object.values(IAdjustmentTypeEnum)).required(),
|
|
5867
|
-
minutes: joi119.number().integer().min(1).required(),
|
|
5868
|
-
// Mínimo 1 minuto de ajuste
|
|
5869
|
-
note: joi119.string().allow("", null).optional(),
|
|
5870
|
-
created_by: joi119.string().uuid().required(),
|
|
5871
|
-
updated_by: joi119.string().uuid().required()
|
|
5887
|
+
// 👈 Adicionado para auditoria nos updates
|
|
5872
5888
|
});
|
|
5873
5889
|
var createBodyKeys64 = {
|
|
5874
5890
|
date: joi119.date().required(),
|
|
@@ -5877,22 +5893,19 @@ var createBodyKeys64 = {
|
|
|
5877
5893
|
balance: joi119.number().integer(),
|
|
5878
5894
|
state: joi119.string().valid(...Object.values(ITimesheetStateEnum)),
|
|
5879
5895
|
created_by: joi119.string().uuid().required(),
|
|
5896
|
+
// 👈 Adicionado na raiz do dia
|
|
5880
5897
|
updated_by: joi119.string().uuid().required(),
|
|
5898
|
+
// 👈 Adicionado na raiz do dia
|
|
5899
|
+
// Objeto opcional para quando se cria o dia já com a primeira picagem
|
|
5881
5900
|
clock: joi119.object({
|
|
5882
5901
|
time: joi119.date(),
|
|
5883
5902
|
type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
|
|
5884
5903
|
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
|
|
5885
5904
|
note: joi119.string().allow("", null).optional(),
|
|
5886
5905
|
created_by: joi119.string().uuid().required(),
|
|
5906
|
+
// 👈 Adicionado no clock interno
|
|
5887
5907
|
updated_by: joi119.string().uuid().required()
|
|
5888
|
-
|
|
5889
|
-
// 🔥 NOVO: Validador do objeto opcional de acerto na criação do dia
|
|
5890
|
-
adjustment: joi119.object({
|
|
5891
|
-
type: joi119.string().valid(...Object.values(IAdjustmentTypeEnum)).required(),
|
|
5892
|
-
minutes: joi119.number().integer().min(1).required(),
|
|
5893
|
-
note: joi119.string().allow("", null).optional(),
|
|
5894
|
-
created_by: joi119.string().uuid().required(),
|
|
5895
|
-
updated_by: joi119.string().uuid().required()
|
|
5908
|
+
// 👈 Adicionado no clock interno
|
|
5896
5909
|
})
|
|
5897
5910
|
};
|
|
5898
5911
|
var createBody65 = joi119.object().keys(createBodyKeys64).messages(messages);
|
|
@@ -5901,10 +5914,11 @@ var updateBodyKeys54 = {
|
|
|
5901
5914
|
balance: joi119.number().integer(),
|
|
5902
5915
|
state: joi119.string().valid(...Object.values(ITimesheetStateEnum)),
|
|
5903
5916
|
created_by: joi119.string().uuid().optional(),
|
|
5917
|
+
// 💡 Opcional no update para manter o original se quiseres
|
|
5904
5918
|
updated_by: joi119.string().uuid().required(),
|
|
5905
|
-
|
|
5906
|
-
//
|
|
5907
|
-
|
|
5919
|
+
// 👈 Obrigatório no update do dia
|
|
5920
|
+
// Array de picagens enviado pelo formulário de edição
|
|
5921
|
+
clocks: joi119.array().items(clockSchema)
|
|
5908
5922
|
};
|
|
5909
5923
|
var updateBody56 = joi119.object().keys(updateBodyKeys54).messages(messages);
|
|
5910
5924
|
|
|
@@ -42,6 +42,7 @@ export interface ICreateRequest {
|
|
|
42
42
|
type_of_inventory?: string;
|
|
43
43
|
external_id?: 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;
|
|
@@ -68,6 +69,8 @@ export interface IUpdateRequest {
|
|
|
68
69
|
state?: IProductSheetState;
|
|
69
70
|
price_cost?: number;
|
|
70
71
|
price_sale?: number;
|
|
72
|
+
vat_tax?: string;
|
|
73
|
+
reason_for_exemption?: string | null;
|
|
71
74
|
}
|
|
72
75
|
export interface IFindProductSheetByReference {
|
|
73
76
|
selector: string;
|
|
@@ -139,6 +142,7 @@ export interface IEntityMinified {
|
|
|
139
142
|
price_sale: number;
|
|
140
143
|
price_cost: number;
|
|
141
144
|
tax: number;
|
|
145
|
+
reason_for_exemption: string | null;
|
|
142
146
|
multimedia_id: string | null;
|
|
143
147
|
integer_only: boolean;
|
|
144
148
|
total: number;
|
|
@@ -20,8 +20,8 @@ export interface ITaxTable {
|
|
|
20
20
|
export interface IRsaHashData {
|
|
21
21
|
invoiceDate: string;
|
|
22
22
|
systemEntryDate: string;
|
|
23
|
-
invoiceNo:
|
|
24
|
-
grossTotal:
|
|
23
|
+
invoiceNo: string;
|
|
24
|
+
grossTotal: string;
|
|
25
25
|
previousHash: string;
|
|
26
26
|
}
|
|
27
27
|
export interface IFindOneBase extends Entity {
|
|
@@ -54,7 +54,6 @@ export interface ICreateFromHeaderMaturityDate {
|
|
|
54
54
|
export interface ICreateRequest {
|
|
55
55
|
document_type_id: number;
|
|
56
56
|
external_id?: string | null;
|
|
57
|
-
document_set_id: string;
|
|
58
57
|
pdf_link?: string | null;
|
|
59
58
|
external_pdf_link?: string | null;
|
|
60
59
|
google_sheet_id?: string | null;
|
|
@@ -117,6 +116,8 @@ export interface IDeliveryAdresses {
|
|
|
117
116
|
}
|
|
118
117
|
export interface ICreateFromHeaderRequest {
|
|
119
118
|
document_type_id: number;
|
|
119
|
+
document_set_id?: string;
|
|
120
|
+
external_document_name?: string;
|
|
120
121
|
emission_date?: Date;
|
|
121
122
|
account_code?: string | null;
|
|
122
123
|
from_header: string[];
|
|
@@ -127,10 +128,10 @@ export interface ICreateFromHeaderRequest {
|
|
|
127
128
|
email?: string;
|
|
128
129
|
maturity_date?: ICreateFromHeaderMaturityDate;
|
|
129
130
|
return_reason?: string;
|
|
130
|
-
provider_ref?: string;
|
|
131
131
|
global_discount?: number;
|
|
132
132
|
current_account?: boolean;
|
|
133
133
|
store_operator_id?: string | null;
|
|
134
|
+
copy_from_document?: string | null;
|
|
134
135
|
owner_ref_document?: string | null;
|
|
135
136
|
}
|
|
136
137
|
export interface IUpdateRequest {
|
|
@@ -81,6 +81,7 @@ export interface ICreateRequest {
|
|
|
81
81
|
quantity: number;
|
|
82
82
|
preco_venda: number;
|
|
83
83
|
client_tax: number;
|
|
84
|
+
client_tax_reason_for_exemption?: string | null;
|
|
84
85
|
client_discount: number;
|
|
85
86
|
preco_custo: number;
|
|
86
87
|
provider_tax: number;
|
|
@@ -93,6 +94,7 @@ export interface IUpdateRequest {
|
|
|
93
94
|
quantity?: number;
|
|
94
95
|
preco_venda?: number;
|
|
95
96
|
client_tax?: number;
|
|
97
|
+
client_tax_reason_for_exemption?: string | null;
|
|
96
98
|
client_discount?: number;
|
|
97
99
|
preco_custo?: number;
|
|
98
100
|
provider_tax?: number;
|
|
@@ -54,6 +54,18 @@ export declare const DocumentTypeCodeTypeEnum: {
|
|
|
54
54
|
RDP: 'RDP';
|
|
55
55
|
NRCL: 'NRCL';
|
|
56
56
|
FPM: 'FPM';
|
|
57
|
+
FTM: 'FTM';
|
|
58
|
+
FTD: 'FTD';
|
|
59
|
+
FRM: 'FRM';
|
|
60
|
+
FRD: 'FRD';
|
|
61
|
+
FSM: 'FSM';
|
|
62
|
+
FSD: 'FSD';
|
|
63
|
+
NCM: 'NCM';
|
|
64
|
+
NCD: 'NCD';
|
|
65
|
+
ADM: 'ADM';
|
|
66
|
+
ADD: 'ADD';
|
|
67
|
+
NCADM: 'NCADM';
|
|
68
|
+
NCADD: 'NCADD';
|
|
57
69
|
FTO: 'FTO';
|
|
58
70
|
FRO: 'FRO';
|
|
59
71
|
REO: 'REO';
|
|
@@ -69,7 +69,7 @@ export interface IUpdateRequest {
|
|
|
69
69
|
export interface IFindByNumberRequest {
|
|
70
70
|
number: number;
|
|
71
71
|
}
|
|
72
|
-
export interface IFindByNumberResponse extends Pick<DocumentHeader, 'owner_id' | 'owner_name' | 'billing_persona_id' | 'billing_persona_name' | 'billing_persona_nif' | 'billing_persona_email' | 'billing_persona_telephone' | 'billing_persona_address_street' | 'billing_persona_address_postal_code' | 'billing_persona_address_locality' | 'billing_persona_address_country_id' | 'billing_persona_address_country_name' | 'reason_for_exemption_id' | 'reason_for_exemption' | 'delivery_persona_id' | 'delivery_persona_name' | 'delivery_persona_email' | 'delivery_persona_telephone' | 'delivery_persona_address_street' | 'delivery_persona_address_postal_code' | 'delivery_persona_address_locality' | 'delivery_persona_address_country_id' | 'delivery_persona_address_country_name' | 'delivery_method_id' | 'delivery_method' | 'vehicle_id' | 'vehicle' | 'payment_method_id' | 'payment_method' | 'maturity_date_id' | 'maturity_date'> {
|
|
72
|
+
export interface IFindByNumberResponse extends Pick<DocumentHeader, 'owner_id' | 'owner_name' | 'billing_persona_id' | 'billing_persona_name' | 'billing_persona_nif' | 'billing_persona_email' | 'billing_persona_telephone' | 'billing_persona_address_street' | 'billing_persona_address_postal_code' | 'billing_persona_address_locality' | 'billing_persona_address_country_id' | 'billing_persona_address_country_name' | 'reason_for_exemption_id' | 'reason_for_exemption' | 'delivery_persona_id' | 'delivery_persona_name' | 'delivery_persona_email' | 'delivery_persona_telephone' | 'delivery_persona_address_street' | 'delivery_persona_address_postal_code' | 'delivery_persona_address_locality' | 'delivery_persona_address_country_id' | 'delivery_persona_address_country_name' | 'delivery_method_id' | 'delivery_method' | 'vehicle_id' | 'vehicle' | 'payment_method_id' | 'payment_method' | 'maturity_date_id' | 'maturity_date' | 'maturity_date_days'> {
|
|
73
73
|
default_discount: number;
|
|
74
74
|
}
|
|
75
75
|
export interface IRepository {
|
|
@@ -2,6 +2,13 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { ReasonForExemption } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = ReasonForExemption;
|
|
4
4
|
export declare const Route = "reason_for_exemption";
|
|
5
|
+
export declare const ReasonForExemptionTypeEnum: {
|
|
6
|
+
product: 'product';
|
|
7
|
+
client: 'client';
|
|
8
|
+
tenant: 'tenant';
|
|
9
|
+
};
|
|
10
|
+
export type IReasonForExemptionType = (typeof ReasonForExemptionTypeEnum)[keyof typeof ReasonForExemptionTypeEnum];
|
|
11
|
+
export declare const reasonForExemptionTypes: string[];
|
|
5
12
|
type IFindDetailedResponse = Entity;
|
|
6
13
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
7
14
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -11,12 +18,14 @@ export interface IFindPaginatedRequest extends IFindRequest, IShared.IPagination
|
|
|
11
18
|
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
12
19
|
export interface ICreateRequest {
|
|
13
20
|
name: string;
|
|
21
|
+
type: IReasonForExemptionType;
|
|
14
22
|
description: string;
|
|
15
23
|
saft_code: string;
|
|
16
24
|
external_id: string;
|
|
17
25
|
}
|
|
18
26
|
export interface IUpdateRequest {
|
|
19
27
|
name?: string;
|
|
28
|
+
type?: IReasonForExemptionType;
|
|
20
29
|
description?: string;
|
|
21
30
|
saft_code?: string;
|
|
22
31
|
external_id?: string;
|
|
@@ -19,6 +19,7 @@ export interface ICreateRequest {
|
|
|
19
19
|
telephone?: string | null;
|
|
20
20
|
fax?: string | null;
|
|
21
21
|
website?: string | null;
|
|
22
|
+
vat_tax_zone_saft_code: string;
|
|
22
23
|
}
|
|
23
24
|
export interface IUpdateRequest {
|
|
24
25
|
name?: string;
|
|
@@ -37,6 +38,7 @@ export interface IUpdateRequest {
|
|
|
37
38
|
telephone?: string | null;
|
|
38
39
|
fax?: string | null;
|
|
39
40
|
website?: string | null;
|
|
41
|
+
vat_tax_zone_saft_code?: string;
|
|
40
42
|
}
|
|
41
43
|
export interface IRepository {
|
|
42
44
|
find(): Promise<Entity[]>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { TimeSheetDay, TimeSheetClock
|
|
2
|
+
import { TimeSheetDay, TimeSheetClock } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = TimeSheetDay & {
|
|
4
4
|
clocks: TimeSheetClock[];
|
|
5
|
-
adjustments: TimeSheetAdjustment[];
|
|
6
5
|
};
|
|
7
6
|
export declare const Route = "time_sheet";
|
|
8
7
|
export declare const IClockTypeEnum: {
|
|
@@ -11,12 +10,6 @@ export declare const IClockTypeEnum: {
|
|
|
11
10
|
};
|
|
12
11
|
export type IClockType = (typeof IClockTypeEnum)[keyof typeof IClockTypeEnum];
|
|
13
12
|
export declare const clockTypes: string[];
|
|
14
|
-
export declare const IAdjustmentTypeEnum: {
|
|
15
|
-
CREDIT: 'CREDIT';
|
|
16
|
-
DEBIT: 'DEBIT';
|
|
17
|
-
};
|
|
18
|
-
export type IAdjustmentType = (typeof IAdjustmentTypeEnum)[keyof typeof IAdjustmentTypeEnum];
|
|
19
|
-
export declare const adjustmentTypes: string[];
|
|
20
13
|
export declare const IRegistryTypeEnum: {
|
|
21
14
|
AUTOMATIC: 'AUTOMATIC';
|
|
22
15
|
MANUAL: 'MANUAL';
|
|
@@ -52,13 +45,6 @@ export interface ICreateRequest {
|
|
|
52
45
|
created_by: string;
|
|
53
46
|
updated_by: string;
|
|
54
47
|
};
|
|
55
|
-
adjustment?: {
|
|
56
|
-
type: IAdjustmentType;
|
|
57
|
-
minutes: number;
|
|
58
|
-
note?: string | null;
|
|
59
|
-
created_by: string;
|
|
60
|
-
updated_by: string;
|
|
61
|
-
};
|
|
62
48
|
}
|
|
63
49
|
export interface IUpdateRequest {
|
|
64
50
|
total_worked?: number;
|
|
@@ -75,14 +61,6 @@ export interface IUpdateRequest {
|
|
|
75
61
|
created_by: string;
|
|
76
62
|
updated_by: string;
|
|
77
63
|
}[];
|
|
78
|
-
adjustments?: {
|
|
79
|
-
id?: string;
|
|
80
|
-
type: IAdjustmentType;
|
|
81
|
-
minutes: number;
|
|
82
|
-
note?: string | null;
|
|
83
|
-
created_by: string;
|
|
84
|
-
updated_by: string;
|
|
85
|
-
}[];
|
|
86
64
|
}
|
|
87
65
|
export interface IRepository {
|
|
88
66
|
find(filters?: IFindRequest): Promise<Entity[]>;
|
|
@@ -276,6 +276,9 @@ export type DocumentHeader = {
|
|
|
276
276
|
pdf_link: string | null;
|
|
277
277
|
google_sheet_id: string | null;
|
|
278
278
|
emission_date: Date;
|
|
279
|
+
source_billing: string;
|
|
280
|
+
hash_control: string | null;
|
|
281
|
+
copy_from_document: string | null;
|
|
279
282
|
chat_document_header_id: string;
|
|
280
283
|
external_pdf_link: string | null;
|
|
281
284
|
external_data: unknown;
|
|
@@ -397,6 +400,7 @@ export type DocumentLine = {
|
|
|
397
400
|
provider_tax: number;
|
|
398
401
|
preco_venda: number;
|
|
399
402
|
client_tax: number;
|
|
403
|
+
client_tax_reason_for_exemption: string | null;
|
|
400
404
|
client_discount: number;
|
|
401
405
|
provider_estimated_delivery_date: Date | null;
|
|
402
406
|
sent_to_client: boolean;
|
|
@@ -459,6 +463,7 @@ export type DocumentSet = {
|
|
|
459
463
|
name: string;
|
|
460
464
|
document_set_id: number | null;
|
|
461
465
|
active_by_default: boolean;
|
|
466
|
+
include_in_saft: boolean;
|
|
462
467
|
created_at: Date;
|
|
463
468
|
updated_at: Date;
|
|
464
469
|
created_by: string;
|
|
@@ -679,6 +684,7 @@ export type ProductSheet = {
|
|
|
679
684
|
values: unknown;
|
|
680
685
|
imported_from_sheets: boolean;
|
|
681
686
|
vat_tax_id: string;
|
|
687
|
+
reason_for_exemption: string | null;
|
|
682
688
|
unit_of_measure_quantity_id: string;
|
|
683
689
|
cabide_product_color: string | null;
|
|
684
690
|
weight: number | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IPaymentMethodsSaftCodeEnum } from '../../modules/user/paymentMethods/interfaces';
|
|
2
|
+
import type { IReasonForExemptionType } from '../../modules/user/reasonForExemption/interface';
|
|
2
3
|
import type { SystemModuleEnum } from '../../modules/user/systemModule/interface';
|
|
3
|
-
import { IClockType, IRegistryType, ITimesheetState
|
|
4
|
+
import { IClockType, IRegistryType, ITimesheetState } from '../../modules/user/timeSheet/interfaces';
|
|
4
5
|
/**
|
|
5
6
|
* Model Users
|
|
6
7
|
*
|
|
@@ -264,6 +265,7 @@ export type Swift = {
|
|
|
264
265
|
*/
|
|
265
266
|
export type ReasonForExemption = {
|
|
266
267
|
id: string;
|
|
268
|
+
type: IReasonForExemptionType;
|
|
267
269
|
name: string;
|
|
268
270
|
description: string;
|
|
269
271
|
saft_code: string;
|
|
@@ -408,6 +410,7 @@ export type Tenant = {
|
|
|
408
410
|
telephone: string | null;
|
|
409
411
|
fax: string | null;
|
|
410
412
|
website: string | null;
|
|
413
|
+
vat_tax_zone_saft_code: string;
|
|
411
414
|
created_at: Date;
|
|
412
415
|
updated_at: Date;
|
|
413
416
|
created_by: string;
|
|
@@ -507,14 +510,3 @@ export interface TimeSheetClock {
|
|
|
507
510
|
created_by: string;
|
|
508
511
|
updated_by: string;
|
|
509
512
|
}
|
|
510
|
-
export interface TimeSheetAdjustment {
|
|
511
|
-
id: string;
|
|
512
|
-
timesheet_day_id: string;
|
|
513
|
-
type: IAdjustmentType;
|
|
514
|
-
minutes: number;
|
|
515
|
-
note: string | null;
|
|
516
|
-
created_at: Date;
|
|
517
|
-
updated_at: Date;
|
|
518
|
-
created_by: string;
|
|
519
|
-
updated_by: string;
|
|
520
|
-
}
|
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.
|
|
4
|
+
"version": "0.46.2",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|