@seidor-cloud-produtos/tax-core 1.0.21 → 1.0.23
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 +24 -6
- package/dist/index.d.ts +24 -6
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1906,7 +1906,7 @@ declare class BuilderAddress {
|
|
|
1906
1906
|
withNeighborhood(neighborhood: string): BuilderAddress;
|
|
1907
1907
|
withMunicipalityCode(municipality_code: string): BuilderAddress;
|
|
1908
1908
|
withMunicipality(municipality: Municipality): BuilderAddress;
|
|
1909
|
-
withCountryCode(country_code:
|
|
1909
|
+
withCountryCode(country_code: string): BuilderAddress;
|
|
1910
1910
|
withCountry(country: Country): BuilderAddress;
|
|
1911
1911
|
withPostalCode(postal_code: string): BuilderAddress;
|
|
1912
1912
|
withSupplement(supplement: string): BuilderAddress;
|
|
@@ -2057,7 +2057,7 @@ declare class BuilderPerson {
|
|
|
2057
2057
|
withCPF(cpf: string): BuilderPerson;
|
|
2058
2058
|
withName(name: string): BuilderPerson;
|
|
2059
2059
|
withEmail(email: string): BuilderPerson;
|
|
2060
|
-
withStateRegistrationNumber(state_registration_number: string): BuilderPerson;
|
|
2060
|
+
withStateRegistrationNumber(state_registration_number: string, municipalityCode?: string): BuilderPerson;
|
|
2061
2061
|
withMunicipalRegistrationNumber(municipal_registration_number: string): BuilderPerson;
|
|
2062
2062
|
withSuframaRegistrationNumber(suframa_registration_number: string): BuilderPerson;
|
|
2063
2063
|
withStateRegistrationIndicator(state_registration_indicator: StateRegistrationIndicatorEnum): BuilderPerson;
|
|
@@ -2157,9 +2157,14 @@ interface FiltersDocument {
|
|
|
2157
2157
|
fiscal_situation?: CodeStatusEnum | CodeStatusEnum[];
|
|
2158
2158
|
batch_size?: number;
|
|
2159
2159
|
}
|
|
2160
|
+
interface PisCofinsOptions {
|
|
2161
|
+
exclude_non_credit_documents: boolean;
|
|
2162
|
+
zero_pis_cofins_by_cst: boolean;
|
|
2163
|
+
}
|
|
2160
2164
|
interface DocumentRepository {
|
|
2161
2165
|
getAll(filters: FiltersDocument): AsyncIterableIterator<Document>;
|
|
2162
2166
|
getAllAuditingRetainedTax(filters: FiltersDocument): AsyncIterableIterator<Document>;
|
|
2167
|
+
getAllPisCofinsDocuments(filters: FiltersDocument, options: PisCofinsOptions): AsyncIterableIterator<Document>;
|
|
2163
2168
|
}
|
|
2164
2169
|
|
|
2165
2170
|
interface IBaseHeadersDTO {
|
|
@@ -2173,6 +2178,8 @@ declare function calculate_bases_values(percentage: number, value: number): numb
|
|
|
2173
2178
|
|
|
2174
2179
|
declare function normalizeServiceCode(service_code: string): string | undefined;
|
|
2175
2180
|
|
|
2181
|
+
declare const ZERO_PIS_COFINS_BY_CST: string[];
|
|
2182
|
+
|
|
2176
2183
|
interface IDocumentMongo {
|
|
2177
2184
|
_id: any;
|
|
2178
2185
|
active: boolean;
|
|
@@ -2367,12 +2374,14 @@ declare class MongoToDocumentBuilder {
|
|
|
2367
2374
|
private items;
|
|
2368
2375
|
constructor();
|
|
2369
2376
|
newInstance(): MongoToDocumentBuilder;
|
|
2370
|
-
build(document: IDocumentMongo): Document;
|
|
2377
|
+
build(document: IDocumentMongo, exclude_non_credit_documents?: boolean, zero_pis_cofins_by_cst?: boolean): Document;
|
|
2371
2378
|
withPerson(person: IPersonMongo): Person;
|
|
2372
2379
|
withAddress(address: IAddressMongo): Address;
|
|
2373
|
-
withItems(item: IItemMongo): void;
|
|
2380
|
+
withItems(item: IItemMongo, exclude_non_credit_documents?: boolean, zero_pis_cofins_by_cst?: boolean): void;
|
|
2381
|
+
private shouldIncludeItem;
|
|
2374
2382
|
withAccountingDocument(accounting_document: IAccountingDocumentMongo): AccountingDocument;
|
|
2375
|
-
|
|
2383
|
+
private getAdjustedPisCofinsValues;
|
|
2384
|
+
withTax(tax: ITaxMongo, zero_pis_cofins_by_cst?: boolean): Tax;
|
|
2376
2385
|
withImportDeclaration(item: IItemMongo): ImportDeclaration;
|
|
2377
2386
|
withAddition(addition: IAddition): Addition;
|
|
2378
2387
|
withConversionFactor(item: IItemMongo): ConversionFactor;
|
|
@@ -2469,6 +2478,7 @@ declare class MongoRepository implements DocumentRepository {
|
|
|
2469
2478
|
getAll(filters: FiltersDocument): AsyncIterableIterator<Document>;
|
|
2470
2479
|
getAllAuditingRetainedTax(filters: FiltersDocument): AsyncIterableIterator<Document>;
|
|
2471
2480
|
findOne(id: string, tenant_id: string): Promise<Document>;
|
|
2481
|
+
getAllPisCofinsDocuments(filters: FiltersDocument, options: PisCofinsOptions): AsyncIterableIterator<Document>;
|
|
2472
2482
|
}
|
|
2473
2483
|
|
|
2474
2484
|
declare class ModelRollback {
|
|
@@ -2718,6 +2728,8 @@ interface IEfdContribSpecializedProfile {
|
|
|
2718
2728
|
ind_nat_pj: '00' | '01' | '02' | '03' | '04' | '05';
|
|
2719
2729
|
ind_apro_cred?: '1' | '2';
|
|
2720
2730
|
cod_tipo_cont?: '1' | '2';
|
|
2731
|
+
exclude_non_credit_documents?: boolean;
|
|
2732
|
+
zero_pis_cofins_by_cst?: boolean;
|
|
2721
2733
|
ind_reg_cum?: '1' | '2' | '9';
|
|
2722
2734
|
profile_id: string;
|
|
2723
2735
|
profile_alias: string;
|
|
@@ -2922,6 +2934,8 @@ declare class EfdContribSpecializedProfile {
|
|
|
2922
2934
|
protected _cod_atv_econ: string;
|
|
2923
2935
|
protected _aliq_cont: number;
|
|
2924
2936
|
protected _cod_rec: string;
|
|
2937
|
+
protected _exclude_non_credit_documents?: boolean;
|
|
2938
|
+
protected _zero_pis_cofins_by_cst?: boolean;
|
|
2925
2939
|
protected _natureSettings: RevenueNatureSettings[];
|
|
2926
2940
|
protected _calculationBasisNature: CalculationBasisNatureSetting[];
|
|
2927
2941
|
set id(id: string);
|
|
@@ -2938,6 +2952,8 @@ declare class EfdContribSpecializedProfile {
|
|
|
2938
2952
|
set cod_atv_econ(cod_atv_econ: string);
|
|
2939
2953
|
set aliq_cont(aliq_cont: number);
|
|
2940
2954
|
set cod_rec(cod_rec: string);
|
|
2955
|
+
set exclude_non_credit_documents(exclude_non_credit_documents: boolean);
|
|
2956
|
+
set zero_pis_cofins_by_cst(zero_pis_cofins_by_cst: boolean);
|
|
2941
2957
|
set natureSettings(natureSettings: RevenueNatureSettings[]);
|
|
2942
2958
|
set calculationBasisNature(calculationBasisNature: CalculationBasisNatureSetting[]);
|
|
2943
2959
|
get id(): string;
|
|
@@ -2954,6 +2970,8 @@ declare class EfdContribSpecializedProfile {
|
|
|
2954
2970
|
get cod_atv_econ(): string;
|
|
2955
2971
|
get aliq_cont(): number;
|
|
2956
2972
|
get cod_rec(): string;
|
|
2973
|
+
get exclude_non_credit_documents(): boolean;
|
|
2974
|
+
get zero_pis_cofins_by_cst(): boolean;
|
|
2957
2975
|
get natureSettings(): RevenueNatureSettings[];
|
|
2958
2976
|
get calculationBasisNature(): CalculationBasisNatureSetting[];
|
|
2959
2977
|
}
|
|
@@ -4740,4 +4758,4 @@ declare function toSafeNumber(value: unknown, fallback?: number): number;
|
|
|
4740
4758
|
|
|
4741
4759
|
declare function validationValue(field: any): any;
|
|
4742
4760
|
|
|
4743
|
-
export { AccountingDocument, ActionTypeEnum, Addition, Address, type AllowedCfopsCreditConfig, Alphanumeric, type AuditTaxCollectionDetails, type AuditTaxCollectionInfo, type AuthTokenExpiredParams, type AuthUnauthorizedParams, Block, BuilderAccountingDocument, BuilderAddition, BuilderAddress, BuilderConversionFactor, BuilderDocument, BuilderImportDeclaration, BuilderItem, BuilderPerson, BuilderTax, CNPJ, CPF, CST, CalculationBasisNatureSetting, type Cloneable, CloseBlock, CloseFile, CodIncTrib, type Cod_ent_ref, CodeStatusEnum, ConfigTypeEnum, ConsoleOutput, Contact, ContactTypesEnum, ConversionFactor, CounterBlock, CounterRegister, Country, CountryCodeEnum, CprbOption, CreditBalanceOriginCreditTypeEnum, CreditBalanceRegimeTypeEnum, CteTypeEnum, DEFAULT_LOCALE, type DatabaseConnectionFailedParams, type DatabaseQueryErrorParams, Decimal, DefaultAlphanumericLength, DefaultDecimalLength, DefaultDecimalSeparator, DescriptionStatusEnum, DifalIcmsCategoryEnum, Document, type DocumentRepository, DocumentTypeEnum, DonationIndicatorEnum, EcdSpecializedProfile, EcfSpecializedProfile, EfdContribSpecializedProfile, EfdIcmsIpiSpecializedProfile, Email, EnforceabilityOfISSEnum, Establishment, EstablishmentEvent, Event, EventEnum, FieldDataType, type FieldFormat, type FiltersDocument, FiscalQualificationType, FreightContractedNatureIndicatorEnum, FreightTypeEnum, type GetAuditTaxCollectionQuery, GrossRevenueContributionHeaders, type IAccountingDocumentMongo, type IAddition, type IAddressMongo, type IBaseHeadersDTO, type ICalculationBasisNatureSetting, type IConversionFactor, type IDocumentMongo, type IEcdSpecializedProfile, type IEcfSpecializedProfile, type IEfdContribSpecializedProfile, type IEfdicmsipiAdditionalFields, type IEstablishment, type IEstablishmentEvent, type IGrossRevenueContributionHeader, type IIcmsAdjustmentExtraInfo, type IIcmsAdjustmentSetting, 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 IStartingCreditBalance, type IStateCollectionSettingsRepository, type ITable9, type ITaxMongo, type ITaxTypeConfig, type ITaxTypeConfigBase, type ITaxTypeConfigCreateOrUpdate, type ITaxTypeConfigLog, IcmsAdjustmentGroupEnum, IcmsAdjustmentRegistryEnum, IcmsAdjustmentSetting, IcmsAdjustmentTaxTypeEnum, IcmsAdjustmentTypeEnum, IcmsCalculationIndicatorEnum, 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, MunicipalObligationIdEnum, MunicipalObligationNameEnum, MunicipalObligationTypeEnum, MunicipalRegistration, Municipality, NameCountryEnum, NatureCode, NatureConfig, Numeric, ObligationCodeEnum, OnDuplication, OnDuplicationStrategy, OpenBlock, OperationTypeEnum, OurDate, type OutputWriter, type ParameterTypes, PaymentTypeEnum, Person, PostgresConfig, PostgresRepository, ProductOriginEnum, Profile, ProfileDbRepository, 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, StartingCreditBalance, StartingCreditBalanceTypeEnum, State, StateCollectionSettings, StateCollectionSettingsConfigTypeEnum, StateCollectionSettingsTaxTypeEnum, StateEnum, StateRegistration, StateRegistrationIndicatorEnum, StatusDocumentEnum, StringArrayOutput, TagCounter, Tax, type TaxCollectionDetails, TaxCollectionType, TaxCollectionTypeEnum, TaxRegimeEnum, type TaxRegimes, type TaxRegisterGenerationOptions, TaxRegisterGenerator, TaxReport, TaxTypeEnum, TaxationType, Telephone, Uf, type ValidationInvalidInputParams, type ValidationMissingFieldParams, ValueProviderType, ZfmPresumedCreditTypeEnum, buildMongoFilter, buildMongoFilterToRetainedTax, calculate_bases_values, cleanData, formatMessage, isEmptyObject, keyCompositionMetadata, logWithContext, newRegisterEventData, normalizeServiceCode, onDuplicationStrategyMetadata, parseState, toSafeNumber, validationValue };
|
|
4761
|
+
export { AccountingDocument, ActionTypeEnum, Addition, Address, type AllowedCfopsCreditConfig, Alphanumeric, type AuditTaxCollectionDetails, type AuditTaxCollectionInfo, type AuthTokenExpiredParams, type AuthUnauthorizedParams, Block, BuilderAccountingDocument, BuilderAddition, BuilderAddress, BuilderConversionFactor, BuilderDocument, BuilderImportDeclaration, BuilderItem, BuilderPerson, BuilderTax, CNPJ, CPF, CST, CalculationBasisNatureSetting, type Cloneable, CloseBlock, CloseFile, CodIncTrib, type Cod_ent_ref, CodeStatusEnum, ConfigTypeEnum, ConsoleOutput, Contact, ContactTypesEnum, ConversionFactor, CounterBlock, CounterRegister, Country, CountryCodeEnum, CprbOption, CreditBalanceOriginCreditTypeEnum, CreditBalanceRegimeTypeEnum, CteTypeEnum, DEFAULT_LOCALE, type DatabaseConnectionFailedParams, type DatabaseQueryErrorParams, Decimal, DefaultAlphanumericLength, DefaultDecimalLength, DefaultDecimalSeparator, DescriptionStatusEnum, DifalIcmsCategoryEnum, Document, type DocumentRepository, DocumentTypeEnum, DonationIndicatorEnum, EcdSpecializedProfile, EcfSpecializedProfile, EfdContribSpecializedProfile, EfdIcmsIpiSpecializedProfile, Email, EnforceabilityOfISSEnum, Establishment, EstablishmentEvent, Event, EventEnum, FieldDataType, type FieldFormat, type FiltersDocument, FiscalQualificationType, FreightContractedNatureIndicatorEnum, FreightTypeEnum, type GetAuditTaxCollectionQuery, GrossRevenueContributionHeaders, type IAccountingDocumentMongo, type IAddition, type IAddressMongo, type IBaseHeadersDTO, type ICalculationBasisNatureSetting, type IConversionFactor, type IDocumentMongo, type IEcdSpecializedProfile, type IEcfSpecializedProfile, type IEfdContribSpecializedProfile, type IEfdicmsipiAdditionalFields, type IEstablishment, type IEstablishmentEvent, type IGrossRevenueContributionHeader, type IIcmsAdjustmentExtraInfo, type IIcmsAdjustmentSetting, 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 IStartingCreditBalance, type IStateCollectionSettingsRepository, type ITable9, type ITaxMongo, type ITaxTypeConfig, type ITaxTypeConfigBase, type ITaxTypeConfigCreateOrUpdate, type ITaxTypeConfigLog, IcmsAdjustmentGroupEnum, IcmsAdjustmentRegistryEnum, IcmsAdjustmentSetting, IcmsAdjustmentTaxTypeEnum, IcmsAdjustmentTypeEnum, IcmsCalculationIndicatorEnum, 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, MunicipalObligationIdEnum, MunicipalObligationNameEnum, MunicipalObligationTypeEnum, MunicipalRegistration, Municipality, NameCountryEnum, NatureCode, NatureConfig, Numeric, ObligationCodeEnum, OnDuplication, OnDuplicationStrategy, OpenBlock, OperationTypeEnum, OurDate, type OutputWriter, type ParameterTypes, PaymentTypeEnum, Person, type PisCofinsOptions, PostgresConfig, PostgresRepository, ProductOriginEnum, Profile, ProfileDbRepository, 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, StartingCreditBalance, StartingCreditBalanceTypeEnum, State, StateCollectionSettings, StateCollectionSettingsConfigTypeEnum, StateCollectionSettingsTaxTypeEnum, StateEnum, StateRegistration, StateRegistrationIndicatorEnum, StatusDocumentEnum, StringArrayOutput, TagCounter, Tax, type TaxCollectionDetails, TaxCollectionType, TaxCollectionTypeEnum, TaxRegimeEnum, type TaxRegimes, type TaxRegisterGenerationOptions, TaxRegisterGenerator, TaxReport, TaxTypeEnum, TaxationType, Telephone, Uf, type ValidationInvalidInputParams, type ValidationMissingFieldParams, ValueProviderType, ZERO_PIS_COFINS_BY_CST, ZfmPresumedCreditTypeEnum, buildMongoFilter, buildMongoFilterToRetainedTax, calculate_bases_values, cleanData, formatMessage, isEmptyObject, keyCompositionMetadata, logWithContext, newRegisterEventData, normalizeServiceCode, onDuplicationStrategyMetadata, parseState, toSafeNumber, validationValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -1906,7 +1906,7 @@ declare class BuilderAddress {
|
|
|
1906
1906
|
withNeighborhood(neighborhood: string): BuilderAddress;
|
|
1907
1907
|
withMunicipalityCode(municipality_code: string): BuilderAddress;
|
|
1908
1908
|
withMunicipality(municipality: Municipality): BuilderAddress;
|
|
1909
|
-
withCountryCode(country_code:
|
|
1909
|
+
withCountryCode(country_code: string): BuilderAddress;
|
|
1910
1910
|
withCountry(country: Country): BuilderAddress;
|
|
1911
1911
|
withPostalCode(postal_code: string): BuilderAddress;
|
|
1912
1912
|
withSupplement(supplement: string): BuilderAddress;
|
|
@@ -2057,7 +2057,7 @@ declare class BuilderPerson {
|
|
|
2057
2057
|
withCPF(cpf: string): BuilderPerson;
|
|
2058
2058
|
withName(name: string): BuilderPerson;
|
|
2059
2059
|
withEmail(email: string): BuilderPerson;
|
|
2060
|
-
withStateRegistrationNumber(state_registration_number: string): BuilderPerson;
|
|
2060
|
+
withStateRegistrationNumber(state_registration_number: string, municipalityCode?: string): BuilderPerson;
|
|
2061
2061
|
withMunicipalRegistrationNumber(municipal_registration_number: string): BuilderPerson;
|
|
2062
2062
|
withSuframaRegistrationNumber(suframa_registration_number: string): BuilderPerson;
|
|
2063
2063
|
withStateRegistrationIndicator(state_registration_indicator: StateRegistrationIndicatorEnum): BuilderPerson;
|
|
@@ -2157,9 +2157,14 @@ interface FiltersDocument {
|
|
|
2157
2157
|
fiscal_situation?: CodeStatusEnum | CodeStatusEnum[];
|
|
2158
2158
|
batch_size?: number;
|
|
2159
2159
|
}
|
|
2160
|
+
interface PisCofinsOptions {
|
|
2161
|
+
exclude_non_credit_documents: boolean;
|
|
2162
|
+
zero_pis_cofins_by_cst: boolean;
|
|
2163
|
+
}
|
|
2160
2164
|
interface DocumentRepository {
|
|
2161
2165
|
getAll(filters: FiltersDocument): AsyncIterableIterator<Document>;
|
|
2162
2166
|
getAllAuditingRetainedTax(filters: FiltersDocument): AsyncIterableIterator<Document>;
|
|
2167
|
+
getAllPisCofinsDocuments(filters: FiltersDocument, options: PisCofinsOptions): AsyncIterableIterator<Document>;
|
|
2163
2168
|
}
|
|
2164
2169
|
|
|
2165
2170
|
interface IBaseHeadersDTO {
|
|
@@ -2173,6 +2178,8 @@ declare function calculate_bases_values(percentage: number, value: number): numb
|
|
|
2173
2178
|
|
|
2174
2179
|
declare function normalizeServiceCode(service_code: string): string | undefined;
|
|
2175
2180
|
|
|
2181
|
+
declare const ZERO_PIS_COFINS_BY_CST: string[];
|
|
2182
|
+
|
|
2176
2183
|
interface IDocumentMongo {
|
|
2177
2184
|
_id: any;
|
|
2178
2185
|
active: boolean;
|
|
@@ -2367,12 +2374,14 @@ declare class MongoToDocumentBuilder {
|
|
|
2367
2374
|
private items;
|
|
2368
2375
|
constructor();
|
|
2369
2376
|
newInstance(): MongoToDocumentBuilder;
|
|
2370
|
-
build(document: IDocumentMongo): Document;
|
|
2377
|
+
build(document: IDocumentMongo, exclude_non_credit_documents?: boolean, zero_pis_cofins_by_cst?: boolean): Document;
|
|
2371
2378
|
withPerson(person: IPersonMongo): Person;
|
|
2372
2379
|
withAddress(address: IAddressMongo): Address;
|
|
2373
|
-
withItems(item: IItemMongo): void;
|
|
2380
|
+
withItems(item: IItemMongo, exclude_non_credit_documents?: boolean, zero_pis_cofins_by_cst?: boolean): void;
|
|
2381
|
+
private shouldIncludeItem;
|
|
2374
2382
|
withAccountingDocument(accounting_document: IAccountingDocumentMongo): AccountingDocument;
|
|
2375
|
-
|
|
2383
|
+
private getAdjustedPisCofinsValues;
|
|
2384
|
+
withTax(tax: ITaxMongo, zero_pis_cofins_by_cst?: boolean): Tax;
|
|
2376
2385
|
withImportDeclaration(item: IItemMongo): ImportDeclaration;
|
|
2377
2386
|
withAddition(addition: IAddition): Addition;
|
|
2378
2387
|
withConversionFactor(item: IItemMongo): ConversionFactor;
|
|
@@ -2469,6 +2478,7 @@ declare class MongoRepository implements DocumentRepository {
|
|
|
2469
2478
|
getAll(filters: FiltersDocument): AsyncIterableIterator<Document>;
|
|
2470
2479
|
getAllAuditingRetainedTax(filters: FiltersDocument): AsyncIterableIterator<Document>;
|
|
2471
2480
|
findOne(id: string, tenant_id: string): Promise<Document>;
|
|
2481
|
+
getAllPisCofinsDocuments(filters: FiltersDocument, options: PisCofinsOptions): AsyncIterableIterator<Document>;
|
|
2472
2482
|
}
|
|
2473
2483
|
|
|
2474
2484
|
declare class ModelRollback {
|
|
@@ -2718,6 +2728,8 @@ interface IEfdContribSpecializedProfile {
|
|
|
2718
2728
|
ind_nat_pj: '00' | '01' | '02' | '03' | '04' | '05';
|
|
2719
2729
|
ind_apro_cred?: '1' | '2';
|
|
2720
2730
|
cod_tipo_cont?: '1' | '2';
|
|
2731
|
+
exclude_non_credit_documents?: boolean;
|
|
2732
|
+
zero_pis_cofins_by_cst?: boolean;
|
|
2721
2733
|
ind_reg_cum?: '1' | '2' | '9';
|
|
2722
2734
|
profile_id: string;
|
|
2723
2735
|
profile_alias: string;
|
|
@@ -2922,6 +2934,8 @@ declare class EfdContribSpecializedProfile {
|
|
|
2922
2934
|
protected _cod_atv_econ: string;
|
|
2923
2935
|
protected _aliq_cont: number;
|
|
2924
2936
|
protected _cod_rec: string;
|
|
2937
|
+
protected _exclude_non_credit_documents?: boolean;
|
|
2938
|
+
protected _zero_pis_cofins_by_cst?: boolean;
|
|
2925
2939
|
protected _natureSettings: RevenueNatureSettings[];
|
|
2926
2940
|
protected _calculationBasisNature: CalculationBasisNatureSetting[];
|
|
2927
2941
|
set id(id: string);
|
|
@@ -2938,6 +2952,8 @@ declare class EfdContribSpecializedProfile {
|
|
|
2938
2952
|
set cod_atv_econ(cod_atv_econ: string);
|
|
2939
2953
|
set aliq_cont(aliq_cont: number);
|
|
2940
2954
|
set cod_rec(cod_rec: string);
|
|
2955
|
+
set exclude_non_credit_documents(exclude_non_credit_documents: boolean);
|
|
2956
|
+
set zero_pis_cofins_by_cst(zero_pis_cofins_by_cst: boolean);
|
|
2941
2957
|
set natureSettings(natureSettings: RevenueNatureSettings[]);
|
|
2942
2958
|
set calculationBasisNature(calculationBasisNature: CalculationBasisNatureSetting[]);
|
|
2943
2959
|
get id(): string;
|
|
@@ -2954,6 +2970,8 @@ declare class EfdContribSpecializedProfile {
|
|
|
2954
2970
|
get cod_atv_econ(): string;
|
|
2955
2971
|
get aliq_cont(): number;
|
|
2956
2972
|
get cod_rec(): string;
|
|
2973
|
+
get exclude_non_credit_documents(): boolean;
|
|
2974
|
+
get zero_pis_cofins_by_cst(): boolean;
|
|
2957
2975
|
get natureSettings(): RevenueNatureSettings[];
|
|
2958
2976
|
get calculationBasisNature(): CalculationBasisNatureSetting[];
|
|
2959
2977
|
}
|
|
@@ -4740,4 +4758,4 @@ declare function toSafeNumber(value: unknown, fallback?: number): number;
|
|
|
4740
4758
|
|
|
4741
4759
|
declare function validationValue(field: any): any;
|
|
4742
4760
|
|
|
4743
|
-
export { AccountingDocument, ActionTypeEnum, Addition, Address, type AllowedCfopsCreditConfig, Alphanumeric, type AuditTaxCollectionDetails, type AuditTaxCollectionInfo, type AuthTokenExpiredParams, type AuthUnauthorizedParams, Block, BuilderAccountingDocument, BuilderAddition, BuilderAddress, BuilderConversionFactor, BuilderDocument, BuilderImportDeclaration, BuilderItem, BuilderPerson, BuilderTax, CNPJ, CPF, CST, CalculationBasisNatureSetting, type Cloneable, CloseBlock, CloseFile, CodIncTrib, type Cod_ent_ref, CodeStatusEnum, ConfigTypeEnum, ConsoleOutput, Contact, ContactTypesEnum, ConversionFactor, CounterBlock, CounterRegister, Country, CountryCodeEnum, CprbOption, CreditBalanceOriginCreditTypeEnum, CreditBalanceRegimeTypeEnum, CteTypeEnum, DEFAULT_LOCALE, type DatabaseConnectionFailedParams, type DatabaseQueryErrorParams, Decimal, DefaultAlphanumericLength, DefaultDecimalLength, DefaultDecimalSeparator, DescriptionStatusEnum, DifalIcmsCategoryEnum, Document, type DocumentRepository, DocumentTypeEnum, DonationIndicatorEnum, EcdSpecializedProfile, EcfSpecializedProfile, EfdContribSpecializedProfile, EfdIcmsIpiSpecializedProfile, Email, EnforceabilityOfISSEnum, Establishment, EstablishmentEvent, Event, EventEnum, FieldDataType, type FieldFormat, type FiltersDocument, FiscalQualificationType, FreightContractedNatureIndicatorEnum, FreightTypeEnum, type GetAuditTaxCollectionQuery, GrossRevenueContributionHeaders, type IAccountingDocumentMongo, type IAddition, type IAddressMongo, type IBaseHeadersDTO, type ICalculationBasisNatureSetting, type IConversionFactor, type IDocumentMongo, type IEcdSpecializedProfile, type IEcfSpecializedProfile, type IEfdContribSpecializedProfile, type IEfdicmsipiAdditionalFields, type IEstablishment, type IEstablishmentEvent, type IGrossRevenueContributionHeader, type IIcmsAdjustmentExtraInfo, type IIcmsAdjustmentSetting, 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 IStartingCreditBalance, type IStateCollectionSettingsRepository, type ITable9, type ITaxMongo, type ITaxTypeConfig, type ITaxTypeConfigBase, type ITaxTypeConfigCreateOrUpdate, type ITaxTypeConfigLog, IcmsAdjustmentGroupEnum, IcmsAdjustmentRegistryEnum, IcmsAdjustmentSetting, IcmsAdjustmentTaxTypeEnum, IcmsAdjustmentTypeEnum, IcmsCalculationIndicatorEnum, 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, MunicipalObligationIdEnum, MunicipalObligationNameEnum, MunicipalObligationTypeEnum, MunicipalRegistration, Municipality, NameCountryEnum, NatureCode, NatureConfig, Numeric, ObligationCodeEnum, OnDuplication, OnDuplicationStrategy, OpenBlock, OperationTypeEnum, OurDate, type OutputWriter, type ParameterTypes, PaymentTypeEnum, Person, PostgresConfig, PostgresRepository, ProductOriginEnum, Profile, ProfileDbRepository, 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, StartingCreditBalance, StartingCreditBalanceTypeEnum, State, StateCollectionSettings, StateCollectionSettingsConfigTypeEnum, StateCollectionSettingsTaxTypeEnum, StateEnum, StateRegistration, StateRegistrationIndicatorEnum, StatusDocumentEnum, StringArrayOutput, TagCounter, Tax, type TaxCollectionDetails, TaxCollectionType, TaxCollectionTypeEnum, TaxRegimeEnum, type TaxRegimes, type TaxRegisterGenerationOptions, TaxRegisterGenerator, TaxReport, TaxTypeEnum, TaxationType, Telephone, Uf, type ValidationInvalidInputParams, type ValidationMissingFieldParams, ValueProviderType, ZfmPresumedCreditTypeEnum, buildMongoFilter, buildMongoFilterToRetainedTax, calculate_bases_values, cleanData, formatMessage, isEmptyObject, keyCompositionMetadata, logWithContext, newRegisterEventData, normalizeServiceCode, onDuplicationStrategyMetadata, parseState, toSafeNumber, validationValue };
|
|
4761
|
+
export { AccountingDocument, ActionTypeEnum, Addition, Address, type AllowedCfopsCreditConfig, Alphanumeric, type AuditTaxCollectionDetails, type AuditTaxCollectionInfo, type AuthTokenExpiredParams, type AuthUnauthorizedParams, Block, BuilderAccountingDocument, BuilderAddition, BuilderAddress, BuilderConversionFactor, BuilderDocument, BuilderImportDeclaration, BuilderItem, BuilderPerson, BuilderTax, CNPJ, CPF, CST, CalculationBasisNatureSetting, type Cloneable, CloseBlock, CloseFile, CodIncTrib, type Cod_ent_ref, CodeStatusEnum, ConfigTypeEnum, ConsoleOutput, Contact, ContactTypesEnum, ConversionFactor, CounterBlock, CounterRegister, Country, CountryCodeEnum, CprbOption, CreditBalanceOriginCreditTypeEnum, CreditBalanceRegimeTypeEnum, CteTypeEnum, DEFAULT_LOCALE, type DatabaseConnectionFailedParams, type DatabaseQueryErrorParams, Decimal, DefaultAlphanumericLength, DefaultDecimalLength, DefaultDecimalSeparator, DescriptionStatusEnum, DifalIcmsCategoryEnum, Document, type DocumentRepository, DocumentTypeEnum, DonationIndicatorEnum, EcdSpecializedProfile, EcfSpecializedProfile, EfdContribSpecializedProfile, EfdIcmsIpiSpecializedProfile, Email, EnforceabilityOfISSEnum, Establishment, EstablishmentEvent, Event, EventEnum, FieldDataType, type FieldFormat, type FiltersDocument, FiscalQualificationType, FreightContractedNatureIndicatorEnum, FreightTypeEnum, type GetAuditTaxCollectionQuery, GrossRevenueContributionHeaders, type IAccountingDocumentMongo, type IAddition, type IAddressMongo, type IBaseHeadersDTO, type ICalculationBasisNatureSetting, type IConversionFactor, type IDocumentMongo, type IEcdSpecializedProfile, type IEcfSpecializedProfile, type IEfdContribSpecializedProfile, type IEfdicmsipiAdditionalFields, type IEstablishment, type IEstablishmentEvent, type IGrossRevenueContributionHeader, type IIcmsAdjustmentExtraInfo, type IIcmsAdjustmentSetting, 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 IStartingCreditBalance, type IStateCollectionSettingsRepository, type ITable9, type ITaxMongo, type ITaxTypeConfig, type ITaxTypeConfigBase, type ITaxTypeConfigCreateOrUpdate, type ITaxTypeConfigLog, IcmsAdjustmentGroupEnum, IcmsAdjustmentRegistryEnum, IcmsAdjustmentSetting, IcmsAdjustmentTaxTypeEnum, IcmsAdjustmentTypeEnum, IcmsCalculationIndicatorEnum, 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, MunicipalObligationIdEnum, MunicipalObligationNameEnum, MunicipalObligationTypeEnum, MunicipalRegistration, Municipality, NameCountryEnum, NatureCode, NatureConfig, Numeric, ObligationCodeEnum, OnDuplication, OnDuplicationStrategy, OpenBlock, OperationTypeEnum, OurDate, type OutputWriter, type ParameterTypes, PaymentTypeEnum, Person, type PisCofinsOptions, PostgresConfig, PostgresRepository, ProductOriginEnum, Profile, ProfileDbRepository, 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, StartingCreditBalance, StartingCreditBalanceTypeEnum, State, StateCollectionSettings, StateCollectionSettingsConfigTypeEnum, StateCollectionSettingsTaxTypeEnum, StateEnum, StateRegistration, StateRegistrationIndicatorEnum, StatusDocumentEnum, StringArrayOutput, TagCounter, Tax, type TaxCollectionDetails, TaxCollectionType, TaxCollectionTypeEnum, TaxRegimeEnum, type TaxRegimes, type TaxRegisterGenerationOptions, TaxRegisterGenerator, TaxReport, TaxTypeEnum, TaxationType, Telephone, Uf, type ValidationInvalidInputParams, type ValidationMissingFieldParams, ValueProviderType, ZERO_PIS_COFINS_BY_CST, ZfmPresumedCreditTypeEnum, buildMongoFilter, buildMongoFilterToRetainedTax, calculate_bases_values, cleanData, formatMessage, isEmptyObject, keyCompositionMetadata, logWithContext, newRegisterEventData, normalizeServiceCode, onDuplicationStrategyMetadata, parseState, toSafeNumber, validationValue };
|