@reglow/reglow 0.10.0 → 0.12.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/dist/reglow/common/errors.js +1 -1
- package/dist/reglow/common/errors.js.map +1 -1
- package/dist/reglow/core/config.js +1 -1
- package/dist/reglow/core/entities.d.ts +113 -1
- package/dist/reglow/core/models.d.ts +16 -0
- package/dist/reglow/core/models.js +9 -0
- package/dist/reglow/core/models.js.map +1 -1
- package/dist/reglow/core/payment.d.ts +3 -0
- package/dist/reglow/core/payment.js +41 -1
- package/dist/reglow/core/payment.js.map +1 -1
- package/dist/reglow/modules/ai/controller.d.ts +15 -0
- package/dist/reglow/modules/ai/controller.js +21 -16
- package/dist/reglow/modules/ai/controller.js.map +1 -1
- package/dist/reglow/modules/ai/service.d.ts +4 -0
- package/dist/reglow/modules/ai/service.js +31 -1
- package/dist/reglow/modules/ai/service.js.map +1 -1
- package/dist/reglow/modules/analytics/collect.d.ts +13 -0
- package/dist/reglow/modules/analytics/collect.js +237 -0
- package/dist/reglow/modules/analytics/collect.js.map +1 -0
- package/dist/reglow/modules/analytics/controller.d.ts +6 -0
- package/dist/reglow/modules/analytics/controller.js +338 -0
- package/dist/reglow/modules/analytics/controller.js.map +1 -0
- package/dist/reglow/modules/analytics/controller_client.d.ts +6 -0
- package/dist/reglow/modules/analytics/controller_client.js +34 -0
- package/dist/reglow/modules/analytics/controller_client.js.map +1 -0
- package/dist/reglow/modules/analytics/gov.d.ts +30 -0
- package/dist/reglow/modules/analytics/gov.js +140 -0
- package/dist/reglow/modules/analytics/gov.js.map +1 -0
- package/dist/reglow/modules/analytics/model.d.ts +190 -0
- package/dist/reglow/modules/analytics/model.js +14 -0
- package/dist/reglow/modules/analytics/model.js.map +1 -0
- package/dist/reglow/modules/analytics/repository.d.ts +66 -0
- package/dist/reglow/modules/analytics/repository.js +451 -0
- package/dist/reglow/modules/analytics/repository.js.map +1 -0
- package/dist/reglow/modules/analytics/rollup.d.ts +17 -0
- package/dist/reglow/modules/analytics/rollup.js +299 -0
- package/dist/reglow/modules/analytics/rollup.js.map +1 -0
- package/dist/reglow/modules/analytics/router.d.ts +16 -0
- package/dist/reglow/modules/analytics/router.js +11 -0
- package/dist/reglow/modules/analytics/router.js.map +1 -0
- package/dist/reglow/modules/analytics/schema.d.ts +275 -0
- package/dist/reglow/modules/analytics/schema.js +7 -0
- package/dist/reglow/modules/analytics/schema.js.map +1 -0
- package/dist/reglow/modules/analytics/service.d.ts +51 -0
- package/dist/reglow/modules/analytics/service.js +653 -0
- package/dist/reglow/modules/analytics/service.js.map +1 -0
- package/dist/reglow/modules/analytics/snapshot.d.ts +10 -0
- package/dist/reglow/modules/analytics/snapshot.js +63 -0
- package/dist/reglow/modules/analytics/snapshot.js.map +1 -0
- package/dist/reglow/modules/article/controller.js +1 -0
- package/dist/reglow/modules/article/controller.js.map +1 -1
- package/dist/reglow/modules/article/schema.d.ts +2 -0
- package/dist/reglow/modules/article/schema.js +2 -0
- package/dist/reglow/modules/article/schema.js.map +1 -1
- package/dist/reglow/modules/article/service.d.ts +5 -0
- package/dist/reglow/modules/article/service.js +26 -1
- package/dist/reglow/modules/article/service.js.map +1 -1
- package/dist/reglow/modules/config/controller.js +3 -1
- package/dist/reglow/modules/config/controller.js.map +1 -1
- package/dist/reglow/modules/customer_service/repository.js +4 -2
- package/dist/reglow/modules/customer_service/repository.js.map +1 -1
- package/dist/reglow/modules/customer_service/sdk_template.html +4 -3
- package/dist/reglow/modules/dashboard/controller.js +7 -1
- package/dist/reglow/modules/dashboard/controller.js.map +1 -1
- package/dist/reglow/modules/dashboard/service.d.ts +1 -0
- package/dist/reglow/modules/dashboard/service.js +152 -0
- package/dist/reglow/modules/dashboard/service.js.map +1 -1
- package/dist/reglow/modules/material/controller.js +16 -0
- package/dist/reglow/modules/material/controller.js.map +1 -1
- package/dist/reglow/modules/material/repository.js +2 -2
- package/dist/reglow/modules/material/repository.js.map +1 -1
- package/dist/reglow/modules/material/service.d.ts +2 -0
- package/dist/reglow/modules/material/service.js +46 -4
- package/dist/reglow/modules/material/service.js.map +1 -1
- package/dist/reglow/modules/payment/controller.js +19 -0
- package/dist/reglow/modules/payment/controller.js.map +1 -1
- package/dist/reglow/modules/payment/service.js +9 -3
- package/dist/reglow/modules/payment/service.js.map +1 -1
- package/dist/reglow/modules/photo/controller.js +81 -55
- package/dist/reglow/modules/photo/controller.js.map +1 -1
- package/dist/reglow/modules/photo/repository.js +1 -1
- package/dist/reglow/modules/photo/repository.js.map +1 -1
- package/dist/reglow/modules/photo/service.d.ts +11 -1
- package/dist/reglow/modules/photo/service.js +65 -3
- package/dist/reglow/modules/photo/service.js.map +1 -1
- package/dist/reglow/modules/skill/controller.d.ts +8 -0
- package/dist/reglow/modules/skill/controller.js +93 -0
- package/dist/reglow/modules/skill/controller.js.map +1 -0
- package/dist/reglow/modules/skill/model.d.ts +19 -0
- package/dist/reglow/modules/skill/model.js +49 -0
- package/dist/reglow/modules/skill/model.js.map +1 -0
- package/dist/reglow/modules/skill/repository.d.ts +8 -0
- package/dist/reglow/modules/skill/repository.js +101 -0
- package/dist/reglow/modules/skill/repository.js.map +1 -0
- package/dist/reglow/modules/skill/router.d.ts +10 -0
- package/dist/reglow/modules/skill/router.js +8 -0
- package/dist/reglow/modules/skill/router.js.map +1 -0
- package/dist/reglow/modules/skill/schema.d.ts +39 -0
- package/dist/reglow/modules/skill/schema.js +38 -0
- package/dist/reglow/modules/skill/schema.js.map +1 -0
- package/dist/reglow/modules/skill/service.d.ts +62 -0
- package/dist/reglow/modules/skill/service.js +285 -0
- package/dist/reglow/modules/skill/service.js.map +1 -0
- package/dist/reglow/modules/studio/controller.d.ts +9 -0
- package/dist/reglow/modules/studio/controller.js +303 -0
- package/dist/reglow/modules/studio/controller.js.map +1 -0
- package/dist/reglow/modules/studio/deps.d.ts +47 -0
- package/dist/reglow/modules/studio/deps.js +175 -0
- package/dist/reglow/modules/studio/deps.js.map +1 -0
- package/dist/reglow/modules/studio/engine.d.ts +85 -0
- package/dist/reglow/modules/studio/engine.js +881 -0
- package/dist/reglow/modules/studio/engine.js.map +1 -0
- package/dist/reglow/modules/studio/llm.d.ts +30 -0
- package/dist/reglow/modules/studio/llm.js +151 -0
- package/dist/reglow/modules/studio/llm.js.map +1 -0
- package/dist/reglow/modules/studio/mcp/client.d.ts +22 -0
- package/dist/reglow/modules/studio/mcp/client.js +99 -0
- package/dist/reglow/modules/studio/mcp/client.js.map +1 -0
- package/dist/reglow/modules/studio/mcp/transport.d.ts +59 -0
- package/dist/reglow/modules/studio/mcp/transport.js +259 -0
- package/dist/reglow/modules/studio/mcp/transport.js.map +1 -0
- package/dist/reglow/modules/studio/media.d.ts +52 -0
- package/dist/reglow/modules/studio/media.js +484 -0
- package/dist/reglow/modules/studio/media.js.map +1 -0
- package/dist/reglow/modules/studio/model.d.ts +23 -0
- package/dist/reglow/modules/studio/model.js +35 -0
- package/dist/reglow/modules/studio/model.js.map +1 -0
- package/dist/reglow/modules/studio/repository.d.ts +31 -0
- package/dist/reglow/modules/studio/repository.js +300 -0
- package/dist/reglow/modules/studio/repository.js.map +1 -0
- package/dist/reglow/modules/studio/router.d.ts +10 -0
- package/dist/reglow/modules/studio/router.js +8 -0
- package/dist/reglow/modules/studio/router.js.map +1 -0
- package/dist/reglow/modules/studio/schema.d.ts +194 -0
- package/dist/reglow/modules/studio/schema.js +739 -0
- package/dist/reglow/modules/studio/schema.js.map +1 -0
- package/dist/reglow/modules/studio/service.d.ts +168 -0
- package/dist/reglow/modules/studio/service.js +673 -0
- package/dist/reglow/modules/studio/service.js.map +1 -0
- package/dist/reglow/modules/studio/tools/builtins.d.ts +9 -0
- package/dist/reglow/modules/studio/tools/builtins.js +162 -0
- package/dist/reglow/modules/studio/tools/builtins.js.map +1 -0
- package/dist/reglow/modules/studio/tools/media_tools.d.ts +31 -0
- package/dist/reglow/modules/studio/tools/media_tools.js +412 -0
- package/dist/reglow/modules/studio/tools/media_tools.js.map +1 -0
- package/dist/reglow/modules/studio/tools/registry.d.ts +46 -0
- package/dist/reglow/modules/studio/tools/registry.js +160 -0
- package/dist/reglow/modules/studio/tools/registry.js.map +1 -0
- package/dist/reglow/modules/studio/tools/runner.d.ts +18 -0
- package/dist/reglow/modules/studio/tools/runner.js +89 -0
- package/dist/reglow/modules/studio/tools/runner.js.map +1 -0
- package/dist/reglow/modules/user/controller_client.js +1 -1
- package/dist/reglow/modules/user/controller_client.js.map +1 -1
- package/dist/reglow/modules/video/controller.js +1 -0
- package/dist/reglow/modules/video/controller.js.map +1 -1
- package/dist/reglow/modules/video/schema.d.ts +2 -0
- package/dist/reglow/modules/video/schema.js +2 -0
- package/dist/reglow/modules/video/schema.js.map +1 -1
- package/dist/reglow/modules/video/service.d.ts +5 -0
- package/dist/reglow/modules/video/service.js +26 -1
- package/dist/reglow/modules/video/service.js.map +1 -1
- package/dist/reglow/scripts/init-data.js +414 -2
- package/dist/reglow/scripts/init-data.js.map +1 -1
- package/dist/reglow/scripts/schema.d.ts +9 -0
- package/dist/reglow/scripts/schema.js +448 -1
- package/dist/reglow/scripts/schema.js.map +1 -1
- package/package.json +83 -83
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 数据埋点与分析 - 表名与实体类型
|
|
3
|
+
* 对应 backend-python 的 reglow/modules/analytics/model.py
|
|
4
|
+
*
|
|
5
|
+
* 表前缀 ana_*(13 张):应用 / 事件 / 会话 / 页面 / 元素 / 搜索聚合 / 偏好聚合 /
|
|
6
|
+
* 事件聚合 / 页面日聚合 / 热力栅格 / 页面快照 / 埋点规则 / 治理规则。
|
|
7
|
+
* tenant_id 列按 L1 列约定保留(可空);本端为单租户轨(state=none),写入恒为 NULL。
|
|
8
|
+
*/
|
|
9
|
+
import type { TimestampFields } from "../../core/entities.js";
|
|
10
|
+
export declare const ANA_APP_TABLE: "ana_app";
|
|
11
|
+
export declare const ANA_EVENT_TABLE: "ana_event";
|
|
12
|
+
export declare const ANA_SESSION_TABLE: "ana_session";
|
|
13
|
+
export declare const ANA_PAGE_TABLE: "ana_page";
|
|
14
|
+
export declare const ANA_ELEMENT_TABLE: "ana_element";
|
|
15
|
+
export declare const ANA_AGG_SEARCH_DAY_TABLE: "ana_agg_search_day";
|
|
16
|
+
export declare const ANA_AGG_PREF_DAY_TABLE: "ana_agg_pref_day";
|
|
17
|
+
export declare const ANA_AGG_EVENT_TABLE: "ana_agg_event";
|
|
18
|
+
export declare const ANA_AGG_PAGE_DAY_TABLE: "ana_agg_page_day";
|
|
19
|
+
export declare const ANA_HEAT_GRID_TABLE: "ana_heat_grid";
|
|
20
|
+
export declare const ANA_PAGE_SNAPSHOT_TABLE: "ana_page_snapshot";
|
|
21
|
+
export declare const ANA_TRACK_RULE_TABLE: "ana_track_rule";
|
|
22
|
+
export declare const ANA_GOV_RULE_TABLE: "ana_gov_rule";
|
|
23
|
+
export interface AnaApp extends TimestampFields {
|
|
24
|
+
id: number;
|
|
25
|
+
tenant_id: number | null;
|
|
26
|
+
app_id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
platform_type: string | null;
|
|
29
|
+
secret_ref: string | null;
|
|
30
|
+
enabled: number;
|
|
31
|
+
sample_rate: number | null;
|
|
32
|
+
config: string | null;
|
|
33
|
+
created_by: number | null;
|
|
34
|
+
}
|
|
35
|
+
export interface AnaEvent extends TimestampFields {
|
|
36
|
+
id: number;
|
|
37
|
+
app_id: string;
|
|
38
|
+
tenant_id: number | null;
|
|
39
|
+
event_code: string;
|
|
40
|
+
event_type: string | null;
|
|
41
|
+
user_id: string | null;
|
|
42
|
+
device_id: string | null;
|
|
43
|
+
session_id: string | null;
|
|
44
|
+
page_key: string | null;
|
|
45
|
+
elem_id: string | null;
|
|
46
|
+
elem_type: string | null;
|
|
47
|
+
props: string | null;
|
|
48
|
+
ts: number | null;
|
|
49
|
+
client_ts: number | null;
|
|
50
|
+
day: string | null;
|
|
51
|
+
ip: string | null;
|
|
52
|
+
ip_region: string | null;
|
|
53
|
+
platform: string | null;
|
|
54
|
+
app_version: string | null;
|
|
55
|
+
sdk_version: string | null;
|
|
56
|
+
event_uid: string | null;
|
|
57
|
+
}
|
|
58
|
+
export interface AnaSession extends TimestampFields {
|
|
59
|
+
id: number;
|
|
60
|
+
app_id: string;
|
|
61
|
+
tenant_id: number | null;
|
|
62
|
+
session_id: string;
|
|
63
|
+
device_id: string | null;
|
|
64
|
+
user_id: string | null;
|
|
65
|
+
start_ts: number | null;
|
|
66
|
+
end_ts: number | null;
|
|
67
|
+
duration: number;
|
|
68
|
+
page_views: number;
|
|
69
|
+
entry_page: string | null;
|
|
70
|
+
exit_page: string | null;
|
|
71
|
+
is_new_user: number;
|
|
72
|
+
channel: string | null;
|
|
73
|
+
is_bounce: number;
|
|
74
|
+
}
|
|
75
|
+
export interface AnaPage extends TimestampFields {
|
|
76
|
+
id: number;
|
|
77
|
+
app_id: string;
|
|
78
|
+
tenant_id: number | null;
|
|
79
|
+
page_key: string;
|
|
80
|
+
page_name: string | null;
|
|
81
|
+
page_version: string | null;
|
|
82
|
+
platform: string | null;
|
|
83
|
+
first_seen_at: unknown | null;
|
|
84
|
+
}
|
|
85
|
+
export interface AnaElement extends TimestampFields {
|
|
86
|
+
id: number;
|
|
87
|
+
app_id: string;
|
|
88
|
+
tenant_id: number | null;
|
|
89
|
+
page_key: string | null;
|
|
90
|
+
elem_id: string;
|
|
91
|
+
elem_type: string | null;
|
|
92
|
+
elem_path: string | null;
|
|
93
|
+
content_excerpt: string | null;
|
|
94
|
+
first_seen_at: unknown | null;
|
|
95
|
+
}
|
|
96
|
+
export interface AnaAggSearchDay extends TimestampFields {
|
|
97
|
+
id: number;
|
|
98
|
+
app_id: string;
|
|
99
|
+
tenant_id: number | null;
|
|
100
|
+
day: string;
|
|
101
|
+
query_norm: string;
|
|
102
|
+
search_cnt: number;
|
|
103
|
+
zero_result_cnt: number;
|
|
104
|
+
click_cnt: number;
|
|
105
|
+
convert_cnt: number;
|
|
106
|
+
rank_sum: number;
|
|
107
|
+
}
|
|
108
|
+
export interface AnaAggPrefDay extends TimestampFields {
|
|
109
|
+
id: number;
|
|
110
|
+
app_id: string;
|
|
111
|
+
tenant_id: number | null;
|
|
112
|
+
day: string;
|
|
113
|
+
target_type: string | null;
|
|
114
|
+
target_id: string | null;
|
|
115
|
+
action: string;
|
|
116
|
+
cnt: number;
|
|
117
|
+
score_sum: number;
|
|
118
|
+
}
|
|
119
|
+
export interface AnaAggEvent extends TimestampFields {
|
|
120
|
+
id: number;
|
|
121
|
+
app_id: string;
|
|
122
|
+
tenant_id: number | null;
|
|
123
|
+
granularity: string;
|
|
124
|
+
ts_key: string;
|
|
125
|
+
event_code: string;
|
|
126
|
+
cnt: number;
|
|
127
|
+
uv: number;
|
|
128
|
+
value_sum: number;
|
|
129
|
+
}
|
|
130
|
+
export interface AnaAggPageDay extends TimestampFields {
|
|
131
|
+
id: number;
|
|
132
|
+
app_id: string;
|
|
133
|
+
tenant_id: number | null;
|
|
134
|
+
day: string;
|
|
135
|
+
page_key: string;
|
|
136
|
+
pv: number;
|
|
137
|
+
uv: number;
|
|
138
|
+
entry_cnt: number;
|
|
139
|
+
exit_cnt: number;
|
|
140
|
+
avg_stay_ms: number;
|
|
141
|
+
bounce_rate: number;
|
|
142
|
+
}
|
|
143
|
+
export interface AnaHeatGrid extends TimestampFields {
|
|
144
|
+
id: number;
|
|
145
|
+
app_id: string;
|
|
146
|
+
tenant_id: number | null;
|
|
147
|
+
page_key: string;
|
|
148
|
+
page_version: string | null;
|
|
149
|
+
kind: string;
|
|
150
|
+
grid_x: number;
|
|
151
|
+
grid_y: number;
|
|
152
|
+
cnt: number;
|
|
153
|
+
}
|
|
154
|
+
export interface AnaPageSnapshot extends TimestampFields {
|
|
155
|
+
id: number;
|
|
156
|
+
app_id: string;
|
|
157
|
+
tenant_id: number | null;
|
|
158
|
+
page_key: string;
|
|
159
|
+
page_version: string | null;
|
|
160
|
+
url: string | null;
|
|
161
|
+
width: number | null;
|
|
162
|
+
height: number | null;
|
|
163
|
+
source: string | null;
|
|
164
|
+
captured_at: unknown | null;
|
|
165
|
+
}
|
|
166
|
+
export interface AnaTrackRule extends TimestampFields {
|
|
167
|
+
id: number;
|
|
168
|
+
app_id: string;
|
|
169
|
+
tenant_id: number | null;
|
|
170
|
+
page_key: string | null;
|
|
171
|
+
elem_selector: string;
|
|
172
|
+
elem_id: string;
|
|
173
|
+
elem_type: string | null;
|
|
174
|
+
events: string | null;
|
|
175
|
+
enabled: number;
|
|
176
|
+
remark: string | null;
|
|
177
|
+
created_by: number | null;
|
|
178
|
+
}
|
|
179
|
+
export interface AnaGovRule extends TimestampFields {
|
|
180
|
+
id: number;
|
|
181
|
+
tenant_id: number | null;
|
|
182
|
+
app_id: string | null;
|
|
183
|
+
rule_type: string;
|
|
184
|
+
target: string | null;
|
|
185
|
+
value: string | null;
|
|
186
|
+
priority: number;
|
|
187
|
+
enabled: number;
|
|
188
|
+
remark: string | null;
|
|
189
|
+
created_by: number | null;
|
|
190
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const ANA_APP_TABLE = "ana_app";
|
|
2
|
+
export const ANA_EVENT_TABLE = "ana_event";
|
|
3
|
+
export const ANA_SESSION_TABLE = "ana_session";
|
|
4
|
+
export const ANA_PAGE_TABLE = "ana_page";
|
|
5
|
+
export const ANA_ELEMENT_TABLE = "ana_element";
|
|
6
|
+
export const ANA_AGG_SEARCH_DAY_TABLE = "ana_agg_search_day";
|
|
7
|
+
export const ANA_AGG_PREF_DAY_TABLE = "ana_agg_pref_day";
|
|
8
|
+
export const ANA_AGG_EVENT_TABLE = "ana_agg_event";
|
|
9
|
+
export const ANA_AGG_PAGE_DAY_TABLE = "ana_agg_page_day";
|
|
10
|
+
export const ANA_HEAT_GRID_TABLE = "ana_heat_grid";
|
|
11
|
+
export const ANA_PAGE_SNAPSHOT_TABLE = "ana_page_snapshot";
|
|
12
|
+
export const ANA_TRACK_RULE_TABLE = "ana_track_rule";
|
|
13
|
+
export const ANA_GOV_RULE_TABLE = "ana_gov_rule";
|
|
14
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../reglow/modules/analytics/model.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,aAAa,GAAG,SAAkB,CAAC;AAChD,MAAM,CAAC,MAAM,eAAe,GAAG,WAAoB,CAAC;AACpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAsB,CAAC;AACxD,MAAM,CAAC,MAAM,cAAc,GAAG,UAAmB,CAAC;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAsB,CAAC;AACxD,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAA6B,CAAC;AACtE,MAAM,CAAC,MAAM,sBAAsB,GAAG,kBAA2B,CAAC;AAClE,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAwB,CAAC;AAC5D,MAAM,CAAC,MAAM,sBAAsB,GAAG,kBAA2B,CAAC;AAClE,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAwB,CAAC;AAC5D,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAA4B,CAAC;AACpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAyB,CAAC;AAC9D,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ANA_PAGE_TABLE, type AnaApp, type AnaGovRule, type AnaTrackRule } from "./model.js";
|
|
2
|
+
export declare function listApps(page: number, size: number, keyword?: string | null): Promise<{
|
|
3
|
+
items: AnaApp[];
|
|
4
|
+
total: number;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function findApp(appPk: number): Promise<AnaApp | null>;
|
|
7
|
+
export declare function findAppByAppid(appId: string): Promise<AnaApp | null>;
|
|
8
|
+
export declare function createApp(data: Record<string, unknown>): Promise<AnaApp>;
|
|
9
|
+
export declare function updateApp(appPk: number, patch: Record<string, unknown>): Promise<AnaApp | null>;
|
|
10
|
+
export declare function deleteApp(appPk: number): Promise<void>;
|
|
11
|
+
export interface EventStats {
|
|
12
|
+
pv: number;
|
|
13
|
+
uv: number;
|
|
14
|
+
sessions: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function eventStats(appId: string, startTs: number, endTs: number): Promise<EventStats>;
|
|
17
|
+
export interface SessionStats {
|
|
18
|
+
total: number;
|
|
19
|
+
newUsers: number;
|
|
20
|
+
bounce: number;
|
|
21
|
+
avgStay: number;
|
|
22
|
+
}
|
|
23
|
+
export declare function sessionStats(appId: string, startTs: number, endTs: number): Promise<SessionStats>;
|
|
24
|
+
export declare function trend(appId: string, startTs: number, endTs: number): Promise<Array<[string, number, number]>>;
|
|
25
|
+
export declare function distBy(column: string, appId: string, startTs: number, endTs: number): Promise<Array<[string, number]>>;
|
|
26
|
+
export declare function channelDist(appId: string, startTs: number, endTs: number): Promise<Array<[string, number]>>;
|
|
27
|
+
export interface EventListRow {
|
|
28
|
+
event_code: string;
|
|
29
|
+
total: number;
|
|
30
|
+
uv: number;
|
|
31
|
+
first_day: string | null;
|
|
32
|
+
last_day: string | null;
|
|
33
|
+
}
|
|
34
|
+
export declare function eventList(appId: string, startTs: number, endTs: number): Promise<EventListRow[]>;
|
|
35
|
+
export declare function eventTrend(appId: string, eventCode: string, startTs: number, endTs: number): Promise<Array<[string, number, number]>>;
|
|
36
|
+
export declare function pageStats(appId: string, startTs: number, endTs: number): Promise<Array<[string, number, number]>>;
|
|
37
|
+
export declare function elementRanking(appId: string, startTs: number, endTs: number, eventCode: string): Promise<Array<[string, string | null, string | null, number, number]>>;
|
|
38
|
+
export declare function searchStats(appId: string, startDay: string, endDay: string, onlyZero: boolean): Promise<Array<[string, number, number, number, number, number]>>;
|
|
39
|
+
export declare function prefStats(appId: string, startDay: string, endDay: string, action?: string | null): Promise<Array<[string | null, string | null, string, number, number]>>;
|
|
40
|
+
export declare function eventsForAnalysis(appId: string, startTs: number, endTs: number, codes?: string[] | null): Promise<Array<[string | null, string | null, number, string | null]>>;
|
|
41
|
+
export declare function heatGrid(appId: string, pageKey: string, pageVersion: string | null | undefined, kind: string): Promise<Array<[number, number, number]>>;
|
|
42
|
+
export declare function listRules(appId: string, page: number, size: number, keyword?: string | null): Promise<{
|
|
43
|
+
items: AnaTrackRule[];
|
|
44
|
+
total: number;
|
|
45
|
+
}>;
|
|
46
|
+
export declare function findRule(ruleId: number): Promise<AnaTrackRule | null>;
|
|
47
|
+
export declare function createRule(data: Record<string, unknown>): Promise<AnaTrackRule>;
|
|
48
|
+
export declare function updateRule(ruleId: number, patch: Record<string, unknown>): Promise<AnaTrackRule | null>;
|
|
49
|
+
export declare function deleteRule(ruleId: number): Promise<void>;
|
|
50
|
+
export declare function enabledRules(appId: string, pageKey?: string | null): Promise<AnaTrackRule[]>;
|
|
51
|
+
export declare function orderedEvents(appId: string, startTs: number, endTs: number, nodeType: string): Promise<Array<[string, string, number]>>;
|
|
52
|
+
export declare function sessionsWindow(appId: string, startTs: number, endTs: number): Promise<Array<[number | null, number | null]>>;
|
|
53
|
+
export declare function deviceEventCounts(appId: string, startTs: number, endTs: number): Promise<number[]>;
|
|
54
|
+
export declare function listGovRules(page: number, size: number, keyword?: string | null): Promise<{
|
|
55
|
+
items: AnaGovRule[];
|
|
56
|
+
total: number;
|
|
57
|
+
}>;
|
|
58
|
+
export declare function findGovRule(ruleId: number): Promise<AnaGovRule | null>;
|
|
59
|
+
export declare function createGovRule(data: Record<string, unknown>): Promise<AnaGovRule>;
|
|
60
|
+
export declare function updateGovRule(ruleId: number, patch: Record<string, unknown>): Promise<AnaGovRule | null>;
|
|
61
|
+
export declare function deleteGovRule(ruleId: number): Promise<void>;
|
|
62
|
+
export declare function enabledGovRules(appId: string): Promise<AnaGovRule[]>;
|
|
63
|
+
/** 解析 JSON 文本(兼容 text 存储与已解析对象) */
|
|
64
|
+
export declare function parseJson<T>(v: unknown, fallback: T): T;
|
|
65
|
+
export declare function jsonOrNull(v: unknown): string | null;
|
|
66
|
+
export { ANA_PAGE_TABLE };
|