@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/dist/index.mjs
CHANGED
|
@@ -64543,7 +64543,8 @@ function useRobotCloudService(credentials, options = {}) {
|
|
|
64543
64543
|
async function getRobotLog(robotId, sceneId, timeFrom, timeTo) {
|
|
64544
64544
|
return post(
|
|
64545
64545
|
ROBOT_CLOUD_PATHS.robotLog,
|
|
64546
|
-
|
|
64546
|
+
// Numbers: the document shows strings, but the portal refuses them ("bad json string", prod 2026-09-30).
|
|
64547
|
+
{ robotId, sceneId, timeFrom, timeTo, key: "", pageNo: 1, pageSize: 50 },
|
|
64547
64548
|
"logList"
|
|
64548
64549
|
);
|
|
64549
64550
|
}
|
|
@@ -65163,13 +65164,25 @@ var ACTION_WORDS = {
|
|
|
65163
65164
|
\u56DE\u5145: "Sent back to charge",
|
|
65164
65165
|
\u7ED3\u675F\u6E05\u6D01: "Ended the cleaning job",
|
|
65165
65166
|
\u5F00\u673A: "Switched on",
|
|
65166
|
-
\u5173\u673A: "Switched off"
|
|
65167
|
+
\u5173\u673A: "Switched off",
|
|
65168
|
+
\u8C03\u8BD5\u6A21\u5F0F: "Debug mode",
|
|
65169
|
+
\u6E05\u626B: "Started cleaning",
|
|
65170
|
+
\u5B9A\u65F6\u4EFB\u52A1\u8BBE\u7F6E: "Changed the schedule",
|
|
65171
|
+
\u6682\u505C\u6E05\u626B: "Paused cleaning",
|
|
65172
|
+
\u5F00\u59CB\u56DE\u5145: "Sent back to charge"
|
|
65167
65173
|
};
|
|
65174
|
+
var ACTION_PREFIX_WORDS = [
|
|
65175
|
+
[/^编辑机器人保存成功[,,]\s*别名[::]\s*/, "Changed the robot's nickname"],
|
|
65176
|
+
[/^编辑机器人保存成功[,,]\s*名称[::]\s*/, "Changed the robot's name"],
|
|
65177
|
+
[/^设置当前楼层[::]\s*/, "Set the current floor"]
|
|
65178
|
+
];
|
|
65168
65179
|
function ounitechAppAction(a, tz = 480) {
|
|
65169
65180
|
const raw = String(a.actionName ?? "").trim();
|
|
65181
|
+
const pre = ACTION_PREFIX_WORDS.find(([re]) => re.test(raw));
|
|
65182
|
+
const value = pre ? raw.replace(pre[0], "").trim() : "";
|
|
65170
65183
|
return {
|
|
65171
65184
|
at: ounitechTime(a.createTime, tz),
|
|
65172
|
-
action: ACTION_WORDS[raw] ?? (raw ? /[㐀-鿿]/.test(raw) ? `App action: ${raw}` : raw : "App action"),
|
|
65185
|
+
action: pre ? `${pre[1]}${value ? `: ${value}` : ""}` : ACTION_WORDS[raw] ?? (raw ? /[㐀-鿿]/.test(raw) ? `App action: ${raw}` : raw : "App action"),
|
|
65173
65186
|
by: String(a.userName ?? "").trim() || null
|
|
65174
65187
|
};
|
|
65175
65188
|
}
|