@junobuild/analytics 0.0.14-next-2023-12-21 → 0.0.14-next-2023-12-22
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/declarations/orbiter/orbiter.did.d.ts +5 -0
- package/declarations/orbiter/orbiter.factory.did.js +2 -0
- package/dist/declarations/orbiter/orbiter.did.d.ts +5 -0
- package/dist/declarations/orbiter/orbiter.factory.did.js +2 -0
- package/dist/workers/analytics.worker.js +7 -7
- package/dist/workers/analytics.worker.js.map +3 -3
- package/package.json +1 -1
|
@@ -28,6 +28,10 @@ export interface GetAnalytics {
|
|
|
28
28
|
from: [] | [bigint];
|
|
29
29
|
satellite_id: [] | [Principal];
|
|
30
30
|
}
|
|
31
|
+
export interface MemorySize {
|
|
32
|
+
stable: bigint;
|
|
33
|
+
heap: bigint;
|
|
34
|
+
}
|
|
31
35
|
export interface OrbiterSatelliteConfig {
|
|
32
36
|
updated_at: bigint;
|
|
33
37
|
created_at: bigint;
|
|
@@ -100,6 +104,7 @@ export interface _SERVICE {
|
|
|
100
104
|
get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
|
|
101
105
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
102
106
|
list_satellite_configs: ActorMethod<[], Array<[Principal, OrbiterSatelliteConfig]>>;
|
|
107
|
+
memory_size: ActorMethod<[], MemorySize>;
|
|
103
108
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
104
109
|
set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
|
|
105
110
|
set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
|
|
@@ -57,6 +57,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
57
57
|
created_at: IDL.Nat64,
|
|
58
58
|
enabled: IDL.Bool
|
|
59
59
|
});
|
|
60
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
60
61
|
const SetController = IDL.Record({
|
|
61
62
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
62
63
|
scope: ControllerScope,
|
|
@@ -119,6 +120,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
119
120
|
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
120
121
|
['query']
|
|
121
122
|
),
|
|
123
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
122
124
|
set_controllers: IDL.Func(
|
|
123
125
|
[SetControllersArgs],
|
|
124
126
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
@@ -28,6 +28,10 @@ export interface GetAnalytics {
|
|
|
28
28
|
from: [] | [bigint];
|
|
29
29
|
satellite_id: [] | [Principal];
|
|
30
30
|
}
|
|
31
|
+
export interface MemorySize {
|
|
32
|
+
stable: bigint;
|
|
33
|
+
heap: bigint;
|
|
34
|
+
}
|
|
31
35
|
export interface OrbiterSatelliteConfig {
|
|
32
36
|
updated_at: bigint;
|
|
33
37
|
created_at: bigint;
|
|
@@ -100,6 +104,7 @@ export interface _SERVICE {
|
|
|
100
104
|
get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
|
|
101
105
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
102
106
|
list_satellite_configs: ActorMethod<[], Array<[Principal, OrbiterSatelliteConfig]>>;
|
|
107
|
+
memory_size: ActorMethod<[], MemorySize>;
|
|
103
108
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
104
109
|
set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
|
|
105
110
|
set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
|
|
@@ -57,6 +57,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
57
57
|
created_at: IDL.Nat64,
|
|
58
58
|
enabled: IDL.Bool
|
|
59
59
|
});
|
|
60
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
60
61
|
const SetController = IDL.Record({
|
|
61
62
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
62
63
|
scope: ControllerScope,
|
|
@@ -119,6 +120,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
119
120
|
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
120
121
|
['query']
|
|
121
122
|
),
|
|
123
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
122
124
|
set_controllers: IDL.Func(
|
|
123
125
|
[SetControllersArgs],
|
|
124
126
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|