@taxora/sdk 1.5.0 → 1.7.0
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/CHANGELOG.md +34 -0
- package/README.md +50 -0
- package/dist/index.cjs +242 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +154 -2
- package/dist/index.d.ts +154 -2
- package/dist/index.js +240 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1166,6 +1166,15 @@ interface SmartEnrichmentRejectedCandidate {
|
|
|
1166
1166
|
vatNumber: string;
|
|
1167
1167
|
reason: SmartEnrichmentRejectionReason;
|
|
1168
1168
|
}
|
|
1169
|
+
/** Where a Smart Enrichment `taxNumber` comes from. */
|
|
1170
|
+
type SmartEnrichmentTaxNumberSource = 'vat_id' | 'company_website';
|
|
1171
|
+
/** The registered address the official VAT check returned, field by field. */
|
|
1172
|
+
interface SmartEnrichmentOfficialAddress {
|
|
1173
|
+
street?: string;
|
|
1174
|
+
postal_code?: string;
|
|
1175
|
+
city?: string;
|
|
1176
|
+
country?: string;
|
|
1177
|
+
}
|
|
1169
1178
|
/**
|
|
1170
1179
|
* Result of resolving one reverse-VAT lookup (company name + address → VAT + confidence).
|
|
1171
1180
|
* Mirrors the API response item shape (camelCase keys).
|
|
@@ -1211,6 +1220,37 @@ declare class SmartEnrichmentResource {
|
|
|
1211
1220
|
* pass that found the same number contributes its page. At most 5.
|
|
1212
1221
|
*/
|
|
1213
1222
|
readonly sourceUrls: string[];
|
|
1223
|
+
/**
|
|
1224
|
+
* The company's LOCAL tax / business number, national notation without spaces — what domestic
|
|
1225
|
+
* e-invoicing asks for. On `found` it is read off the confirmed VAT ID where that country's VAT ID
|
|
1226
|
+
* contains it (`taxNumberSource` 'vat_id': FR SIREN, IT Partita IVA, ES NIF, PL NIP, BE enterprise
|
|
1227
|
+
* number, DK CVR, PT, RO, CZ IČO, SK DIČ, SE/NO orgnr, FI Y-tunnus, SI, HR OIB, BG EIK, GR AFM).
|
|
1228
|
+
* Otherwise a domestic number the company itself published ('company_website', e.g. a DE/AT
|
|
1229
|
+
* Steuernummer) — that one is not a VAT ID.
|
|
1230
|
+
*/
|
|
1231
|
+
readonly taxNumber: string | undefined;
|
|
1232
|
+
/** Only on `found`: the tax authority's verdict on the number; undefined when no official check ran. */
|
|
1233
|
+
readonly vatValid: boolean | undefined;
|
|
1234
|
+
/** Only on `found`: 0–100, the requested name against the register's; undefined when no name was disclosed. */
|
|
1235
|
+
readonly aiScore: number | undefined;
|
|
1236
|
+
/**
|
|
1237
|
+
* Only on `found`: 'ok' (name matches the register) or 'mismatch' (it does not — another company,
|
|
1238
|
+
* unless `registeredOwner` is set: then update your record).
|
|
1239
|
+
*/
|
|
1240
|
+
readonly nameMatch: 'ok' | 'mismatch' | undefined;
|
|
1241
|
+
/** Only on `found`: the name the register has the number under. */
|
|
1242
|
+
readonly officialName: string | undefined;
|
|
1243
|
+
/** Only on `found`: the registered address, field by field. */
|
|
1244
|
+
readonly officialAddress: SmartEnrichmentOfficialAddress | undefined;
|
|
1245
|
+
/** What `taxNumber` is, e.g. 'pl_nip', 'fr_siren', 'de_steuernummer'. Undefined when there is none. */
|
|
1246
|
+
readonly taxNumberType: string | undefined;
|
|
1247
|
+
/** The number's name in its country (SIREN, NIP, Steuernummer …), for display. */
|
|
1248
|
+
readonly taxNumberLabel: string | undefined;
|
|
1249
|
+
/**
|
|
1250
|
+
* Where `taxNumber` comes from: 'vat_id' (read off the VAT ID the tax authority confirmed — exact)
|
|
1251
|
+
* or 'company_website' (published by the company itself, not officially confirmable).
|
|
1252
|
+
*/
|
|
1253
|
+
readonly taxNumberSource: SmartEnrichmentTaxNumberSource | undefined;
|
|
1214
1254
|
constructor(status: SmartEnrichmentStatus, vatNumber: string | undefined, vatType: string | undefined, confidence: number | undefined, matchedCompanyName: string | undefined,
|
|
1215
1255
|
/** Official/registered address of the matched company, when available. */
|
|
1216
1256
|
matchedAddress: string | undefined, country: string | undefined, source: string | undefined,
|
|
@@ -1243,7 +1283,40 @@ declare class SmartEnrichmentResource {
|
|
|
1243
1283
|
* Only on `found`: every page the VAT number was read from, `sourceUrl` first — each research
|
|
1244
1284
|
* pass that found the same number contributes its page. At most 5.
|
|
1245
1285
|
*/
|
|
1246
|
-
sourceUrls?: string[]
|
|
1286
|
+
sourceUrls?: string[],
|
|
1287
|
+
/**
|
|
1288
|
+
* The company's LOCAL tax / business number, national notation without spaces — what domestic
|
|
1289
|
+
* e-invoicing asks for. On `found` it is read off the confirmed VAT ID where that country's VAT ID
|
|
1290
|
+
* contains it (`taxNumberSource` 'vat_id': FR SIREN, IT Partita IVA, ES NIF, PL NIP, BE enterprise
|
|
1291
|
+
* number, DK CVR, PT, RO, CZ IČO, SK DIČ, SE/NO orgnr, FI Y-tunnus, SI, HR OIB, BG EIK, GR AFM).
|
|
1292
|
+
* Otherwise a domestic number the company itself published ('company_website', e.g. a DE/AT
|
|
1293
|
+
* Steuernummer) — that one is not a VAT ID.
|
|
1294
|
+
*/
|
|
1295
|
+
taxNumber?: string | undefined,
|
|
1296
|
+
/** Only on `found`: the tax authority's verdict on the number; undefined when no official check ran. */
|
|
1297
|
+
vatValid?: boolean | undefined,
|
|
1298
|
+
/** Only on `found`: 0–100, the requested name against the register's; undefined when no name was disclosed. */
|
|
1299
|
+
aiScore?: number | undefined,
|
|
1300
|
+
/**
|
|
1301
|
+
* Only on `found`: 'ok' (name matches the register) or 'mismatch' (it does not — another company,
|
|
1302
|
+
* unless `registeredOwner` is set: then update your record).
|
|
1303
|
+
*/
|
|
1304
|
+
nameMatch?: 'ok' | 'mismatch' | undefined,
|
|
1305
|
+
/** Only on `found`: the name the register has the number under. */
|
|
1306
|
+
officialName?: string | undefined,
|
|
1307
|
+
/** Only on `found`: the registered address, field by field. */
|
|
1308
|
+
officialAddress?: SmartEnrichmentOfficialAddress | undefined,
|
|
1309
|
+
/** What `taxNumber` is, e.g. 'pl_nip', 'fr_siren', 'de_steuernummer'. Undefined when there is none. */
|
|
1310
|
+
taxNumberType?: string | undefined,
|
|
1311
|
+
/** The number's name in its country (SIREN, NIP, Steuernummer …), for display. */
|
|
1312
|
+
taxNumberLabel?: string | undefined,
|
|
1313
|
+
/**
|
|
1314
|
+
* Where `taxNumber` comes from: 'vat_id' (read off the VAT ID the tax authority confirmed — exact)
|
|
1315
|
+
* or 'company_website' (published by the company itself, not officially confirmable).
|
|
1316
|
+
*/
|
|
1317
|
+
taxNumberSource?: SmartEnrichmentTaxNumberSource | undefined);
|
|
1318
|
+
/** True when the register knows the number under a different name than the one requested. */
|
|
1319
|
+
nameMismatch(): boolean;
|
|
1247
1320
|
/** True when a VAT number was found but rejected by the official check. */
|
|
1248
1321
|
hasRejectedCandidates(): boolean;
|
|
1249
1322
|
static fromArray(data: Record<string, unknown>): SmartEnrichmentResource;
|
|
@@ -1673,6 +1746,72 @@ declare class VatValidationAddressInput {
|
|
|
1673
1746
|
toArray(): Record<string, string>;
|
|
1674
1747
|
}
|
|
1675
1748
|
|
|
1749
|
+
/** Columns of the local tax numbers report. */
|
|
1750
|
+
type Column = 'companyName' | 'requestedName' | 'country' | 'vatNumber' | 'vatStatus' | 'taxNumber' | 'taxNumberName' | 'taxNumberSource' | 'source' | 'checkedAt' | 'checkId';
|
|
1751
|
+
/**
|
|
1752
|
+
* One company of the local tax numbers report: every company checked (VAT checks and Smart
|
|
1753
|
+
* Enrichment) once, with its local tax number. Empty cells come back as null.
|
|
1754
|
+
*/
|
|
1755
|
+
declare class LocalTaxNumberRow {
|
|
1756
|
+
readonly companyName: string | null;
|
|
1757
|
+
/** The name you submitted, when it differs from the registered one. */
|
|
1758
|
+
readonly requestedName: string | null;
|
|
1759
|
+
readonly country: string | null;
|
|
1760
|
+
readonly vatNumber: string | null;
|
|
1761
|
+
/** 'valid' | 'invalid' | 'unconfirmed' | 'wrong_company' | 'no_vat_id' | 'not_found' */
|
|
1762
|
+
readonly vatStatus: string | null;
|
|
1763
|
+
/** The company's local tax / business number (NIP, SIREN, Partita IVA, Steuernummer …). */
|
|
1764
|
+
readonly taxNumber: string | null;
|
|
1765
|
+
/** The number's national name, e.g. 'NIP', 'SIREN', 'Steuernummer'. */
|
|
1766
|
+
readonly taxNumberName: string | null;
|
|
1767
|
+
/** 'vat_id' (read off the confirmed VAT ID) | 'company_website' (published by the company). */
|
|
1768
|
+
readonly taxNumberSource: string | null;
|
|
1769
|
+
/** 'vat_check' | 'smart_enrichment' */
|
|
1770
|
+
readonly source: string | null;
|
|
1771
|
+
readonly checkedAt: string | null;
|
|
1772
|
+
/** The VAT check uuid or the Smart Enrichment job id. */
|
|
1773
|
+
readonly checkId: string | null;
|
|
1774
|
+
constructor(companyName: string | null,
|
|
1775
|
+
/** The name you submitted, when it differs from the registered one. */
|
|
1776
|
+
requestedName: string | null, country: string | null, vatNumber: string | null,
|
|
1777
|
+
/** 'valid' | 'invalid' | 'unconfirmed' | 'wrong_company' | 'no_vat_id' | 'not_found' */
|
|
1778
|
+
vatStatus: string | null,
|
|
1779
|
+
/** The company's local tax / business number (NIP, SIREN, Partita IVA, Steuernummer …). */
|
|
1780
|
+
taxNumber: string | null,
|
|
1781
|
+
/** The number's national name, e.g. 'NIP', 'SIREN', 'Steuernummer'. */
|
|
1782
|
+
taxNumberName: string | null,
|
|
1783
|
+
/** 'vat_id' (read off the confirmed VAT ID) | 'company_website' (published by the company). */
|
|
1784
|
+
taxNumberSource: string | null,
|
|
1785
|
+
/** 'vat_check' | 'smart_enrichment' */
|
|
1786
|
+
source: string | null, checkedAt: string | null,
|
|
1787
|
+
/** The VAT check uuid or the Smart Enrichment job id. */
|
|
1788
|
+
checkId: string | null);
|
|
1789
|
+
/** One CSV row keyed by column name. */
|
|
1790
|
+
static fromArray(data: Record<string, unknown>): LocalTaxNumberRow;
|
|
1791
|
+
toArray(): Record<Column, string | null>;
|
|
1792
|
+
}
|
|
1793
|
+
/** How many companies the local tax numbers report would list, and how many have a tax number. */
|
|
1794
|
+
interface LocalTaxNumberSummary {
|
|
1795
|
+
companies: number;
|
|
1796
|
+
withTaxNumber: number;
|
|
1797
|
+
}
|
|
1798
|
+
/** Filters of the local tax numbers report. All optional. */
|
|
1799
|
+
interface LocalTaxNumberReportOptions {
|
|
1800
|
+
/** Y-m-d string or Date. */
|
|
1801
|
+
dateFrom?: Date | string;
|
|
1802
|
+
/** Y-m-d string or Date. */
|
|
1803
|
+
dateTo?: Date | string;
|
|
1804
|
+
/** ISO 3166-1 alpha-2 codes. */
|
|
1805
|
+
countries?: string[];
|
|
1806
|
+
/** Skip companies without a local tax number (report only; the summary counts both). */
|
|
1807
|
+
onlyWithTaxNumber?: boolean;
|
|
1808
|
+
}
|
|
1809
|
+
/**
|
|
1810
|
+
* Parses a local tax numbers CSV (as returned by `localTaxNumbersCsv()`) into rows: BOM dropped,
|
|
1811
|
+
* cells trimmed (incl. the Excel TAB guard), empty cells null.
|
|
1812
|
+
*/
|
|
1813
|
+
declare function parseLocalTaxNumbersCsv(csv: string): LocalTaxNumberRow[];
|
|
1814
|
+
|
|
1676
1815
|
declare const Language: {
|
|
1677
1816
|
readonly ENGLISH: "en";
|
|
1678
1817
|
readonly GERMAN: "de";
|
|
@@ -1697,6 +1836,19 @@ declare class VatEndpoint {
|
|
|
1697
1836
|
certificatesListExport(fromDate: Date | string, toDate: Date | string, countries?: string[], lang?: Language): Promise<VatCertificateExport>;
|
|
1698
1837
|
private exportRequest;
|
|
1699
1838
|
downloadBulkExport(exportId: string): Promise<Uint8Array>;
|
|
1839
|
+
/**
|
|
1840
|
+
* Local tax numbers report as raw CSV (UTF-8 with BOM, comma-separated): every company checked —
|
|
1841
|
+
* single and bulk VAT checks and Smart Enrichment lookups — once, with its local tax number
|
|
1842
|
+
* (taxNumber, taxNumberName, taxNumberSource). Digit-only taxNumber cells carry a leading TAB so
|
|
1843
|
+
* Excel keeps them as text; `localTaxNumbers()` strips it for you.
|
|
1844
|
+
*/
|
|
1845
|
+
localTaxNumbersCsv(options?: LocalTaxNumberReportOptions): Promise<string>;
|
|
1846
|
+
/** The local tax numbers report, parsed: one row per company (same filters as `localTaxNumbersCsv()`). */
|
|
1847
|
+
localTaxNumbers(options?: LocalTaxNumberReportOptions): Promise<LocalTaxNumberRow[]>;
|
|
1848
|
+
/** How many companies the report would list for the filters, and how many have a tax number. */
|
|
1849
|
+
localTaxNumbersSummary(options?: Omit<LocalTaxNumberReportOptions, 'onlyWithTaxNumber'>): Promise<LocalTaxNumberSummary>;
|
|
1850
|
+
private localTaxNumbersParams;
|
|
1851
|
+
private withQuery;
|
|
1700
1852
|
private buildHeaders;
|
|
1701
1853
|
private sendRequest;
|
|
1702
1854
|
private sendBinaryRequest;
|
|
@@ -1974,4 +2126,4 @@ declare class AuthRetryHttpClient implements HttpClientInterface {
|
|
|
1974
2126
|
private injectAuthHeader;
|
|
1975
2127
|
}
|
|
1976
2128
|
|
|
1977
|
-
export { ApiVersion, AuthEndpoint, AuthRetryHttpClient, AuthenticationException, CompanyAddress, CompanyEndpoint, type CompanyResource, ComplianceDocumentType, ComplianceEnrollment, ComplianceEnrollmentPage, ComplianceEnrollmentStatus, type ComplianceEnterpriseSize, type ComplianceInvoiceLineInput, type ComplianceInvoiceTaxInput, type ComplianceLedgerStateChangedEvent, type ComplianceLedgerWebhookObject, type ComplianceRequestService, ComplianceService, ComplianceTaxReport, ComplianceTaxReportPage, type ComplianceTaxReportRequestState, ComplianceTaxReportState, ComplianceTransaction, type ComplianceTransactionBuyerInput, type ComplianceTransactionFilters, type ComplianceTransactionInvoiceLine, type ComplianceTransactionInvoiceLineTax, ComplianceTransactionPage, type ComplianceTransactionRequestState, type ComplianceTransactionRequestType, ComplianceTransactionState, type ComplianceTransactionStateChangedEvent, ComplianceTransactionType, type ComplianceTransactionWebhookObject, type ComplianceTypeOperation, type CreateComplianceEnrollmentInput, type CreateComplianceTransactionInput, type CreateNorwayEnrollmentInput, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type EReportingAccessRequestInput, EReportingEndpoint, type EReportingInterval, type EnrichmentCompletedEvent, type EnrichmentCompletedWebhookObject, type EnrichmentUpdatedEvent, type EnrichmentUpdatedWebhookObject, Environment, Environment as EnvironmentType, FetchHttpClient, type HttpClientInterface, HttpException, ImportResult, InMemoryTokenStorage, Language, LoginIdentifier, type NorwayEnrollmentInput, NorwegianOrgNumber, type ParsedWebhookSignatureHeader, PeppolLookupResult, PeppolLookupStatus, ProviderDocument, ProviderDocumentLine, RegistryCompany, RetryPolicy, type RetryPolicyOptions, type RevenueCountryBreakdown, type RevenueCurrencyBreakdown, type RevenueStateBreakdown, RevenueStatistics, type RevenueStatisticsFilters, type RevenueTimeBucket, type RevenueTotals, type RevenueTypeBreakdown, ScoreBreakdown, SireneLookupResult, type SmartEnrichmentAddressQuality, type SmartEnrichmentConfidenceBucket, SmartEnrichmentEndpoint, type SmartEnrichmentExportOptions, type SmartEnrichmentHistoryInput, SmartEnrichmentHistoryPage, SmartEnrichmentHistoryRow, type SmartEnrichmentHistoryStats, type SmartEnrichmentInput, SmartEnrichmentJob, SmartEnrichmentMode, type SmartEnrichmentOutcomeBreakdown, type SmartEnrichmentProviderVerdict, type SmartEnrichmentRejectedCandidate, SmartEnrichmentRejectionReason, SmartEnrichmentResource, type SmartEnrichmentSourceBreakdown, SmartEnrichmentStatistics, type SmartEnrichmentStatisticsInterval, type SmartEnrichmentStatisticsOptions, type SmartEnrichmentStatisticsRange, type SmartEnrichmentStatisticsTotals, SmartEnrichmentStatus, type SmartEnrichmentTimeBucket, type SmartEnrichmentUsage, type SmartEnrichmentUsageHistoryEntry, type SmartEnrichmentWaitOptions, TaxoraClient, TaxoraClientFactory, type TaxoraClientOptions, TaxoraException, type TaxoraWebhookEvent, type TestWebhookObject, Token, type TokenStorageInterface, type UpdateComplianceTransactionInput, ValidationException, VatCertificateExport, VatCollection, VatEndpoint, type VatRate, VatRates, VatResource, VatState, type VatStateChangedEvent, type VatValidatedEvent, VatValidationAddressInput, type VatWebhookObject, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookEventEnvelope, type WebhookEventType, type WebhookRawBody, type WebhookSignatureErrorReason, type WebhookSignatureHeaderInput, WebhookSignatureVerificationError, type WebhookTestEvent, type WebhookVerifyOptions, computeWebhookSignature, constructWebhookEvent, describeApiError, describeComplianceDocumentType, describeComplianceEnrollmentStatus, describeComplianceService, describeComplianceTaxReportState, describeComplianceTransactionState, describeComplianceTransactionType, describePeppolLookupStatus, describeSmartEnrichmentMode, describeSmartEnrichmentRejectionReason, describeSmartEnrichmentStatus, describeVatState, generateWebhookSignatureHeader, getBaseUrl, getFailedVatStates, parseWebhookSignatureHeader, toComplianceDocumentType, toComplianceEnrollmentStatus, toComplianceService, toComplianceTaxReportState, toComplianceTransactionState, toComplianceTransactionType, toPeppolLookupStatus, toSmartEnrichmentMode, toSmartEnrichmentRejectionReason, toSmartEnrichmentStatus, verifyWebhookSignature };
|
|
2129
|
+
export { ApiVersion, AuthEndpoint, AuthRetryHttpClient, AuthenticationException, CompanyAddress, CompanyEndpoint, type CompanyResource, ComplianceDocumentType, ComplianceEnrollment, ComplianceEnrollmentPage, ComplianceEnrollmentStatus, type ComplianceEnterpriseSize, type ComplianceInvoiceLineInput, type ComplianceInvoiceTaxInput, type ComplianceLedgerStateChangedEvent, type ComplianceLedgerWebhookObject, type ComplianceRequestService, ComplianceService, ComplianceTaxReport, ComplianceTaxReportPage, type ComplianceTaxReportRequestState, ComplianceTaxReportState, ComplianceTransaction, type ComplianceTransactionBuyerInput, type ComplianceTransactionFilters, type ComplianceTransactionInvoiceLine, type ComplianceTransactionInvoiceLineTax, ComplianceTransactionPage, type ComplianceTransactionRequestState, type ComplianceTransactionRequestType, ComplianceTransactionState, type ComplianceTransactionStateChangedEvent, ComplianceTransactionType, type ComplianceTransactionWebhookObject, type ComplianceTypeOperation, type CreateComplianceEnrollmentInput, type CreateComplianceTransactionInput, type CreateNorwayEnrollmentInput, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type EReportingAccessRequestInput, EReportingEndpoint, type EReportingInterval, type EnrichmentCompletedEvent, type EnrichmentCompletedWebhookObject, type EnrichmentUpdatedEvent, type EnrichmentUpdatedWebhookObject, Environment, Environment as EnvironmentType, FetchHttpClient, type HttpClientInterface, HttpException, ImportResult, InMemoryTokenStorage, Language, type LocalTaxNumberReportOptions, LocalTaxNumberRow, type LocalTaxNumberSummary, LoginIdentifier, type NorwayEnrollmentInput, NorwegianOrgNumber, type ParsedWebhookSignatureHeader, PeppolLookupResult, PeppolLookupStatus, ProviderDocument, ProviderDocumentLine, RegistryCompany, RetryPolicy, type RetryPolicyOptions, type RevenueCountryBreakdown, type RevenueCurrencyBreakdown, type RevenueStateBreakdown, RevenueStatistics, type RevenueStatisticsFilters, type RevenueTimeBucket, type RevenueTotals, type RevenueTypeBreakdown, ScoreBreakdown, SireneLookupResult, type SmartEnrichmentAddressQuality, type SmartEnrichmentConfidenceBucket, SmartEnrichmentEndpoint, type SmartEnrichmentExportOptions, type SmartEnrichmentHistoryInput, SmartEnrichmentHistoryPage, SmartEnrichmentHistoryRow, type SmartEnrichmentHistoryStats, type SmartEnrichmentInput, SmartEnrichmentJob, SmartEnrichmentMode, type SmartEnrichmentOfficialAddress, type SmartEnrichmentOutcomeBreakdown, type SmartEnrichmentProviderVerdict, type SmartEnrichmentRejectedCandidate, SmartEnrichmentRejectionReason, SmartEnrichmentResource, type SmartEnrichmentSourceBreakdown, SmartEnrichmentStatistics, type SmartEnrichmentStatisticsInterval, type SmartEnrichmentStatisticsOptions, type SmartEnrichmentStatisticsRange, type SmartEnrichmentStatisticsTotals, SmartEnrichmentStatus, type SmartEnrichmentTaxNumberSource, type SmartEnrichmentTimeBucket, type SmartEnrichmentUsage, type SmartEnrichmentUsageHistoryEntry, type SmartEnrichmentWaitOptions, TaxoraClient, TaxoraClientFactory, type TaxoraClientOptions, TaxoraException, type TaxoraWebhookEvent, type TestWebhookObject, Token, type TokenStorageInterface, type UpdateComplianceTransactionInput, ValidationException, VatCertificateExport, VatCollection, VatEndpoint, type VatRate, VatRates, VatResource, VatState, type VatStateChangedEvent, type VatValidatedEvent, VatValidationAddressInput, type VatWebhookObject, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookEventEnvelope, type WebhookEventType, type WebhookRawBody, type WebhookSignatureErrorReason, type WebhookSignatureHeaderInput, WebhookSignatureVerificationError, type WebhookTestEvent, type WebhookVerifyOptions, computeWebhookSignature, constructWebhookEvent, describeApiError, describeComplianceDocumentType, describeComplianceEnrollmentStatus, describeComplianceService, describeComplianceTaxReportState, describeComplianceTransactionState, describeComplianceTransactionType, describePeppolLookupStatus, describeSmartEnrichmentMode, describeSmartEnrichmentRejectionReason, describeSmartEnrichmentStatus, describeVatState, generateWebhookSignatureHeader, getBaseUrl, getFailedVatStates, parseLocalTaxNumbersCsv, parseWebhookSignatureHeader, toComplianceDocumentType, toComplianceEnrollmentStatus, toComplianceService, toComplianceTaxReportState, toComplianceTransactionState, toComplianceTransactionType, toPeppolLookupStatus, toSmartEnrichmentMode, toSmartEnrichmentRejectionReason, toSmartEnrichmentStatus, verifyWebhookSignature };
|
package/dist/index.d.ts
CHANGED
|
@@ -1166,6 +1166,15 @@ interface SmartEnrichmentRejectedCandidate {
|
|
|
1166
1166
|
vatNumber: string;
|
|
1167
1167
|
reason: SmartEnrichmentRejectionReason;
|
|
1168
1168
|
}
|
|
1169
|
+
/** Where a Smart Enrichment `taxNumber` comes from. */
|
|
1170
|
+
type SmartEnrichmentTaxNumberSource = 'vat_id' | 'company_website';
|
|
1171
|
+
/** The registered address the official VAT check returned, field by field. */
|
|
1172
|
+
interface SmartEnrichmentOfficialAddress {
|
|
1173
|
+
street?: string;
|
|
1174
|
+
postal_code?: string;
|
|
1175
|
+
city?: string;
|
|
1176
|
+
country?: string;
|
|
1177
|
+
}
|
|
1169
1178
|
/**
|
|
1170
1179
|
* Result of resolving one reverse-VAT lookup (company name + address → VAT + confidence).
|
|
1171
1180
|
* Mirrors the API response item shape (camelCase keys).
|
|
@@ -1211,6 +1220,37 @@ declare class SmartEnrichmentResource {
|
|
|
1211
1220
|
* pass that found the same number contributes its page. At most 5.
|
|
1212
1221
|
*/
|
|
1213
1222
|
readonly sourceUrls: string[];
|
|
1223
|
+
/**
|
|
1224
|
+
* The company's LOCAL tax / business number, national notation without spaces — what domestic
|
|
1225
|
+
* e-invoicing asks for. On `found` it is read off the confirmed VAT ID where that country's VAT ID
|
|
1226
|
+
* contains it (`taxNumberSource` 'vat_id': FR SIREN, IT Partita IVA, ES NIF, PL NIP, BE enterprise
|
|
1227
|
+
* number, DK CVR, PT, RO, CZ IČO, SK DIČ, SE/NO orgnr, FI Y-tunnus, SI, HR OIB, BG EIK, GR AFM).
|
|
1228
|
+
* Otherwise a domestic number the company itself published ('company_website', e.g. a DE/AT
|
|
1229
|
+
* Steuernummer) — that one is not a VAT ID.
|
|
1230
|
+
*/
|
|
1231
|
+
readonly taxNumber: string | undefined;
|
|
1232
|
+
/** Only on `found`: the tax authority's verdict on the number; undefined when no official check ran. */
|
|
1233
|
+
readonly vatValid: boolean | undefined;
|
|
1234
|
+
/** Only on `found`: 0–100, the requested name against the register's; undefined when no name was disclosed. */
|
|
1235
|
+
readonly aiScore: number | undefined;
|
|
1236
|
+
/**
|
|
1237
|
+
* Only on `found`: 'ok' (name matches the register) or 'mismatch' (it does not — another company,
|
|
1238
|
+
* unless `registeredOwner` is set: then update your record).
|
|
1239
|
+
*/
|
|
1240
|
+
readonly nameMatch: 'ok' | 'mismatch' | undefined;
|
|
1241
|
+
/** Only on `found`: the name the register has the number under. */
|
|
1242
|
+
readonly officialName: string | undefined;
|
|
1243
|
+
/** Only on `found`: the registered address, field by field. */
|
|
1244
|
+
readonly officialAddress: SmartEnrichmentOfficialAddress | undefined;
|
|
1245
|
+
/** What `taxNumber` is, e.g. 'pl_nip', 'fr_siren', 'de_steuernummer'. Undefined when there is none. */
|
|
1246
|
+
readonly taxNumberType: string | undefined;
|
|
1247
|
+
/** The number's name in its country (SIREN, NIP, Steuernummer …), for display. */
|
|
1248
|
+
readonly taxNumberLabel: string | undefined;
|
|
1249
|
+
/**
|
|
1250
|
+
* Where `taxNumber` comes from: 'vat_id' (read off the VAT ID the tax authority confirmed — exact)
|
|
1251
|
+
* or 'company_website' (published by the company itself, not officially confirmable).
|
|
1252
|
+
*/
|
|
1253
|
+
readonly taxNumberSource: SmartEnrichmentTaxNumberSource | undefined;
|
|
1214
1254
|
constructor(status: SmartEnrichmentStatus, vatNumber: string | undefined, vatType: string | undefined, confidence: number | undefined, matchedCompanyName: string | undefined,
|
|
1215
1255
|
/** Official/registered address of the matched company, when available. */
|
|
1216
1256
|
matchedAddress: string | undefined, country: string | undefined, source: string | undefined,
|
|
@@ -1243,7 +1283,40 @@ declare class SmartEnrichmentResource {
|
|
|
1243
1283
|
* Only on `found`: every page the VAT number was read from, `sourceUrl` first — each research
|
|
1244
1284
|
* pass that found the same number contributes its page. At most 5.
|
|
1245
1285
|
*/
|
|
1246
|
-
sourceUrls?: string[]
|
|
1286
|
+
sourceUrls?: string[],
|
|
1287
|
+
/**
|
|
1288
|
+
* The company's LOCAL tax / business number, national notation without spaces — what domestic
|
|
1289
|
+
* e-invoicing asks for. On `found` it is read off the confirmed VAT ID where that country's VAT ID
|
|
1290
|
+
* contains it (`taxNumberSource` 'vat_id': FR SIREN, IT Partita IVA, ES NIF, PL NIP, BE enterprise
|
|
1291
|
+
* number, DK CVR, PT, RO, CZ IČO, SK DIČ, SE/NO orgnr, FI Y-tunnus, SI, HR OIB, BG EIK, GR AFM).
|
|
1292
|
+
* Otherwise a domestic number the company itself published ('company_website', e.g. a DE/AT
|
|
1293
|
+
* Steuernummer) — that one is not a VAT ID.
|
|
1294
|
+
*/
|
|
1295
|
+
taxNumber?: string | undefined,
|
|
1296
|
+
/** Only on `found`: the tax authority's verdict on the number; undefined when no official check ran. */
|
|
1297
|
+
vatValid?: boolean | undefined,
|
|
1298
|
+
/** Only on `found`: 0–100, the requested name against the register's; undefined when no name was disclosed. */
|
|
1299
|
+
aiScore?: number | undefined,
|
|
1300
|
+
/**
|
|
1301
|
+
* Only on `found`: 'ok' (name matches the register) or 'mismatch' (it does not — another company,
|
|
1302
|
+
* unless `registeredOwner` is set: then update your record).
|
|
1303
|
+
*/
|
|
1304
|
+
nameMatch?: 'ok' | 'mismatch' | undefined,
|
|
1305
|
+
/** Only on `found`: the name the register has the number under. */
|
|
1306
|
+
officialName?: string | undefined,
|
|
1307
|
+
/** Only on `found`: the registered address, field by field. */
|
|
1308
|
+
officialAddress?: SmartEnrichmentOfficialAddress | undefined,
|
|
1309
|
+
/** What `taxNumber` is, e.g. 'pl_nip', 'fr_siren', 'de_steuernummer'. Undefined when there is none. */
|
|
1310
|
+
taxNumberType?: string | undefined,
|
|
1311
|
+
/** The number's name in its country (SIREN, NIP, Steuernummer …), for display. */
|
|
1312
|
+
taxNumberLabel?: string | undefined,
|
|
1313
|
+
/**
|
|
1314
|
+
* Where `taxNumber` comes from: 'vat_id' (read off the VAT ID the tax authority confirmed — exact)
|
|
1315
|
+
* or 'company_website' (published by the company itself, not officially confirmable).
|
|
1316
|
+
*/
|
|
1317
|
+
taxNumberSource?: SmartEnrichmentTaxNumberSource | undefined);
|
|
1318
|
+
/** True when the register knows the number under a different name than the one requested. */
|
|
1319
|
+
nameMismatch(): boolean;
|
|
1247
1320
|
/** True when a VAT number was found but rejected by the official check. */
|
|
1248
1321
|
hasRejectedCandidates(): boolean;
|
|
1249
1322
|
static fromArray(data: Record<string, unknown>): SmartEnrichmentResource;
|
|
@@ -1673,6 +1746,72 @@ declare class VatValidationAddressInput {
|
|
|
1673
1746
|
toArray(): Record<string, string>;
|
|
1674
1747
|
}
|
|
1675
1748
|
|
|
1749
|
+
/** Columns of the local tax numbers report. */
|
|
1750
|
+
type Column = 'companyName' | 'requestedName' | 'country' | 'vatNumber' | 'vatStatus' | 'taxNumber' | 'taxNumberName' | 'taxNumberSource' | 'source' | 'checkedAt' | 'checkId';
|
|
1751
|
+
/**
|
|
1752
|
+
* One company of the local tax numbers report: every company checked (VAT checks and Smart
|
|
1753
|
+
* Enrichment) once, with its local tax number. Empty cells come back as null.
|
|
1754
|
+
*/
|
|
1755
|
+
declare class LocalTaxNumberRow {
|
|
1756
|
+
readonly companyName: string | null;
|
|
1757
|
+
/** The name you submitted, when it differs from the registered one. */
|
|
1758
|
+
readonly requestedName: string | null;
|
|
1759
|
+
readonly country: string | null;
|
|
1760
|
+
readonly vatNumber: string | null;
|
|
1761
|
+
/** 'valid' | 'invalid' | 'unconfirmed' | 'wrong_company' | 'no_vat_id' | 'not_found' */
|
|
1762
|
+
readonly vatStatus: string | null;
|
|
1763
|
+
/** The company's local tax / business number (NIP, SIREN, Partita IVA, Steuernummer …). */
|
|
1764
|
+
readonly taxNumber: string | null;
|
|
1765
|
+
/** The number's national name, e.g. 'NIP', 'SIREN', 'Steuernummer'. */
|
|
1766
|
+
readonly taxNumberName: string | null;
|
|
1767
|
+
/** 'vat_id' (read off the confirmed VAT ID) | 'company_website' (published by the company). */
|
|
1768
|
+
readonly taxNumberSource: string | null;
|
|
1769
|
+
/** 'vat_check' | 'smart_enrichment' */
|
|
1770
|
+
readonly source: string | null;
|
|
1771
|
+
readonly checkedAt: string | null;
|
|
1772
|
+
/** The VAT check uuid or the Smart Enrichment job id. */
|
|
1773
|
+
readonly checkId: string | null;
|
|
1774
|
+
constructor(companyName: string | null,
|
|
1775
|
+
/** The name you submitted, when it differs from the registered one. */
|
|
1776
|
+
requestedName: string | null, country: string | null, vatNumber: string | null,
|
|
1777
|
+
/** 'valid' | 'invalid' | 'unconfirmed' | 'wrong_company' | 'no_vat_id' | 'not_found' */
|
|
1778
|
+
vatStatus: string | null,
|
|
1779
|
+
/** The company's local tax / business number (NIP, SIREN, Partita IVA, Steuernummer …). */
|
|
1780
|
+
taxNumber: string | null,
|
|
1781
|
+
/** The number's national name, e.g. 'NIP', 'SIREN', 'Steuernummer'. */
|
|
1782
|
+
taxNumberName: string | null,
|
|
1783
|
+
/** 'vat_id' (read off the confirmed VAT ID) | 'company_website' (published by the company). */
|
|
1784
|
+
taxNumberSource: string | null,
|
|
1785
|
+
/** 'vat_check' | 'smart_enrichment' */
|
|
1786
|
+
source: string | null, checkedAt: string | null,
|
|
1787
|
+
/** The VAT check uuid or the Smart Enrichment job id. */
|
|
1788
|
+
checkId: string | null);
|
|
1789
|
+
/** One CSV row keyed by column name. */
|
|
1790
|
+
static fromArray(data: Record<string, unknown>): LocalTaxNumberRow;
|
|
1791
|
+
toArray(): Record<Column, string | null>;
|
|
1792
|
+
}
|
|
1793
|
+
/** How many companies the local tax numbers report would list, and how many have a tax number. */
|
|
1794
|
+
interface LocalTaxNumberSummary {
|
|
1795
|
+
companies: number;
|
|
1796
|
+
withTaxNumber: number;
|
|
1797
|
+
}
|
|
1798
|
+
/** Filters of the local tax numbers report. All optional. */
|
|
1799
|
+
interface LocalTaxNumberReportOptions {
|
|
1800
|
+
/** Y-m-d string or Date. */
|
|
1801
|
+
dateFrom?: Date | string;
|
|
1802
|
+
/** Y-m-d string or Date. */
|
|
1803
|
+
dateTo?: Date | string;
|
|
1804
|
+
/** ISO 3166-1 alpha-2 codes. */
|
|
1805
|
+
countries?: string[];
|
|
1806
|
+
/** Skip companies without a local tax number (report only; the summary counts both). */
|
|
1807
|
+
onlyWithTaxNumber?: boolean;
|
|
1808
|
+
}
|
|
1809
|
+
/**
|
|
1810
|
+
* Parses a local tax numbers CSV (as returned by `localTaxNumbersCsv()`) into rows: BOM dropped,
|
|
1811
|
+
* cells trimmed (incl. the Excel TAB guard), empty cells null.
|
|
1812
|
+
*/
|
|
1813
|
+
declare function parseLocalTaxNumbersCsv(csv: string): LocalTaxNumberRow[];
|
|
1814
|
+
|
|
1676
1815
|
declare const Language: {
|
|
1677
1816
|
readonly ENGLISH: "en";
|
|
1678
1817
|
readonly GERMAN: "de";
|
|
@@ -1697,6 +1836,19 @@ declare class VatEndpoint {
|
|
|
1697
1836
|
certificatesListExport(fromDate: Date | string, toDate: Date | string, countries?: string[], lang?: Language): Promise<VatCertificateExport>;
|
|
1698
1837
|
private exportRequest;
|
|
1699
1838
|
downloadBulkExport(exportId: string): Promise<Uint8Array>;
|
|
1839
|
+
/**
|
|
1840
|
+
* Local tax numbers report as raw CSV (UTF-8 with BOM, comma-separated): every company checked —
|
|
1841
|
+
* single and bulk VAT checks and Smart Enrichment lookups — once, with its local tax number
|
|
1842
|
+
* (taxNumber, taxNumberName, taxNumberSource). Digit-only taxNumber cells carry a leading TAB so
|
|
1843
|
+
* Excel keeps them as text; `localTaxNumbers()` strips it for you.
|
|
1844
|
+
*/
|
|
1845
|
+
localTaxNumbersCsv(options?: LocalTaxNumberReportOptions): Promise<string>;
|
|
1846
|
+
/** The local tax numbers report, parsed: one row per company (same filters as `localTaxNumbersCsv()`). */
|
|
1847
|
+
localTaxNumbers(options?: LocalTaxNumberReportOptions): Promise<LocalTaxNumberRow[]>;
|
|
1848
|
+
/** How many companies the report would list for the filters, and how many have a tax number. */
|
|
1849
|
+
localTaxNumbersSummary(options?: Omit<LocalTaxNumberReportOptions, 'onlyWithTaxNumber'>): Promise<LocalTaxNumberSummary>;
|
|
1850
|
+
private localTaxNumbersParams;
|
|
1851
|
+
private withQuery;
|
|
1700
1852
|
private buildHeaders;
|
|
1701
1853
|
private sendRequest;
|
|
1702
1854
|
private sendBinaryRequest;
|
|
@@ -1974,4 +2126,4 @@ declare class AuthRetryHttpClient implements HttpClientInterface {
|
|
|
1974
2126
|
private injectAuthHeader;
|
|
1975
2127
|
}
|
|
1976
2128
|
|
|
1977
|
-
export { ApiVersion, AuthEndpoint, AuthRetryHttpClient, AuthenticationException, CompanyAddress, CompanyEndpoint, type CompanyResource, ComplianceDocumentType, ComplianceEnrollment, ComplianceEnrollmentPage, ComplianceEnrollmentStatus, type ComplianceEnterpriseSize, type ComplianceInvoiceLineInput, type ComplianceInvoiceTaxInput, type ComplianceLedgerStateChangedEvent, type ComplianceLedgerWebhookObject, type ComplianceRequestService, ComplianceService, ComplianceTaxReport, ComplianceTaxReportPage, type ComplianceTaxReportRequestState, ComplianceTaxReportState, ComplianceTransaction, type ComplianceTransactionBuyerInput, type ComplianceTransactionFilters, type ComplianceTransactionInvoiceLine, type ComplianceTransactionInvoiceLineTax, ComplianceTransactionPage, type ComplianceTransactionRequestState, type ComplianceTransactionRequestType, ComplianceTransactionState, type ComplianceTransactionStateChangedEvent, ComplianceTransactionType, type ComplianceTransactionWebhookObject, type ComplianceTypeOperation, type CreateComplianceEnrollmentInput, type CreateComplianceTransactionInput, type CreateNorwayEnrollmentInput, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type EReportingAccessRequestInput, EReportingEndpoint, type EReportingInterval, type EnrichmentCompletedEvent, type EnrichmentCompletedWebhookObject, type EnrichmentUpdatedEvent, type EnrichmentUpdatedWebhookObject, Environment, Environment as EnvironmentType, FetchHttpClient, type HttpClientInterface, HttpException, ImportResult, InMemoryTokenStorage, Language, LoginIdentifier, type NorwayEnrollmentInput, NorwegianOrgNumber, type ParsedWebhookSignatureHeader, PeppolLookupResult, PeppolLookupStatus, ProviderDocument, ProviderDocumentLine, RegistryCompany, RetryPolicy, type RetryPolicyOptions, type RevenueCountryBreakdown, type RevenueCurrencyBreakdown, type RevenueStateBreakdown, RevenueStatistics, type RevenueStatisticsFilters, type RevenueTimeBucket, type RevenueTotals, type RevenueTypeBreakdown, ScoreBreakdown, SireneLookupResult, type SmartEnrichmentAddressQuality, type SmartEnrichmentConfidenceBucket, SmartEnrichmentEndpoint, type SmartEnrichmentExportOptions, type SmartEnrichmentHistoryInput, SmartEnrichmentHistoryPage, SmartEnrichmentHistoryRow, type SmartEnrichmentHistoryStats, type SmartEnrichmentInput, SmartEnrichmentJob, SmartEnrichmentMode, type SmartEnrichmentOutcomeBreakdown, type SmartEnrichmentProviderVerdict, type SmartEnrichmentRejectedCandidate, SmartEnrichmentRejectionReason, SmartEnrichmentResource, type SmartEnrichmentSourceBreakdown, SmartEnrichmentStatistics, type SmartEnrichmentStatisticsInterval, type SmartEnrichmentStatisticsOptions, type SmartEnrichmentStatisticsRange, type SmartEnrichmentStatisticsTotals, SmartEnrichmentStatus, type SmartEnrichmentTimeBucket, type SmartEnrichmentUsage, type SmartEnrichmentUsageHistoryEntry, type SmartEnrichmentWaitOptions, TaxoraClient, TaxoraClientFactory, type TaxoraClientOptions, TaxoraException, type TaxoraWebhookEvent, type TestWebhookObject, Token, type TokenStorageInterface, type UpdateComplianceTransactionInput, ValidationException, VatCertificateExport, VatCollection, VatEndpoint, type VatRate, VatRates, VatResource, VatState, type VatStateChangedEvent, type VatValidatedEvent, VatValidationAddressInput, type VatWebhookObject, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookEventEnvelope, type WebhookEventType, type WebhookRawBody, type WebhookSignatureErrorReason, type WebhookSignatureHeaderInput, WebhookSignatureVerificationError, type WebhookTestEvent, type WebhookVerifyOptions, computeWebhookSignature, constructWebhookEvent, describeApiError, describeComplianceDocumentType, describeComplianceEnrollmentStatus, describeComplianceService, describeComplianceTaxReportState, describeComplianceTransactionState, describeComplianceTransactionType, describePeppolLookupStatus, describeSmartEnrichmentMode, describeSmartEnrichmentRejectionReason, describeSmartEnrichmentStatus, describeVatState, generateWebhookSignatureHeader, getBaseUrl, getFailedVatStates, parseWebhookSignatureHeader, toComplianceDocumentType, toComplianceEnrollmentStatus, toComplianceService, toComplianceTaxReportState, toComplianceTransactionState, toComplianceTransactionType, toPeppolLookupStatus, toSmartEnrichmentMode, toSmartEnrichmentRejectionReason, toSmartEnrichmentStatus, verifyWebhookSignature };
|
|
2129
|
+
export { ApiVersion, AuthEndpoint, AuthRetryHttpClient, AuthenticationException, CompanyAddress, CompanyEndpoint, type CompanyResource, ComplianceDocumentType, ComplianceEnrollment, ComplianceEnrollmentPage, ComplianceEnrollmentStatus, type ComplianceEnterpriseSize, type ComplianceInvoiceLineInput, type ComplianceInvoiceTaxInput, type ComplianceLedgerStateChangedEvent, type ComplianceLedgerWebhookObject, type ComplianceRequestService, ComplianceService, ComplianceTaxReport, ComplianceTaxReportPage, type ComplianceTaxReportRequestState, ComplianceTaxReportState, ComplianceTransaction, type ComplianceTransactionBuyerInput, type ComplianceTransactionFilters, type ComplianceTransactionInvoiceLine, type ComplianceTransactionInvoiceLineTax, ComplianceTransactionPage, type ComplianceTransactionRequestState, type ComplianceTransactionRequestType, ComplianceTransactionState, type ComplianceTransactionStateChangedEvent, ComplianceTransactionType, type ComplianceTransactionWebhookObject, type ComplianceTypeOperation, type CreateComplianceEnrollmentInput, type CreateComplianceTransactionInput, type CreateNorwayEnrollmentInput, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type EReportingAccessRequestInput, EReportingEndpoint, type EReportingInterval, type EnrichmentCompletedEvent, type EnrichmentCompletedWebhookObject, type EnrichmentUpdatedEvent, type EnrichmentUpdatedWebhookObject, Environment, Environment as EnvironmentType, FetchHttpClient, type HttpClientInterface, HttpException, ImportResult, InMemoryTokenStorage, Language, type LocalTaxNumberReportOptions, LocalTaxNumberRow, type LocalTaxNumberSummary, LoginIdentifier, type NorwayEnrollmentInput, NorwegianOrgNumber, type ParsedWebhookSignatureHeader, PeppolLookupResult, PeppolLookupStatus, ProviderDocument, ProviderDocumentLine, RegistryCompany, RetryPolicy, type RetryPolicyOptions, type RevenueCountryBreakdown, type RevenueCurrencyBreakdown, type RevenueStateBreakdown, RevenueStatistics, type RevenueStatisticsFilters, type RevenueTimeBucket, type RevenueTotals, type RevenueTypeBreakdown, ScoreBreakdown, SireneLookupResult, type SmartEnrichmentAddressQuality, type SmartEnrichmentConfidenceBucket, SmartEnrichmentEndpoint, type SmartEnrichmentExportOptions, type SmartEnrichmentHistoryInput, SmartEnrichmentHistoryPage, SmartEnrichmentHistoryRow, type SmartEnrichmentHistoryStats, type SmartEnrichmentInput, SmartEnrichmentJob, SmartEnrichmentMode, type SmartEnrichmentOfficialAddress, type SmartEnrichmentOutcomeBreakdown, type SmartEnrichmentProviderVerdict, type SmartEnrichmentRejectedCandidate, SmartEnrichmentRejectionReason, SmartEnrichmentResource, type SmartEnrichmentSourceBreakdown, SmartEnrichmentStatistics, type SmartEnrichmentStatisticsInterval, type SmartEnrichmentStatisticsOptions, type SmartEnrichmentStatisticsRange, type SmartEnrichmentStatisticsTotals, SmartEnrichmentStatus, type SmartEnrichmentTaxNumberSource, type SmartEnrichmentTimeBucket, type SmartEnrichmentUsage, type SmartEnrichmentUsageHistoryEntry, type SmartEnrichmentWaitOptions, TaxoraClient, TaxoraClientFactory, type TaxoraClientOptions, TaxoraException, type TaxoraWebhookEvent, type TestWebhookObject, Token, type TokenStorageInterface, type UpdateComplianceTransactionInput, ValidationException, VatCertificateExport, VatCollection, VatEndpoint, type VatRate, VatRates, VatResource, VatState, type VatStateChangedEvent, type VatValidatedEvent, VatValidationAddressInput, type VatWebhookObject, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookEventEnvelope, type WebhookEventType, type WebhookRawBody, type WebhookSignatureErrorReason, type WebhookSignatureHeaderInput, WebhookSignatureVerificationError, type WebhookTestEvent, type WebhookVerifyOptions, computeWebhookSignature, constructWebhookEvent, describeApiError, describeComplianceDocumentType, describeComplianceEnrollmentStatus, describeComplianceService, describeComplianceTaxReportState, describeComplianceTransactionState, describeComplianceTransactionType, describePeppolLookupStatus, describeSmartEnrichmentMode, describeSmartEnrichmentRejectionReason, describeSmartEnrichmentStatus, describeVatState, generateWebhookSignatureHeader, getBaseUrl, getFailedVatStates, parseLocalTaxNumbersCsv, parseWebhookSignatureHeader, toComplianceDocumentType, toComplianceEnrollmentStatus, toComplianceService, toComplianceTaxReportState, toComplianceTransactionState, toComplianceTransactionType, toPeppolLookupStatus, toSmartEnrichmentMode, toSmartEnrichmentRejectionReason, toSmartEnrichmentStatus, verifyWebhookSignature };
|