@trackunit/iris-app-runtime-core-api 1.17.36 → 1.17.39

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": "@trackunit/iris-app-runtime-core-api",
3
- "version": "1.17.36",
3
+ "version": "1.17.39",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,8 +8,8 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@graphql-typed-document-node/core": "^3.2.0",
11
- "@trackunit/shared-utils": "1.16.28",
12
- "@trackunit/geo-json-utils": "1.15.27"
11
+ "@trackunit/shared-utils": "1.16.31",
12
+ "@trackunit/geo-json-utils": "1.15.30"
13
13
  },
14
14
  "migrations": "./migrations.json",
15
15
  "module": "./index.esm.js",
@@ -10,10 +10,12 @@ export interface CurrentUserRole {
10
10
  * Names of the server-evaluated `Account.actions` checks the host resolves at startup.
11
11
  *
12
12
  * Each name matches a field on the GraphQL `AccountActions` type. Adding one here takes
13
- * three more edits: select it in the host's `GetUserDetails` query, map it in
14
- * `RehydrateUser`, and widen `User.accountActions` in `UserStoreProviderHost`. Miss the
15
- * first two and the action silently resolves to `false`; miss the third and the value is
16
- * present at runtime but invisible to anything reading it through `useUser()`.
13
+ * two more edits in the host: select it in the `GetUserDetails` query, and map it in
14
+ * `auth/hooks/accountActions.ts` — both `resolveAccountActions` and `NO_ACCOUNT_ACTIONS`
15
+ * are typed as a full `Record` of this union, so leaving it unmapped is a compile error
16
+ * rather than a silent `false`. Miss the query field and the action does resolve to
17
+ * `false` silently. `User.accountActions` in `UserStoreProviderHost` is already keyed by
18
+ * this union and needs no change.
17
19
  *
18
20
  * Each name costs a live OpenFGA check on a query that runs on every login and token
19
21
  * renewal, so add one only once a gate is queued to read it — and drop it again if that