@junobuild/analytics 0.0.26-next-2024-08-24 → 0.0.27
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/declarations/orbiter/orbiter.did.d.ts +7 -2
- package/dist/declarations/orbiter/orbiter.factory.did.js +9 -4
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +9 -4
- package/dist/workers/analytics.worker.js +9 -9
- package/dist/workers/analytics.worker.js.map +3 -3
- package/package.json +2 -2
|
@@ -89,9 +89,14 @@ export type NavigationType =
|
|
|
89
89
|
| {Prerender: null};
|
|
90
90
|
export interface OrbiterSatelliteConfig {
|
|
91
91
|
updated_at: bigint;
|
|
92
|
+
features: [] | [OrbiterSatelliteFeatures];
|
|
92
93
|
created_at: bigint;
|
|
93
94
|
version: [] | [bigint];
|
|
94
|
-
|
|
95
|
+
}
|
|
96
|
+
export interface OrbiterSatelliteFeatures {
|
|
97
|
+
performance_metrics: boolean;
|
|
98
|
+
track_events: boolean;
|
|
99
|
+
page_views: boolean;
|
|
95
100
|
}
|
|
96
101
|
export interface PageView {
|
|
97
102
|
title: string;
|
|
@@ -162,8 +167,8 @@ export interface SetPerformanceMetric {
|
|
|
162
167
|
user_agent: [] | [string];
|
|
163
168
|
}
|
|
164
169
|
export interface SetSatelliteConfig {
|
|
170
|
+
features: [] | [OrbiterSatelliteFeatures];
|
|
165
171
|
version: [] | [bigint];
|
|
166
|
-
enabled: boolean;
|
|
167
172
|
}
|
|
168
173
|
export interface SetTrackEvent {
|
|
169
174
|
updated_at: [] | [bigint];
|
|
@@ -133,11 +133,16 @@ export const idlFactory = ({IDL}) => {
|
|
|
133
133
|
const AnalyticsTrackEvents = IDL.Record({
|
|
134
134
|
total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
135
135
|
});
|
|
136
|
+
const OrbiterSatelliteFeatures = IDL.Record({
|
|
137
|
+
performance_metrics: IDL.Bool,
|
|
138
|
+
track_events: IDL.Bool,
|
|
139
|
+
page_views: IDL.Bool
|
|
140
|
+
});
|
|
136
141
|
const OrbiterSatelliteConfig = IDL.Record({
|
|
137
142
|
updated_at: IDL.Nat64,
|
|
143
|
+
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
138
144
|
created_at: IDL.Nat64,
|
|
139
|
-
version: IDL.Opt(IDL.Nat64)
|
|
140
|
-
enabled: IDL.Bool
|
|
145
|
+
version: IDL.Opt(IDL.Nat64)
|
|
141
146
|
});
|
|
142
147
|
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
143
148
|
const SetController = IDL.Record({
|
|
@@ -177,8 +182,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
177
182
|
});
|
|
178
183
|
const Result_2 = IDL.Variant({Ok: PerformanceMetric, Err: IDL.Text});
|
|
179
184
|
const SetSatelliteConfig = IDL.Record({
|
|
180
|
-
|
|
181
|
-
|
|
185
|
+
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
186
|
+
version: IDL.Opt(IDL.Nat64)
|
|
182
187
|
});
|
|
183
188
|
const SetTrackEvent = IDL.Record({
|
|
184
189
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
@@ -133,11 +133,16 @@ export const idlFactory = ({IDL}) => {
|
|
|
133
133
|
const AnalyticsTrackEvents = IDL.Record({
|
|
134
134
|
total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
135
135
|
});
|
|
136
|
+
const OrbiterSatelliteFeatures = IDL.Record({
|
|
137
|
+
performance_metrics: IDL.Bool,
|
|
138
|
+
track_events: IDL.Bool,
|
|
139
|
+
page_views: IDL.Bool
|
|
140
|
+
});
|
|
136
141
|
const OrbiterSatelliteConfig = IDL.Record({
|
|
137
142
|
updated_at: IDL.Nat64,
|
|
143
|
+
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
138
144
|
created_at: IDL.Nat64,
|
|
139
|
-
version: IDL.Opt(IDL.Nat64)
|
|
140
|
-
enabled: IDL.Bool
|
|
145
|
+
version: IDL.Opt(IDL.Nat64)
|
|
141
146
|
});
|
|
142
147
|
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
143
148
|
const SetController = IDL.Record({
|
|
@@ -177,8 +182,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
177
182
|
});
|
|
178
183
|
const Result_2 = IDL.Variant({Ok: PerformanceMetric, Err: IDL.Text});
|
|
179
184
|
const SetSatelliteConfig = IDL.Record({
|
|
180
|
-
|
|
181
|
-
|
|
185
|
+
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
186
|
+
version: IDL.Opt(IDL.Nat64)
|
|
182
187
|
});
|
|
183
188
|
const SetTrackEvent = IDL.Record({
|
|
184
189
|
updated_at: IDL.Opt(IDL.Nat64),
|