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

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
@@ -544,6 +544,133 @@ declare namespace CountryCodeEnum {
544
544
  function getCountryByCode(code: CountryCodeEnum): NameCountryEnum | undefined;
545
545
  }
546
546
 
547
+ declare enum MunicipalObligationTypeEnum {
548
+ NORMAL = "Normal (Original)",// Representa a entrega inicial da obrigação fiscal
549
+ CORRECTIVE = "Retificadora (Substitutiva)",// Corrige informações de uma obrigação já entregue anteriormente. Substitui integralmente a versão anterior.
550
+ COMPLEMENTARY = "Complementar",// Utilizadas para acrescentar informações (ex.: notas fiscais) que não estavam incluídas na entrega original.
551
+ CANCELLATION = "Cancelamento",// Indicadas quando é necessário invalidar totalmente uma obrigação ou registro anterior.
552
+ ADJUSTMENT = "Ajuste"
553
+ }
554
+
555
+ declare class MunicipalObligation {
556
+ protected _name: string;
557
+ protected _versions: Set<string>;
558
+ protected _types: Set<MunicipalObligationTypeEnum>;
559
+ constructor(name: string, versions: string[], types: MunicipalObligationTypeEnum[]);
560
+ get name(): string;
561
+ addVersion(version: string): void;
562
+ get versions(): string[];
563
+ addType(type: MunicipalObligationTypeEnum): void;
564
+ get types(): string[];
565
+ isVersionAvailable(version: string): boolean;
566
+ }
567
+
568
+ declare class Municipality {
569
+ protected _IBGE_code: number;
570
+ protected _name: string;
571
+ protected _state: State;
572
+ protected _ddd: string;
573
+ protected _siafi_code: string;
574
+ protected _sedetec_code: string;
575
+ protected _rest_code: number;
576
+ protected _municipal_obligations: Map<string, MunicipalObligation>;
577
+ constructor(state: State, ibge_code: number, name: string, ddd: string);
578
+ set siafi_code(siafi_code: string);
579
+ set sedetec_code(sedetec_code: string);
580
+ set rest_code(rest_code: number);
581
+ get municipal_obligations(): MunicipalObligation[];
582
+ get IBGE_code(): number;
583
+ get name(): string;
584
+ get uf(): State;
585
+ get ddd(): string;
586
+ get siafi_code(): string;
587
+ get sedetec_code(): string;
588
+ get rest_code(): number;
589
+ addMunicipalObligation(obligation: MunicipalObligation): void;
590
+ getMunicipalObligationByName(obligationName: string): MunicipalObligation;
591
+ }
592
+
593
+ declare enum StateEnum {
594
+ Acre = "AC",
595
+ Alagoas = "AL",
596
+ Amapa = "AP",
597
+ Amazonas = "AM",
598
+ Bahia = "BA",
599
+ Ceara = "CE",
600
+ Distrito_Federal = "DF",
601
+ Espirito_Santo = "ES",
602
+ Goias = "GO",
603
+ Maranhao = "MA",
604
+ Mato_Grosso = "MT",
605
+ Mato_Grosso_do_Sul = "MS",
606
+ Minas_Gerais = "MG",
607
+ Para = "PA",
608
+ Paraiba = "PB",
609
+ Parana = "PR",
610
+ Pernambuco = "PE",
611
+ Piaui = "PI",
612
+ Rio_de_Janeiro = "RJ",
613
+ Rio_Grande_do_Norte = "RN",
614
+ Rio_Grande_do_Sul = "RS",
615
+ Rondonia = "RO",
616
+ Roraima = "RR",
617
+ Santa_Catarina = "SC",
618
+ Sao_Paulo = "SP",
619
+ Sergipe = "SE",
620
+ Tocantins = "TO",
621
+ Empty = ""
622
+ }
623
+ declare function parseState(value: string | null | undefined): StateEnum;
624
+
625
+ declare class State {
626
+ protected _uf: StateEnum;
627
+ protected _code: number;
628
+ protected _name: string;
629
+ protected _municipalities: Map<number, Municipality>;
630
+ constructor(uf: StateEnum, code: number, name: string);
631
+ get uf(): StateEnum;
632
+ get code(): number;
633
+ get name(): string;
634
+ addMunicipality(municipality: Municipality): void;
635
+ get municipalities(): Municipality[];
636
+ getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
637
+ }
638
+
639
+ declare class ServiceCode {
640
+ protected _code: ServiceCodeEnum;
641
+ protected _description: string;
642
+ constructor(code: ServiceCodeEnum, description: string);
643
+ get code(): string;
644
+ get description(): string;
645
+ }
646
+
647
+ interface Repository$1 {
648
+ getAllStates(): State[];
649
+ getAllMunicipalities(): Municipality[];
650
+ getStateByUF(uf: string): State | undefined;
651
+ getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
652
+ getMunicipalitiesWithMunicipalObligation(): Municipality[];
653
+ getAllServiceCodes(): ServiceCode[];
654
+ getServiceCodeByCode(code: string): ServiceCode | undefined;
655
+ }
656
+
657
+ declare class MemoryMasterDataRepository implements Repository$1 {
658
+ private static instance;
659
+ private states;
660
+ private municipalities;
661
+ private serviceCodes;
662
+ private constructor();
663
+ static getInstance(): MemoryMasterDataRepository;
664
+ private loadData;
665
+ getAllServiceCodes(): ServiceCode[];
666
+ getServiceCodeByCode(code: string): ServiceCode | undefined;
667
+ getAllMunicipalities(): Municipality[];
668
+ getAllStates(): State[];
669
+ getMunicipalitiesWithMunicipalObligation(): Municipality[];
670
+ getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
671
+ getStateByUF(uf: string): State | undefined;
672
+ }
673
+
547
674
  declare class Address implements Cloneable {
548
675
  private _neighborhood;
549
676
  private _municipality_code;
@@ -565,15 +692,14 @@ declare class Address implements Cloneable {
565
692
  set postal_code(value: string);
566
693
  get supplement(): string;
567
694
  set supplement(value: string);
568
- get state(): string;
569
- set state(value: string);
695
+ get state(): StateEnum;
696
+ set state(value: StateEnum);
570
697
  get street(): string;
571
698
  set street(value: string);
572
699
  get number(): string;
573
700
  set number(value: string);
574
701
  get telephone(): string;
575
702
  set telephone(value: string);
576
- isForeignPartner(): boolean;
577
703
  clone(): this;
578
704
  }
579
705
 
@@ -1439,6 +1565,7 @@ declare class Person implements Cloneable {
1439
1565
  get telephone(): string;
1440
1566
  set email(value: Email);
1441
1567
  get email(): Email;
1568
+ isForeignPartner(): boolean;
1442
1569
  }
1443
1570
 
1444
1571
  declare class Document implements Cloneable {
@@ -1799,7 +1926,7 @@ interface FiltersDocument {
1799
1926
  fiscal_situation?: CodeStatusEnum | CodeStatusEnum[];
1800
1927
  batch_size?: number;
1801
1928
  }
1802
- interface Repository$1 {
1929
+ interface Repository {
1803
1930
  getAll(filters: FiltersDocument): AsyncIterableIterator<Document>;
1804
1931
  }
1805
1932
 
@@ -1836,7 +1963,7 @@ declare class MongoConfig {
1836
1963
  socketTimeoutMS: number;
1837
1964
  };
1838
1965
  }
1839
- declare class MongoRepository implements Repository$1 {
1966
+ declare class MongoRepository implements Repository {
1840
1967
  private readonly _client;
1841
1968
  private _isConnected;
1842
1969
  constructor(mongoConfig: MongoConfig);
@@ -3662,129 +3789,4 @@ declare function logWithContext<T extends MessageCodeType>(messageCode: T, param
3662
3789
  actionSuggestion: string;
3663
3790
  };
3664
3791
 
3665
- declare enum MunicipalObligationTypeEnum {
3666
- NORMAL = "Normal (Original)",// Representa a entrega inicial da obrigação fiscal
3667
- CORRECTIVE = "Retificadora (Substitutiva)",// Corrige informações de uma obrigação já entregue anteriormente. Substitui integralmente a versão anterior.
3668
- COMPLEMENTARY = "Complementar",// Utilizadas para acrescentar informações (ex.: notas fiscais) que não estavam incluídas na entrega original.
3669
- CANCELLATION = "Cancelamento",// Indicadas quando é necessário invalidar totalmente uma obrigação ou registro anterior.
3670
- ADJUSTMENT = "Ajuste"
3671
- }
3672
-
3673
- declare class MunicipalObligation {
3674
- protected _name: string;
3675
- protected _versions: Set<string>;
3676
- protected _types: Set<MunicipalObligationTypeEnum>;
3677
- constructor(name: string, versions: string[], types: MunicipalObligationTypeEnum[]);
3678
- get name(): string;
3679
- addVersion(version: string): void;
3680
- get versions(): string[];
3681
- addType(type: MunicipalObligationTypeEnum): void;
3682
- get types(): string[];
3683
- isVersionAvailable(version: string): boolean;
3684
- }
3685
-
3686
- declare class Municipality {
3687
- protected _IBGE_code: number;
3688
- protected _name: string;
3689
- protected _state: State;
3690
- protected _ddd: string;
3691
- protected _siafi_code: string;
3692
- protected _sedetec_code: string;
3693
- protected _rest_code: number;
3694
- protected _municipal_obligations: Map<string, MunicipalObligation>;
3695
- constructor(state: State, ibge_code: number, name: string, ddd: string);
3696
- set siafi_code(siafi_code: string);
3697
- set sedetec_code(sedetec_code: string);
3698
- set rest_code(rest_code: number);
3699
- get municipal_obligations(): MunicipalObligation[];
3700
- get IBGE_code(): number;
3701
- get name(): string;
3702
- get uf(): State;
3703
- get ddd(): string;
3704
- get siafi_code(): string;
3705
- get sedetec_code(): string;
3706
- get rest_code(): number;
3707
- addMunicipalObligation(obligation: MunicipalObligation): void;
3708
- getMunicipalObligationByName(obligationName: string): MunicipalObligation;
3709
- }
3710
-
3711
- declare enum StateEnum {
3712
- Acre = "AC",
3713
- Alagoas = "AL",
3714
- Amapa = "AP",
3715
- Amazonas = "AM",
3716
- Bahia = "BA",
3717
- Ceara = "CE",
3718
- Distrito_Federal = "DF",
3719
- Espirito_Santo = "ES",
3720
- Goias = "GO",
3721
- Maranhao = "MA",
3722
- Mato_Grosso = "MT",
3723
- Mato_Grosso_do_Sul = "MS",
3724
- Minas_Gerais = "MG",
3725
- Para = "PA",
3726
- Paraiba = "PB",
3727
- Parana = "PR",
3728
- Pernambuco = "PE",
3729
- Piaui = "PI",
3730
- Rio_de_Janeiro = "RJ",
3731
- Rio_Grande_do_Norte = "RN",
3732
- Rio_Grande_do_Sul = "RS",
3733
- Rondonia = "RO",
3734
- Roraima = "RR",
3735
- Santa_Catarina = "SC",
3736
- Sao_Paulo = "SP",
3737
- Sergipe = "SE",
3738
- Tocantins = "TO"
3739
- }
3740
-
3741
- declare class State {
3742
- protected _uf: StateEnum;
3743
- protected _code: number;
3744
- protected _name: string;
3745
- protected _municipalities: Map<number, Municipality>;
3746
- constructor(uf: StateEnum, code: number, name: string);
3747
- get uf(): StateEnum;
3748
- get code(): number;
3749
- get name(): string;
3750
- addMunicipality(municipality: Municipality): void;
3751
- get municipalities(): Municipality[];
3752
- getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
3753
- }
3754
-
3755
- declare class ServiceCode {
3756
- protected _code: ServiceCodeEnum;
3757
- protected _description: string;
3758
- constructor(code: ServiceCodeEnum, description: string);
3759
- get code(): string;
3760
- get description(): string;
3761
- }
3762
-
3763
- interface Repository {
3764
- getAllStates(): State[];
3765
- getAllMunicipalities(): Municipality[];
3766
- getStateByUF(uf: string): State | undefined;
3767
- getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
3768
- getMunicipalitiesWithMunicipalObligation(): Municipality[];
3769
- getAllServiceCodes(): ServiceCode[];
3770
- getServiceCodeByCode(code: string): ServiceCode | undefined;
3771
- }
3772
-
3773
- declare class MemoryMasterDataRepository implements Repository {
3774
- private static instance;
3775
- private states;
3776
- private municipalities;
3777
- private serviceCodes;
3778
- private constructor();
3779
- static getInstance(): MemoryMasterDataRepository;
3780
- private loadData;
3781
- getAllServiceCodes(): ServiceCode[];
3782
- getServiceCodeByCode(code: string): ServiceCode | undefined;
3783
- getAllMunicipalities(): Municipality[];
3784
- getAllStates(): State[];
3785
- getMunicipalitiesWithMunicipalObligation(): Municipality[];
3786
- getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
3787
- getStateByUF(uf: string): State | undefined;
3788
- }
3789
-
3790
- 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -544,6 +544,133 @@ declare namespace CountryCodeEnum {
544
544
  function getCountryByCode(code: CountryCodeEnum): NameCountryEnum | undefined;
545
545
  }
546
546
 
547
+ declare enum MunicipalObligationTypeEnum {
548
+ NORMAL = "Normal (Original)",// Representa a entrega inicial da obrigação fiscal
549
+ CORRECTIVE = "Retificadora (Substitutiva)",// Corrige informações de uma obrigação já entregue anteriormente. Substitui integralmente a versão anterior.
550
+ COMPLEMENTARY = "Complementar",// Utilizadas para acrescentar informações (ex.: notas fiscais) que não estavam incluídas na entrega original.
551
+ CANCELLATION = "Cancelamento",// Indicadas quando é necessário invalidar totalmente uma obrigação ou registro anterior.
552
+ ADJUSTMENT = "Ajuste"
553
+ }
554
+
555
+ declare class MunicipalObligation {
556
+ protected _name: string;
557
+ protected _versions: Set<string>;
558
+ protected _types: Set<MunicipalObligationTypeEnum>;
559
+ constructor(name: string, versions: string[], types: MunicipalObligationTypeEnum[]);
560
+ get name(): string;
561
+ addVersion(version: string): void;
562
+ get versions(): string[];
563
+ addType(type: MunicipalObligationTypeEnum): void;
564
+ get types(): string[];
565
+ isVersionAvailable(version: string): boolean;
566
+ }
567
+
568
+ declare class Municipality {
569
+ protected _IBGE_code: number;
570
+ protected _name: string;
571
+ protected _state: State;
572
+ protected _ddd: string;
573
+ protected _siafi_code: string;
574
+ protected _sedetec_code: string;
575
+ protected _rest_code: number;
576
+ protected _municipal_obligations: Map<string, MunicipalObligation>;
577
+ constructor(state: State, ibge_code: number, name: string, ddd: string);
578
+ set siafi_code(siafi_code: string);
579
+ set sedetec_code(sedetec_code: string);
580
+ set rest_code(rest_code: number);
581
+ get municipal_obligations(): MunicipalObligation[];
582
+ get IBGE_code(): number;
583
+ get name(): string;
584
+ get uf(): State;
585
+ get ddd(): string;
586
+ get siafi_code(): string;
587
+ get sedetec_code(): string;
588
+ get rest_code(): number;
589
+ addMunicipalObligation(obligation: MunicipalObligation): void;
590
+ getMunicipalObligationByName(obligationName: string): MunicipalObligation;
591
+ }
592
+
593
+ declare enum StateEnum {
594
+ Acre = "AC",
595
+ Alagoas = "AL",
596
+ Amapa = "AP",
597
+ Amazonas = "AM",
598
+ Bahia = "BA",
599
+ Ceara = "CE",
600
+ Distrito_Federal = "DF",
601
+ Espirito_Santo = "ES",
602
+ Goias = "GO",
603
+ Maranhao = "MA",
604
+ Mato_Grosso = "MT",
605
+ Mato_Grosso_do_Sul = "MS",
606
+ Minas_Gerais = "MG",
607
+ Para = "PA",
608
+ Paraiba = "PB",
609
+ Parana = "PR",
610
+ Pernambuco = "PE",
611
+ Piaui = "PI",
612
+ Rio_de_Janeiro = "RJ",
613
+ Rio_Grande_do_Norte = "RN",
614
+ Rio_Grande_do_Sul = "RS",
615
+ Rondonia = "RO",
616
+ Roraima = "RR",
617
+ Santa_Catarina = "SC",
618
+ Sao_Paulo = "SP",
619
+ Sergipe = "SE",
620
+ Tocantins = "TO",
621
+ Empty = ""
622
+ }
623
+ declare function parseState(value: string | null | undefined): StateEnum;
624
+
625
+ declare class State {
626
+ protected _uf: StateEnum;
627
+ protected _code: number;
628
+ protected _name: string;
629
+ protected _municipalities: Map<number, Municipality>;
630
+ constructor(uf: StateEnum, code: number, name: string);
631
+ get uf(): StateEnum;
632
+ get code(): number;
633
+ get name(): string;
634
+ addMunicipality(municipality: Municipality): void;
635
+ get municipalities(): Municipality[];
636
+ getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
637
+ }
638
+
639
+ declare class ServiceCode {
640
+ protected _code: ServiceCodeEnum;
641
+ protected _description: string;
642
+ constructor(code: ServiceCodeEnum, description: string);
643
+ get code(): string;
644
+ get description(): string;
645
+ }
646
+
647
+ interface Repository$1 {
648
+ getAllStates(): State[];
649
+ getAllMunicipalities(): Municipality[];
650
+ getStateByUF(uf: string): State | undefined;
651
+ getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
652
+ getMunicipalitiesWithMunicipalObligation(): Municipality[];
653
+ getAllServiceCodes(): ServiceCode[];
654
+ getServiceCodeByCode(code: string): ServiceCode | undefined;
655
+ }
656
+
657
+ declare class MemoryMasterDataRepository implements Repository$1 {
658
+ private static instance;
659
+ private states;
660
+ private municipalities;
661
+ private serviceCodes;
662
+ private constructor();
663
+ static getInstance(): MemoryMasterDataRepository;
664
+ private loadData;
665
+ getAllServiceCodes(): ServiceCode[];
666
+ getServiceCodeByCode(code: string): ServiceCode | undefined;
667
+ getAllMunicipalities(): Municipality[];
668
+ getAllStates(): State[];
669
+ getMunicipalitiesWithMunicipalObligation(): Municipality[];
670
+ getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
671
+ getStateByUF(uf: string): State | undefined;
672
+ }
673
+
547
674
  declare class Address implements Cloneable {
548
675
  private _neighborhood;
549
676
  private _municipality_code;
@@ -565,15 +692,14 @@ declare class Address implements Cloneable {
565
692
  set postal_code(value: string);
566
693
  get supplement(): string;
567
694
  set supplement(value: string);
568
- get state(): string;
569
- set state(value: string);
695
+ get state(): StateEnum;
696
+ set state(value: StateEnum);
570
697
  get street(): string;
571
698
  set street(value: string);
572
699
  get number(): string;
573
700
  set number(value: string);
574
701
  get telephone(): string;
575
702
  set telephone(value: string);
576
- isForeignPartner(): boolean;
577
703
  clone(): this;
578
704
  }
579
705
 
@@ -1439,6 +1565,7 @@ declare class Person implements Cloneable {
1439
1565
  get telephone(): string;
1440
1566
  set email(value: Email);
1441
1567
  get email(): Email;
1568
+ isForeignPartner(): boolean;
1442
1569
  }
1443
1570
 
1444
1571
  declare class Document implements Cloneable {
@@ -1799,7 +1926,7 @@ interface FiltersDocument {
1799
1926
  fiscal_situation?: CodeStatusEnum | CodeStatusEnum[];
1800
1927
  batch_size?: number;
1801
1928
  }
1802
- interface Repository$1 {
1929
+ interface Repository {
1803
1930
  getAll(filters: FiltersDocument): AsyncIterableIterator<Document>;
1804
1931
  }
1805
1932
 
@@ -1836,7 +1963,7 @@ declare class MongoConfig {
1836
1963
  socketTimeoutMS: number;
1837
1964
  };
1838
1965
  }
1839
- declare class MongoRepository implements Repository$1 {
1966
+ declare class MongoRepository implements Repository {
1840
1967
  private readonly _client;
1841
1968
  private _isConnected;
1842
1969
  constructor(mongoConfig: MongoConfig);
@@ -3662,129 +3789,4 @@ declare function logWithContext<T extends MessageCodeType>(messageCode: T, param
3662
3789
  actionSuggestion: string;
3663
3790
  };
3664
3791
 
3665
- declare enum MunicipalObligationTypeEnum {
3666
- NORMAL = "Normal (Original)",// Representa a entrega inicial da obrigação fiscal
3667
- CORRECTIVE = "Retificadora (Substitutiva)",// Corrige informações de uma obrigação já entregue anteriormente. Substitui integralmente a versão anterior.
3668
- COMPLEMENTARY = "Complementar",// Utilizadas para acrescentar informações (ex.: notas fiscais) que não estavam incluídas na entrega original.
3669
- CANCELLATION = "Cancelamento",// Indicadas quando é necessário invalidar totalmente uma obrigação ou registro anterior.
3670
- ADJUSTMENT = "Ajuste"
3671
- }
3672
-
3673
- declare class MunicipalObligation {
3674
- protected _name: string;
3675
- protected _versions: Set<string>;
3676
- protected _types: Set<MunicipalObligationTypeEnum>;
3677
- constructor(name: string, versions: string[], types: MunicipalObligationTypeEnum[]);
3678
- get name(): string;
3679
- addVersion(version: string): void;
3680
- get versions(): string[];
3681
- addType(type: MunicipalObligationTypeEnum): void;
3682
- get types(): string[];
3683
- isVersionAvailable(version: string): boolean;
3684
- }
3685
-
3686
- declare class Municipality {
3687
- protected _IBGE_code: number;
3688
- protected _name: string;
3689
- protected _state: State;
3690
- protected _ddd: string;
3691
- protected _siafi_code: string;
3692
- protected _sedetec_code: string;
3693
- protected _rest_code: number;
3694
- protected _municipal_obligations: Map<string, MunicipalObligation>;
3695
- constructor(state: State, ibge_code: number, name: string, ddd: string);
3696
- set siafi_code(siafi_code: string);
3697
- set sedetec_code(sedetec_code: string);
3698
- set rest_code(rest_code: number);
3699
- get municipal_obligations(): MunicipalObligation[];
3700
- get IBGE_code(): number;
3701
- get name(): string;
3702
- get uf(): State;
3703
- get ddd(): string;
3704
- get siafi_code(): string;
3705
- get sedetec_code(): string;
3706
- get rest_code(): number;
3707
- addMunicipalObligation(obligation: MunicipalObligation): void;
3708
- getMunicipalObligationByName(obligationName: string): MunicipalObligation;
3709
- }
3710
-
3711
- declare enum StateEnum {
3712
- Acre = "AC",
3713
- Alagoas = "AL",
3714
- Amapa = "AP",
3715
- Amazonas = "AM",
3716
- Bahia = "BA",
3717
- Ceara = "CE",
3718
- Distrito_Federal = "DF",
3719
- Espirito_Santo = "ES",
3720
- Goias = "GO",
3721
- Maranhao = "MA",
3722
- Mato_Grosso = "MT",
3723
- Mato_Grosso_do_Sul = "MS",
3724
- Minas_Gerais = "MG",
3725
- Para = "PA",
3726
- Paraiba = "PB",
3727
- Parana = "PR",
3728
- Pernambuco = "PE",
3729
- Piaui = "PI",
3730
- Rio_de_Janeiro = "RJ",
3731
- Rio_Grande_do_Norte = "RN",
3732
- Rio_Grande_do_Sul = "RS",
3733
- Rondonia = "RO",
3734
- Roraima = "RR",
3735
- Santa_Catarina = "SC",
3736
- Sao_Paulo = "SP",
3737
- Sergipe = "SE",
3738
- Tocantins = "TO"
3739
- }
3740
-
3741
- declare class State {
3742
- protected _uf: StateEnum;
3743
- protected _code: number;
3744
- protected _name: string;
3745
- protected _municipalities: Map<number, Municipality>;
3746
- constructor(uf: StateEnum, code: number, name: string);
3747
- get uf(): StateEnum;
3748
- get code(): number;
3749
- get name(): string;
3750
- addMunicipality(municipality: Municipality): void;
3751
- get municipalities(): Municipality[];
3752
- getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
3753
- }
3754
-
3755
- declare class ServiceCode {
3756
- protected _code: ServiceCodeEnum;
3757
- protected _description: string;
3758
- constructor(code: ServiceCodeEnum, description: string);
3759
- get code(): string;
3760
- get description(): string;
3761
- }
3762
-
3763
- interface Repository {
3764
- getAllStates(): State[];
3765
- getAllMunicipalities(): Municipality[];
3766
- getStateByUF(uf: string): State | undefined;
3767
- getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
3768
- getMunicipalitiesWithMunicipalObligation(): Municipality[];
3769
- getAllServiceCodes(): ServiceCode[];
3770
- getServiceCodeByCode(code: string): ServiceCode | undefined;
3771
- }
3772
-
3773
- declare class MemoryMasterDataRepository implements Repository {
3774
- private static instance;
3775
- private states;
3776
- private municipalities;
3777
- private serviceCodes;
3778
- private constructor();
3779
- static getInstance(): MemoryMasterDataRepository;
3780
- private loadData;
3781
- getAllServiceCodes(): ServiceCode[];
3782
- getServiceCodeByCode(code: string): ServiceCode | undefined;
3783
- getAllMunicipalities(): Municipality[];
3784
- getAllStates(): State[];
3785
- getMunicipalitiesWithMunicipalObligation(): Municipality[];
3786
- getMunicipalityByIBGECode(ibge_code: number): Municipality | undefined;
3787
- getStateByUF(uf: string): State | undefined;
3788
- }
3789
-
3790
- 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 };
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 };