@seidor-cloud-produtos/tax-core 0.0.110 → 0.0.111

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.d.mts CHANGED
@@ -23,18 +23,6 @@ declare class Addition implements Cloneable {
23
23
  clone(): this;
24
24
  }
25
25
 
26
- declare class BuilderAddition {
27
- private instance;
28
- constructor();
29
- newInstance(): BuilderAddition;
30
- build(): Addition;
31
- withNumber(number: string): BuilderAddition;
32
- withAdditionSequenceNumber(addition_sequence_number: string): BuilderAddition;
33
- withManufacturerCode(manufacturer_code: string): BuilderAddition;
34
- withImportDiscountAmount(import_discount_amount: number): BuilderAddition;
35
- withDrawbackConcessionNumber(drawback_concession_number: string): BuilderAddition;
36
- }
37
-
38
26
  declare enum NameCountryEnum {
39
27
  AFGHANISTAN = "AFEGANISTAO",
40
28
  ALBANIA = "ALBANIA, REPUBLICA DA",
@@ -644,7 +632,7 @@ declare class ServiceCode {
644
632
  get description(): string;
645
633
  }
646
634
 
647
- interface Repository$1 {
635
+ interface Repository {
648
636
  getAllStates(): State[];
649
637
  getAllMunicipalities(): Municipality[];
650
638
  getStateByUF(uf: string): State | undefined;
@@ -654,7 +642,7 @@ interface Repository$1 {
654
642
  getServiceCodeByCode(code: string): ServiceCode | undefined;
655
643
  }
656
644
 
657
- declare class MemoryMasterDataRepository implements Repository$1 {
645
+ declare class MemoryMasterDataRepository implements Repository {
658
646
  private static instance;
659
647
  private states;
660
648
  private municipalities;
@@ -703,22 +691,6 @@ declare class Address implements Cloneable {
703
691
  clone(): this;
704
692
  }
705
693
 
706
- declare class BuilderAddress {
707
- private instance;
708
- constructor();
709
- newInstance(): BuilderAddress;
710
- build(): Address;
711
- withNeighborhood(neighborhood: string): BuilderAddress;
712
- withMunicipalityCode(municipality_code: string): BuilderAddress;
713
- withCountryCode(country_code: CountryCodeEnum): BuilderAddress;
714
- withPostalCode(postal_code: string): BuilderAddress;
715
- withSupplement(supplement: string): BuilderAddress;
716
- withState(state: string): BuilderAddress;
717
- withStreet(street: string): BuilderAddress;
718
- withNumber(number: string): BuilderAddress;
719
- withTelephone(telephone: string): BuilderAddress;
720
- }
721
-
722
694
  declare enum CodeStatusEnum {
723
695
  AUTHORIZED = "00",// Autorizado
724
696
  CANCELLED = "02",// Cancelado
@@ -1084,7 +1056,7 @@ declare namespace ServiceCodeEnum {
1084
1056
  function fromNewValue(value: ServiceCodeEnum): string | undefined;
1085
1057
  }
1086
1058
 
1087
- declare enum TaxTypeEnum$1 {
1059
+ declare enum TaxTypeEnum {
1088
1060
  ICMS = "ICMS",
1089
1061
  ICMS_ST = "ICMS_ST",
1090
1062
  DIFAL_87_15 = "DIFAL_87_15",
@@ -1290,8 +1262,8 @@ declare class Tax implements Cloneable {
1290
1262
  private _difal_icms_category;
1291
1263
  get id(): string;
1292
1264
  set id(value: string);
1293
- get category(): TaxTypeEnum$1;
1294
- set category(value: TaxTypeEnum$1);
1265
+ get category(): TaxTypeEnum;
1266
+ set category(value: TaxTypeEnum);
1295
1267
  get rate(): number;
1296
1268
  set rate(value: number);
1297
1269
  get rate_inter(): number;
@@ -1472,7 +1444,7 @@ declare class Item implements Cloneable {
1472
1444
  set import_declaration(value: ImportDeclaration);
1473
1445
  getWithholdingTaxes(): Tax[];
1474
1446
  getNonWithholdingTaxes(): Tax[];
1475
- getTaxByCategory(category: TaxTypeEnum$1, withhold: boolean): Tax | null;
1447
+ getTaxByCategory(category: TaxTypeEnum, withhold: boolean): Tax | null;
1476
1448
  clone(): this;
1477
1449
  get imported(): boolean;
1478
1450
  set imported(value: boolean);
@@ -1711,6 +1683,34 @@ declare class Document implements Cloneable {
1711
1683
  isCancelled(): boolean;
1712
1684
  }
1713
1685
 
1686
+ declare class BuilderAddition {
1687
+ private instance;
1688
+ constructor();
1689
+ newInstance(): BuilderAddition;
1690
+ build(): Addition;
1691
+ withNumber(number: string): BuilderAddition;
1692
+ withAdditionSequenceNumber(addition_sequence_number: string): BuilderAddition;
1693
+ withManufacturerCode(manufacturer_code: string): BuilderAddition;
1694
+ withImportDiscountAmount(import_discount_amount: number): BuilderAddition;
1695
+ withDrawbackConcessionNumber(drawback_concession_number: string): BuilderAddition;
1696
+ }
1697
+
1698
+ declare class BuilderAddress {
1699
+ private instance;
1700
+ constructor();
1701
+ newInstance(): BuilderAddress;
1702
+ build(): Address;
1703
+ withNeighborhood(neighborhood: string): BuilderAddress;
1704
+ withMunicipalityCode(municipality_code: string): BuilderAddress;
1705
+ withCountryCode(country_code: CountryCodeEnum): BuilderAddress;
1706
+ withPostalCode(postal_code: string): BuilderAddress;
1707
+ withSupplement(supplement: string): BuilderAddress;
1708
+ withState(state: string): BuilderAddress;
1709
+ withStreet(street: string): BuilderAddress;
1710
+ withNumber(number: string): BuilderAddress;
1711
+ withTelephone(telephone: string): BuilderAddress;
1712
+ }
1713
+
1714
1714
  declare class BuilderDocument {
1715
1715
  private instance;
1716
1716
  constructor();
@@ -1855,7 +1855,7 @@ declare class BuilderTax {
1855
1855
  newInstance(): BuilderTax;
1856
1856
  build(): Tax;
1857
1857
  withId(id: string): BuilderTax;
1858
- withCategory(category: TaxTypeEnum$1): BuilderTax;
1858
+ withCategory(category: TaxTypeEnum): BuilderTax;
1859
1859
  withRate(rate: number): BuilderTax;
1860
1860
  withRateInter(rate_inter: number): BuilderTax;
1861
1861
  withRateIntra(rate_intra: number): BuilderTax;
@@ -1926,7 +1926,7 @@ interface FiltersDocument {
1926
1926
  fiscal_situation?: CodeStatusEnum | CodeStatusEnum[];
1927
1927
  batch_size?: number;
1928
1928
  }
1929
- interface Repository {
1929
+ interface DocumentRepository {
1930
1930
  getAll(filters: FiltersDocument): AsyncIterableIterator<Document>;
1931
1931
  }
1932
1932
 
@@ -1963,7 +1963,7 @@ declare class MongoConfig {
1963
1963
  socketTimeoutMS: number;
1964
1964
  };
1965
1965
  }
1966
- declare class MongoRepository implements Repository {
1966
+ declare class MongoRepository implements DocumentRepository {
1967
1967
  private readonly _client;
1968
1968
  private _isConnected;
1969
1969
  constructor(mongoConfig: MongoConfig);
@@ -2084,7 +2084,7 @@ interface IItemMongo {
2084
2084
  }
2085
2085
  interface ITaxMongo {
2086
2086
  _id: string;
2087
- category: TaxTypeEnum$1;
2087
+ category: TaxTypeEnum;
2088
2088
  rate: number;
2089
2089
  rate_inter: number;
2090
2090
  rate_intra: number;
@@ -2162,6 +2162,17 @@ declare class MongoToDocumentBuilder {
2162
2162
 
2163
2163
  declare function buildMongoFilter(filters: FiltersDocument): any;
2164
2164
 
2165
+ interface IBaseHeadersDTO {
2166
+ created_at: Date;
2167
+ updated_at: Date;
2168
+ created_by: string;
2169
+ updated_by: string;
2170
+ }
2171
+
2172
+ declare function calculate_bases_values(percentage: number, value: number): number;
2173
+
2174
+ declare function normalizeServiceCode(service_code: string): string | undefined;
2175
+
2165
2176
  declare class ModelRollback {
2166
2177
  execute(document: any): any;
2167
2178
  }
@@ -2170,6 +2181,19 @@ declare class ModelConverter {
2170
2181
  execute(document: any): Document;
2171
2182
  }
2172
2183
 
2184
+ interface IEcdSpecializedProfile {
2185
+ id: string;
2186
+ tenantid: string;
2187
+ profile_id: string;
2188
+ profile_alias?: string;
2189
+ cod_ent_ref: Array<Cod_ent_ref>;
2190
+ cod_inscr?: string;
2191
+ num_ord: number;
2192
+ ind_esc: 'G' | 'R' | 'A' | 'B' | 'Z';
2193
+ is_dlpa_dmpl?: boolean;
2194
+ referential_account_plan: string;
2195
+ ind_tip?: '0' | '1' | '';
2196
+ }
2173
2197
  type Cod_ent_ref = '00' | '01' | '02' | '03' | '04' | '05' | 'AC' | 'AL' | 'AM' | 'AP' | 'BA' | 'DF' | 'CE' | 'ES' | 'GO' | 'MA' | 'MT' | 'MS' | 'MG' | 'PA' | 'PB' | 'PE' | 'PR' | 'PI' | 'RJ' | 'RN' | 'RS' | 'RR' | 'RO' | 'SC' | 'SP' | 'SE' | 'TO';
2174
2198
 
2175
2199
  declare class EcdSpecializedProfile {
@@ -2388,6 +2412,45 @@ declare class EcfSpecializedProfile {
2388
2412
  get tenantid(): string;
2389
2413
  }
2390
2414
 
2415
+ interface IEfdContribSpecializedProfile {
2416
+ _id?: string;
2417
+ id: string;
2418
+ tenantid: string;
2419
+ ind_nat_pj: '00' | '01' | '02' | '03' | '04' | '05';
2420
+ ind_apro_cred?: '1' | '2';
2421
+ cod_tipo_cont?: '1' | '2';
2422
+ ind_reg_cum?: '1' | '2' | '9';
2423
+ profile_id: string;
2424
+ profile_alias: string;
2425
+ establishment_id: string;
2426
+ establishment_alias: string;
2427
+ cod_inc_trib: '0' | '1' | '2';
2428
+ cod_atv_econ: string;
2429
+ aliq_cont: number;
2430
+ cod_rec: string;
2431
+ }
2432
+ interface IRevenueNatureSettings {
2433
+ id: string;
2434
+ tenantid: string;
2435
+ profile_id: string;
2436
+ item_code?: string;
2437
+ item_description?: string;
2438
+ cst_pis_cofins: string;
2439
+ revenue_nature_code: string;
2440
+ revenue_nature_description: string;
2441
+ cfop?: string;
2442
+ accounts_plan: string;
2443
+ accounting_account: string;
2444
+ complementary_description?: string;
2445
+ active?: boolean;
2446
+ isMain?: boolean;
2447
+ logs?: {
2448
+ type: 'created' | 'deactivated' | 'activated';
2449
+ date: Date;
2450
+ username: string;
2451
+ useremail: string;
2452
+ }[];
2453
+ }
2391
2454
  declare enum NatureCode {
2392
2455
  '001' = "01",
2393
2456
  '002' = "02",
@@ -2426,6 +2489,13 @@ type TaxRegimes = Record<string, {
2426
2489
  cst: CST;
2427
2490
  cfop?: string;
2428
2491
  }>;
2492
+ interface ICalculationBasisNatureSetting {
2493
+ _id: string;
2494
+ name: string;
2495
+ tenantid: string;
2496
+ profile_ids: string[];
2497
+ tax_settings: TaxRegimes;
2498
+ }
2429
2499
 
2430
2500
  declare class RevenueNatureSettings {
2431
2501
  protected _id: string;
@@ -2601,8 +2671,28 @@ declare enum IcmsApurationIndicator {
2601
2671
  APURACAO_5 = 7,
2602
2672
  APURACAO_6 = 8
2603
2673
  }
2674
+ interface IIcmsAdjustmentVerification {
2675
+ id: string;
2676
+ tenantid: string;
2677
+ profile_id: string;
2678
+ establishment_id: string;
2679
+ taxType: TaxType;
2680
+ initialDate: Date;
2681
+ description: string;
2682
+ groupVerification: keyof typeof GroupVerification;
2683
+ sefazAdjustmentCode: string;
2684
+ additionalInfo?: string;
2685
+ cfop?: string;
2686
+ cst?: string;
2687
+ codItem?: string;
2688
+ aliq?: number;
2689
+ ncm?: string;
2690
+ icms_taxpayer?: boolean;
2691
+ records: FiscalRecordTypes[];
2692
+ icmsApurationIndicator?: keyof typeof IcmsApurationIndicator;
2693
+ }
2604
2694
 
2605
- declare enum TaxTypeEnum {
2695
+ declare enum ProfileTaxTypeEnum {
2606
2696
  ICMS = "ICMS",
2607
2697
  ICMS_ST = "ICMS-ST",
2608
2698
  DIFAL_FCP = "DIFAL/FCP",
@@ -2638,8 +2728,30 @@ declare enum ActionTypeEnum {
2638
2728
  UPDATE_JUDICIAL_PROCESS = "UPDATE_JUDICIAL_PROCESS",
2639
2729
  DELETE = "DELETE"
2640
2730
  }
2731
+ interface IEfdicmsipiAdditionalFields {
2732
+ branch_id: string;
2733
+ profile_id: string;
2734
+ profile_alias: string;
2735
+ establishment_id: string;
2736
+ establishment_alias: string;
2737
+ profile_indicator: string;
2738
+ ind_apur: string;
2739
+ zfm_alc: '0' | '1';
2740
+ reg_trib: string;
2741
+ has_blockK: 'true' | 'false';
2742
+ layout_k: '0' | '1' | '2';
2743
+ tax_type_config: ITaxTypeConfig[];
2744
+ has_blockH: 'true' | 'false';
2745
+ blockH_movement_indicator: '0' | '1';
2746
+ gia_st_layout_version: string;
2747
+ icms_credit_config?: IIcmsCreditBaseConfig;
2748
+ tenantid: string;
2749
+ id: string;
2750
+ created_at: Date;
2751
+ updated_at: Date;
2752
+ }
2641
2753
  interface ITaxTypeConfigBase {
2642
- tax_type: TaxTypeEnum;
2754
+ tax_type: ProfileTaxTypeEnum;
2643
2755
  config_type: ConfigTypeEnum;
2644
2756
  obligation_code: ObligationCodeEnum;
2645
2757
  due_date: number;
@@ -2688,6 +2800,9 @@ interface ITaxTypeConfigLog {
2688
2800
  action_done_by_email: string;
2689
2801
  tax_type_config: ITaxTypeConfigBase;
2690
2802
  }
2803
+ interface ITaxTypeConfigCreateOrUpdate extends ITaxTypeConfig {
2804
+ action_type?: ActionTypeEnum;
2805
+ }
2691
2806
  declare enum Uf {
2692
2807
  AC = "AC",
2693
2808
  AL = "AL",
@@ -2721,6 +2836,62 @@ declare enum TaxCollectionType {
2721
2836
  OPERATION = "OPERATION",
2722
2837
  APURATION = "APURATION"
2723
2838
  }
2839
+ /**
2840
+ * Represents the information of the audit tax collection.
2841
+ */
2842
+ type AuditTaxCollectionInfo = {
2843
+ /**
2844
+ * The ID of the audit's solicitation.
2845
+ */
2846
+ solicitation_id: string;
2847
+ /**
2848
+ * The period of the audit.
2849
+ */
2850
+ period: string;
2851
+ /**
2852
+ * Details of tax collection of ICMS Audit (Registry E116).
2853
+ */
2854
+ icms?: AuditTaxCollectionDetails;
2855
+ /**
2856
+ * Details of tax collection of ICMS Sub-Apuration of an ICMS Audit (Registry 1926).
2857
+ */
2858
+ icms_sub_apuracao?: AuditTaxCollectionDetails;
2859
+ };
2860
+ /**
2861
+ * Represents the Audit Type.
2862
+ */
2863
+ type AuditTaxCollectionDetails = {
2864
+ /**
2865
+ * The total of value to be collected.
2866
+ */
2867
+ vl_recolher: number;
2868
+ /**
2869
+ * The total of special Debit.
2870
+ */
2871
+ deb_esp: number;
2872
+ /**
2873
+ * Details of the tax collection.
2874
+ */
2875
+ details: TaxCollectionDetails[];
2876
+ };
2877
+ type TaxCollectionDetails = ITaxTypeConfigBase & {
2878
+ /**
2879
+ * The amount to be collected.
2880
+ */
2881
+ amount: number;
2882
+ /**
2883
+ * The due period of the collection.
2884
+ */
2885
+ due_period: string;
2886
+ /**
2887
+ * Additional information.
2888
+ */
2889
+ txt_compl?: string;
2890
+ };
2891
+ interface GetAuditTaxCollectionQuery {
2892
+ solicitation_id: string;
2893
+ select: keyof AuditTaxCollectionInfo;
2894
+ }
2724
2895
 
2725
2896
  declare class EfdIcmsIpiSpecializedProfile {
2726
2897
  protected _branch_id: string;
@@ -2885,6 +3056,14 @@ declare enum CodIncTrib {
2885
3056
  MISTO = "3",
2886
3057
  NAO_APLICA = "4"
2887
3058
  }
3059
+ declare enum FiscalQualificationType {
3060
+ INDUSTRIAL = "0",
3061
+ SERVICO = "1",
3062
+ COMERCIO = "2",
3063
+ JURIDICO_ART_3_9718_1998 = "3",
3064
+ IMOBILIARIA = "4",
3065
+ OUTROS = "9"
3066
+ }
2888
3067
 
2889
3068
  declare class EstablishmentEvent {
2890
3069
  protected _special_situation: '0' | '1' | '2' | '3' | '4' | '5' | '6';
@@ -3066,6 +3245,38 @@ declare class Establishment {
3066
3245
  get events(): EstablishmentEvent[];
3067
3246
  }
3068
3247
 
3248
+ interface IReinfAdditionalFields {
3249
+ id: string;
3250
+ tenantid: string;
3251
+ profile_id: string;
3252
+ company_name: string;
3253
+ cnpj: string;
3254
+ tax_classification_taxpayer: string;
3255
+ ecd_required: boolean;
3256
+ payroll_exemption: string;
3257
+ international_agreement_exemption: boolean;
3258
+ softhouse_company_name?: string;
3259
+ softhouse_fiscal_number?: string;
3260
+ softhouse_contact_name?: string;
3261
+ softhouse_telephone?: string;
3262
+ softhouse_email?: string;
3263
+ tax_type: string;
3264
+ calculation_database: string;
3265
+ closing_type: string;
3266
+ expiration_condition?: string;
3267
+ reinf: boolean;
3268
+ dirf: boolean;
3269
+ r2060_by_documents?: boolean;
3270
+ irf_aliquot?: number;
3271
+ expiration_day?: string;
3272
+ layout_version: string;
3273
+ environment_identification: 1 | 2;
3274
+ solicitation_id?: string;
3275
+ active?: boolean;
3276
+ inactivation_date?: Date;
3277
+ created_at: Date;
3278
+ updated_at: Date;
3279
+ }
3069
3280
  interface ITable9 {
3070
3281
  id: string;
3071
3282
  code: string;
@@ -3076,6 +3287,17 @@ interface ITable9 {
3076
3287
  created_at: Date;
3077
3288
  updated_at: Date;
3078
3289
  }
3290
+ interface IGrossRevenueContributionHeader {
3291
+ id: string;
3292
+ tenantid: string;
3293
+ profile_id: string;
3294
+ profile_alias: string;
3295
+ establishment_id: string;
3296
+ establishment_alias: string;
3297
+ cnpj: string;
3298
+ activity_code: string;
3299
+ table9: ITable9;
3300
+ }
3079
3301
  interface INatureOfIncomeBusinessPartner {
3080
3302
  profile_id?: string;
3081
3303
  profile_alias?: string;
@@ -3088,6 +3310,22 @@ interface INatureOfIncomeBusinessPartner {
3088
3310
  service_code: string;
3089
3311
  nature_config_id?: string;
3090
3312
  }
3313
+ interface INatureConfig {
3314
+ tenantid: string;
3315
+ id: string;
3316
+ name: string;
3317
+ errors: string[];
3318
+ establishments: Establishment[];
3319
+ nature_configs: INatureOfIncomeBusinessPartner[];
3320
+ income_natures: number[];
3321
+ service_codes: string[];
3322
+ business_partners: string[];
3323
+ nature_totals: number;
3324
+ service_code_totals: number;
3325
+ business_partner_totals: number;
3326
+ establishment_totals: number;
3327
+ active: boolean;
3328
+ }
3091
3329
 
3092
3330
  declare class GrossRevenueContributionHeaders {
3093
3331
  protected _id: string;
@@ -3413,6 +3651,68 @@ declare class ProfileRestRepository implements IProfileRepository {
3413
3651
  private getJsonData;
3414
3652
  }
3415
3653
 
3654
+ interface IEcfSpecializedProfile {
3655
+ profile_id: string;
3656
+ codigo_natureza_juridica: string;
3657
+ metodo_avaliacao_estoque_final: string;
3658
+ cnae_principal: string;
3659
+ informar_centro_de_custos: boolean;
3660
+ periodo_apuracao_irpj_csll: string;
3661
+ qualificacao_pessoa_juridica: string;
3662
+ forma_apuracao_jan: string;
3663
+ forma_apuracao_fev: string;
3664
+ forma_apuracao_mar: string;
3665
+ forma_apuracao_abr: string;
3666
+ forma_apuracao_mai: string;
3667
+ forma_apuracao_jun: string;
3668
+ forma_apuracao_jul: string;
3669
+ forma_apuracao_ago: string;
3670
+ forma_apuracao_set: string;
3671
+ forma_apuracao_out: string;
3672
+ forma_apuracao_nov: string;
3673
+ forma_apuracao_dez: string;
3674
+ escrituracao: string;
3675
+ tipo_pessoa_juridica: string;
3676
+ apuracao_irpj: string;
3677
+ apuracao_csll: string;
3678
+ pj_sujeito_aliquota_csll: string;
3679
+ quantidade_total_scp_socio_ostensivo: string;
3680
+ participacoes_consorcio_empresas: boolean;
3681
+ administradora_fundos_e_clubes: boolean;
3682
+ operacoes_exterior: boolean;
3683
+ operacoes_pessoa_vinculada: boolean;
3684
+ participacoes_exterior: boolean;
3685
+ pj_artigos_48_49: boolean;
3686
+ atividade_rural: boolean;
3687
+ isencao_reducao_lucro_presumido: boolean;
3688
+ lucro_exploracao: boolean;
3689
+ ind_finor_finam: boolean;
3690
+ pagamentos_exterior_ou_nao_residentes: boolean;
3691
+ recebimentos_exterior_ou_nao_residentes: boolean;
3692
+ ativos_exterior: boolean;
3693
+ participacao_equivalencia_patrimonial: boolean;
3694
+ royalties_recebidos_brasil_exterior: boolean;
3695
+ royalties_pagos_brasil_exterior: boolean;
3696
+ comercio_eletronico_e_ti: boolean;
3697
+ rendimentos_relativos: boolean;
3698
+ pagamentos_ou_remessa_brasil_exterior: boolean;
3699
+ pj_habilitada: boolean;
3700
+ capacitacao_informatica_e_inclusao: boolean;
3701
+ inovacao_tec: boolean;
3702
+ areas_livre_comercio: boolean;
3703
+ polo_industrial_manaus_amazonia: boolean;
3704
+ zonas_processamento_exportacao: boolean;
3705
+ entidade_grupo_multinacional: boolean;
3706
+ declaracao_moeda_estrangeira: boolean;
3707
+ opcao_preco_transferencia_ano_calendario_2023: boolean;
3708
+ percentual_irpj?: number;
3709
+ percentual_csll?: number;
3710
+ id?: string;
3711
+ created_at: Date;
3712
+ updated_at: Date;
3713
+ tenantid: string;
3714
+ }
3715
+
3416
3716
  declare class CPF implements IdentificationNumber {
3417
3717
  private readonly _value;
3418
3718
  constructor(cpf: string);
@@ -3426,8 +3726,12 @@ declare class CPF implements IdentificationNumber {
3426
3726
  private extractActualDigit;
3427
3727
  }
3428
3728
 
3729
+ declare const keyCompositionMetadata: unique symbol;
3730
+ declare const onDuplicationStrategyMetadata: unique symbol;
3429
3731
  declare const MaximumNumericLength = 19;
3430
3732
  declare const DefaultAlphanumericLength = 255;
3733
+ declare const DefaultDecimalSeparator = ",";
3734
+ declare const DefaultDecimalLength = 2;
3431
3735
  declare enum FieldDataType {
3432
3736
  alphanumeric = 0,
3433
3737
  numeric = 1
@@ -3477,6 +3781,7 @@ interface RegisterEventData {
3477
3781
  dataTypeName: string;
3478
3782
  data: RegisterDefinition;
3479
3783
  }
3784
+ declare function newRegisterEventData(register: RegisterDefinition): RegisterEventData;
3480
3785
  interface RegisterEventNotifier {
3481
3786
  addSubscriber(subscriber: RegisterSubscriber): void;
3482
3787
  notifyEvent(eventData: RegisterEventData): void;
@@ -3537,6 +3842,111 @@ declare abstract class Block implements RegisterEventNotifier, RegisterSubscribe
3537
3842
  numberOfRegisters(): number;
3538
3843
  }
3539
3844
 
3845
+ declare class CounterBlock extends Block {
3846
+ constructor(regPersist: RegisterPersist, name?: string);
3847
+ eventHandler(eventData: RegisterEventData): void;
3848
+ }
3849
+
3850
+ declare class CounterRegister implements RegisterDefinition {
3851
+ reg: string;
3852
+ reg_blc: string;
3853
+ qtd_reg_blc: number;
3854
+ constructor(qtd_reg_blc?: number, register?: string);
3855
+ [reg: string]: any;
3856
+ tagName(): string;
3857
+ getChildren(): RegisterDefinition[];
3858
+ getKeyValue(): string;
3859
+ getChildrenByRegTag(tagName: string): RegisterDefinition[];
3860
+ numberOfRegisters(): number;
3861
+ numberOfChildRegisters(): number;
3862
+ numberOfRegisterByTagName(): Map<string, number>;
3863
+ getOnDuplicationStrategy(): OnDuplicationStrategy;
3864
+ }
3865
+
3866
+ declare abstract class TaxReport {
3867
+ private readonly _blocks;
3868
+ protected constructor();
3869
+ protected registerBlock(block: Block): TaxReport;
3870
+ protected getBlock(name: string): Block | undefined;
3871
+ get Blocks(): Block[];
3872
+ }
3873
+
3874
+ declare class TagCounter {
3875
+ private _blocksCounters;
3876
+ constructor();
3877
+ countRegister(register: RegisterDefinition): void;
3878
+ getBlockRegistersTotal(blockLetter: string): number;
3879
+ getAllTagsCounters(): Map<string, number>;
3880
+ }
3881
+
3882
+ interface RegisterGenerator {
3883
+ generate(register: RegisterDefinition): void;
3884
+ save(): void;
3885
+ }
3886
+
3887
+ interface ReportGenerationOptions {
3888
+ openSuffix: string;
3889
+ closeSuffix: string;
3890
+ openFileRegister: Register;
3891
+ registerGenerator: RegisterGenerator;
3892
+ }
3893
+ declare class CloseFile extends Register {
3894
+ qtd_lin: number;
3895
+ constructor();
3896
+ }
3897
+ declare class OpenBlock extends Register {
3898
+ constructor(tag: string);
3899
+ ind_mov: number;
3900
+ }
3901
+ declare class CloseBlock extends Register {
3902
+ constructor(tag: string);
3903
+ qtd_lin: number;
3904
+ }
3905
+ declare class ReportGenerator {
3906
+ protected _options: ReportGenerationOptions;
3907
+ protected _counters: TagCounter;
3908
+ private constructor();
3909
+ static defaultOptions(openFileRegister: Register, registerGenerator: RegisterGenerator): ReportGenerationOptions;
3910
+ static newWithDefaultOptions(openFileRegister: Register): ReportGenerator;
3911
+ static newWithOptions(options: ReportGenerationOptions): ReportGenerator;
3912
+ private beforeGeneration;
3913
+ private generation;
3914
+ private afterGeneration;
3915
+ protected beforeBlockGeneration(block: Block): void;
3916
+ protected blockGeneration(block: Block): void;
3917
+ protected beforeRegisterGeneration(register: RegisterDefinition): void;
3918
+ protected registerGeneration(register: RegisterDefinition): void;
3919
+ protected afterRegisterGeneration(register: RegisterDefinition): void;
3920
+ protected afterBlockGeneration(block: Block): void;
3921
+ private addBlock;
3922
+ private addRegister;
3923
+ generateFile(taxReport: TaxReport): void;
3924
+ }
3925
+
3926
+ interface SimpleReportGenerationOptions {
3927
+ openFileRegister: Register | null;
3928
+ registerGenerator: RegisterGenerator;
3929
+ }
3930
+ declare class SimpleReportGenerator {
3931
+ protected _options: SimpleReportGenerationOptions;
3932
+ private constructor();
3933
+ static defaultOptions(openFileRegister: Register | null, registerGenerator: RegisterGenerator): SimpleReportGenerationOptions;
3934
+ static newWithDefaultOptions(openFileRegister: Register | null): SimpleReportGenerator;
3935
+ static newWithOptions(options: SimpleReportGenerationOptions): SimpleReportGenerator;
3936
+ private beforeGeneration;
3937
+ private generation;
3938
+ private afterGeneration;
3939
+ protected beforeBlockGeneration(block: Block): void;
3940
+ protected blockGeneration(block: Block): void;
3941
+ protected beforeRegisterGeneration(register: RegisterDefinition): void;
3942
+ protected registerGeneration(register: RegisterDefinition): void;
3943
+ protected afterRegisterGeneration(register: RegisterDefinition): void;
3944
+ protected afterBlockGeneration(block: Block): void;
3945
+ private addBlock;
3946
+ private addRegister;
3947
+ generateFile(taxReport: TaxReport): void;
3948
+ }
3949
+
3540
3950
  interface OutputWriter {
3541
3951
  write(content: string): void;
3542
3952
  save(): void;
@@ -3585,11 +3995,6 @@ declare class StringArrayOutput implements OutputWriter {
3585
3995
  get Output(): string[];
3586
3996
  }
3587
3997
 
3588
- interface RegisterGenerator {
3589
- generate(register: RegisterDefinition): void;
3590
- save(): void;
3591
- }
3592
-
3593
3998
  interface TaxRegisterGenerationOptions {
3594
3999
  writer: OutputWriter;
3595
4000
  fieldSeparator: string;
@@ -3610,98 +4015,6 @@ declare class TaxRegisterGenerator implements RegisterGenerator {
3610
4015
  private numericValue;
3611
4016
  }
3612
4017
 
3613
- declare abstract class TaxReport {
3614
- private readonly _blocks;
3615
- protected constructor();
3616
- protected registerBlock(block: Block): TaxReport;
3617
- protected getBlock(name: string): Block | undefined;
3618
- get Blocks(): Block[];
3619
- }
3620
-
3621
- interface SimpleReportGenerationOptions {
3622
- openFileRegister: Register | null;
3623
- registerGenerator: RegisterGenerator;
3624
- }
3625
- declare class SimpleReportGenerator {
3626
- protected _options: SimpleReportGenerationOptions;
3627
- private constructor();
3628
- static defaultOptions(openFileRegister: Register | null, registerGenerator: RegisterGenerator): SimpleReportGenerationOptions;
3629
- static newWithDefaultOptions(openFileRegister: Register | null): SimpleReportGenerator;
3630
- static newWithOptions(options: SimpleReportGenerationOptions): SimpleReportGenerator;
3631
- private beforeGeneration;
3632
- private generation;
3633
- private afterGeneration;
3634
- protected beforeBlockGeneration(block: Block): void;
3635
- protected blockGeneration(block: Block): void;
3636
- protected beforeRegisterGeneration(register: RegisterDefinition): void;
3637
- protected registerGeneration(register: RegisterDefinition): void;
3638
- protected afterRegisterGeneration(register: RegisterDefinition): void;
3639
- protected afterBlockGeneration(block: Block): void;
3640
- private addBlock;
3641
- private addRegister;
3642
- generateFile(taxReport: TaxReport): void;
3643
- }
3644
-
3645
- declare class TagCounter {
3646
- private _blocksCounters;
3647
- constructor();
3648
- countRegister(register: RegisterDefinition): void;
3649
- getBlockRegistersTotal(blockLetter: string): number;
3650
- getAllTagsCounters(): Map<string, number>;
3651
- }
3652
-
3653
- interface ReportGenerationOptions {
3654
- openSuffix: string;
3655
- closeSuffix: string;
3656
- openFileRegister: Register;
3657
- registerGenerator: RegisterGenerator;
3658
- }
3659
- declare class CloseFile extends Register {
3660
- qtd_lin: number;
3661
- constructor();
3662
- }
3663
- declare class OpenBlock extends Register {
3664
- constructor(tag: string);
3665
- ind_mov: number;
3666
- }
3667
- declare class CloseBlock extends Register {
3668
- constructor(tag: string);
3669
- qtd_lin: number;
3670
- }
3671
- declare class ReportGenerator {
3672
- protected _options: ReportGenerationOptions;
3673
- protected _counters: TagCounter;
3674
- private constructor();
3675
- static defaultOptions(openFileRegister: Register, registerGenerator: RegisterGenerator): ReportGenerationOptions;
3676
- static newWithDefaultOptions(openFileRegister: Register): ReportGenerator;
3677
- static newWithOptions(options: ReportGenerationOptions): ReportGenerator;
3678
- private beforeGeneration;
3679
- private generation;
3680
- private afterGeneration;
3681
- protected beforeBlockGeneration(block: Block): void;
3682
- protected blockGeneration(block: Block): void;
3683
- protected beforeRegisterGeneration(register: RegisterDefinition): void;
3684
- protected registerGeneration(register: RegisterDefinition): void;
3685
- protected afterRegisterGeneration(register: RegisterDefinition): void;
3686
- protected afterBlockGeneration(block: Block): void;
3687
- private addBlock;
3688
- private addRegister;
3689
- generateFile(taxReport: TaxReport): void;
3690
- }
3691
-
3692
- type ReportGenerator$1_CloseBlock = CloseBlock;
3693
- declare const ReportGenerator$1_CloseBlock: typeof CloseBlock;
3694
- type ReportGenerator$1_CloseFile = CloseFile;
3695
- declare const ReportGenerator$1_CloseFile: typeof CloseFile;
3696
- type ReportGenerator$1_OpenBlock = OpenBlock;
3697
- declare const ReportGenerator$1_OpenBlock: typeof OpenBlock;
3698
- type ReportGenerator$1_ReportGenerationOptions = ReportGenerationOptions;
3699
- type ReportGenerator$1_ReportGenerator = ReportGenerator;
3700
- declare const ReportGenerator$1_ReportGenerator: typeof ReportGenerator;
3701
- declare namespace ReportGenerator$1 {
3702
- export { ReportGenerator$1_CloseBlock as CloseBlock, ReportGenerator$1_CloseFile as CloseFile, ReportGenerator$1_OpenBlock as OpenBlock, type ReportGenerator$1_ReportGenerationOptions as ReportGenerationOptions, ReportGenerator$1_ReportGenerator as ReportGenerator };
3703
- }
3704
-
3705
4018
  declare const MessageCode: {
3706
4019
  AUTH: {
3707
4020
  UNAUTHORIZED: string;
@@ -3789,4 +4102,4 @@ declare function logWithContext<T extends MessageCodeType>(messageCode: T, param
3789
4102
  actionSuggestion: string;
3790
4103
  };
3791
4104
 
3792
- export { Addition, Address, Alphanumeric, type AuthTokenExpiredParams, type AuthUnauthorizedParams, Block, BuilderAddition, BuilderAddress, BuilderDocument, BuilderImportDeclaration, BuilderItem, BuilderPerson, BuilderTax, CNPJ, CPF, CalculationBasisNatureSetting, CodeStatusEnum, ConsoleOutput, CountryCodeEnum, CteTypeEnum, DEFAULT_LOCALE, type DatabaseConnectionFailedParams, type DatabaseQueryErrorParams, Decimal, DefaultAlphanumericLength, DescriptionStatusEnum, DifalIcmsCategoryEnum, Document, DocumentTypeEnum, EcdSpecializedProfile, EcfSpecializedProfile, EfdContribSpecializedProfile, EfdIcmsIpiSpecializedProfile, Email, EnforceabilityOfISSEnum, Establishment, EstablishmentEvent, EventEnum, FieldDataType, type FieldFormat, type FiltersDocument, FreightContractedNatureIndicatorEnum, FreightTypeEnum, ReportGenerator$1 as Generation, GrossRevenueContributionHeaders, type IDocumentMongo, IcmsIpiAdjustmentVerification, type IdentificationNumber, ImportDeclaration, IntermediationTypeEnum, type InternalServerErrorParams, InternationalTransportTypeEnum, IssuerIndicatorEnum, Item, ItemTypeEnum, Key, type KeyComposition, type KeyFieldDefinition, LayoutDateFormat, type Locale, MaximumNumericLength, MemoryMasterDataRepository, MemoryPersist, MessageCategory, MessageCode, type MessageCodeType, Messages, ModelConverter, ModelRollback, MongoConfig, MongoRepository, MongoToDocumentBuilder, MunicipalObligation, MunicipalObligationTypeEnum, Municipality, NatureConfig, Numeric, OnDuplication, OnDuplicationStrategy, OperationTypeEnum, OurDate, type OutputWriter, type ParameterTypes, PaymentTypeEnum, Person, ProductOriginEnum, Profile, ProfileRestRepository, Register, type RegisterEventData, type RegisterEventNotifier, type RegisterGenerator, type RegisterPersist, type RegisterSubscriber, ReinfSpecializedProfile, RevenueNatureSettings, RevenueTypeEnum, Scp, ServiceCode, ServiceCodeEnum, type SettingErrorParams, Signatory, SimpleReportGenerator, State, StateEnum, StateRegistrationIndicatorEnum, StatusDocumentEnum, StringArrayOutput, Tax, TaxRegimeEnum, type TaxRegisterGenerationOptions, TaxRegisterGenerator, TaxReport, TaxTypeEnum$1 as TaxTypeEnum, type ValidationInvalidInputParams, type ValidationMissingFieldParams, ValueProviderType, buildMongoFilter, formatMessage, logWithContext, parseState };
4105
+ export { ActionTypeEnum, Addition, Address, type AllowedCfopsCreditConfig, Alphanumeric, type AuditTaxCollectionDetails, type AuditTaxCollectionInfo, type AuthTokenExpiredParams, type AuthUnauthorizedParams, Block, BuilderAddition, BuilderAddress, BuilderDocument, BuilderImportDeclaration, BuilderItem, BuilderPerson, BuilderTax, CNPJ, CPF, CST, CalculationBasisNatureSetting, type Cloneable, CloseBlock, CloseFile, CodIncTrib, type Cod_ent_ref, CodeStatusEnum, ConfigTypeEnum, ConsoleOutput, CounterBlock, CounterRegister, CountryCodeEnum, CprbOption, CteTypeEnum, DEFAULT_LOCALE, type DatabaseConnectionFailedParams, type DatabaseQueryErrorParams, Decimal, DefaultAlphanumericLength, DefaultDecimalLength, DefaultDecimalSeparator, DescriptionStatusEnum, DifalIcmsCategoryEnum, Document, type DocumentRepository, DocumentTypeEnum, EcdSpecializedProfile, EcfSpecializedProfile, EfdContribSpecializedProfile, EfdIcmsIpiSpecializedProfile, Email, EnforceabilityOfISSEnum, Establishment, EstablishmentEvent, Event, EventEnum, FieldDataType, type FieldFormat, type FiltersDocument, FiscalQualificationType, FiscalRecordTypes, FreightContractedNatureIndicatorEnum, FreightTypeEnum, type GetAuditTaxCollectionQuery, GrossRevenueContributionHeaders, GroupVerification, type IAddition, type IAddressMongo, type IBaseHeadersDTO, type ICalculationBasisNatureSetting, type IDocumentMongo, type IEcdSpecializedProfile, type IEcfSpecializedProfile, type IEfdContribSpecializedProfile, type IEfdicmsipiAdditionalFields, type IEstablishment, type IEstablishmentEvent, type IGrossRevenueContributionHeader, type IIcmsAdjustmentVerification, type IIcmsCreditBaseConfig, type IIcmsCreditConfigLog, type IImportDeclaration, type IItemMongo, type IJudicialProcess, type INatureConfig, type INatureOfIncomeBusinessPartner, type IPersonMongo, type IProfile, type IProfileRepository, type IProfileServiceUrls, type IReinfAdditionalFields, type IRevenueNatureSettings, type IScp, type ISignatory, type ITable9, type ITaxMongo, type ITaxTypeConfig, type ITaxTypeConfigBase, type ITaxTypeConfigCreateOrUpdate, type ITaxTypeConfigLog, IcmsApurationIndicator, IcmsIpiAdjustmentVerification, type IdentificationNumber, ImportDeclaration, IntermediationTypeEnum, type InternalServerErrorParams, InternationalTransportTypeEnum, IssuerIndicatorEnum, Item, ItemTypeEnum, JudicialProcessOriginEnum, Key, type KeyComposition, type KeyFieldDefinition, LayoutDateFormat, type Locale, MaximumNumericLength, MemoryMasterDataRepository, MemoryPersist, MessageCategory, MessageCode, type MessageCodeType, Messages, ModelConverter, ModelRollback, MongoConfig, MongoRepository, MongoToDocumentBuilder, MunicipalObligation, MunicipalObligationTypeEnum, Municipality, NameCountryEnum, NatureCode, NatureConfig, Numeric, ObligationCodeEnum, OnDuplication, OnDuplicationStrategy, OpenBlock, OperationTypeEnum, OurDate, type OutputWriter, type ParameterTypes, PaymentTypeEnum, Person, ProductOriginEnum, Profile, ProfileRestRepository, ProfileTaxTypeEnum, Register, type RegisterDefinition, type RegisterEventData, type RegisterEventNotifier, type RegisterGenerator, type RegisterPersist, type RegisterSubscriber, ReinfSpecializedProfile, type ReportGenerationOptions, ReportGenerator, type Repository, RevenueNatureSettings, RevenueTypeEnum, Scp, ServiceCode, ServiceCodeEnum, type SettingErrorParams, Signatory, SimpleNationalOption, type SimpleReportGenerationOptions, SimpleReportGenerator, State, StateEnum, StateRegistrationIndicatorEnum, StatusDocumentEnum, StringArrayOutput, TagCounter, Tax, type TaxCollectionDetails, TaxCollectionType, TaxRegimeEnum, type TaxRegimes, type TaxRegisterGenerationOptions, TaxRegisterGenerator, TaxReport, TaxType, TaxTypeEnum, TaxationType, Uf, type ValidationInvalidInputParams, type ValidationMissingFieldParams, ValueProviderType, buildMongoFilter, calculate_bases_values, formatMessage, keyCompositionMetadata, logWithContext, newRegisterEventData, normalizeServiceCode, onDuplicationStrategyMetadata, parseState };