@seidor-cloud-produtos/tax-core 1.0.7 → 1.0.9

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
@@ -1,5 +1,4 @@
1
- import { MongoClient } from 'mongodb';
2
- import { PoolConfig } from 'pg';
1
+ import { ClientConfig, Pool } from 'pg';
3
2
 
4
3
  interface Cloneable {
5
4
  clone(): this;
@@ -2041,269 +2040,6 @@ interface DocumentRepository {
2041
2040
  getAll(filters: FiltersDocument): AsyncIterableIterator<Document>;
2042
2041
  }
2043
2042
 
2044
- declare class MongoConfig {
2045
- host: string;
2046
- port: number;
2047
- database: string;
2048
- username?: string;
2049
- password?: string;
2050
- isSrv: boolean;
2051
- maxPoolSize: number;
2052
- minPoolSize: number;
2053
- connectTimeoutMS: number;
2054
- socketTimeoutMS: number;
2055
- /**
2056
- * MongoDB configuration class.
2057
- * @param host - The host of the MongoDB server.
2058
- * @param port - The port of the MongoDB server.
2059
- * @param database - The name of the database to connect to.
2060
- * @param username - Optional username for authentication.
2061
- * @param password - Optional password for authentication.
2062
- * @param isSrv - Whether to use SRV connection string format (default: false).
2063
- * @param maxPoolSize - Maximum number of connections in the pool (default: 20).
2064
- * @param minPoolSize - Minimum number of connections in the pool (default: 5).
2065
- * @param connectTimeoutMS - Connection timeout in milliseconds (default: 10000).
2066
- * @param socketTimeoutMS - Socket timeout in milliseconds (default: 45000).
2067
- */
2068
- constructor(host: string, port: number, database: string, username?: string, password?: string, isSrv?: boolean, maxPoolSize?: number, minPoolSize?: number, connectTimeoutMS?: number, socketTimeoutMS?: number);
2069
- getConnectionString(): string;
2070
- getPoolOptions(): {
2071
- maxPoolSize: number;
2072
- minPoolSize: number;
2073
- connectTimeoutMS: number;
2074
- socketTimeoutMS: number;
2075
- };
2076
- }
2077
- declare class MongoRepository implements DocumentRepository {
2078
- private readonly _client;
2079
- private _isConnected;
2080
- constructor(mongoConfig: MongoConfig);
2081
- private isConnected;
2082
- connect(): Promise<MongoClient>;
2083
- close(): Promise<void>;
2084
- getAll(filters: FiltersDocument): AsyncIterableIterator<Document>;
2085
- findOne(id: string, tenant_id: string): Promise<Document>;
2086
- }
2087
-
2088
- interface IDocumentMongo {
2089
- _id: any;
2090
- active: boolean;
2091
- inactivated_at?: Date;
2092
- branch_id: string;
2093
- tenant_id: string;
2094
- type: DocumentTypeEnum;
2095
- access_key: string;
2096
- replaced_access_key: string;
2097
- verification_code: string;
2098
- subscriber_type_code: string;
2099
- issuance_date: Date;
2100
- release_date: Date;
2101
- due_date: Date;
2102
- payment_date: Date;
2103
- erp_id: string;
2104
- operation_type: OperationTypeEnum;
2105
- payment_type: PaymentTypeEnum;
2106
- revenue_type: RevenueTypeEnum;
2107
- freight_type: FreightTypeEnum;
2108
- additional_information: string;
2109
- model: string;
2110
- number: string;
2111
- accounting_additional_information: string;
2112
- series: string;
2113
- subseries: string;
2114
- cte_type: CteTypeEnum;
2115
- total_amount: number;
2116
- payment_value: number;
2117
- issuer_indicator: IssuerIndicatorEnum;
2118
- rps_number: string;
2119
- issuer: IPersonMongo;
2120
- recipient: IPersonMongo;
2121
- items: IItemMongo[];
2122
- fiscal_situation: CodeStatusEnum;
2123
- erp_integration_status: StatusDocumentEnum;
2124
- manual_entry: boolean;
2125
- created_at?: Date;
2126
- updated_at?: Date;
2127
- created_by_name: string;
2128
- updated_by_name: string;
2129
- created_by_email: string;
2130
- updated_by_email: string;
2131
- }
2132
- interface IPersonMongo {
2133
- name: string;
2134
- cnpj: string;
2135
- cpf: string;
2136
- cnae: string;
2137
- state_registration_number: string;
2138
- municipal_registration_number: string;
2139
- suframa_registration_number: string;
2140
- state_registration_indicator: StateRegistrationIndicatorEnum;
2141
- taxation_regime: TaxRegimeEnum;
2142
- address: IAddressMongo;
2143
- }
2144
- interface IAddressMongo {
2145
- neighborhood: string;
2146
- municipality_code: string;
2147
- country_code: CountryCodeEnum;
2148
- postal_code: string;
2149
- supplement: string;
2150
- state: string;
2151
- street: string;
2152
- number: string;
2153
- telephone: string;
2154
- }
2155
- interface IItemMongo {
2156
- _id: string;
2157
- cfop: string;
2158
- previous_code: string;
2159
- cest_code: string;
2160
- code: string;
2161
- classification_code: string;
2162
- service_activity_code: string;
2163
- account_code: string;
2164
- barcode: string;
2165
- description: string;
2166
- municipal_tax_code: string;
2167
- cost_center_code: string;
2168
- genre_code: string;
2169
- destination_municipality_code: string;
2170
- origin_municipality_code: string;
2171
- iss_incidence_municipality_code: string;
2172
- service_municipality_code: string;
2173
- service_code: string;
2174
- ex_code: string;
2175
- ncm_code: string;
2176
- operation_nature_description: string;
2177
- service_list: ServiceCodeEnum;
2178
- type: ItemTypeEnum;
2179
- number: number;
2180
- stock_unit: string;
2181
- stock_quantity: number;
2182
- total_amount: number;
2183
- commercial_unit: string;
2184
- commercial_quantity: number;
2185
- accessory_expenses_value: number;
2186
- non_taxable_deduction_value: number;
2187
- discount_value: number;
2188
- freight_value: number;
2189
- insurance_value: number;
2190
- third_party_value: number;
2191
- taxes: ITaxMongo[];
2192
- import_declaration: IImportDeclaration;
2193
- conversion_factor: IConversionFactor;
2194
- imported: boolean;
2195
- accounting_value: number;
2196
- }
2197
- interface ITaxMongo {
2198
- _id: string;
2199
- category: TaxTypeEnum;
2200
- rate: number;
2201
- rate_inter: number;
2202
- rate_intra: number;
2203
- classification_code: string;
2204
- product_origin: ProductOriginEnum;
2205
- other_base_value: number;
2206
- exempt_non_taxed_base: number;
2207
- value: number;
2208
- non_taxable_value: number;
2209
- base_amount: number;
2210
- fcp_st_value: number;
2211
- fcp_value: number;
2212
- fcp_base: number;
2213
- fcp_rate: number;
2214
- base_deduction_value: number;
2215
- withholding_tax: boolean;
2216
- customs_expense_value: number;
2217
- value_iof: number;
2218
- triggering_fact: string;
2219
- revenue_code: string;
2220
- enforceability_of_iss: EnforceabilityOfISSEnum;
2221
- increased_rate: number;
2222
- base_fcp_destination: number;
2223
- rate_fcp_destination: number;
2224
- fcp_value_destination: number;
2225
- interstate_icms_tax_rate: number;
2226
- icms_value_origin_uf: number;
2227
- difal_icms_category: DifalIcmsCategoryEnum;
2228
- }
2229
- interface IImportDeclaration {
2230
- number: string;
2231
- code: string;
2232
- pis_amount: number;
2233
- cofins_amount: number;
2234
- drawback_concession_number: string;
2235
- date_registration: Date;
2236
- customs_clearance_location: string;
2237
- customs_clearance_state: string;
2238
- customs_clearance_date: Date;
2239
- international_transport_type: InternationalTransportTypeEnum;
2240
- exporter_code: string;
2241
- afrmm_amount: number;
2242
- intermediation_type: IntermediationTypeEnum;
2243
- acquirer_cnpj: string;
2244
- acquirer_state: string;
2245
- additions: IAddition[];
2246
- }
2247
- interface IAddition {
2248
- number: string;
2249
- addition_sequence_number: string;
2250
- manufacturer_code: string;
2251
- import_discount_amount: number;
2252
- drawback_concession_number: string;
2253
- }
2254
- interface IConversionFactor {
2255
- unit: string;
2256
- multiply: number;
2257
- barcode: string;
2258
- }
2259
-
2260
- declare class MongoToDocumentBuilder {
2261
- private instance;
2262
- private buildPerson;
2263
- private buildAddress;
2264
- private buildItem;
2265
- private buildTax;
2266
- private buildAddition;
2267
- private buildImportDeclaration;
2268
- private buildConversionFactor;
2269
- private items;
2270
- constructor();
2271
- newInstance(): MongoToDocumentBuilder;
2272
- build(document: IDocumentMongo): Document;
2273
- withPerson(person: IPersonMongo): Person;
2274
- withAddress(address: IAddressMongo): Address;
2275
- withItems(item: IItemMongo): void;
2276
- withTax(tax: ITaxMongo): Tax;
2277
- withImportDeclaration(item: IItemMongo): ImportDeclaration;
2278
- withAddition(addition: IAddition): Addition;
2279
- withConversionFactor(item: IItemMongo): ConversionFactor;
2280
- }
2281
-
2282
- declare function buildMongoFilter(filters: FiltersDocument): any;
2283
-
2284
- declare class PostgresConfig {
2285
- host: string;
2286
- port: number;
2287
- database: string;
2288
- user?: string;
2289
- password?: string;
2290
- private readonly _poolConfig;
2291
- /**
2292
- * PostgreSQL configuration class.
2293
- * @param host - The host of the PostgreSQL server.
2294
- * @param port - The port of the PostgreSQL server.
2295
- * @param database - The name of the database to connect to.
2296
- * @param user - Username for authentication.
2297
- * @param password - Password for authentication.
2298
- * @param max - Maximum number of clients in the pool (default: 20).
2299
- * @param idleTimeoutMillis - How long a client is allowed to remain idle before being closed (default: 10000).
2300
- * @param connectionTimeoutMillis - How long to wait for a client from the pool (default: 10000).
2301
- */
2302
- constructor(host: string, port: number, database: string, user?: string, password?: string);
2303
- getPoolConfig(): PoolConfig;
2304
- getConnectionString(): string;
2305
- }
2306
-
2307
2043
  interface IBaseHeadersDTO {
2308
2044
  created_at: Date;
2309
2045
  updated_at: Date;
@@ -2856,6 +2592,7 @@ interface IIcmsAdjustmentSetting {
2856
2592
  tenantid: string;
2857
2593
  profile_id: string;
2858
2594
  establishment_id: string;
2595
+ code: number;
2859
2596
  tax_type: IcmsAdjustmentTaxTypeEnum;
2860
2597
  adjustment_type: IcmsAdjustmentTypeEnum;
2861
2598
  initial_date: string;
@@ -3144,6 +2881,7 @@ declare class IcmsAdjustmentSetting {
3144
2881
  protected _tenantid: string;
3145
2882
  protected _profile_id: string;
3146
2883
  protected _establishment_id: string;
2884
+ protected _code: number;
3147
2885
  protected _tax_type: IcmsAdjustmentTaxTypeEnum;
3148
2886
  protected _adjustment_type: IcmsAdjustmentTypeEnum;
3149
2887
  protected _initial_date: string;
@@ -3162,6 +2900,7 @@ declare class IcmsAdjustmentSetting {
3162
2900
  set tenantid(tenantid: string);
3163
2901
  set profile_id(profile_id: string);
3164
2902
  set establishment_id(establishment_id: string);
2903
+ set code(code: number);
3165
2904
  set tax_type(value: IcmsAdjustmentTaxTypeEnum);
3166
2905
  set adjustment_type(value: IcmsAdjustmentTypeEnum);
3167
2906
  set initial_date(value: string);
@@ -3180,6 +2919,7 @@ declare class IcmsAdjustmentSetting {
3180
2919
  get tenantid(): string;
3181
2920
  get profile_id(): string;
3182
2921
  get establishment_id(): string;
2922
+ get code(): number;
3183
2923
  get tax_type(): IcmsAdjustmentTaxTypeEnum;
3184
2924
  get adjustment_type(): IcmsAdjustmentTypeEnum;
3185
2925
  get initial_date(): string;
@@ -3195,19 +2935,6 @@ declare class IcmsAdjustmentSetting {
3195
2935
  get infos(): IIcmsAdjustmentExtraInfo[];
3196
2936
  }
3197
2937
 
3198
- declare class CNPJ implements IdentificationNumber {
3199
- private readonly _value;
3200
- constructor(cnpj: string);
3201
- private removeInvalidDigits;
3202
- isValid(): boolean;
3203
- get rawValue(): string;
3204
- get formattedValue(): string;
3205
- validationErrors(): string[];
3206
- private allDigitsTheSame;
3207
- private calculateDigit;
3208
- private extractActualDigit;
3209
- }
3210
-
3211
2938
  declare enum SimpleNationalOption {
3212
2939
  SIM = "1",
3213
2940
  NAO = "0"
@@ -3245,6 +2972,36 @@ declare enum FiscalQualificationType {
3245
2972
  OUTROS = "9"
3246
2973
  }
3247
2974
 
2975
+ declare enum StateCollectionSettingsTaxTypeEnum {
2976
+ ICMS = "ICMS",// ICMS
2977
+ ICMS_ST = "ICMS_ST",// ICMS-ST
2978
+ ICMS_SUB_AUDITING = "ICMS_SUB_AUDITING",// ICMS Sub-Apuração
2979
+ DIFAL_FCP = "DIFAL_FCP"
2980
+ }
2981
+
2982
+ declare enum StateCollectionSettingsConfigTypeEnum {
2983
+ TAX_TO_COLLECTED = "TAX_TO_COLLECTED",// Imposto a Recolher
2984
+ EXTRA_VALUE_CALCULATION = "EXTRA_VALUE_CALCULATION"
2985
+ }
2986
+
2987
+ declare enum TaxCollectionTypeEnum {
2988
+ OPERATION = "OPERATION",// Operação
2989
+ APURATION = "APURATION"
2990
+ }
2991
+
2992
+ declare class CNPJ implements IdentificationNumber {
2993
+ private readonly _value;
2994
+ constructor(cnpj: string);
2995
+ private removeInvalidDigits;
2996
+ isValid(): boolean;
2997
+ get rawValue(): string;
2998
+ get formattedValue(): string;
2999
+ validationErrors(): string[];
3000
+ private allDigitsTheSame;
3001
+ private calculateDigit;
3002
+ private extractActualDigit;
3003
+ }
3004
+
3248
3005
  declare class EstablishmentEvent {
3249
3006
  protected _special_situation: '0' | '1' | '2' | '3' | '4' | '5' | '6';
3250
3007
  protected _situation_date: Date;
@@ -3370,6 +3127,84 @@ declare class Signatory {
3370
3127
  get tenantid(): string | undefined;
3371
3128
  }
3372
3129
 
3130
+ declare class StateCollectionSettings {
3131
+ protected _id: string;
3132
+ protected _tenantid: string;
3133
+ protected _active: boolean;
3134
+ protected _inactivation_date?: Date;
3135
+ protected _tax_type: string;
3136
+ protected _config_type: string;
3137
+ protected _obligation_code: string;
3138
+ protected _due_date: number;
3139
+ protected _revenue_code: string;
3140
+ protected _uf?: string;
3141
+ protected _config_fcp: boolean;
3142
+ protected _obligation_code_fcp?: string;
3143
+ protected _due_date_fcp?: number;
3144
+ protected _revenue_code_fcp?: string;
3145
+ protected _tax_collection_type?: string;
3146
+ protected _judicial_process_id?: string;
3147
+ protected _judicial_process_number?: string;
3148
+ protected _judicial_process_description?: string;
3149
+ protected _judicial_process_origin_indicator?: string;
3150
+ protected _created_at: Date;
3151
+ protected _updated_at: Date;
3152
+ protected _created_by_name: string;
3153
+ protected _created_by_email: string;
3154
+ protected _updated_by_name: string;
3155
+ protected _updated_by_email: string;
3156
+ set id(id: string);
3157
+ set tenantid(tenantid: string);
3158
+ set active(active: boolean);
3159
+ set inactivation_date(inactivation_date: Date | undefined);
3160
+ set tax_type(tax_type: string);
3161
+ set config_type(config_type: string);
3162
+ set obligation_code(obligation_code: string);
3163
+ set due_date(due_date: number);
3164
+ set revenue_code(revenue_code: string);
3165
+ set uf(uf: string | undefined);
3166
+ set config_fcp(config_fcp: boolean);
3167
+ set obligation_code_fcp(obligation_code_fcp: string | undefined);
3168
+ set due_date_fcp(due_date_fcp: number | undefined);
3169
+ set revenue_code_fcp(revenue_code_fcp: string | undefined);
3170
+ set tax_collection_type(tax_collection_type: string | undefined);
3171
+ set judicial_process_id(judicial_process_id: string | undefined);
3172
+ set judicial_process_number(judicial_process_number: string | undefined);
3173
+ set judicial_process_description(judicial_process_description: number | undefined);
3174
+ set judicial_process_origin_indicator(judicial_process_origin_indicator: string | undefined);
3175
+ set created_at(created_at: Date);
3176
+ set updated_at(updated_at: Date);
3177
+ set created_by_name(created_by_name: string);
3178
+ set created_by_email(created_by_email: string);
3179
+ set updated_by_name(updated_by_name: string);
3180
+ set updated_by_email(updated_by_email: string);
3181
+ get id(): string;
3182
+ get tenantid(): string;
3183
+ get active(): boolean;
3184
+ get inactivation_date(): Date | undefined;
3185
+ get tax_type(): string;
3186
+ get config_type(): string;
3187
+ get obligation_code(): string;
3188
+ get due_date(): number;
3189
+ get revenue_code(): string;
3190
+ get uf(): string | undefined;
3191
+ get config_fcp(): boolean;
3192
+ get obligation_code_fcp(): string | undefined;
3193
+ get due_date_fcp(): number | undefined;
3194
+ get revenue_code_fcp(): string | undefined;
3195
+ get tax_collection_type(): string | undefined;
3196
+ get judicial_process_id(): string | undefined;
3197
+ get judicial_process_number(): string | undefined;
3198
+ get judicial_process_description(): string | undefined;
3199
+ get judicial_process_origin_indicator(): string | undefined;
3200
+ get created_at(): Date;
3201
+ get updated_at(): Date;
3202
+ get created_by_name(): string;
3203
+ get created_by_email(): string;
3204
+ get updated_by_name(): string;
3205
+ get updated_by_email(): string;
3206
+ }
3207
+
3373
3208
  declare class Establishment {
3374
3209
  protected _alias: string;
3375
3210
  protected _tenantid: string;
@@ -3389,6 +3224,7 @@ declare class Establishment {
3389
3224
  protected _signatories: Signatory[];
3390
3225
  protected _scps: Scp[];
3391
3226
  protected _events: EstablishmentEvent[];
3227
+ protected _stateCollectionsSettings: StateCollectionSettings[];
3392
3228
  get alias(): string;
3393
3229
  set alias(alias: string);
3394
3230
  set tenantid(tenantid: string);
@@ -3425,6 +3261,9 @@ declare class Establishment {
3425
3261
  get scps(): Scp[];
3426
3262
  set events(events: EstablishmentEvent[]);
3427
3263
  get events(): EstablishmentEvent[];
3264
+ set stateCollectionSettings(stateCollectionSettings: StateCollectionSettings[]);
3265
+ get stateCollectionSettings(): StateCollectionSettings[];
3266
+ getStateCollectionSettingsByTaxType(tax_type: StateCollectionSettingsTaxTypeEnum): StateCollectionSettings;
3428
3267
  }
3429
3268
 
3430
3269
  interface IReinfAdditionalFields {
@@ -3726,6 +3565,10 @@ interface IProfileRepository {
3726
3565
  getProfileById(profile_id: string, tenantid: string, period?: string): Promise<Profile>;
3727
3566
  }
3728
3567
 
3568
+ interface IStateCollectionSettingsRepository {
3569
+ getStateCollectionSettings(establishment_id: string, tenantid: string): Promise<StateCollectionSettings[]>;
3570
+ }
3571
+
3729
3572
  interface IProfile {
3730
3573
  validFrom: string;
3731
3574
  alias: string;
@@ -3819,8 +3662,10 @@ interface IEstablishmentEvent {
3819
3662
 
3820
3663
  declare class ProfileRestRepository implements IProfileRepository {
3821
3664
  private readonly urls;
3822
- constructor(urls: IProfileServiceUrls);
3665
+ private readonly stateSettingsRepository;
3666
+ constructor(urls: IProfileServiceUrls, stateSettingsRepository: IStateCollectionSettingsRepository);
3823
3667
  getProfileById(profile_id: string, tenantid: string, period?: any): Promise<Profile>;
3668
+ private getStateCollectionSettings;
3824
3669
  getProfileRestById(profile_id: string, tenantid: string): Promise<IProfile>;
3825
3670
  getProfileByBranchId(branch_id: string, tenantid: string): Promise<IProfile[]>;
3826
3671
  getEstablishmentByProfileId(profile_id: string, tenantid: string): Promise<Establishment[]>;
@@ -3897,6 +3742,83 @@ interface IEcfSpecializedProfile {
3897
3742
  tenantid: string;
3898
3743
  }
3899
3744
 
3745
+ declare class MongoConfig {
3746
+ host: string;
3747
+ port: number;
3748
+ database: string;
3749
+ username?: string;
3750
+ password?: string;
3751
+ isSrv: boolean;
3752
+ maxPoolSize: number;
3753
+ minPoolSize: number;
3754
+ connectTimeoutMS: number;
3755
+ socketTimeoutMS: number;
3756
+ /**
3757
+ * MongoDB configuration class.
3758
+ * @param host - The host of the MongoDB server.
3759
+ * @param port - The port of the MongoDB server.
3760
+ * @param database - The name of the database to connect to.
3761
+ * @param username - Optional username for authentication.
3762
+ * @param password - Optional password for authentication.
3763
+ * @param isSrv - Whether to use SRV connection string format (default: false).
3764
+ * @param maxPoolSize - Maximum number of connections in the pool (default: 20).
3765
+ * @param minPoolSize - Minimum number of connections in the pool (default: 5).
3766
+ * @param connectTimeoutMS - Connection timeout in milliseconds (default: 10000).
3767
+ * @param socketTimeoutMS - Socket timeout in milliseconds (default: 45000).
3768
+ */
3769
+ constructor(host: string, port: number, database: string, username?: string, password?: string, isSrv?: boolean, maxPoolSize?: number, minPoolSize?: number, connectTimeoutMS?: number, socketTimeoutMS?: number);
3770
+ getConnectionString(): string;
3771
+ getPoolOptions(): {
3772
+ maxPoolSize: number;
3773
+ minPoolSize: number;
3774
+ connectTimeoutMS: number;
3775
+ socketTimeoutMS: number;
3776
+ };
3777
+ }
3778
+
3779
+ declare class PostgresConfig {
3780
+ config: {
3781
+ user: string;
3782
+ host: string;
3783
+ database: string;
3784
+ password: string;
3785
+ port: number;
3786
+ ssl?: {
3787
+ rejectUnauthorized: boolean;
3788
+ };
3789
+ };
3790
+ /**
3791
+ * PostgresDB configuration class.
3792
+ * @param user - The username for authentication.
3793
+ * @param host - The host of the PostgresDB server.
3794
+ * @param database - The name of the database to connect to.
3795
+ * @param password - The password for authentication.
3796
+ * @param port - The port of the PostgresDB server.
3797
+ * @param ssl - The ssl connection of the PostgresDB server.
3798
+ */
3799
+ constructor(config: {
3800
+ user: string;
3801
+ host: string;
3802
+ database: string;
3803
+ password: string;
3804
+ port: number;
3805
+ ssl?: {
3806
+ rejectUnauthorized: boolean;
3807
+ };
3808
+ });
3809
+ getConnection(): ClientConfig;
3810
+ }
3811
+
3812
+ declare class PostgresRepository implements IStateCollectionSettingsRepository {
3813
+ private readonly _client;
3814
+ private _isConnected;
3815
+ constructor(postgresConfig: PostgresConfig);
3816
+ private isConnected;
3817
+ connect(): Promise<Pool>;
3818
+ close(): Promise<void>;
3819
+ getStateCollectionSettings(establishment_id: string, tenantid: string): Promise<StateCollectionSettings[]>;
3820
+ }
3821
+
3900
3822
  interface ProfileDbRepositoryConfig {
3901
3823
  taxServiceDb: PostgresConfig;
3902
3824
  efdContribDb?: MongoConfig;
@@ -4323,4 +4245,4 @@ declare function logWithContext<T extends MessageCodeType>(messageCode: T, param
4323
4245
  actionSuggestion: string;
4324
4246
  };
4325
4247
 
4326
- export { ActionTypeEnum, Addition, Address, type AllowedCfopsCreditConfig, Alphanumeric, type AuditTaxCollectionDetails, type AuditTaxCollectionInfo, type AuthTokenExpiredParams, type AuthUnauthorizedParams, Block, BuilderAddition, BuilderAddress, BuilderConversionFactor, BuilderDocument, BuilderImportDeclaration, BuilderItem, BuilderPerson, BuilderTax, CNPJ, CPF, CST, CalculationBasisNatureSetting, type Cloneable, CloseBlock, CloseFile, CodIncTrib, type Cod_ent_ref, CodeStatusEnum, ConfigTypeEnum, ConsoleOutput, ConversionFactor, CounterBlock, CounterRegister, CountryCodeEnum, CprbOption, 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 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 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, Municipality, NameCountryEnum, NatureCode, NatureConfig, Numeric, ObligationCodeEnum, OnDuplication, OnDuplicationStrategy, OpenBlock, OperationTypeEnum, OurDate, type OutputWriter, type ParameterTypes, PaymentTypeEnum, Person, PostgresConfig, 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, State, StateEnum, StateRegistrationIndicatorEnum, StatusDocumentEnum, StringArrayOutput, TagCounter, Tax, type TaxCollectionDetails, TaxCollectionType, TaxRegimeEnum, type TaxRegimes, type TaxRegisterGenerationOptions, TaxRegisterGenerator, TaxReport, TaxTypeEnum, TaxationType, Uf, type ValidationInvalidInputParams, type ValidationMissingFieldParams, ValueProviderType, ZfmPresumedCreditTypeEnum, buildMongoFilter, calculate_bases_values, formatMessage, keyCompositionMetadata, logWithContext, newRegisterEventData, normalizeServiceCode, onDuplicationStrategyMetadata, parseState };
4248
+ export { ActionTypeEnum, Addition, Address, type AllowedCfopsCreditConfig, Alphanumeric, type AuditTaxCollectionDetails, type AuditTaxCollectionInfo, type AuthTokenExpiredParams, type AuthUnauthorizedParams, Block, BuilderAddition, BuilderAddress, BuilderConversionFactor, BuilderDocument, BuilderImportDeclaration, BuilderItem, BuilderPerson, BuilderTax, CNPJ, CPF, CST, CalculationBasisNatureSetting, type Cloneable, CloseBlock, CloseFile, CodIncTrib, type Cod_ent_ref, CodeStatusEnum, ConfigTypeEnum, ConsoleOutput, ConversionFactor, CounterBlock, CounterRegister, CountryCodeEnum, CprbOption, 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 IBaseHeadersDTO, type ICalculationBasisNatureSetting, type IEcdSpecializedProfile, type IEcfSpecializedProfile, type IEfdContribSpecializedProfile, type IEfdicmsipiAdditionalFields, type IEstablishment, type IEstablishmentEvent, type IGrossRevenueContributionHeader, type IIcmsAdjustmentExtraInfo, type IIcmsAdjustmentSetting, type IIcmsCreditBaseConfig, type IIcmsCreditConfigLog, type IJudicialProcess, type INatureConfig, type INatureOfIncomeBusinessPartner, type IProfile, type IProfileRepository, type IProfileServiceUrls, type IReinfAdditionalFields, type IRevenueNatureSettings, type IScp, type ISignatory, type IStateCollectionSettingsRepository, type ITable9, 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, MunicipalObligation, MunicipalObligationIdEnum, MunicipalObligationNameEnum, MunicipalObligationTypeEnum, 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, State, StateCollectionSettings, StateCollectionSettingsConfigTypeEnum, StateCollectionSettingsTaxTypeEnum, StateEnum, StateRegistrationIndicatorEnum, StatusDocumentEnum, StringArrayOutput, TagCounter, Tax, type TaxCollectionDetails, TaxCollectionType, TaxCollectionTypeEnum, TaxRegimeEnum, type TaxRegimes, type TaxRegisterGenerationOptions, TaxRegisterGenerator, TaxReport, TaxTypeEnum, TaxationType, Uf, type ValidationInvalidInputParams, type ValidationMissingFieldParams, ValueProviderType, ZfmPresumedCreditTypeEnum, calculate_bases_values, formatMessage, keyCompositionMetadata, logWithContext, newRegisterEventData, normalizeServiceCode, onDuplicationStrategyMetadata, parseState };