@7365admin1/layer-common 4.130.0 → 4.130.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/package.json +1 -1
- package/utils/robot-setup.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.130.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3c80d85: Robots setup checklist: OneWay's "not online" reason and its before-adding prerequisite, in the same words as Ounitech and PadBot.
|
|
8
|
+
|
|
3
9
|
## 4.130.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -3328,11 +3334,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
|
|
|
3328
3334
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
3329
3335
|
own rule from two endpoints the console already calls, unprojected:
|
|
3330
3336
|
|
|
3331
|
-
|
|
3332
|
-
|
|
3337
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
3338
|
+
GET /api/roles/id/:role that membership's role document
|
|
3333
3339
|
|
|
3334
|
-
|
|
3335
|
-
|
|
3340
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
3341
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
3336
3342
|
|
|
3337
3343
|
`role.default` is the marker because it is the only property of a platform
|
|
3338
3344
|
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.130.
|
|
5
|
+
"version": "4.130.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.",
|
package/utils/robot-setup.ts
CHANGED
|
@@ -88,6 +88,7 @@ export function offlineReason(robot: Record<string, any>, state: Record<string,
|
|
|
88
88
|
const why = state.reason ? ` (${state.reason})` : "";
|
|
89
89
|
if (robot?.brand === "ounitech") return `${name}: the Ounitech cloud did not answer${why}. Ask Ounitech to link this robot's serial to our account.`;
|
|
90
90
|
if (robot?.brand === "padbot") return `${name}: the PadBot cloud did not answer${why}. Check the robot's key and token.`;
|
|
91
|
+
if (robot?.brand === "oneway") return `${name}: OneWay's RMS did not answer${why}. Check the robot's API key and server address, and ask OneWay to put this robot under our company key.`;
|
|
91
92
|
return `${name}: its cloud did not answer${why}.`;
|
|
92
93
|
}
|
|
93
94
|
return `${name}: its cloud says it is offline - switched off, charging dock unplugged or out of Wi-Fi.`;
|
|
@@ -129,7 +130,7 @@ export function robotSetupSteps(input: TSetupInput): TSetupStep[] {
|
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
// 2. Robots added.
|
|
132
|
-
const prereq = "Before adding: Ounitech must link each robot's serial to our Seven365 account; for PadBot, save the robot's points (charger, stops) in the PadBot app first.";
|
|
133
|
+
const prereq = "Before adding: Ounitech must link each robot's serial to our Seven365 account; for PadBot, save the robot's points (charger, stops) in the PadBot app first; for OneWay, get our company API key from OneWay and have the robot's routes and charging point set in OneWay's RMS.";
|
|
133
134
|
if (!robots) {
|
|
134
135
|
steps.push({ key: "robots", title: "Robots added", status: "check", reason: "Could not read this site's robots.", button: { label: "Open fleet", target: "fleet" } });
|
|
135
136
|
} else {
|