@pomeloanalytics/api 0.1.0-beta.2 → 0.1.0-beta.3
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/CHANGELOG.md +6 -0
- package/README.md +9 -0
- package/dist/generated/openapi.d.ts +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.3
|
|
4
|
+
|
|
5
|
+
- Add optional per-metric Content sample counts and the selected measurement method to generated API types.
|
|
6
|
+
- Preserve missing, zero and sparse observations without client-side aggregation or default values.
|
|
7
|
+
- Keep the HTTP client implementation, server-side token boundary and request behavior unchanged.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-beta.2
|
|
4
10
|
|
|
5
11
|
- Add the product website, documentation links and relevant npm keywords.
|
package/README.md
CHANGED
|
@@ -109,6 +109,15 @@ The server owns defaults, period validation, entitlements, and numeric limits;
|
|
|
109
109
|
the SDK does not choose content depth, clamp limits, or change a requested range.
|
|
110
110
|
The `details` alias for content `include` remains accepted by the public contract.
|
|
111
111
|
|
|
112
|
+
Full Content responses can include `current.metric_method` and
|
|
113
|
+
`current.pages[].performance.n_lcp`, `n_fcp`, `n_inp`, `n_cls` and `n_ttfb`.
|
|
114
|
+
These optional fields identify the selected measurement method and each metric's
|
|
115
|
+
own observation count. `samples` remains the combined event count; it does not
|
|
116
|
+
establish coverage for every metric. The client preserves missing counts, zero
|
|
117
|
+
counts and null values without recomputing percentiles or filling defaults.
|
|
118
|
+
Browser performance collection is performed by the separate tracking script.
|
|
119
|
+
|
|
120
|
+
|
|
112
121
|
Acquisition has three distinct response shapes. The SDK forwards `include`
|
|
113
122
|
unchanged and returns the complete response without renaming one shape into another.
|
|
114
123
|
|
|
@@ -1089,6 +1089,11 @@ export interface components {
|
|
|
1089
1089
|
}[];
|
|
1090
1090
|
/** @enum {string} */
|
|
1091
1091
|
include: "full";
|
|
1092
|
+
/**
|
|
1093
|
+
* @description One measurement method selected from the current period and reused for comparison.
|
|
1094
|
+
* @enum {string}
|
|
1095
|
+
*/
|
|
1096
|
+
metric_method?: "legacy" | "web-vitals-6.2.3-cls1";
|
|
1092
1097
|
pages: {
|
|
1093
1098
|
avg_page_eng_time_ms: number;
|
|
1094
1099
|
avg_scroll_depth?: number | null;
|
|
@@ -1101,6 +1106,11 @@ export interface components {
|
|
|
1101
1106
|
pageviews: number;
|
|
1102
1107
|
path_canon: string | null;
|
|
1103
1108
|
performance?: {
|
|
1109
|
+
n_cls?: number;
|
|
1110
|
+
n_fcp?: number;
|
|
1111
|
+
n_inp?: number;
|
|
1112
|
+
n_lcp?: number;
|
|
1113
|
+
n_ttfb?: number;
|
|
1104
1114
|
p75_cls: number | null;
|
|
1105
1115
|
p75_fcp?: number | null;
|
|
1106
1116
|
p75_inp: number | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pomeloanalytics/api",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
4
|
"description": "TypeScript client for reading Pomelo Analytics reports, sites and goals from Node.js servers.",
|
|
5
5
|
"homepage": "https://www.pomeloanalytics.com/",
|
|
6
6
|
"keywords": ["pomelo", "analytics", "web-analytics", "typescript", "nodejs", "sdk", "api-client"],
|