@ossy/web 3.0.9 → 3.12.0
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/README.md +2 -2
- package/package.json +2 -2
- package/src/page-view.schema.js +5 -5
package/README.md
CHANGED
|
@@ -10,10 +10,10 @@ Schema definitions live in `*.schema.js` and are discovered at build time.
|
|
|
10
10
|
|---|---|---|
|
|
11
11
|
| Link | `@ossy/web/schema/link` | Navigation links (`label`, `url`, `icon`) |
|
|
12
12
|
| Page | `@ossy/web/schema/page` | Web pages (`title`, `description`, `body`) |
|
|
13
|
-
| Page View | `@ossy/web/schema/page-view` |
|
|
13
|
+
| Page View | `@ossy/web/schema/page-view` | Host traffic events (`host`, `path`, `referrer`, `visitorId`, …). When = resource `created`. Connection IP lives on the eventstore row (ADR 0016), not content. Country is a projection field. |
|
|
14
14
|
| Profile | `@ossy/web/schema/profile` | Public profile content (`name`, `bio`) |
|
|
15
15
|
|
|
16
|
-
Page-view documents are
|
|
16
|
+
Page-view documents are written to `/@ossy/analytics/page-views/` by `@ossy/analytics` (`create-page-view`).
|
|
17
17
|
|
|
18
18
|
## Exports
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/web",
|
|
3
3
|
"description": "Web schema package — page, link, profile, and page-view document types for Ossy web properties",
|
|
4
|
-
"version": "3.0
|
|
4
|
+
"version": "3.12.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"module": "./src/index.js",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"/src",
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "c2650803219ad1831559b512848358d9550ffad2"
|
|
25
25
|
}
|
package/src/page-view.schema.js
CHANGED
|
@@ -4,6 +4,11 @@ export default {
|
|
|
4
4
|
categoryName: 'Analytics',
|
|
5
5
|
icon: 'chart',
|
|
6
6
|
fields: [
|
|
7
|
+
{
|
|
8
|
+
name: 'host',
|
|
9
|
+
type: 'text',
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
7
12
|
{
|
|
8
13
|
name: 'path',
|
|
9
14
|
type: 'text',
|
|
@@ -29,10 +34,5 @@ export default {
|
|
|
29
34
|
name: 'visitorId',
|
|
30
35
|
type: 'text',
|
|
31
36
|
},
|
|
32
|
-
{
|
|
33
|
-
name: 'eventAt',
|
|
34
|
-
type: 'number',
|
|
35
|
-
required: true,
|
|
36
|
-
},
|
|
37
37
|
],
|
|
38
38
|
}
|