sinfactura-types 1.6.42 → 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/platform.d.ts +21 -0
- package/dist/platform.js +5 -0
- package/dist/store.d.ts +2 -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
|
@@ -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
|
@@ -286,6 +286,8 @@ declare global {
|
|
|
286
286
|
accessTicket_EB?: string;
|
|
287
287
|
accessTicket_RSF?: string;
|
|
288
288
|
accessTicket_FEX?: string;
|
|
289
|
+
accessTicket_FECRED?: string;
|
|
290
|
+
accessTicket_CDC?: string;
|
|
289
291
|
hasCert?: boolean;
|
|
290
292
|
hasKey?: boolean;
|
|
291
293
|
facturaMLegend?: 'retencion' | 'cbu_informada';
|
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
|