@7365admin1/layer-common 4.134.0 → 4.135.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 +10 -4
- package/package.json +1 -1
- package/utils/robot-fleet-ops.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.135.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 04a54e7: Robots, Super Admin site setup, Fleet operations: new switch "Carry on an interrupted patrol after charging" (OFF by default) for OneWay security robots.
|
|
8
|
+
|
|
3
9
|
## 4.134.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -3359,11 +3365,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
|
|
|
3359
3365
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
3360
3366
|
own rule from two endpoints the console already calls, unprojected:
|
|
3361
3367
|
|
|
3362
|
-
|
|
3363
|
-
|
|
3368
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
3369
|
+
GET /api/roles/id/:role that membership's role document
|
|
3364
3370
|
|
|
3365
|
-
|
|
3366
|
-
|
|
3371
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
3372
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
3367
3373
|
|
|
3368
3374
|
`role.default` is the marker because it is the only property of a platform
|
|
3369
3375
|
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.
|
|
5
|
+
"version": "4.135.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.",
|
package/utils/robot-fleet-ops.ts
CHANGED
|
@@ -35,6 +35,12 @@ export const FLEET_OPS_SWITCHES = [
|
|
|
35
35
|
help: "An idle robot at or below the low-battery mark is driven to its charger (never during an emergency). The alert is sent either way.",
|
|
36
36
|
moves: true,
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
key: "resumePatrolAfterCharge",
|
|
40
|
+
label: "Carry on an interrupted patrol after charging",
|
|
41
|
+
help: "OneWay robots do not resume a patrol after charging. With this on, a patrol interrupted by charging restarts from the next point once the robot is charged and standing by. Never after a cancel or emergency stop, and not once the last point was reached. This DRIVES the robot - switch on only after the on-site test.",
|
|
42
|
+
moves: true,
|
|
43
|
+
},
|
|
38
44
|
] as const;
|
|
39
45
|
|
|
40
46
|
export type TFleetOpsKey = (typeof FLEET_OPS_SWITCHES)[number]["key"];
|