@nomalism-com/types 0.45.68 → 0.46.1

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
@@ -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
- Route: () => Route44
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);
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
- Route: () => Route44
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);
@@ -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: number;
24
- grossTotal: number;
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';
@@ -7,7 +7,7 @@ export interface IFindByOwnerIdItem {
7
7
  document_header_id: string;
8
8
  label: string;
9
9
  emission_date: Date;
10
- external_id: string | null;
10
+ certified: boolean;
11
11
  pdf_link: string | null;
12
12
  is_void: boolean;
13
13
  created_by: string;
@@ -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[]>;
@@ -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,4 +1,5 @@
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
4
  import { IClockType, IRegistryType, ITimesheetState } from '../../modules/user/timeSheet/interfaces';
4
5
  /**
@@ -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;
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.45.68",
4
+ "version": "0.46.1",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -29,15 +29,15 @@
29
29
  "joi": "^18.2.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@swc/core": "^1.15.40",
33
- "@types/node": "^24.13.1",
32
+ "@swc/core": "^1.15.41",
33
+ "@types/node": "^24.13.2",
34
34
  "@typescript-eslint/eslint-plugin": "^8.61.0",
35
35
  "@typescript-eslint/parser": "^8.61.0",
36
36
  "eslint": "^9.39.4",
37
37
  "eslint-config-prettier": "^10.1.8",
38
38
  "eslint-import-resolver-typescript": "^4.4.5",
39
39
  "eslint-plugin-prettier": "^5.5.6",
40
- "prettier": "^3.8.3",
40
+ "prettier": "^3.8.4",
41
41
  "tsup": "^8.5.1"
42
42
  },
43
43
  "repository": {