@7365admin1/layer-common 4.33.0 → 4.33.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/CHANGELOG.md +10 -4
- package/README.md +19 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.33.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 498481c: HERO robot rules for the mobile apps: `scripts/sync-robot-rules.mjs` writes a generated, hash-stamped copy of `utils/robot-display.ts` (+ lift-queue rows, HERO_PALETTE) and shared test vectors into iClean365, iMA365 and iSecure365. Repo tooling only; nothing a consuming app loads changes.
|
|
8
|
+
|
|
3
9
|
## 4.33.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -1381,11 +1387,11 @@
|
|
|
1381
1387
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
1382
1388
|
own rule from two endpoints the console already calls, unprojected:
|
|
1383
1389
|
|
|
1384
|
-
|
|
1385
|
-
|
|
1390
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
1391
|
+
GET /api/roles/id/:role that membership's role document
|
|
1386
1392
|
|
|
1387
|
-
|
|
1388
|
-
|
|
1393
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
1394
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
1389
1395
|
|
|
1390
1396
|
`role.default` is the marker because it is the only property of a platform
|
|
1391
1397
|
staff role no API caller can set - `role.controller.ts` validates create and
|
package/README.md
CHANGED
|
@@ -71,3 +71,22 @@ pnpm preview
|
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
|
74
|
+
|
|
75
|
+
## HERO robot rules for the mobile apps
|
|
76
|
+
|
|
77
|
+
`utils/robot-display.ts` is the canonical home of the HERO robot display rules.
|
|
78
|
+
The React Native apps (iClean365, iMA365, iSecure365) cannot consume this layer
|
|
79
|
+
and no separate npm package is published for them, so
|
|
80
|
+
`scripts/sync-robot-rules.mjs` writes a dependency-free copy into each app
|
|
81
|
+
(`src/shared/robot-rules/robot-rules.ts`, GENERATED, with a sha256 header) plus
|
|
82
|
+
`robot-rules.vectors.json` - this repo's own answers for every case. Each app's
|
|
83
|
+
test re-hashes the copy and runs the vectors, so a hand edit fails there.
|
|
84
|
+
|
|
85
|
+
After changing `utils/robot-display.ts` (or the lift-queue section of
|
|
86
|
+
`utils/robot-building.ts`, or `HERO_PALETTE` in `utils/theme.ts`):
|
|
87
|
+
|
|
88
|
+
node scripts/sync-robot-rules.mjs ../iservice365-hygiene-mobile-app ../iservice365-ma-mobile-app ../isecure365-mobile-app
|
|
89
|
+
node scripts/sync-robot-rules.mjs --check ../iservice365-hygiene-mobile-app ../iservice365-ma-mobile-app ../isecure365-mobile-app
|
|
90
|
+
|
|
91
|
+
and open a PR in each app with the two regenerated files. `test/robot-rules-sync.test.mjs`
|
|
92
|
+
checks the generator here. The script is not part of the published package.
|
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.33.
|
|
5
|
+
"version": "4.33.1",
|
|
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.",
|