sinfactura-types 1.7.4 → 1.7.6

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 CHANGED
@@ -101,6 +101,12 @@ declare global {
101
101
  publicationDate?: string;
102
102
  /** ISO date — freshness of the imported registry snapshot (the file's "Generado" stamp). */
103
103
  registrySnapshotAt: string;
104
+ /** True when `registrySnapshotAt` is older than the staleness threshold — api#1903.
105
+ * `flagged` is still computed from the local snapshot either way; this never suppresses
106
+ * an answer, only marks it as based on a potentially outdated registry. */
107
+ stale: boolean;
108
+ /** Days between `registrySnapshotAt` and `checkedAt` — api#1903. */
109
+ registryAgeDays: number;
104
110
  /** ISO timestamp of this check. */
105
111
  checkedAt: string;
106
112
  }
@@ -315,17 +315,21 @@ declare global {
315
315
  /**
316
316
  * Request body for the MANAGER out-of-band override
317
317
  * `PUT /platform/stores/{storeId}/subscription` (api#827). No Stripe call —
318
- * a direct DynamoDB write + audit row. `trialEndsAt` is required when
319
- * `status === 'trialing'`; `reason` is the audit message (min 10 chars).
318
+ * a direct DynamoDB write + audit row. `trialEndsAt` is required (non-null)
319
+ * when `status === 'trialing'`; `reason` is the audit message (min 10 chars).
320
+ *
321
+ * `freeUntil` / `trialEndsAt` are three-state (api#1907): omit the key to
322
+ * leave the existing value untouched, send `null` to clear it, send a value
323
+ * to set it.
320
324
  */
321
325
  interface SubscriptionAdminOverrideInput {
322
326
  planTier: PlanTier;
323
327
  status: SubscriptionStatus;
324
328
  billingCycle: BillingCycle;
325
- /** Courtesy-gift cutoff (ADR-0010), `YYYY-MM-DD`. Optional on any status. */
326
- freeUntil?: string;
327
- /** Trial end (Unix ms). Required when `status === 'trialing'`. */
328
- trialEndsAt?: number;
329
+ /** Courtesy-gift cutoff (ADR-0010), `YYYY-MM-DD`. Optional on any status; `null` clears it. */
330
+ freeUntil?: string | null;
331
+ /** Trial end (Unix ms). Required (non-null) when `status === 'trialing'`; `null` clears it otherwise. */
332
+ trialEndsAt?: number | null;
329
333
  reason: string;
330
334
  }
331
335
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",