@7365admin1/layer-common 4.0.4-staging.242 → 4.1.0
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/CHANGELOG.md +14 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a45deb4: Add a canonical permission catalogue and a test that fails when the UI and the server stop agreeing
|
|
8
|
+
|
|
9
|
+
`constants/permissions.ts` exports the canonical spelling of every permission the estate uses, typed so a misspelt string is a build error rather than a check that is silently false forever, plus a map from each legacy spelling (four for work orders, two each for visitors, bulletin boards, buildings and service providers) to its canonical form.
|
|
10
|
+
|
|
11
|
+
Additive only: no gate is rewired and no existing check changes the string it asks for. `test/permission-vocabulary.test.mjs` fails when a new string appears in this package, or when the server's enforced set — snapshotted in `test/fixtures/server-permissions.json` by `tools/refresh-server-permissions.mjs` — contains something the catalogue has no name for.
|
|
12
|
+
|
|
3
13
|
## 4.0.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -280,11 +290,11 @@
|
|
|
280
290
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
281
291
|
own rule from two endpoints the console already calls, unprojected:
|
|
282
292
|
|
|
283
|
-
|
|
284
|
-
|
|
293
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
294
|
+
GET /api/roles/id/:role that membership's role document
|
|
285
295
|
|
|
286
|
-
|
|
287
|
-
|
|
296
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
297
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
288
298
|
|
|
289
299
|
`role.default` is the marker because it is the only property of a platform
|
|
290
300
|
staff role no API caller can set - `role.controller.ts` validates create and
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.0
|
|
5
|
+
"version": "4.1.0",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|