@junobuild/core 0.0.26 → 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.
|
@@ -14,7 +14,7 @@ export interface Controller {
|
|
|
14
14
|
expires_at: [] | [bigint];
|
|
15
15
|
}
|
|
16
16
|
export type ControllerScope = {Write: null} | {Admin: null};
|
|
17
|
-
export interface
|
|
17
|
+
export interface DelSatelliteConfig {
|
|
18
18
|
updated_at: [] | [bigint];
|
|
19
19
|
}
|
|
20
20
|
export interface DeleteControllersArgs {
|
|
@@ -25,12 +25,6 @@ export interface GetAnalytics {
|
|
|
25
25
|
from: [] | [bigint];
|
|
26
26
|
satellite_id: [] | [Principal];
|
|
27
27
|
}
|
|
28
|
-
export interface OriginConfig {
|
|
29
|
-
key: Principal;
|
|
30
|
-
updated_at: bigint;
|
|
31
|
-
created_at: bigint;
|
|
32
|
-
filter: string;
|
|
33
|
-
}
|
|
34
28
|
export interface PageView {
|
|
35
29
|
title: string;
|
|
36
30
|
updated_at: bigint;
|
|
@@ -47,8 +41,13 @@ export interface PageViewDevice {
|
|
|
47
41
|
inner_width: number;
|
|
48
42
|
}
|
|
49
43
|
export type Result = {Ok: PageView} | {Err: string};
|
|
50
|
-
export type Result_1 = {Ok: null} | {Err: string};
|
|
44
|
+
export type Result_1 = {Ok: null} | {Err: Array<[AnalyticKey, string]>};
|
|
51
45
|
export type Result_2 = {Ok: TrackEvent} | {Err: string};
|
|
46
|
+
export interface SatelliteConfig {
|
|
47
|
+
updated_at: bigint;
|
|
48
|
+
created_at: bigint;
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
}
|
|
52
51
|
export interface SetController {
|
|
53
52
|
metadata: Array<[string, string]>;
|
|
54
53
|
scope: ControllerScope;
|
|
@@ -58,11 +57,6 @@ export interface SetControllersArgs {
|
|
|
58
57
|
controller: SetController;
|
|
59
58
|
controllers: Array<Principal>;
|
|
60
59
|
}
|
|
61
|
-
export interface SetOriginConfig {
|
|
62
|
-
key: Principal;
|
|
63
|
-
updated_at: [] | [bigint];
|
|
64
|
-
filter: string;
|
|
65
|
-
}
|
|
66
60
|
export interface SetPageView {
|
|
67
61
|
title: string;
|
|
68
62
|
updated_at: [] | [bigint];
|
|
@@ -73,6 +67,10 @@ export interface SetPageView {
|
|
|
73
67
|
user_agent: [] | [string];
|
|
74
68
|
collected_at: bigint;
|
|
75
69
|
}
|
|
70
|
+
export interface SetSatelliteConfig {
|
|
71
|
+
updated_at: [] | [bigint];
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
}
|
|
76
74
|
export interface SetTrackEvent {
|
|
77
75
|
updated_at: [] | [bigint];
|
|
78
76
|
metadata: [] | [Array<[string, string]>];
|
|
@@ -89,15 +87,18 @@ export interface TrackEvent {
|
|
|
89
87
|
}
|
|
90
88
|
export interface _SERVICE {
|
|
91
89
|
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
92
|
-
|
|
90
|
+
del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
|
|
93
91
|
get_page_views: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PageView]>>;
|
|
94
92
|
get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
|
|
95
93
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
96
|
-
|
|
94
|
+
list_satellite_configs: ActorMethod<[], Array<[Principal, SatelliteConfig]>>;
|
|
97
95
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
98
|
-
set_origin_config: ActorMethod<[Principal, SetOriginConfig], OriginConfig>;
|
|
99
96
|
set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
|
|
100
97
|
set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
|
|
98
|
+
set_satellite_configs: ActorMethod<
|
|
99
|
+
[Array<[Principal, SetSatelliteConfig]>],
|
|
100
|
+
Array<[Principal, SatelliteConfig]>
|
|
101
|
+
>;
|
|
101
102
|
set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_2>;
|
|
102
103
|
set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
|
|
103
104
|
version: ActorMethod<[], string>;
|
|
@@ -14,7 +14,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
14
14
|
scope: ControllerScope,
|
|
15
15
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
16
16
|
});
|
|
17
|
-
const
|
|
17
|
+
const DelSatelliteConfig = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
|
|
18
18
|
const GetAnalytics = IDL.Record({
|
|
19
19
|
to: IDL.Opt(IDL.Nat64),
|
|
20
20
|
from: IDL.Opt(IDL.Nat64),
|
|
@@ -47,11 +47,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
47
47
|
created_at: IDL.Nat64,
|
|
48
48
|
collected_at: IDL.Nat64
|
|
49
49
|
});
|
|
50
|
-
const
|
|
51
|
-
key: IDL.Principal,
|
|
50
|
+
const SatelliteConfig = IDL.Record({
|
|
52
51
|
updated_at: IDL.Nat64,
|
|
53
52
|
created_at: IDL.Nat64,
|
|
54
|
-
|
|
53
|
+
enabled: IDL.Bool
|
|
55
54
|
});
|
|
56
55
|
const SetController = IDL.Record({
|
|
57
56
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
@@ -62,11 +61,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
62
61
|
controller: SetController,
|
|
63
62
|
controllers: IDL.Vec(IDL.Principal)
|
|
64
63
|
});
|
|
65
|
-
const SetOriginConfig = IDL.Record({
|
|
66
|
-
key: IDL.Principal,
|
|
67
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
68
|
-
filter: IDL.Text
|
|
69
|
-
});
|
|
70
64
|
const SetPageView = IDL.Record({
|
|
71
65
|
title: IDL.Text,
|
|
72
66
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
@@ -78,7 +72,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
78
72
|
collected_at: IDL.Nat64
|
|
79
73
|
});
|
|
80
74
|
const Result = IDL.Variant({Ok: PageView, Err: IDL.Text});
|
|
81
|
-
const Result_1 = IDL.Variant({
|
|
75
|
+
const Result_1 = IDL.Variant({
|
|
76
|
+
Ok: IDL.Null,
|
|
77
|
+
Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
|
|
78
|
+
});
|
|
79
|
+
const SetSatelliteConfig = IDL.Record({
|
|
80
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
81
|
+
enabled: IDL.Bool
|
|
82
|
+
});
|
|
82
83
|
const SetTrackEvent = IDL.Record({
|
|
83
84
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
84
85
|
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
@@ -93,7 +94,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
93
94
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
94
95
|
[]
|
|
95
96
|
),
|
|
96
|
-
|
|
97
|
+
del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
|
|
97
98
|
get_page_views: IDL.Func(
|
|
98
99
|
[GetAnalytics],
|
|
99
100
|
[IDL.Vec(IDL.Tuple(AnalyticKey, PageView))],
|
|
@@ -105,15 +106,23 @@ export const idlFactory = ({IDL}) => {
|
|
|
105
106
|
['query']
|
|
106
107
|
),
|
|
107
108
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
108
|
-
|
|
109
|
+
list_satellite_configs: IDL.Func(
|
|
110
|
+
[],
|
|
111
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, SatelliteConfig))],
|
|
112
|
+
['query']
|
|
113
|
+
),
|
|
109
114
|
set_controllers: IDL.Func(
|
|
110
115
|
[SetControllersArgs],
|
|
111
116
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
112
117
|
[]
|
|
113
118
|
),
|
|
114
|
-
set_origin_config: IDL.Func([IDL.Principal, SetOriginConfig], [OriginConfig], []),
|
|
115
119
|
set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
|
|
116
120
|
set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
|
|
121
|
+
set_satellite_configs: IDL.Func(
|
|
122
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
|
|
123
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, SatelliteConfig))],
|
|
124
|
+
[]
|
|
125
|
+
),
|
|
117
126
|
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_2], []),
|
|
118
127
|
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
|
|
119
128
|
version: IDL.Func([], [IDL.Text], ['query'])
|
|
@@ -14,7 +14,7 @@ export interface Controller {
|
|
|
14
14
|
expires_at: [] | [bigint];
|
|
15
15
|
}
|
|
16
16
|
export type ControllerScope = {Write: null} | {Admin: null};
|
|
17
|
-
export interface
|
|
17
|
+
export interface DelSatelliteConfig {
|
|
18
18
|
updated_at: [] | [bigint];
|
|
19
19
|
}
|
|
20
20
|
export interface DeleteControllersArgs {
|
|
@@ -25,12 +25,6 @@ export interface GetAnalytics {
|
|
|
25
25
|
from: [] | [bigint];
|
|
26
26
|
satellite_id: [] | [Principal];
|
|
27
27
|
}
|
|
28
|
-
export interface OriginConfig {
|
|
29
|
-
key: Principal;
|
|
30
|
-
updated_at: bigint;
|
|
31
|
-
created_at: bigint;
|
|
32
|
-
filter: string;
|
|
33
|
-
}
|
|
34
28
|
export interface PageView {
|
|
35
29
|
title: string;
|
|
36
30
|
updated_at: bigint;
|
|
@@ -47,8 +41,13 @@ export interface PageViewDevice {
|
|
|
47
41
|
inner_width: number;
|
|
48
42
|
}
|
|
49
43
|
export type Result = {Ok: PageView} | {Err: string};
|
|
50
|
-
export type Result_1 = {Ok: null} | {Err: string};
|
|
44
|
+
export type Result_1 = {Ok: null} | {Err: Array<[AnalyticKey, string]>};
|
|
51
45
|
export type Result_2 = {Ok: TrackEvent} | {Err: string};
|
|
46
|
+
export interface SatelliteConfig {
|
|
47
|
+
updated_at: bigint;
|
|
48
|
+
created_at: bigint;
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
}
|
|
52
51
|
export interface SetController {
|
|
53
52
|
metadata: Array<[string, string]>;
|
|
54
53
|
scope: ControllerScope;
|
|
@@ -58,11 +57,6 @@ export interface SetControllersArgs {
|
|
|
58
57
|
controller: SetController;
|
|
59
58
|
controllers: Array<Principal>;
|
|
60
59
|
}
|
|
61
|
-
export interface SetOriginConfig {
|
|
62
|
-
key: Principal;
|
|
63
|
-
updated_at: [] | [bigint];
|
|
64
|
-
filter: string;
|
|
65
|
-
}
|
|
66
60
|
export interface SetPageView {
|
|
67
61
|
title: string;
|
|
68
62
|
updated_at: [] | [bigint];
|
|
@@ -73,6 +67,10 @@ export interface SetPageView {
|
|
|
73
67
|
user_agent: [] | [string];
|
|
74
68
|
collected_at: bigint;
|
|
75
69
|
}
|
|
70
|
+
export interface SetSatelliteConfig {
|
|
71
|
+
updated_at: [] | [bigint];
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
}
|
|
76
74
|
export interface SetTrackEvent {
|
|
77
75
|
updated_at: [] | [bigint];
|
|
78
76
|
metadata: [] | [Array<[string, string]>];
|
|
@@ -89,15 +87,18 @@ export interface TrackEvent {
|
|
|
89
87
|
}
|
|
90
88
|
export interface _SERVICE {
|
|
91
89
|
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
92
|
-
|
|
90
|
+
del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
|
|
93
91
|
get_page_views: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PageView]>>;
|
|
94
92
|
get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
|
|
95
93
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
96
|
-
|
|
94
|
+
list_satellite_configs: ActorMethod<[], Array<[Principal, SatelliteConfig]>>;
|
|
97
95
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
98
|
-
set_origin_config: ActorMethod<[Principal, SetOriginConfig], OriginConfig>;
|
|
99
96
|
set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
|
|
100
97
|
set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
|
|
98
|
+
set_satellite_configs: ActorMethod<
|
|
99
|
+
[Array<[Principal, SetSatelliteConfig]>],
|
|
100
|
+
Array<[Principal, SatelliteConfig]>
|
|
101
|
+
>;
|
|
101
102
|
set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_2>;
|
|
102
103
|
set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
|
|
103
104
|
version: ActorMethod<[], string>;
|
|
@@ -14,7 +14,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
14
14
|
scope: ControllerScope,
|
|
15
15
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
16
16
|
});
|
|
17
|
-
const
|
|
17
|
+
const DelSatelliteConfig = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
|
|
18
18
|
const GetAnalytics = IDL.Record({
|
|
19
19
|
to: IDL.Opt(IDL.Nat64),
|
|
20
20
|
from: IDL.Opt(IDL.Nat64),
|
|
@@ -47,11 +47,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
47
47
|
created_at: IDL.Nat64,
|
|
48
48
|
collected_at: IDL.Nat64
|
|
49
49
|
});
|
|
50
|
-
const
|
|
51
|
-
key: IDL.Principal,
|
|
50
|
+
const SatelliteConfig = IDL.Record({
|
|
52
51
|
updated_at: IDL.Nat64,
|
|
53
52
|
created_at: IDL.Nat64,
|
|
54
|
-
|
|
53
|
+
enabled: IDL.Bool
|
|
55
54
|
});
|
|
56
55
|
const SetController = IDL.Record({
|
|
57
56
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
@@ -62,11 +61,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
62
61
|
controller: SetController,
|
|
63
62
|
controllers: IDL.Vec(IDL.Principal)
|
|
64
63
|
});
|
|
65
|
-
const SetOriginConfig = IDL.Record({
|
|
66
|
-
key: IDL.Principal,
|
|
67
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
68
|
-
filter: IDL.Text
|
|
69
|
-
});
|
|
70
64
|
const SetPageView = IDL.Record({
|
|
71
65
|
title: IDL.Text,
|
|
72
66
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
@@ -78,7 +72,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
78
72
|
collected_at: IDL.Nat64
|
|
79
73
|
});
|
|
80
74
|
const Result = IDL.Variant({Ok: PageView, Err: IDL.Text});
|
|
81
|
-
const Result_1 = IDL.Variant({
|
|
75
|
+
const Result_1 = IDL.Variant({
|
|
76
|
+
Ok: IDL.Null,
|
|
77
|
+
Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
|
|
78
|
+
});
|
|
79
|
+
const SetSatelliteConfig = IDL.Record({
|
|
80
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
81
|
+
enabled: IDL.Bool
|
|
82
|
+
});
|
|
82
83
|
const SetTrackEvent = IDL.Record({
|
|
83
84
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
84
85
|
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
@@ -93,7 +94,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
93
94
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
94
95
|
[]
|
|
95
96
|
),
|
|
96
|
-
|
|
97
|
+
del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
|
|
97
98
|
get_page_views: IDL.Func(
|
|
98
99
|
[GetAnalytics],
|
|
99
100
|
[IDL.Vec(IDL.Tuple(AnalyticKey, PageView))],
|
|
@@ -105,15 +106,23 @@ export const idlFactory = ({IDL}) => {
|
|
|
105
106
|
['query']
|
|
106
107
|
),
|
|
107
108
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
108
|
-
|
|
109
|
+
list_satellite_configs: IDL.Func(
|
|
110
|
+
[],
|
|
111
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, SatelliteConfig))],
|
|
112
|
+
['query']
|
|
113
|
+
),
|
|
109
114
|
set_controllers: IDL.Func(
|
|
110
115
|
[SetControllersArgs],
|
|
111
116
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
112
117
|
[]
|
|
113
118
|
),
|
|
114
|
-
set_origin_config: IDL.Func([IDL.Principal, SetOriginConfig], [OriginConfig], []),
|
|
115
119
|
set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
|
|
116
120
|
set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
|
|
121
|
+
set_satellite_configs: IDL.Func(
|
|
122
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
|
|
123
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, SatelliteConfig))],
|
|
124
|
+
[]
|
|
125
|
+
),
|
|
117
126
|
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_2], []),
|
|
118
127
|
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
|
|
119
128
|
version: IDL.Func([], [IDL.Text], ['query'])
|