sinfactura-types 1.6.40 → 1.6.42

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/invoice.d.ts CHANGED
@@ -196,24 +196,41 @@ declare global {
196
196
  CAEA: string;
197
197
  CbteFchHsGen: string;
198
198
  }
199
- /** Export-invoice-specific fields, present only when Invoice.invoiceType === 19 (Factura E). */
199
+ /** Export-invoice-specific fields, present only when Invoice.invoiceType is an
200
+ * export voucher (19 Factura E / 20 ND E / 21 NC E). Amended per the api#1557
201
+ * preflight read of the WSFEX manual (v2.0.1 §2.1.3). */
200
202
  interface ExportInvoiceFields {
203
+ /** Tipo_expo: 1=exportación definitiva de bienes, 2=servicios (RG 4401), 4=otros.
204
+ * REQUIRED on the wire — drives every Permiso rule (err 1720). */
205
+ tipoExpo: 1 | 2 | 4;
201
206
  dstCmp: number;
207
+ cliente: string;
208
+ domicilioCliente: string;
209
+ /** Cuit_pais_cliente (GetPARAM_DST_CUIT) — ONE OF this or idImpositivo is required (err 1580). */
210
+ cuitPaisCliente?: number;
202
211
  idImpositivo?: string;
212
+ /** AFIP-wire projection of Invoice.currency (GetPARAM_MON code, e.g. "DOL") — MUST agree
213
+ * with the row's own currency stamp; never a second source of truth. */
203
214
  monedaId: string;
215
+ /** AFIP-wire projection of Invoice.currencyValue (Moneda_Ctz) — MUST agree with the row. */
204
216
  monedaCtz: number;
205
217
  incoterms?: string;
206
218
  incotermsDs?: string;
219
+ /** 'S'/'N'; MUST be absent when Cbte_Tipo is 20/21, or 19 with tipoExpo 2/4 (err 1550). */
207
220
  permisoExistente?: 'S' | 'N';
208
221
  permisoExistenteTipo?: string;
209
222
  permisoExistenteNro?: string;
210
223
  idiomaCbte: 1 | 2 | 3;
211
- /** "Cancelación en Misma Moneda Extranjera" -- required only when settled in the same
212
- * foreign currency the invoice was issued in (RG 5616/2024 FX-precision rule reaching
213
- * voucher class E; added to the WSFEXV1 manual in v3.0.0, 2025-03-17). */
214
- canMisMonExt?: boolean;
224
+ fechaPago?: string;
225
+ /** "Cancelación en Misma Moneda Extranjera" wire value 'S'/'N' (was boolean pre-1.6.42;
226
+ * zero consumers existed). Required when settled in the same foreign currency the invoice
227
+ * was issued in; Moneda_Ctz must then match BNA's prior-business-day quote (RG 5616/2024,
228
+ * WSFEX manual v3.0.0 2025-03-17; error codes 1602-1607). */
229
+ canMisMonExt?: 'S' | 'N';
215
230
  }
216
- /** Reference data cached from WSFEXV1 `GetPARAM_*` operations, refreshed on a schedule. */
231
+ /** Reference data cached from WSFEXV1 `GetPARAM_*` operations, refreshed on a schedule.
232
+ * Persists as the platform-wide singleton PLATFORM / WSFEX_PARAMS (AFIP-global tables,
233
+ * not per-store) — api#1557. */
217
234
  interface WsfexReferenceData {
218
235
  currencies: {
219
236
  id: string;
@@ -239,6 +256,16 @@ declare global {
239
256
  id: number;
240
257
  name: string;
241
258
  }[];
259
+ /** GetPARAM_UMed — Pro_umed is REQUIRED per line item; the Factura E form needs this catalog. */
260
+ unitsOfMeasure: {
261
+ id: number;
262
+ name: string;
263
+ }[];
264
+ /** GetPARAM_MON_CON_COTIZACION — currencies quotable for service exports (tipoExpo 2). */
265
+ currenciesWithQuote?: {
266
+ id: string;
267
+ name: string;
268
+ }[];
242
269
  fetchedAt: string;
243
270
  }
244
271
  type FceStatus = 'emitted' | 'accepted' | 'rejected' | 'ceded';
package/dist/store.d.ts CHANGED
@@ -285,10 +285,13 @@ declare global {
285
285
  key?: string;
286
286
  accessTicket_EB?: string;
287
287
  accessTicket_RSF?: string;
288
+ accessTicket_FEX?: string;
288
289
  hasCert?: boolean;
289
290
  hasKey?: boolean;
290
291
  facturaMLegend?: 'retencion' | 'cbu_informada';
291
292
  cbu?: string;
293
+ caeaPointOfSale?: number;
294
+ exportPointOfSale?: number;
292
295
  certExpiry?: number;
293
296
  }
294
297
  type StoreAttributeNames = keyof Store;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.40",
3
+ "version": "1.6.42",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "build": "tsc",
15
15
  "prepublishOnly": "tsc",
16
16
  "login": "npm login",
17
- "release": "npm version patch --no-git-tag-version && npm publish"
17
+ "release": "npm version patch --no-git-tag-version"
18
18
  },
19
19
  "publishConfig": {
20
20
  "access": "public",