nayota-show-sdk 1.3.49 → 1.3.52

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.
Files changed (2) hide show
  1. package/api/area.js +21 -1
  2. package/package.json +2 -2
package/api/area.js CHANGED
@@ -26,6 +26,16 @@ import { requestShow } from '../utils'
26
26
  * @property {string} areaClass - 区域类型id
27
27
  * @property {string} managerName - 管理人姓名
28
28
  * @property {number} areaSize - 区域面积(平方米)
29
+ * @property {Array} centerCoordinate - 区域中心坐标 [x, y]
30
+ * @property {string} creator - 创建人id
31
+ * @property {string} linkType - 区域关联类型 'none'|'depart'|'device'|'link'|'scada'
32
+ * @property {string} targetDepartId - 关联部门ID(跳转楼栋/楼层)
33
+ * @property {string} targetDeviceId - 关联设备ID
34
+ * @property {Array} targetDeviceIds - 关联设备ID数组
35
+ * @property {Object} targetScadaRoute - 关联组态路由配置
36
+ * @property {string} linkUrl - 外部链接地址
37
+ * @property {string} linkLabel - 外部链接展示名称
38
+ * @property {boolean} openInNew - 外部链接是否新开窗口
29
39
  * @example
30
40
  * {
31
41
  "_id": "67073bfe463d6e00099becdd",
@@ -37,6 +47,17 @@ import { requestShow } from '../utils'
37
47
  "type": "办公区",
38
48
  "areaClass": "67073bfe463d6e00099becdd",
39
49
  "managerName": "张三",
50
+ "creator": "667d2ecc52d21700095b58b5",
51
+ "centerCoordinate": [116.404, 39.915],
52
+ "linkType": "scada",
53
+ "targetDeviceId": "67073bfe463d6e00099becde",
54
+ "targetDeviceIds": ["67073bfe463d6e00099becde", "67073bfe463d6e00099becdf"],
55
+ "targetScadaRoute": {
56
+ "path": "/scada/project",
57
+ "query": {
58
+ "id": "67073bfe463d6e00099becaa"
59
+ }
60
+ },
40
61
  "bounds": [
41
62
  [
42
63
  116.404,
@@ -166,4 +187,3 @@ export default {
166
187
  deleteMany,
167
188
  getOne
168
189
  }
169
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nayota-show-sdk",
3
- "version": "1.3.49",
3
+ "version": "1.3.52",
4
4
  "description": "nayota-show-server rest-api",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -25,4 +25,4 @@
25
25
  "jsdom": "^24.0.0",
26
26
  "taffydb": "^2.7.3"
27
27
  }
28
- }
28
+ }