sinfactura-types 1.6.33 → 1.6.35

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/auth.d.ts CHANGED
@@ -17,5 +17,10 @@ declare global {
17
17
  interface Recover {
18
18
  email: string;
19
19
  }
20
+ type LoginErrorCode = 'WRONG_CREDENTIALS' | 'ACCOUNT_LOCKED' | 'ACCOUNT_DISABLED' | 'CAPTCHA_REQUIRED' | 'CAPTCHA_INVALID';
21
+ interface AccountLockedResponse {
22
+ error: 'ACCOUNT_LOCKED';
23
+ retryAfterSeconds: number;
24
+ }
20
25
  }
21
26
  export {};
package/dist/invoice.d.ts CHANGED
@@ -76,5 +76,18 @@ declare global {
76
76
  BaseImp: number;
77
77
  Importe: number;
78
78
  }>;
79
+ /**
80
+ * `GET /reports?mode=libro-iva-digital&date=YYYYMM[&book=ventas|compras|all]`
81
+ * response (api#1501, RG 4597). Returns the four CRLF-terminated
82
+ * fixed-width payloads; an empty string means an empty period or a book
83
+ * not requested. See docs/LIBRO_IVA_DIGITAL.md.
84
+ */
85
+ interface LibroIvaDigitalResponse {
86
+ period: string;
87
+ ventasCbte: string;
88
+ ventasAlicuotas: string;
89
+ comprasCbte: string;
90
+ comprasAlicuotas: string;
91
+ }
79
92
  }
80
93
  export {};
package/dist/payment.d.ts CHANGED
@@ -50,6 +50,8 @@ declare global {
50
50
  accountId?: string;
51
51
  linkedAt?: number;
52
52
  linkSource?: "auto" | "manual";
53
+ reconciled?: boolean;
54
+ reconcileReason?: string;
53
55
  }
54
56
  /**
55
57
  * Confidence tier for a link suggestion (api#904).
package/dist/store.d.ts CHANGED
@@ -198,6 +198,7 @@ declare global {
198
198
  interface SmsIntegration {
199
199
  /** When true, the store may send SMS through the shared platform account. */
200
200
  enabled?: boolean;
201
+ signature?: string;
201
202
  }
202
203
  interface Gmail {
203
204
  connected?: boolean;
@@ -211,6 +212,8 @@ declare global {
211
212
  disconnectedAt?: number;
212
213
  lastTokenRefreshAt?: number;
213
214
  tokenRefreshFailures?: number;
215
+ accessTokenEncrypted?: string;
216
+ accessTokenExpiresAt?: number;
214
217
  }
215
218
  type FxAutoUpdateStrategy = "overwrite" | "overwrite-if-stale" | "notify-only";
216
219
  interface FxAutoUpdateBinding {
@@ -40,6 +40,13 @@ declare global {
40
40
  currencyValue: number;
41
41
  currencyValueAt?: number;
42
42
  search?: string;
43
+ neto10?: number;
44
+ neto21?: number;
45
+ neto27?: number;
46
+ iva27?: number;
47
+ noGravado?: number;
48
+ exento?: number;
49
+ cbteClass?: 'A' | 'B' | 'C';
43
50
  }
44
51
  interface SupplierAccount {
45
52
  storeId: string;
package/dist/user.d.ts CHANGED
@@ -40,6 +40,11 @@ declare global {
40
40
  lockedUntil?: number;
41
41
  };
42
42
  warnings?: StoreWarning[];
43
+ login?: {
44
+ failedAttempts?: number;
45
+ lockedUntil?: number;
46
+ lastFailedAt?: number;
47
+ };
43
48
  }
44
49
  type UserNotifications = Partial<Record<NotificationTypeEnum, boolean>>;
45
50
  type UserPermissions = {
@@ -281,8 +281,10 @@ declare global {
281
281
  target_store_id: string;
282
282
  name: string;
283
283
  }
284
+ type LiteralScope = 'GLOBAL' | 'APP' | 'PLATFORM' | 'WEB' | `APP#${string}` | `WEB#${string}`;
284
285
  interface LiteralUpdatedEvent extends UserActivityEventBase {
285
286
  event: 'Literal Updated';
287
+ scope: LiteralScope;
286
288
  key: string;
287
289
  before: string;
288
290
  after: string;
@@ -21,6 +21,7 @@
21
21
  // - 1.6.18 (+2 variants) — TOTP 2FA enroll/disable lifecycle (types#68, api#636)
22
22
  // - 1.6.20 (+1 variant) — operator 2FA reset, target_user_id (api#1335)
23
23
  // - 1.6.21 (+1 variant) — TOTP recovery codes generated (api#1336); method += 'recovery'
24
+ // - 1.6.34 (+field) — LiteralUpdatedEvent gains `scope`; new `LiteralScope` contract (api#1484)
24
25
  /**
25
26
  * Canonical whitelist of UI-only `UserActivityEvent` variant names — the 8
26
27
  * Phase 3 verbs shipped in 1.6.13 (types#74). Imported by the api side
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.33",
3
+ "version": "1.6.35",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",