sinfactura-types 1.7.2 → 1.7.4

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/store.d.ts CHANGED
@@ -103,7 +103,7 @@ declare global {
103
103
  createdAt: number;
104
104
  type?: 'production' | 'demo';
105
105
  name: string;
106
- address: {
106
+ address?: {
107
107
  street: string;
108
108
  postalCode: string;
109
109
  city: string;
@@ -113,6 +113,7 @@ declare global {
113
113
  phone: string;
114
114
  email: string;
115
115
  acknowledgedSharedCuit?: boolean;
116
+ subscription?: StoreRowSubscriptionSummary;
116
117
  config: {
117
118
  priceDecimals: 0 | 1 | 2 | 3;
118
119
  stock: boolean;
@@ -294,6 +294,24 @@ declare global {
294
294
  entitlements: SubscriptionEntitlementEntry[];
295
295
  usage: SubscriptionUsageEntry[];
296
296
  }
297
+ /**
298
+ * Compact subscription summary attached to `Store.subscription` on
299
+ * `GET /tenants` (list) and `GET /tenants?storeId=X` (single-store)
300
+ * responses — the only subscription data SUPERVISOR can read (managerToken
301
+ * still owns the full audit/override surface). No Stripe ids or amounts
302
+ * (least-privilege). Absent entirely on a store with no SUBSCRIPTION row.
303
+ */
304
+ interface StoreRowSubscriptionSummary {
305
+ planTier: PlanTier;
306
+ status: SubscriptionStatus;
307
+ /** `null` when the row has no billing cycle yet (pre-checkout). */
308
+ billingCycle: BillingCycle | null;
309
+ /** Courtesy-gift cutoff (ADR-0010). `YYYY-MM-DD`, matches `Subscription.freeUntil` — not epoch ms. */
310
+ freeUntil?: string;
311
+ /** Unix ms. Only meaningful while `status === 'trialing'`. */
312
+ trialEndsAt?: number;
313
+ currentPeriodEnd?: number;
314
+ }
297
315
  /**
298
316
  * Request body for the MANAGER out-of-band override
299
317
  * `PUT /platform/stores/{storeId}/subscription` (api#827). No Stripe call —
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",