@kuafucloud/data 0.0.0-stage → 0.1.1-alpha.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.
Files changed (38) hide show
  1. package/dist/admin/admin/extension.zip +0 -0
  2. package/dist/admin/index.d.ts +2 -0
  3. package/dist/admin/index.js +2 -0
  4. package/dist/admin/meta/admin.json +74 -0
  5. package/dist/admin/meta/extension-manifest.json +298 -0
  6. package/dist/facade/index.d.ts +272 -0
  7. package/dist/facade/index.js +11 -0
  8. package/dist/public/index.js +78 -0
  9. package/dist/public/runtime-services/core/index.js +334 -0
  10. package/dist/runtime-services/app/index.js +341 -0
  11. package/dist/runtime-services/app/service-module.config.json +16 -0
  12. package/dist/runtime-services/app-simulator/index.js +341 -0
  13. package/dist/runtime-services/app-simulator/service-module.config.json +12 -0
  14. package/dist/runtime-services/mini-program/index.js +341 -0
  15. package/dist/runtime-services/mini-program/service-module.config.json +12 -0
  16. package/dist/runtime-services/mini-program-simulator/index.js +341 -0
  17. package/dist/runtime-services/mini-program-simulator/service-module.config.json +12 -0
  18. package/dist/runtime-services/site/index.js +341 -0
  19. package/dist/runtime-services/site/service-module.config.json +12 -0
  20. package/dist/simulation/artifact/meta/database.json +72 -0
  21. package/dist/simulation/artifact/meta/manifest.json +286 -0
  22. package/dist/simulation/artifact/meta/permissions.json +86 -0
  23. package/dist/simulation/artifact/meta/runtime-meta.json +29 -0
  24. package/dist/simulation/artifact/meta/schema.json +70 -0
  25. package/dist/simulation/artifact/server/worker/index.js +39 -0
  26. package/dist/simulation/artifact/server/worker/monitoring-contract.json +7 -0
  27. package/dist/simulation/index.d.ts +1 -0
  28. package/dist/simulation/index.js +1 -0
  29. package/dist/types/client/index.d.ts +87 -0
  30. package/dist/types/runtime-services/app/index.d.ts +2 -0
  31. package/dist/types/runtime-services/app-simulator/index.d.ts +2 -0
  32. package/dist/types/runtime-services/core/index.d.ts +73 -0
  33. package/dist/types/runtime-services/mini-program/index.d.ts +2 -0
  34. package/dist/types/runtime-services/mini-program-simulator/index.d.ts +2 -0
  35. package/dist/types/runtime-services/site/index.d.ts +2 -0
  36. package/extension-manifest.json +265 -0
  37. package/package.json +99 -4
  38. package/README.md +0 -3
@@ -0,0 +1,286 @@
1
+ {
2
+ "serverImplementation": "simulation",
3
+ "schemaVersion": 1,
4
+ "type": "extension",
5
+ "extensionId": "data",
6
+ "version": "0.1.1-alpha.1",
7
+ "name": "数据分析",
8
+ "displayName": "数据分析",
9
+ "icon": "IconApps",
10
+ "description": "面向当前 project/env 的本地行为采集、事件分析与治理。",
11
+ "updatePolicy": "optional",
12
+ "e2e": {
13
+ "hostProfile": "browser",
14
+ "requiredHostCapabilities": []
15
+ },
16
+ "runtimeCapabilities": {
17
+ "hostProfile": "browser",
18
+ "requiredHostCapabilities": []
19
+ },
20
+ "capabilities": {
21
+ "server": true,
22
+ "admin": false,
23
+ "database": true,
24
+ "permissions": true,
25
+ "events": false,
26
+ "tasks": false,
27
+ "hooks": false,
28
+ "plugins": false,
29
+ "migrations": false
30
+ },
31
+ "outputs": {
32
+ "distDir": ".",
33
+ "manifest": "meta/manifest.json",
34
+ "runtimeMeta": "meta/runtime-meta.json",
35
+ "schema": "meta/schema.json",
36
+ "database": "meta/database.json",
37
+ "permissions": "meta/permissions.json"
38
+ },
39
+ "server": {
40
+ "mountPath": "/api/data",
41
+ "apiCount": 7
42
+ },
43
+ "database": {
44
+ "schema": {
45
+ "PreviewDelivery": {
46
+ "tableName": "data_default_PreviewDelivery",
47
+ "indexes": [
48
+ {
49
+ "name": "preview_delivery_identity",
50
+ "columns": [
51
+ "product_id",
52
+ "delivery_id"
53
+ ],
54
+ "unique": true
55
+ }
56
+ ],
57
+ "primaryKey": [],
58
+ "columns": {
59
+ "sequence": {
60
+ "name": "sequence",
61
+ "dataType": "number",
62
+ "columnType": "SQLiteInteger",
63
+ "notNull": true,
64
+ "hasDefault": true,
65
+ "primaryKey": true,
66
+ "autoIncrement": true,
67
+ "unique": false
68
+ },
69
+ "productId": {
70
+ "name": "product_id",
71
+ "dataType": "string",
72
+ "columnType": "SQLiteText",
73
+ "notNull": true,
74
+ "hasDefault": false,
75
+ "primaryKey": false,
76
+ "autoIncrement": false,
77
+ "unique": false
78
+ },
79
+ "deliveryId": {
80
+ "name": "delivery_id",
81
+ "dataType": "string",
82
+ "columnType": "SQLiteText",
83
+ "notNull": true,
84
+ "hasDefault": false,
85
+ "primaryKey": false,
86
+ "autoIncrement": false,
87
+ "unique": false
88
+ },
89
+ "receivedAt": {
90
+ "name": "received_at",
91
+ "dataType": "string",
92
+ "columnType": "SQLiteText",
93
+ "notNull": true,
94
+ "hasDefault": false,
95
+ "primaryKey": false,
96
+ "autoIncrement": false,
97
+ "unique": false
98
+ },
99
+ "payload": {
100
+ "name": "payload",
101
+ "dataType": "string",
102
+ "columnType": "SQLiteText",
103
+ "notNull": true,
104
+ "hasDefault": false,
105
+ "primaryKey": false,
106
+ "autoIncrement": false,
107
+ "unique": false
108
+ }
109
+ }
110
+ }
111
+ }
112
+ },
113
+ "datasets": {},
114
+ "permissions": {
115
+ "data": {
116
+ "events": {
117
+ "read": {
118
+ "key": "operation.data.events.read",
119
+ "type": "operation",
120
+ "name": {
121
+ "en": "Data Events Read",
122
+ "zh": "分析事件读取"
123
+ },
124
+ "category": "data",
125
+ "stability": "stable"
126
+ }
127
+ },
128
+ "eventProperties": {
129
+ "read": {
130
+ "key": "operation.data.event-properties.read",
131
+ "type": "operation",
132
+ "name": {
133
+ "en": "Data Event Properties Read",
134
+ "zh": "分析事件完整属性读取"
135
+ },
136
+ "category": "data",
137
+ "stability": "stable"
138
+ }
139
+ },
140
+ "insights": {
141
+ "read": {
142
+ "key": "operation.data.insights.read",
143
+ "type": "operation",
144
+ "name": {
145
+ "en": "Data Insights Read",
146
+ "zh": "分析洞察读取"
147
+ },
148
+ "category": "data",
149
+ "stability": "stable"
150
+ }
151
+ },
152
+ "boards": {
153
+ "manage": {
154
+ "key": "operation.data.boards.manage",
155
+ "type": "operation",
156
+ "name": {
157
+ "en": "Data Boards Manage",
158
+ "zh": "分析看板管理"
159
+ },
160
+ "category": "data",
161
+ "stability": "stable"
162
+ }
163
+ },
164
+ "data": {
165
+ "read": {
166
+ "key": "operation.data.data.read",
167
+ "type": "operation",
168
+ "name": {
169
+ "en": "Data Data Read",
170
+ "zh": "分析数据治理读取"
171
+ },
172
+ "category": "data",
173
+ "stability": "stable"
174
+ }
175
+ },
176
+ "settings": {
177
+ "read": {
178
+ "key": "operation.data.settings.read",
179
+ "type": "operation",
180
+ "name": {
181
+ "en": "Data Settings Read",
182
+ "zh": "分析采集设置读取"
183
+ },
184
+ "category": "data",
185
+ "stability": "stable"
186
+ },
187
+ "manage": {
188
+ "key": "operation.data.settings.manage",
189
+ "type": "operation",
190
+ "name": {
191
+ "en": "Data Settings Manage",
192
+ "zh": "分析采集设置管理"
193
+ },
194
+ "category": "data",
195
+ "stability": "stable"
196
+ }
197
+ }
198
+ }
199
+ },
200
+ "adminOperations": [
201
+ {
202
+ "operationId": "op.data.admin.boards.list.5ce85722213496de",
203
+ "targetExtensionId": "data",
204
+ "method": "GET",
205
+ "pathTemplate": "/admin/boards/list",
206
+ "authScope": "admin",
207
+ "kind": "query",
208
+ "requestSchema": "op.data.admin.boards.list.5ce85722213496de.request.v1",
209
+ "responseSchema": "op.data.admin.boards.list.5ce85722213496de.response.v1",
210
+ "retryPolicy": "safe-read-once",
211
+ "allowedCallerExtensions": [
212
+ "*"
213
+ ]
214
+ },
215
+ {
216
+ "operationId": "op.data.admin.events.list.2a8011d2d1ba042e",
217
+ "targetExtensionId": "data",
218
+ "method": "GET",
219
+ "pathTemplate": "/admin/events/list",
220
+ "authScope": "admin",
221
+ "kind": "query",
222
+ "requestSchema": "op.data.admin.events.list.2a8011d2d1ba042e.request.v1",
223
+ "responseSchema": "op.data.admin.events.list.2a8011d2d1ba042e.response.v1",
224
+ "retryPolicy": "safe-read-once",
225
+ "allowedCallerExtensions": [
226
+ "*"
227
+ ]
228
+ },
229
+ {
230
+ "operationId": "op.data.admin.events.get.3d5fd9e2850e522e",
231
+ "targetExtensionId": "data",
232
+ "method": "GET",
233
+ "pathTemplate": "/admin/events/get",
234
+ "authScope": "admin",
235
+ "kind": "query",
236
+ "requestSchema": "op.data.admin.events.get.3d5fd9e2850e522e.request.v1",
237
+ "responseSchema": "op.data.admin.events.get.3d5fd9e2850e522e.response.v1",
238
+ "retryPolicy": "safe-read-once",
239
+ "allowedCallerExtensions": [
240
+ "*"
241
+ ]
242
+ },
243
+ {
244
+ "operationId": "op.data.admin.products.4b4430485755ee8c",
245
+ "targetExtensionId": "data",
246
+ "method": "GET",
247
+ "pathTemplate": "/admin/products",
248
+ "authScope": "admin",
249
+ "kind": "query",
250
+ "requestSchema": "op.data.admin.products.4b4430485755ee8c.request.v1",
251
+ "responseSchema": "op.data.admin.products.4b4430485755ee8c.response.v1",
252
+ "retryPolicy": "safe-read-once",
253
+ "allowedCallerExtensions": [
254
+ "*"
255
+ ]
256
+ },
257
+ {
258
+ "operationId": "op.data.admin.overview.55c22cd7e993452b",
259
+ "targetExtensionId": "data",
260
+ "method": "GET",
261
+ "pathTemplate": "/admin/overview",
262
+ "authScope": "admin",
263
+ "kind": "query",
264
+ "requestSchema": "op.data.admin.overview.55c22cd7e993452b.request.v1",
265
+ "responseSchema": "op.data.admin.overview.55c22cd7e993452b.response.v1",
266
+ "retryPolicy": "safe-read-once",
267
+ "allowedCallerExtensions": [
268
+ "*"
269
+ ]
270
+ },
271
+ {
272
+ "operationId": "op.data.admin.settings.22400359515d1955",
273
+ "targetExtensionId": "data",
274
+ "method": "GET",
275
+ "pathTemplate": "/admin/settings",
276
+ "authScope": "admin",
277
+ "kind": "query",
278
+ "requestSchema": "op.data.admin.settings.22400359515d1955.request.v1",
279
+ "responseSchema": "op.data.admin.settings.22400359515d1955.response.v1",
280
+ "retryPolicy": "safe-read-once",
281
+ "allowedCallerExtensions": [
282
+ "*"
283
+ ]
284
+ }
285
+ ]
286
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "data": {
3
+ "events": {
4
+ "read": {
5
+ "key": "operation.data.events.read",
6
+ "type": "operation",
7
+ "name": {
8
+ "en": "Data Events Read",
9
+ "zh": "分析事件读取"
10
+ },
11
+ "category": "data",
12
+ "stability": "stable"
13
+ }
14
+ },
15
+ "eventProperties": {
16
+ "read": {
17
+ "key": "operation.data.event-properties.read",
18
+ "type": "operation",
19
+ "name": {
20
+ "en": "Data Event Properties Read",
21
+ "zh": "分析事件完整属性读取"
22
+ },
23
+ "category": "data",
24
+ "stability": "stable"
25
+ }
26
+ },
27
+ "insights": {
28
+ "read": {
29
+ "key": "operation.data.insights.read",
30
+ "type": "operation",
31
+ "name": {
32
+ "en": "Data Insights Read",
33
+ "zh": "分析洞察读取"
34
+ },
35
+ "category": "data",
36
+ "stability": "stable"
37
+ }
38
+ },
39
+ "boards": {
40
+ "manage": {
41
+ "key": "operation.data.boards.manage",
42
+ "type": "operation",
43
+ "name": {
44
+ "en": "Data Boards Manage",
45
+ "zh": "分析看板管理"
46
+ },
47
+ "category": "data",
48
+ "stability": "stable"
49
+ }
50
+ },
51
+ "data": {
52
+ "read": {
53
+ "key": "operation.data.data.read",
54
+ "type": "operation",
55
+ "name": {
56
+ "en": "Data Data Read",
57
+ "zh": "分析数据治理读取"
58
+ },
59
+ "category": "data",
60
+ "stability": "stable"
61
+ }
62
+ },
63
+ "settings": {
64
+ "read": {
65
+ "key": "operation.data.settings.read",
66
+ "type": "operation",
67
+ "name": {
68
+ "en": "Data Settings Read",
69
+ "zh": "分析采集设置读取"
70
+ },
71
+ "category": "data",
72
+ "stability": "stable"
73
+ },
74
+ "manage": {
75
+ "key": "operation.data.settings.manage",
76
+ "type": "operation",
77
+ "name": {
78
+ "en": "Data Settings Manage",
79
+ "zh": "分析采集设置管理"
80
+ },
81
+ "category": "data",
82
+ "stability": "stable"
83
+ }
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "datasets": {},
3
+ "schemaVersion": 1,
4
+ "extensionId": "data",
5
+ "version": "0.1.1-alpha.1",
6
+ "mountPath": "/api/data",
7
+ "capabilities": {
8
+ "server": true,
9
+ "admin": false,
10
+ "database": true,
11
+ "permissions": true,
12
+ "events": false,
13
+ "tasks": false,
14
+ "hooks": false,
15
+ "plugins": false,
16
+ "migrations": false
17
+ },
18
+ "entrypoints": {
19
+ "server": "server/worker/index.js"
20
+ },
21
+ "outputs": {
22
+ "distDir": ".",
23
+ "manifest": "meta/manifest.json",
24
+ "runtimeMeta": "meta/runtime-meta.json",
25
+ "schema": "meta/schema.json",
26
+ "database": "meta/database.json",
27
+ "permissions": "meta/permissions.json"
28
+ }
29
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "tables": {
3
+ "PreviewDelivery": {
4
+ "tableName": "data_default_PreviewDelivery",
5
+ "indexes": [
6
+ {
7
+ "name": "preview_delivery_identity",
8
+ "columns": [
9
+ "product_id",
10
+ "delivery_id"
11
+ ],
12
+ "unique": true
13
+ }
14
+ ],
15
+ "primaryKey": [],
16
+ "columns": {
17
+ "sequence": {
18
+ "name": "sequence",
19
+ "dataType": "number",
20
+ "columnType": "SQLiteInteger",
21
+ "notNull": true,
22
+ "hasDefault": true,
23
+ "primaryKey": true,
24
+ "autoIncrement": true,
25
+ "unique": false
26
+ },
27
+ "productId": {
28
+ "name": "product_id",
29
+ "dataType": "string",
30
+ "columnType": "SQLiteText",
31
+ "notNull": true,
32
+ "hasDefault": false,
33
+ "primaryKey": false,
34
+ "autoIncrement": false,
35
+ "unique": false
36
+ },
37
+ "deliveryId": {
38
+ "name": "delivery_id",
39
+ "dataType": "string",
40
+ "columnType": "SQLiteText",
41
+ "notNull": true,
42
+ "hasDefault": false,
43
+ "primaryKey": false,
44
+ "autoIncrement": false,
45
+ "unique": false
46
+ },
47
+ "receivedAt": {
48
+ "name": "received_at",
49
+ "dataType": "string",
50
+ "columnType": "SQLiteText",
51
+ "notNull": true,
52
+ "hasDefault": false,
53
+ "primaryKey": false,
54
+ "autoIncrement": false,
55
+ "unique": false
56
+ },
57
+ "payload": {
58
+ "name": "payload",
59
+ "dataType": "string",
60
+ "columnType": "SQLiteText",
61
+ "notNull": true,
62
+ "hasDefault": false,
63
+ "primaryKey": false,
64
+ "autoIncrement": false,
65
+ "unique": false
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }