@i4e/invest4edu-access-core 0.15.0 → 0.15.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i4e/invest4edu-access-core",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Shared access-control primitives for NeoFindesk: tenant keystone, role capabilities, reportee tree, feature flags, and the unified access engine (registry schema, snapshot resolver, visibleWhen).",
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,7 +29,10 @@ export const LIVE_STATUSES = Object.freeze(["trialing", "active", "past_due"]);
29
29
 
30
30
  export const TRANSITIONS = Object.freeze({
31
31
  trialing: ["active", "cancelled", "expired"],
32
- active: ["past_due", "blocked", "cancelled"],
32
+ // `expired` because a FIXED-TERM subscription that reaches its end has simply run out. Without
33
+ // it the only exits are `blocked`, which implies a deliberate cut-off, and `cancelled`, which
34
+ // implies the customer chose to leave — neither is true of a 90-day plan reaching day 91.
35
+ active: ["past_due", "blocked", "cancelled", "expired"],
33
36
  past_due: ["active", "blocked", "cancelled"],
34
37
  blocked: ["active", "cancelled"],
35
38
  cancelled: [],