sinfactura-types 1.6.37 → 1.6.39
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 +5 -0
- package/dist/invoice.d.ts +56 -0
- package/dist/store.d.ts +2 -0
- package/dist/userActivity.d.ts +4 -1
- package/dist/userActivity.js +1 -0
- package/package.json +1 -1
package/dist/audit.d.ts
CHANGED
|
@@ -69,6 +69,11 @@ declare global {
|
|
|
69
69
|
code: number;
|
|
70
70
|
msg: string;
|
|
71
71
|
}[];
|
|
72
|
+
/** Raw ARCA Events.Evt[] passthrough (api#1559 follow-up, PR api#1571) — same treatment as errores/observaciones. */
|
|
73
|
+
eventos?: {
|
|
74
|
+
code: number;
|
|
75
|
+
msg: string;
|
|
76
|
+
}[];
|
|
72
77
|
/** Wall-clock duration of the SOAP call in ms. */
|
|
73
78
|
durationMs: number;
|
|
74
79
|
/** Full request args + response body (raw), for the regulator record. */
|
package/dist/invoice.d.ts
CHANGED
|
@@ -36,8 +36,12 @@ declare global {
|
|
|
36
36
|
fiscalStatus?: FiscalStatus;
|
|
37
37
|
arcaError?: ArcaError;
|
|
38
38
|
arcaObservations?: InvoiceObservation[];
|
|
39
|
+
arcaEvents?: InvoiceObservation[];
|
|
40
|
+
facturaMLegend?: 'retencion' | 'cbu_informada';
|
|
41
|
+
cbu?: string;
|
|
39
42
|
caea?: string;
|
|
40
43
|
caeaPeriod?: string;
|
|
44
|
+
caeaDet?: CaeaInformDet;
|
|
41
45
|
export?: ExportInvoiceFields;
|
|
42
46
|
fce?: FceFields;
|
|
43
47
|
serviceStartDate?: number;
|
|
@@ -127,6 +131,7 @@ declare global {
|
|
|
127
131
|
status: 'active' | 'used' | 'informed' | 'expired';
|
|
128
132
|
invoiceCount: number;
|
|
129
133
|
informedAt?: string;
|
|
134
|
+
fchTopeInf?: string;
|
|
130
135
|
}
|
|
131
136
|
/** Result of requesting a new CAEA code for an upcoming period. */
|
|
132
137
|
interface CAEARequestResult {
|
|
@@ -140,6 +145,57 @@ declare global {
|
|
|
140
145
|
informedAt: string;
|
|
141
146
|
errors?: ArcaError[];
|
|
142
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Frozen `FECAEADetRequest`-shaped snapshot, persisted on `Invoice.caeaDet`
|
|
150
|
+
* at CAEA-stamp time and replayed verbatim by the deferred
|
|
151
|
+
* `FECAEARegInformativo` step (api#1580). PascalCase keys are AFIP wire
|
|
152
|
+
* vocabulary, stored exactly as the voucher body was built at stamp time.
|
|
153
|
+
* Array fields (`Iva`, `CbtesAsoc`, `Tributos`) stay FLAT here (the afip.ts
|
|
154
|
+
* SDK-wrapper flavor); the Inform sender re-nests them into the raw SOAP
|
|
155
|
+
* envelope shape (`Iva: { AlicIva: [...] }`, etc.) at call time.
|
|
156
|
+
*/
|
|
157
|
+
interface CaeaInformDet {
|
|
158
|
+
Concepto: number;
|
|
159
|
+
DocTipo: number;
|
|
160
|
+
DocNro: number;
|
|
161
|
+
CbteDesde: number;
|
|
162
|
+
CbteHasta: number;
|
|
163
|
+
CbteFch: string;
|
|
164
|
+
FchServDesde?: string;
|
|
165
|
+
FchServHasta?: string;
|
|
166
|
+
FchVtoPago?: string;
|
|
167
|
+
ImpTotal: number;
|
|
168
|
+
ImpTotConc: number;
|
|
169
|
+
ImpNeto: number;
|
|
170
|
+
ImpOpEx: number;
|
|
171
|
+
ImpIVA: number;
|
|
172
|
+
ImpTrib: number;
|
|
173
|
+
MonId: string;
|
|
174
|
+
MonCotiz: number;
|
|
175
|
+
CanMisMonExt?: number;
|
|
176
|
+
CondicionIVAReceptorId?: number;
|
|
177
|
+
Iva?: {
|
|
178
|
+
Id: number;
|
|
179
|
+
BaseImp: number;
|
|
180
|
+
Importe: number;
|
|
181
|
+
}[];
|
|
182
|
+
CbtesAsoc?: {
|
|
183
|
+
Tipo: number;
|
|
184
|
+
PtoVta: number;
|
|
185
|
+
Nro: number;
|
|
186
|
+
Cuit?: string;
|
|
187
|
+
CbteFch?: string;
|
|
188
|
+
}[];
|
|
189
|
+
Tributos?: {
|
|
190
|
+
Id: number;
|
|
191
|
+
Desc?: string;
|
|
192
|
+
BaseImp: number;
|
|
193
|
+
Alic: number;
|
|
194
|
+
Importe: number;
|
|
195
|
+
}[];
|
|
196
|
+
CAEA: string;
|
|
197
|
+
CbteFchHsGen: string;
|
|
198
|
+
}
|
|
143
199
|
/** Export-invoice-specific fields, present only when Invoice.invoiceType === 19 (Factura E). */
|
|
144
200
|
interface ExportInvoiceFields {
|
|
145
201
|
dstCmp: number;
|
package/dist/store.d.ts
CHANGED
|
@@ -187,6 +187,7 @@ declare global {
|
|
|
187
187
|
from?: string;
|
|
188
188
|
verified?: boolean;
|
|
189
189
|
};
|
|
190
|
+
waitlist?: boolean;
|
|
190
191
|
}
|
|
191
192
|
interface StoreIntegrations {
|
|
192
193
|
afip?: Afip;
|
|
@@ -288,6 +289,7 @@ declare global {
|
|
|
288
289
|
hasCert?: boolean;
|
|
289
290
|
hasKey?: boolean;
|
|
290
291
|
facturaMLegend?: 'retencion' | 'cbu_informada';
|
|
292
|
+
cbu?: string;
|
|
291
293
|
certExpiry?: number;
|
|
292
294
|
}
|
|
293
295
|
type StoreAttributeNames = keyof Store;
|
package/dist/userActivity.d.ts
CHANGED
|
@@ -397,7 +397,10 @@ declare global {
|
|
|
397
397
|
trigger: 'operator-single' | 'operator-global';
|
|
398
398
|
detail?: string;
|
|
399
399
|
}
|
|
400
|
-
|
|
400
|
+
interface WaitlistConvertedEvent extends UserActivityEventBase {
|
|
401
|
+
event: 'Waitlist Converted';
|
|
402
|
+
}
|
|
403
|
+
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;
|
|
401
404
|
}
|
|
402
405
|
/**
|
|
403
406
|
* Canonical whitelist of UI-only `UserActivityEvent` variant names — the 8
|
package/dist/userActivity.js
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
// - 1.6.21 (+1 variant) — TOTP recovery codes generated (api#1336); method += 'recovery'
|
|
24
24
|
// - 1.6.34 (+field) — LiteralUpdatedEvent gains `scope`; new `LiteralScope` contract (api#1484)
|
|
25
25
|
// - (+1 variant) — IntegrationTokenRefreshedEvent (types#91, api#1540)
|
|
26
|
+
// - 1.6.39 (+1 variant) — WaitlistConvertedEvent (types#92, api#1567)
|
|
26
27
|
/**
|
|
27
28
|
* Canonical whitelist of UI-only `UserActivityEvent` variant names — the 8
|
|
28
29
|
* Phase 3 verbs shipped in 1.6.13 (types#74). Imported by the api side
|