sinfactura-types 1.6.41 → 1.6.43
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.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/invoice.d.ts +33 -6
- package/dist/platform.d.ts +21 -0
- package/dist/platform.js +5 -0
- package/dist/store.d.ts +4 -0
- package/dist/supplier.d.ts +4 -0
- package/dist/userActivity.d.ts +9 -1
- package/dist/userActivity.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
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
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
*
|
|
214
|
-
|
|
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';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface PlatformConfigEntry {
|
|
2
|
+
key: string;
|
|
3
|
+
valueType: 'boolean' | 'string' | 'number';
|
|
4
|
+
kind: 'setting' | 'flag';
|
|
5
|
+
value: string | number | boolean;
|
|
6
|
+
defaultValue: string | number | boolean;
|
|
7
|
+
scope: 'app' | 'web' | 'landing' | 'storefront';
|
|
8
|
+
description?: string;
|
|
9
|
+
updatedBy?: string;
|
|
10
|
+
updatedAt?: number;
|
|
11
|
+
previousValue?: string | number | boolean;
|
|
12
|
+
source: 'default' | 'override';
|
|
13
|
+
}
|
|
14
|
+
export interface PlatformGlobalsPostBody {
|
|
15
|
+
globals: Record<string, {
|
|
16
|
+
value: string | number | boolean | null;
|
|
17
|
+
valueType: 'boolean' | 'string' | 'number';
|
|
18
|
+
kind: 'setting' | 'flag';
|
|
19
|
+
scope: 'app' | 'web' | 'landing' | 'storefront';
|
|
20
|
+
}>;
|
|
21
|
+
}
|
package/dist/platform.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Platform-wide config/feature-flag contracts (api#1108). Single fixed
|
|
2
|
+
// GLOBALS/PLATFORM scope, unlike Literals' multi-scope override chain — no
|
|
3
|
+
// per-tenant override use case identified for globals/flags (deliberate
|
|
4
|
+
// divergence from api#1484/#1485's Literals model).
|
|
5
|
+
export {};
|
package/dist/store.d.ts
CHANGED
|
@@ -285,11 +285,15 @@ declare global {
|
|
|
285
285
|
key?: string;
|
|
286
286
|
accessTicket_EB?: string;
|
|
287
287
|
accessTicket_RSF?: string;
|
|
288
|
+
accessTicket_FEX?: string;
|
|
289
|
+
accessTicket_FECRED?: string;
|
|
290
|
+
accessTicket_CDC?: string;
|
|
288
291
|
hasCert?: boolean;
|
|
289
292
|
hasKey?: boolean;
|
|
290
293
|
facturaMLegend?: 'retencion' | 'cbu_informada';
|
|
291
294
|
cbu?: string;
|
|
292
295
|
caeaPointOfSale?: number;
|
|
296
|
+
exportPointOfSale?: number;
|
|
293
297
|
certExpiry?: number;
|
|
294
298
|
}
|
|
295
299
|
type StoreAttributeNames = keyof Store;
|
package/dist/supplier.d.ts
CHANGED
|
@@ -60,6 +60,10 @@ declare global {
|
|
|
60
60
|
invoiceNumber: number;
|
|
61
61
|
dated: number;
|
|
62
62
|
total: number;
|
|
63
|
+
authorizationCode: string;
|
|
64
|
+
authorizationMode?: 'CAE' | 'CAEA' | 'CAI';
|
|
65
|
+
receptorDocType?: number;
|
|
66
|
+
receptorDocNumber?: string;
|
|
63
67
|
}
|
|
64
68
|
/**
|
|
65
69
|
* WSCDC `ConstatarComprobante` result (api#1500). `result` mirrors the
|
package/dist/userActivity.d.ts
CHANGED
|
@@ -400,7 +400,15 @@ declare global {
|
|
|
400
400
|
interface WaitlistConvertedEvent extends UserActivityEventBase {
|
|
401
401
|
event: 'Waitlist Converted';
|
|
402
402
|
}
|
|
403
|
-
|
|
403
|
+
interface PlatformConfigUpdatedEvent extends UserActivityEventBase {
|
|
404
|
+
event: 'Platform Config Updated';
|
|
405
|
+
key: string;
|
|
406
|
+
kind: 'setting' | 'flag';
|
|
407
|
+
scope: 'app' | 'web' | 'landing' | 'storefront';
|
|
408
|
+
before: string | number | boolean;
|
|
409
|
+
after: string | number | boolean;
|
|
410
|
+
}
|
|
411
|
+
type UserActivityEvent = UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StorePaletteChangedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CashDrawerOpenedEvent | CashDrawerClosedEvent | TenantImpersonatedEvent | SecretRotatedEvent | UserCreatedEvent | UserUpdatedEvent | ProductCreatedEvent | ProductUpdatedEvent | StockIncomeCreatedEvent | CategoryCreatedEvent | CategoryUpdatedEvent | BrandCreatedEvent | BrandUpdatedEvent | SupplierCreatedEvent | SupplierUpdatedEvent | SupplierInvoiceCreatedEvent | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | NotificationReadEvent | LogDeletedEvent | PlanCreatedEvent | StoreMaintenanceToggledEvent | PlatformMaintenanceToggledEvent | TenantCreatedEvent | LiteralUpdatedEvent | SupportTicketCreatedEvent | SupportTicketUpdatedEvent | AuditTrailViewedEvent | ReportViewedEvent | CustomerPiiViewedEvent | CashDrawerUiOpenedEvent | CashDrawerUiClosedEvent | ExportInitiatedEvent | ImpersonationUiStartedEvent | ImpersonationUiEndedEvent | PaymentViewedEvent | InvoiceViewedEvent | CustomerDetailViewedEvent | SupplierAccountViewedEvent | SearchPerformedEvent | ActionDeniedEvent | TwoFactorChallengeShownEvent | TwoFactorCodeValidationFailedEvent | TwoFactorEnrollmentStartedEvent | TwoFactorRecoveryCodesRevealedEvent | TwoFactorResetInitiatedEvent | IntegrationTokenRefreshedEvent | WaitlistConvertedEvent | PlatformConfigUpdatedEvent;
|
|
404
412
|
}
|
|
405
413
|
/**
|
|
406
414
|
* Canonical whitelist of UI-only `UserActivityEvent` variant names — the 8
|
package/dist/userActivity.js
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
// - 1.6.34 (+field) — LiteralUpdatedEvent gains `scope`; new `LiteralScope` contract (api#1484)
|
|
25
25
|
// - (+1 variant) — IntegrationTokenRefreshedEvent (types#91, api#1540)
|
|
26
26
|
// - 1.6.39 (+1 variant) — WaitlistConvertedEvent (types#92, api#1567)
|
|
27
|
+
// - 1.6.43 (+1 variant) — PlatformConfigUpdatedEvent (api#1108)
|
|
27
28
|
/**
|
|
28
29
|
* Canonical whitelist of UI-only `UserActivityEvent` variant names — the 8
|
|
29
30
|
* Phase 3 verbs shipped in 1.6.13 (types#74). Imported by the api side
|