@7365admin1/core 3.136.0 → 3.136.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 +6 -0
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/test/ounitech-api-2025-10.test.mjs +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/core
|
|
2
2
|
|
|
3
|
+
## 3.136.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 28438bc: Ounitech: robot status log asks with numeric ids (the portal refused strings); more Ounitech-app actions in English (debug mode, clean, schedule change, pause, return to charge, rename, set floor).
|
|
8
|
+
|
|
3
9
|
## 3.136.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -65248,7 +65248,8 @@ function useRobotCloudService(credentials, options = {}) {
|
|
|
65248
65248
|
async function getRobotLog(robotId, sceneId, timeFrom, timeTo) {
|
|
65249
65249
|
return post(
|
|
65250
65250
|
ROBOT_CLOUD_PATHS.robotLog,
|
|
65251
|
-
|
|
65251
|
+
// Numbers: the document shows strings, but the portal refuses them ("bad json string", prod 2026-09-30).
|
|
65252
|
+
{ robotId, sceneId, timeFrom, timeTo, key: "", pageNo: 1, pageSize: 50 },
|
|
65252
65253
|
"logList"
|
|
65253
65254
|
);
|
|
65254
65255
|
}
|
|
@@ -65868,13 +65869,25 @@ var ACTION_WORDS = {
|
|
|
65868
65869
|
\u56DE\u5145: "Sent back to charge",
|
|
65869
65870
|
\u7ED3\u675F\u6E05\u6D01: "Ended the cleaning job",
|
|
65870
65871
|
\u5F00\u673A: "Switched on",
|
|
65871
|
-
\u5173\u673A: "Switched off"
|
|
65872
|
+
\u5173\u673A: "Switched off",
|
|
65873
|
+
\u8C03\u8BD5\u6A21\u5F0F: "Debug mode",
|
|
65874
|
+
\u6E05\u626B: "Started cleaning",
|
|
65875
|
+
\u5B9A\u65F6\u4EFB\u52A1\u8BBE\u7F6E: "Changed the schedule",
|
|
65876
|
+
\u6682\u505C\u6E05\u626B: "Paused cleaning",
|
|
65877
|
+
\u5F00\u59CB\u56DE\u5145: "Sent back to charge"
|
|
65872
65878
|
};
|
|
65879
|
+
var ACTION_PREFIX_WORDS = [
|
|
65880
|
+
[/^编辑机器人保存成功[,,]\s*别名[::]\s*/, "Changed the robot's nickname"],
|
|
65881
|
+
[/^编辑机器人保存成功[,,]\s*名称[::]\s*/, "Changed the robot's name"],
|
|
65882
|
+
[/^设置当前楼层[::]\s*/, "Set the current floor"]
|
|
65883
|
+
];
|
|
65873
65884
|
function ounitechAppAction(a, tz = 480) {
|
|
65874
65885
|
const raw = String(a.actionName ?? "").trim();
|
|
65886
|
+
const pre = ACTION_PREFIX_WORDS.find(([re]) => re.test(raw));
|
|
65887
|
+
const value = pre ? raw.replace(pre[0], "").trim() : "";
|
|
65875
65888
|
return {
|
|
65876
65889
|
at: ounitechTime(a.createTime, tz),
|
|
65877
|
-
action: ACTION_WORDS[raw] ?? (raw ? /[㐀-鿿]/.test(raw) ? `App action: ${raw}` : raw : "App action"),
|
|
65890
|
+
action: pre ? `${pre[1]}${value ? `: ${value}` : ""}` : ACTION_WORDS[raw] ?? (raw ? /[㐀-鿿]/.test(raw) ? `App action: ${raw}` : raw : "App action"),
|
|
65878
65891
|
by: String(a.userName ?? "").trim() || null
|
|
65879
65892
|
};
|
|
65880
65893
|
}
|