sinfactura-types 1.6.53 → 1.6.55
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/supplier.d.ts +23 -0
- package/package.json +1 -1
package/dist/supplier.d.ts
CHANGED
|
@@ -47,6 +47,20 @@ declare global {
|
|
|
47
47
|
noGravado?: number;
|
|
48
48
|
exento?: number;
|
|
49
49
|
cbteClass?: 'A' | 'B' | 'C';
|
|
50
|
+
voucherDate?: number;
|
|
51
|
+
pointOfSale?: number;
|
|
52
|
+
invoiceNumber?: number;
|
|
53
|
+
authorizationCode?: string;
|
|
54
|
+
authorizationMode?: 'CAE' | 'CAEA' | 'CAI';
|
|
55
|
+
constatacion?: SupplierInvoiceConstatacion;
|
|
56
|
+
}
|
|
57
|
+
type SupplierInvoiceCheckStatus = 'pending' | 'passed' | 'warning' | 'failed' | 'not_applicable' | 'error';
|
|
58
|
+
interface SupplierInvoiceConstatacion {
|
|
59
|
+
status: SupplierInvoiceCheckStatus;
|
|
60
|
+
result?: 'A' | 'O' | 'R';
|
|
61
|
+
reason?: string;
|
|
62
|
+
observations?: InvoiceObservation[];
|
|
63
|
+
verifiedAt?: string;
|
|
50
64
|
}
|
|
51
65
|
/**
|
|
52
66
|
* WSCDC `ConstatarComprobante` request (api#1500) -- verifies a
|
|
@@ -78,6 +92,15 @@ declare global {
|
|
|
78
92
|
observations?: InvoiceObservation[];
|
|
79
93
|
verifiedAt: string;
|
|
80
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* WSCDC endpoint error-code vocabulary (api#1682) -- the 502 `error` values
|
|
97
|
+
* of `POST /afip {mode:'wscdc'}` (mirrors the MlOauthErrorCode pattern).
|
|
98
|
+
* Producer: api `stacks/lambdas/afip/helpers/wscdc.ts`
|
|
99
|
+
* (`ConstatarComprobanteOutcome`). `WSCDC_NOT_CONFIGURED` = expected
|
|
100
|
+
* pre-enablement state (FE: disabled panel + Sentry suppression); the other
|
|
101
|
+
* two are genuine incidents that must surface.
|
|
102
|
+
*/
|
|
103
|
+
type WscdcErrorCode = 'WSCDC_NOT_CONFIGURED' | 'WSCDC_AUTH_FAILED' | 'WSCDC_COMPROBANTE_CONSTATAR_FAILED';
|
|
81
104
|
/**
|
|
82
105
|
* `GET /reports?mode=supplier-invoices` per-date resume row (api#1550) --
|
|
83
106
|
* compras-side mirror of the ventas `mode=invoices` resume shape. Unlike
|