@tachybase/module-instrumentation 1.6.0 → 1.6.2

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.
@@ -1,11 +1,11 @@
1
1
  module.exports = {
2
+ "@tachybase/client": "1.6.1",
2
3
  "react": "18.3.1",
3
- "@tachybase/client": "1.6.0",
4
- "@tachybase/schema": "1.3.52",
5
- "@tego/client": "1.3.52",
4
+ "@tachybase/schema": "1.6.0",
5
+ "@tego/client": "1.6.0",
6
6
  "antd": "5.22.5",
7
- "@ant-design/icons": "5.6.1",
7
+ "@ant-design/icons": "6.1.0",
8
8
  "lodash": "4.17.21",
9
- "@tego/server": "1.3.52",
9
+ "@tego/server": "1.6.0",
10
10
  "dayjs": "1.11.13"
11
11
  };
@@ -1,18 +1,18 @@
1
- {
2
- "Action": "API Action",
3
- "All users": "Total Users",
4
- "Api audit": "Enable API Audit Log",
5
- "Custom Instrumentation": "Custom Tracking",
6
- "Instrumentation key": "Tracking Key",
7
- "Instrumentation log": "Tracking Logs",
8
- "Instrumentation type": "Tracking Type",
9
- "Instrumentation values": "Tracking Values",
10
- "Other users": "Other Users",
11
- "Resource name": "API Resource",
12
- "Server tracking configuration": "Backend Tracking Configuration",
13
- "Statistics options": "Data Source",
14
- "Statistics title": "Chart Title",
15
- "Today active": "Active Today",
16
- "Tracking options": "Tracking Configuration",
17
- "Tracking statistics": "Tracking Analytics"
18
- }
1
+ {
2
+ "Action": "API Action",
3
+ "All users": "Total Users",
4
+ "Api audit": "Enable API Audit Log",
5
+ "Custom Instrumentation": "Custom Tracking",
6
+ "Instrumentation key": "Tracking Key",
7
+ "Instrumentation log": "Tracking Logs",
8
+ "Instrumentation type": "Tracking Type",
9
+ "Instrumentation values": "Tracking Values",
10
+ "Other users": "Other Users",
11
+ "Resource name": "API Resource",
12
+ "Server tracking configuration": "Backend Tracking Configuration",
13
+ "Statistics options": "Data Source",
14
+ "Statistics title": "Chart Title",
15
+ "Today active": "Active Today",
16
+ "Tracking options": "Tracking Configuration",
17
+ "Tracking statistics": "Tracking Analytics"
18
+ }
@@ -1,45 +1,45 @@
1
- {
2
- "Action": "API操作",
3
- "Add condition": "添加条件",
4
- "After": "在此之后",
5
- "All": "全部",
6
- "All users": "总用户数",
7
- "Any": "任意",
8
- "Api audit": "启用日志",
9
- "Before": "在此之前",
10
- "Conditions": "条件",
11
- "Custom Instrumentation": "自定义埋点",
12
- "Instrumentation filter": "埋点筛选",
13
- "Instrumentation key": "埋点键",
14
- "Instrumentation log": "埋点日志",
15
- "Instrumentation type": "埋点类型",
16
- "Instrumentation values": "值",
17
- "Meet": "满足",
18
- "Meta": "元数据",
19
- "On": "在某天",
20
- "On today": "今日",
21
- "Other users": "其他用户",
22
- "Payload": "自定义数据",
23
- "RangeDays": "近N天",
24
- "Refresh": "刷新",
25
- "Resource name": "API资源",
26
- "Server tracking configuration": "后端埋点配置",
27
- "Statistics Historical": "历史数据分析",
28
- "Statistics details": "日志查询",
29
- "Statistics options": "数据来源",
30
- "Statistics title": "数据标题",
31
- "Time filter": "时间筛选",
32
- "Today active": "今日活跃",
33
- "Total Users": "总用户",
34
- "Tracking options": "埋点配置",
35
- "Tracking statistics": "埋点分析",
36
- "equals": "等于",
37
- "exists": "存在",
38
- "greater than": "大于",
39
- "greater than or equal": "大于等于",
40
- "includes": "包含",
41
- "is null": "为空",
42
- "less than": "小于",
43
- "less than or equal": "小于等于",
44
- "not equals": "不等于"
45
- }
1
+ {
2
+ "Action": "API操作",
3
+ "Add condition": "添加条件",
4
+ "After": "在此之后",
5
+ "All": "全部",
6
+ "All users": "总用户数",
7
+ "Any": "任意",
8
+ "Api audit": "启用日志",
9
+ "Before": "在此之前",
10
+ "Conditions": "条件",
11
+ "Custom Instrumentation": "自定义埋点",
12
+ "Instrumentation filter": "埋点筛选",
13
+ "Instrumentation key": "埋点键",
14
+ "Instrumentation log": "埋点日志",
15
+ "Instrumentation type": "埋点类型",
16
+ "Instrumentation values": "值",
17
+ "Meet": "满足",
18
+ "Meta": "元数据",
19
+ "On": "在某天",
20
+ "On today": "今日",
21
+ "Other users": "其他用户",
22
+ "Payload": "自定义数据",
23
+ "RangeDays": "近N天",
24
+ "Refresh": "刷新",
25
+ "Resource name": "API资源",
26
+ "Server tracking configuration": "后端埋点配置",
27
+ "Statistics Historical": "历史数据分析",
28
+ "Statistics details": "日志查询",
29
+ "Statistics options": "数据来源",
30
+ "Statistics title": "数据标题",
31
+ "Time filter": "时间筛选",
32
+ "Today active": "今日活跃",
33
+ "Total Users": "总用户",
34
+ "Tracking options": "埋点配置",
35
+ "Tracking statistics": "埋点分析",
36
+ "equals": "等于",
37
+ "exists": "存在",
38
+ "greater than": "大于",
39
+ "greater than or equal": "大于等于",
40
+ "includes": "包含",
41
+ "is null": "为空",
42
+ "less than": "小于",
43
+ "less than or equal": "小于等于",
44
+ "not equals": "不等于"
45
+ }
@@ -58,7 +58,7 @@ async function handleOtherAction(ctx, next, whiteList) {
58
58
  payload: ((_c = Config == null ? void 0 : Config.options) == null ? void 0 : _c.payload) || [],
59
59
  filter: ((_d = Config == null ? void 0 : Config.options) == null ? void 0 : _d.filter) || {}
60
60
  };
61
- const app = ctx.app;
61
+ const app = ctx.tego;
62
62
  const collection = app.mainDataSource.collectionManager.getCollection(ctx.action.resourceName);
63
63
  const currentRecordId = ((_e = ctx.body) == null ? void 0 : _e[collection == null ? void 0 : collection.filterTargetKey]) || null;
64
64
  const currentUserId = ((_g = (_f = ctx.auth) == null ? void 0 : _f.user) == null ? void 0 : _g.id) || null;
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@tachybase/module-instrumentation",
3
3
  "displayName": "Custom instrumentation",
4
- "version": "1.6.0",
4
+ "version": "1.6.2",
5
5
  "description": "A module for tracking and instrumentation in Tachybase.",
6
6
  "keywords": [
7
7
  "Logging and monitoring"
8
8
  ],
9
9
  "main": "dist/server/index.js",
10
10
  "devDependencies": {
11
- "@ant-design/icons": "^5.6.1",
11
+ "@ant-design/icons": "^6.1.0",
12
12
  "@antv/g2": "^5.3.5",
13
- "@tachybase/schema": "1.3.52",
14
- "@tachybase/test": "1.3.52",
15
- "@tego/client": "1.3.52",
16
- "@tego/server": "1.3.52",
13
+ "@tachybase/schema": "1.6.1",
14
+ "@tachybase/test": "1.6.1",
15
+ "@tego/client": "1.6.1",
16
+ "@tego/server": "1.6.1",
17
17
  "antd": "5.22.5",
18
18
  "dayjs": "1.11.13",
19
19
  "lodash": "4.17.21",
20
- "@tachybase/client": "1.6.0"
20
+ "@tachybase/client": "1.6.2"
21
21
  },
22
22
  "description.zh-CN": "Tachybase 应用的追踪和埋点模块",
23
23
  "displayName.zh-CN": "埋点追踪"
package/server.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './dist/server';
2
- export { default } from './dist/server';
1
+ export * from './dist/server';
2
+ export { default } from './dist/server';
package/server.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./dist/server/index.js');
1
+ module.exports = require('./dist/server/index.js');