@junobuild/admin 0.1.8 → 0.2.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/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/mission_control/mission_control-deprecated-version.did.d.ts +231 -0
- package/dist/declarations/mission_control/mission_control-deprecated-version.factory.did.js +247 -0
- package/dist/declarations/mission_control/mission_control.did.d.ts +0 -1
- package/dist/declarations/mission_control/mission_control.factory.certified.did.js +1 -2
- package/dist/declarations/mission_control/mission_control.factory.did.js +1 -2
- package/dist/declarations/orbiter/orbiter-deprecated-version.did.d.ts +229 -0
- package/dist/declarations/orbiter/orbiter-deprecated-version.factory.did.js +271 -0
- package/dist/declarations/orbiter/orbiter.did.d.ts +0 -1
- package/dist/declarations/orbiter/orbiter.factory.certified.did.js +1 -2
- package/dist/declarations/orbiter/orbiter.factory.did.js +1 -2
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +1 -2
- package/dist/declarations/satellite/satellite-deprecated-version.did.d.ts +291 -0
- package/dist/declarations/satellite/satellite-deprecated-version.factory.did.js +319 -0
- package/dist/declarations/satellite/satellite.did.d.ts +0 -2
- package/dist/declarations/satellite/satellite.factory.certified.did.js +1 -3
- package/dist/declarations/satellite/satellite.factory.did.js +1 -3
- package/dist/declarations/satellite/satellite.factory.did.mjs +1 -3
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/actor.api.d.ts +21 -0
- package/dist/types/api/ic.api.d.ts +2 -2
- package/dist/types/api/mission-control.api.d.ts +3 -0
- package/dist/types/api/orbiter.api.d.ts +3 -0
- package/dist/types/api/satellite.api.d.ts +9 -3
- package/dist/types/errors/version.errors.d.ts +9 -0
- package/dist/types/handlers/upgrade.chunks.handlers.d.ts +1 -1
- package/dist/types/handlers/upgrade.handlers.d.ts +1 -1
- package/dist/types/handlers/upgrade.single.handlers.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/services/mission-control.controllers.services.d.ts +1 -1
- package/dist/types/services/mission-control.upgrade.services.d.ts +1 -1
- package/dist/types/services/mission-control.version.services.d.ts +1 -1
- package/dist/types/services/orbiter.controllers.services.d.ts +1 -1
- package/dist/types/services/orbiter.upgrade.services.d.ts +1 -1
- package/dist/types/services/orbiter.version.services.d.ts +1 -1
- package/dist/types/services/package.services.d.ts +12 -2
- package/dist/types/services/satellite.controllers.services.d.ts +1 -1
- package/dist/types/services/satellite.upgrade.services.d.ts +1 -1
- package/dist/types/services/satellite.version.services.d.ts +1 -10
- package/dist/types/types/upgrade.types.d.ts +2 -2
- package/dist/types/utils/actor.utils.d.ts +1 -1
- package/dist/types/utils/package.utils.d.ts +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
+
import type {IDL} from '@dfinity/candid';
|
|
3
|
+
import type {Principal} from '@dfinity/principal';
|
|
4
|
+
|
|
5
|
+
export interface AnalyticKey {
|
|
6
|
+
key: string;
|
|
7
|
+
collected_at: bigint;
|
|
8
|
+
}
|
|
9
|
+
export interface AnalyticsBrowsersPageViews {
|
|
10
|
+
safari: number;
|
|
11
|
+
opera: number;
|
|
12
|
+
others: number;
|
|
13
|
+
firefox: number;
|
|
14
|
+
chrome: number;
|
|
15
|
+
}
|
|
16
|
+
export interface AnalyticsClientsPageViews {
|
|
17
|
+
browsers: AnalyticsBrowsersPageViews;
|
|
18
|
+
devices: AnalyticsDevicesPageViews;
|
|
19
|
+
}
|
|
20
|
+
export interface AnalyticsDevicesPageViews {
|
|
21
|
+
desktop: number;
|
|
22
|
+
others: number;
|
|
23
|
+
mobile: number;
|
|
24
|
+
}
|
|
25
|
+
export interface AnalyticsMetricsPageViews {
|
|
26
|
+
bounce_rate: number;
|
|
27
|
+
average_page_views_per_session: number;
|
|
28
|
+
daily_total_page_views: Array<[CalendarDate, number]>;
|
|
29
|
+
total_page_views: number;
|
|
30
|
+
unique_page_views: bigint;
|
|
31
|
+
unique_sessions: bigint;
|
|
32
|
+
}
|
|
33
|
+
export interface AnalyticsTop10PageViews {
|
|
34
|
+
referrers: Array<[string, number]>;
|
|
35
|
+
pages: Array<[string, number]>;
|
|
36
|
+
}
|
|
37
|
+
export interface AnalyticsTrackEvents {
|
|
38
|
+
total: Array<[string, number]>;
|
|
39
|
+
}
|
|
40
|
+
export interface AnalyticsWebVitalsPageMetrics {
|
|
41
|
+
cls: [] | [number];
|
|
42
|
+
fcp: [] | [number];
|
|
43
|
+
inp: [] | [number];
|
|
44
|
+
lcp: [] | [number];
|
|
45
|
+
ttfb: [] | [number];
|
|
46
|
+
}
|
|
47
|
+
export interface AnalyticsWebVitalsPerformanceMetrics {
|
|
48
|
+
overall: AnalyticsWebVitalsPageMetrics;
|
|
49
|
+
pages: Array<[string, AnalyticsWebVitalsPageMetrics]>;
|
|
50
|
+
}
|
|
51
|
+
export interface CalendarDate {
|
|
52
|
+
day: number;
|
|
53
|
+
month: number;
|
|
54
|
+
year: number;
|
|
55
|
+
}
|
|
56
|
+
export interface Controller {
|
|
57
|
+
updated_at: bigint;
|
|
58
|
+
metadata: Array<[string, string]>;
|
|
59
|
+
created_at: bigint;
|
|
60
|
+
scope: ControllerScope;
|
|
61
|
+
expires_at: [] | [bigint];
|
|
62
|
+
}
|
|
63
|
+
export type ControllerScope = {Write: null} | {Admin: null};
|
|
64
|
+
export interface DelSatelliteConfig {
|
|
65
|
+
version: [] | [bigint];
|
|
66
|
+
}
|
|
67
|
+
export interface DeleteControllersArgs {
|
|
68
|
+
controllers: Array<Principal>;
|
|
69
|
+
}
|
|
70
|
+
export interface DepositCyclesArgs {
|
|
71
|
+
cycles: bigint;
|
|
72
|
+
destination_id: Principal;
|
|
73
|
+
}
|
|
74
|
+
export interface GetAnalytics {
|
|
75
|
+
to: [] | [bigint];
|
|
76
|
+
from: [] | [bigint];
|
|
77
|
+
satellite_id: [] | [Principal];
|
|
78
|
+
}
|
|
79
|
+
export interface MemorySize {
|
|
80
|
+
stable: bigint;
|
|
81
|
+
heap: bigint;
|
|
82
|
+
}
|
|
83
|
+
export type NavigationType =
|
|
84
|
+
| {Navigate: null}
|
|
85
|
+
| {Restore: null}
|
|
86
|
+
| {Reload: null}
|
|
87
|
+
| {BackForward: null}
|
|
88
|
+
| {BackForwardCache: null}
|
|
89
|
+
| {Prerender: null};
|
|
90
|
+
export interface OrbiterSatelliteConfig {
|
|
91
|
+
updated_at: bigint;
|
|
92
|
+
features: [] | [OrbiterSatelliteFeatures];
|
|
93
|
+
created_at: bigint;
|
|
94
|
+
version: [] | [bigint];
|
|
95
|
+
}
|
|
96
|
+
export interface OrbiterSatelliteFeatures {
|
|
97
|
+
performance_metrics: boolean;
|
|
98
|
+
track_events: boolean;
|
|
99
|
+
page_views: boolean;
|
|
100
|
+
}
|
|
101
|
+
export interface PageView {
|
|
102
|
+
title: string;
|
|
103
|
+
updated_at: bigint;
|
|
104
|
+
referrer: [] | [string];
|
|
105
|
+
time_zone: string;
|
|
106
|
+
session_id: string;
|
|
107
|
+
href: string;
|
|
108
|
+
created_at: bigint;
|
|
109
|
+
satellite_id: Principal;
|
|
110
|
+
device: PageViewDevice;
|
|
111
|
+
version: [] | [bigint];
|
|
112
|
+
user_agent: [] | [string];
|
|
113
|
+
}
|
|
114
|
+
export interface PageViewDevice {
|
|
115
|
+
inner_height: number;
|
|
116
|
+
inner_width: number;
|
|
117
|
+
}
|
|
118
|
+
export type PerformanceData = {WebVitalsMetric: WebVitalsMetric};
|
|
119
|
+
export interface PerformanceMetric {
|
|
120
|
+
updated_at: bigint;
|
|
121
|
+
session_id: string;
|
|
122
|
+
data: PerformanceData;
|
|
123
|
+
href: string;
|
|
124
|
+
metric_name: PerformanceMetricName;
|
|
125
|
+
created_at: bigint;
|
|
126
|
+
satellite_id: Principal;
|
|
127
|
+
version: [] | [bigint];
|
|
128
|
+
}
|
|
129
|
+
export type PerformanceMetricName =
|
|
130
|
+
| {CLS: null}
|
|
131
|
+
| {FCP: null}
|
|
132
|
+
| {INP: null}
|
|
133
|
+
| {LCP: null}
|
|
134
|
+
| {TTFB: null};
|
|
135
|
+
export type Result = {Ok: PageView} | {Err: string};
|
|
136
|
+
export type Result_1 = {Ok: null} | {Err: Array<[AnalyticKey, string]>};
|
|
137
|
+
export type Result_2 = {Ok: PerformanceMetric} | {Err: string};
|
|
138
|
+
export type Result_3 = {Ok: TrackEvent} | {Err: string};
|
|
139
|
+
export interface SetController {
|
|
140
|
+
metadata: Array<[string, string]>;
|
|
141
|
+
scope: ControllerScope;
|
|
142
|
+
expires_at: [] | [bigint];
|
|
143
|
+
}
|
|
144
|
+
export interface SetControllersArgs {
|
|
145
|
+
controller: SetController;
|
|
146
|
+
controllers: Array<Principal>;
|
|
147
|
+
}
|
|
148
|
+
export interface SetPageView {
|
|
149
|
+
title: string;
|
|
150
|
+
updated_at: [] | [bigint];
|
|
151
|
+
referrer: [] | [string];
|
|
152
|
+
time_zone: string;
|
|
153
|
+
session_id: string;
|
|
154
|
+
href: string;
|
|
155
|
+
satellite_id: Principal;
|
|
156
|
+
device: PageViewDevice;
|
|
157
|
+
version: [] | [bigint];
|
|
158
|
+
user_agent: [] | [string];
|
|
159
|
+
}
|
|
160
|
+
export interface SetPerformanceMetric {
|
|
161
|
+
session_id: string;
|
|
162
|
+
data: PerformanceData;
|
|
163
|
+
href: string;
|
|
164
|
+
metric_name: PerformanceMetricName;
|
|
165
|
+
satellite_id: Principal;
|
|
166
|
+
version: [] | [bigint];
|
|
167
|
+
user_agent: [] | [string];
|
|
168
|
+
}
|
|
169
|
+
export interface SetSatelliteConfig {
|
|
170
|
+
features: [] | [OrbiterSatelliteFeatures];
|
|
171
|
+
version: [] | [bigint];
|
|
172
|
+
}
|
|
173
|
+
export interface SetTrackEvent {
|
|
174
|
+
updated_at: [] | [bigint];
|
|
175
|
+
session_id: string;
|
|
176
|
+
metadata: [] | [Array<[string, string]>];
|
|
177
|
+
name: string;
|
|
178
|
+
satellite_id: Principal;
|
|
179
|
+
version: [] | [bigint];
|
|
180
|
+
user_agent: [] | [string];
|
|
181
|
+
}
|
|
182
|
+
export interface TrackEvent {
|
|
183
|
+
updated_at: bigint;
|
|
184
|
+
session_id: string;
|
|
185
|
+
metadata: [] | [Array<[string, string]>];
|
|
186
|
+
name: string;
|
|
187
|
+
created_at: bigint;
|
|
188
|
+
satellite_id: Principal;
|
|
189
|
+
version: [] | [bigint];
|
|
190
|
+
}
|
|
191
|
+
export interface WebVitalsMetric {
|
|
192
|
+
id: string;
|
|
193
|
+
value: number;
|
|
194
|
+
navigation_type: [] | [NavigationType];
|
|
195
|
+
delta: number;
|
|
196
|
+
}
|
|
197
|
+
export interface _SERVICE {
|
|
198
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
199
|
+
del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
|
|
200
|
+
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
201
|
+
get_page_views: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PageView]>>;
|
|
202
|
+
get_page_views_analytics_clients: ActorMethod<[GetAnalytics], AnalyticsClientsPageViews>;
|
|
203
|
+
get_page_views_analytics_metrics: ActorMethod<[GetAnalytics], AnalyticsMetricsPageViews>;
|
|
204
|
+
get_page_views_analytics_top_10: ActorMethod<[GetAnalytics], AnalyticsTop10PageViews>;
|
|
205
|
+
get_performance_metrics: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PerformanceMetric]>>;
|
|
206
|
+
get_performance_metrics_analytics_web_vitals: ActorMethod<
|
|
207
|
+
[GetAnalytics],
|
|
208
|
+
AnalyticsWebVitalsPerformanceMetrics
|
|
209
|
+
>;
|
|
210
|
+
get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
|
|
211
|
+
get_track_events_analytics: ActorMethod<[GetAnalytics], AnalyticsTrackEvents>;
|
|
212
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
213
|
+
list_satellite_configs: ActorMethod<[], Array<[Principal, OrbiterSatelliteConfig]>>;
|
|
214
|
+
memory_size: ActorMethod<[], MemorySize>;
|
|
215
|
+
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
216
|
+
set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
|
|
217
|
+
set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
|
|
218
|
+
set_performance_metric: ActorMethod<[AnalyticKey, SetPerformanceMetric], Result_2>;
|
|
219
|
+
set_performance_metrics: ActorMethod<[Array<[AnalyticKey, SetPerformanceMetric]>], Result_1>;
|
|
220
|
+
set_satellite_configs: ActorMethod<
|
|
221
|
+
[Array<[Principal, SetSatelliteConfig]>],
|
|
222
|
+
Array<[Principal, OrbiterSatelliteConfig]>
|
|
223
|
+
>;
|
|
224
|
+
set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_3>;
|
|
225
|
+
set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
|
|
226
|
+
version: ActorMethod<[], string>;
|
|
227
|
+
}
|
|
228
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
229
|
+
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
export const idlFactory = ({IDL}) => {
|
|
3
|
+
const DeleteControllersArgs = IDL.Record({
|
|
4
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
5
|
+
});
|
|
6
|
+
const ControllerScope = IDL.Variant({
|
|
7
|
+
Write: IDL.Null,
|
|
8
|
+
Admin: IDL.Null
|
|
9
|
+
});
|
|
10
|
+
const Controller = IDL.Record({
|
|
11
|
+
updated_at: IDL.Nat64,
|
|
12
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
13
|
+
created_at: IDL.Nat64,
|
|
14
|
+
scope: ControllerScope,
|
|
15
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
16
|
+
});
|
|
17
|
+
const DelSatelliteConfig = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
18
|
+
const DepositCyclesArgs = IDL.Record({
|
|
19
|
+
cycles: IDL.Nat,
|
|
20
|
+
destination_id: IDL.Principal
|
|
21
|
+
});
|
|
22
|
+
const GetAnalytics = IDL.Record({
|
|
23
|
+
to: IDL.Opt(IDL.Nat64),
|
|
24
|
+
from: IDL.Opt(IDL.Nat64),
|
|
25
|
+
satellite_id: IDL.Opt(IDL.Principal)
|
|
26
|
+
});
|
|
27
|
+
const AnalyticKey = IDL.Record({
|
|
28
|
+
key: IDL.Text,
|
|
29
|
+
collected_at: IDL.Nat64
|
|
30
|
+
});
|
|
31
|
+
const PageViewDevice = IDL.Record({
|
|
32
|
+
inner_height: IDL.Nat16,
|
|
33
|
+
inner_width: IDL.Nat16
|
|
34
|
+
});
|
|
35
|
+
const PageView = IDL.Record({
|
|
36
|
+
title: IDL.Text,
|
|
37
|
+
updated_at: IDL.Nat64,
|
|
38
|
+
referrer: IDL.Opt(IDL.Text),
|
|
39
|
+
time_zone: IDL.Text,
|
|
40
|
+
session_id: IDL.Text,
|
|
41
|
+
href: IDL.Text,
|
|
42
|
+
created_at: IDL.Nat64,
|
|
43
|
+
satellite_id: IDL.Principal,
|
|
44
|
+
device: PageViewDevice,
|
|
45
|
+
version: IDL.Opt(IDL.Nat64),
|
|
46
|
+
user_agent: IDL.Opt(IDL.Text)
|
|
47
|
+
});
|
|
48
|
+
const AnalyticsBrowsersPageViews = IDL.Record({
|
|
49
|
+
safari: IDL.Float64,
|
|
50
|
+
opera: IDL.Float64,
|
|
51
|
+
others: IDL.Float64,
|
|
52
|
+
firefox: IDL.Float64,
|
|
53
|
+
chrome: IDL.Float64
|
|
54
|
+
});
|
|
55
|
+
const AnalyticsDevicesPageViews = IDL.Record({
|
|
56
|
+
desktop: IDL.Float64,
|
|
57
|
+
others: IDL.Float64,
|
|
58
|
+
mobile: IDL.Float64
|
|
59
|
+
});
|
|
60
|
+
const AnalyticsClientsPageViews = IDL.Record({
|
|
61
|
+
browsers: AnalyticsBrowsersPageViews,
|
|
62
|
+
devices: AnalyticsDevicesPageViews
|
|
63
|
+
});
|
|
64
|
+
const CalendarDate = IDL.Record({
|
|
65
|
+
day: IDL.Nat8,
|
|
66
|
+
month: IDL.Nat8,
|
|
67
|
+
year: IDL.Int32
|
|
68
|
+
});
|
|
69
|
+
const AnalyticsMetricsPageViews = IDL.Record({
|
|
70
|
+
bounce_rate: IDL.Float64,
|
|
71
|
+
average_page_views_per_session: IDL.Float64,
|
|
72
|
+
daily_total_page_views: IDL.Vec(IDL.Tuple(CalendarDate, IDL.Nat32)),
|
|
73
|
+
total_page_views: IDL.Nat32,
|
|
74
|
+
unique_page_views: IDL.Nat64,
|
|
75
|
+
unique_sessions: IDL.Nat64
|
|
76
|
+
});
|
|
77
|
+
const AnalyticsTop10PageViews = IDL.Record({
|
|
78
|
+
referrers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
79
|
+
pages: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
80
|
+
});
|
|
81
|
+
const NavigationType = IDL.Variant({
|
|
82
|
+
Navigate: IDL.Null,
|
|
83
|
+
Restore: IDL.Null,
|
|
84
|
+
Reload: IDL.Null,
|
|
85
|
+
BackForward: IDL.Null,
|
|
86
|
+
BackForwardCache: IDL.Null,
|
|
87
|
+
Prerender: IDL.Null
|
|
88
|
+
});
|
|
89
|
+
const WebVitalsMetric = IDL.Record({
|
|
90
|
+
id: IDL.Text,
|
|
91
|
+
value: IDL.Float64,
|
|
92
|
+
navigation_type: IDL.Opt(NavigationType),
|
|
93
|
+
delta: IDL.Float64
|
|
94
|
+
});
|
|
95
|
+
const PerformanceData = IDL.Variant({WebVitalsMetric: WebVitalsMetric});
|
|
96
|
+
const PerformanceMetricName = IDL.Variant({
|
|
97
|
+
CLS: IDL.Null,
|
|
98
|
+
FCP: IDL.Null,
|
|
99
|
+
INP: IDL.Null,
|
|
100
|
+
LCP: IDL.Null,
|
|
101
|
+
TTFB: IDL.Null
|
|
102
|
+
});
|
|
103
|
+
const PerformanceMetric = IDL.Record({
|
|
104
|
+
updated_at: IDL.Nat64,
|
|
105
|
+
session_id: IDL.Text,
|
|
106
|
+
data: PerformanceData,
|
|
107
|
+
href: IDL.Text,
|
|
108
|
+
metric_name: PerformanceMetricName,
|
|
109
|
+
created_at: IDL.Nat64,
|
|
110
|
+
satellite_id: IDL.Principal,
|
|
111
|
+
version: IDL.Opt(IDL.Nat64)
|
|
112
|
+
});
|
|
113
|
+
const AnalyticsWebVitalsPageMetrics = IDL.Record({
|
|
114
|
+
cls: IDL.Opt(IDL.Float64),
|
|
115
|
+
fcp: IDL.Opt(IDL.Float64),
|
|
116
|
+
inp: IDL.Opt(IDL.Float64),
|
|
117
|
+
lcp: IDL.Opt(IDL.Float64),
|
|
118
|
+
ttfb: IDL.Opt(IDL.Float64)
|
|
119
|
+
});
|
|
120
|
+
const AnalyticsWebVitalsPerformanceMetrics = IDL.Record({
|
|
121
|
+
overall: AnalyticsWebVitalsPageMetrics,
|
|
122
|
+
pages: IDL.Vec(IDL.Tuple(IDL.Text, AnalyticsWebVitalsPageMetrics))
|
|
123
|
+
});
|
|
124
|
+
const TrackEvent = IDL.Record({
|
|
125
|
+
updated_at: IDL.Nat64,
|
|
126
|
+
session_id: IDL.Text,
|
|
127
|
+
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
128
|
+
name: IDL.Text,
|
|
129
|
+
created_at: IDL.Nat64,
|
|
130
|
+
satellite_id: IDL.Principal,
|
|
131
|
+
version: IDL.Opt(IDL.Nat64)
|
|
132
|
+
});
|
|
133
|
+
const AnalyticsTrackEvents = IDL.Record({
|
|
134
|
+
total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
135
|
+
});
|
|
136
|
+
const OrbiterSatelliteFeatures = IDL.Record({
|
|
137
|
+
performance_metrics: IDL.Bool,
|
|
138
|
+
track_events: IDL.Bool,
|
|
139
|
+
page_views: IDL.Bool
|
|
140
|
+
});
|
|
141
|
+
const OrbiterSatelliteConfig = IDL.Record({
|
|
142
|
+
updated_at: IDL.Nat64,
|
|
143
|
+
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
144
|
+
created_at: IDL.Nat64,
|
|
145
|
+
version: IDL.Opt(IDL.Nat64)
|
|
146
|
+
});
|
|
147
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
148
|
+
const SetController = IDL.Record({
|
|
149
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
150
|
+
scope: ControllerScope,
|
|
151
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
152
|
+
});
|
|
153
|
+
const SetControllersArgs = IDL.Record({
|
|
154
|
+
controller: SetController,
|
|
155
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
156
|
+
});
|
|
157
|
+
const SetPageView = IDL.Record({
|
|
158
|
+
title: IDL.Text,
|
|
159
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
160
|
+
referrer: IDL.Opt(IDL.Text),
|
|
161
|
+
time_zone: IDL.Text,
|
|
162
|
+
session_id: IDL.Text,
|
|
163
|
+
href: IDL.Text,
|
|
164
|
+
satellite_id: IDL.Principal,
|
|
165
|
+
device: PageViewDevice,
|
|
166
|
+
version: IDL.Opt(IDL.Nat64),
|
|
167
|
+
user_agent: IDL.Opt(IDL.Text)
|
|
168
|
+
});
|
|
169
|
+
const Result = IDL.Variant({Ok: PageView, Err: IDL.Text});
|
|
170
|
+
const Result_1 = IDL.Variant({
|
|
171
|
+
Ok: IDL.Null,
|
|
172
|
+
Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
|
|
173
|
+
});
|
|
174
|
+
const SetPerformanceMetric = IDL.Record({
|
|
175
|
+
session_id: IDL.Text,
|
|
176
|
+
data: PerformanceData,
|
|
177
|
+
href: IDL.Text,
|
|
178
|
+
metric_name: PerformanceMetricName,
|
|
179
|
+
satellite_id: IDL.Principal,
|
|
180
|
+
version: IDL.Opt(IDL.Nat64),
|
|
181
|
+
user_agent: IDL.Opt(IDL.Text)
|
|
182
|
+
});
|
|
183
|
+
const Result_2 = IDL.Variant({Ok: PerformanceMetric, Err: IDL.Text});
|
|
184
|
+
const SetSatelliteConfig = IDL.Record({
|
|
185
|
+
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
186
|
+
version: IDL.Opt(IDL.Nat64)
|
|
187
|
+
});
|
|
188
|
+
const SetTrackEvent = IDL.Record({
|
|
189
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
190
|
+
session_id: IDL.Text,
|
|
191
|
+
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
192
|
+
name: IDL.Text,
|
|
193
|
+
satellite_id: IDL.Principal,
|
|
194
|
+
version: IDL.Opt(IDL.Nat64),
|
|
195
|
+
user_agent: IDL.Opt(IDL.Text)
|
|
196
|
+
});
|
|
197
|
+
const Result_3 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
|
|
198
|
+
return IDL.Service({
|
|
199
|
+
del_controllers: IDL.Func(
|
|
200
|
+
[DeleteControllersArgs],
|
|
201
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
202
|
+
[]
|
|
203
|
+
),
|
|
204
|
+
del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
|
|
205
|
+
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
206
|
+
get_page_views: IDL.Func(
|
|
207
|
+
[GetAnalytics],
|
|
208
|
+
[IDL.Vec(IDL.Tuple(AnalyticKey, PageView))],
|
|
209
|
+
['query']
|
|
210
|
+
),
|
|
211
|
+
get_page_views_analytics_clients: IDL.Func(
|
|
212
|
+
[GetAnalytics],
|
|
213
|
+
[AnalyticsClientsPageViews],
|
|
214
|
+
['query']
|
|
215
|
+
),
|
|
216
|
+
get_page_views_analytics_metrics: IDL.Func(
|
|
217
|
+
[GetAnalytics],
|
|
218
|
+
[AnalyticsMetricsPageViews],
|
|
219
|
+
['query']
|
|
220
|
+
),
|
|
221
|
+
get_page_views_analytics_top_10: IDL.Func([GetAnalytics], [AnalyticsTop10PageViews], ['query']),
|
|
222
|
+
get_performance_metrics: IDL.Func(
|
|
223
|
+
[GetAnalytics],
|
|
224
|
+
[IDL.Vec(IDL.Tuple(AnalyticKey, PerformanceMetric))],
|
|
225
|
+
['query']
|
|
226
|
+
),
|
|
227
|
+
get_performance_metrics_analytics_web_vitals: IDL.Func(
|
|
228
|
+
[GetAnalytics],
|
|
229
|
+
[AnalyticsWebVitalsPerformanceMetrics],
|
|
230
|
+
['query']
|
|
231
|
+
),
|
|
232
|
+
get_track_events: IDL.Func(
|
|
233
|
+
[GetAnalytics],
|
|
234
|
+
[IDL.Vec(IDL.Tuple(AnalyticKey, TrackEvent))],
|
|
235
|
+
['query']
|
|
236
|
+
),
|
|
237
|
+
get_track_events_analytics: IDL.Func([GetAnalytics], [AnalyticsTrackEvents], ['query']),
|
|
238
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
239
|
+
list_satellite_configs: IDL.Func(
|
|
240
|
+
[],
|
|
241
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
242
|
+
['query']
|
|
243
|
+
),
|
|
244
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
245
|
+
set_controllers: IDL.Func(
|
|
246
|
+
[SetControllersArgs],
|
|
247
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
248
|
+
[]
|
|
249
|
+
),
|
|
250
|
+
set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
|
|
251
|
+
set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
|
|
252
|
+
set_performance_metric: IDL.Func([AnalyticKey, SetPerformanceMetric], [Result_2], []),
|
|
253
|
+
set_performance_metrics: IDL.Func(
|
|
254
|
+
[IDL.Vec(IDL.Tuple(AnalyticKey, SetPerformanceMetric))],
|
|
255
|
+
[Result_1],
|
|
256
|
+
[]
|
|
257
|
+
),
|
|
258
|
+
set_satellite_configs: IDL.Func(
|
|
259
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
|
|
260
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
261
|
+
[]
|
|
262
|
+
),
|
|
263
|
+
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
|
|
264
|
+
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
|
|
265
|
+
version: IDL.Func([], [IDL.Text], ['query'])
|
|
266
|
+
});
|
|
267
|
+
};
|
|
268
|
+
// @ts-ignore
|
|
269
|
+
export const init = ({IDL}) => {
|
|
270
|
+
return [];
|
|
271
|
+
};
|
|
@@ -223,7 +223,6 @@ export interface _SERVICE {
|
|
|
223
223
|
>;
|
|
224
224
|
set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_3>;
|
|
225
225
|
set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
|
|
226
|
-
version: ActorMethod<[], string>;
|
|
227
226
|
}
|
|
228
227
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
229
228
|
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
@@ -245,8 +245,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
245
245
|
[]
|
|
246
246
|
),
|
|
247
247
|
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
|
|
248
|
-
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], [])
|
|
249
|
-
version: IDL.Func([], [IDL.Text], [])
|
|
248
|
+
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], [])
|
|
250
249
|
});
|
|
251
250
|
};
|
|
252
251
|
// @ts-ignore
|
|
@@ -261,8 +261,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
261
261
|
[]
|
|
262
262
|
),
|
|
263
263
|
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
|
|
264
|
-
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], [])
|
|
265
|
-
version: IDL.Func([], [IDL.Text], ['query'])
|
|
264
|
+
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], [])
|
|
266
265
|
});
|
|
267
266
|
};
|
|
268
267
|
// @ts-ignore
|
|
@@ -261,8 +261,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
261
261
|
[]
|
|
262
262
|
),
|
|
263
263
|
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
|
|
264
|
-
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], [])
|
|
265
|
-
version: IDL.Func([], [IDL.Text], ['query'])
|
|
264
|
+
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], [])
|
|
266
265
|
});
|
|
267
266
|
};
|
|
268
267
|
// @ts-ignore
|