sinfactura-types 1.6.57 → 1.6.59
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/audit.d.ts +26 -2
- package/dist/invoice.d.ts +10 -0
- package/package.json +1 -1
package/dist/audit.d.ts
CHANGED
|
@@ -43,8 +43,11 @@ declare global {
|
|
|
43
43
|
ts: number;
|
|
44
44
|
/** Which ARCA fiscal op. `ConstatarComprobante` added for WSCDC
|
|
45
45
|
* third-party voucher verification (api#1500), which logs every check
|
|
46
|
-
* to this same table per its AC.
|
|
47
|
-
|
|
46
|
+
* to this same table per its AC. `FEXAuthorize` (WSFEX export
|
|
47
|
+
* issuance) was already accepted by the api's runtime Zod mirror —
|
|
48
|
+
* added here to close the drift. `ConsultarApoc` added for the APOC
|
|
49
|
+
* apocryphal-CUIT registry check (api#1563). */
|
|
50
|
+
operation: 'FECAESolicitar' | 'FECompConsultar' | 'FEXAuthorize' | 'ConstatarComprobante' | 'ConsultarApoc';
|
|
48
51
|
/** Issuer CUIT (RAW — masked only at display). */
|
|
49
52
|
cuit: string;
|
|
50
53
|
/** AFIP environment the call hit. */
|
|
@@ -80,5 +83,26 @@ declare global {
|
|
|
80
83
|
requestPayload: Record<string, unknown>;
|
|
81
84
|
responsePayload: Record<string, unknown>;
|
|
82
85
|
}
|
|
86
|
+
/** APOC (base e-Apoc, "facturas apócrifas") CUIT check request — api#1563.
|
|
87
|
+
* Data source is ARCA's public registry snapshot imported daily into the
|
|
88
|
+
* api's `APOC` DDB partition (no per-check ARCA call). */
|
|
89
|
+
interface ApocCheckRequest {
|
|
90
|
+
/** The counterparty CUIT being checked (the invoice issuer, not this store). */
|
|
91
|
+
cuit: string;
|
|
92
|
+
}
|
|
93
|
+
/** Result of an APOC registry check. Every check is logged to
|
|
94
|
+
* FiscalAuditEvent with operation 'ConsultarApoc'. */
|
|
95
|
+
interface ApocCheckResult {
|
|
96
|
+
/** True if the CUIT appears in ARCA's APOC registry. */
|
|
97
|
+
flagged: boolean;
|
|
98
|
+
/** ISO date — when ARCA flagged this CUIT ("Fecha Condición Apócrifo"); present when flagged. */
|
|
99
|
+
fraudConditionDate?: string;
|
|
100
|
+
/** ISO date — when ARCA published the flag; present when flagged. */
|
|
101
|
+
publicationDate?: string;
|
|
102
|
+
/** ISO date — freshness of the imported registry snapshot (the file's "Generado" stamp). */
|
|
103
|
+
registrySnapshotAt: string;
|
|
104
|
+
/** ISO timestamp of this check. */
|
|
105
|
+
checkedAt: string;
|
|
106
|
+
}
|
|
83
107
|
}
|
|
84
108
|
export {};
|
package/dist/invoice.d.ts
CHANGED
|
@@ -272,6 +272,16 @@ declare global {
|
|
|
272
272
|
}[];
|
|
273
273
|
fetchedAt: string;
|
|
274
274
|
}
|
|
275
|
+
/** WSFECRED rejection-motivo catalog (`consultarTiposMotivosRechazo`), refreshed on a
|
|
276
|
+
* schedule. Persists as the platform-wide singleton PLATFORM / FCE_MOTIVOS (AFIP-global,
|
|
277
|
+
* not per-store) — api#1647; mirrors WsfexReferenceData. */
|
|
278
|
+
interface FceMotivosCatalog {
|
|
279
|
+
motivos: {
|
|
280
|
+
codigo: number;
|
|
281
|
+
descripcion?: string;
|
|
282
|
+
}[];
|
|
283
|
+
fetchedAt: string;
|
|
284
|
+
}
|
|
275
285
|
type FceStatus = 'emitted' | 'accepted' | 'rejected' | 'ceded';
|
|
276
286
|
/** FCE-specific fields, present only when Invoice.invoiceType is 201/202/203, 206/207/208, or 211/212/213. */
|
|
277
287
|
interface FceFields {
|