@junobuild/core 0.0.31 → 0.0.33
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/README.md +1 -1
- package/{dist/declarations/mission_control/mission_control.did.d.ts → declarations/deprecated/mission_control-0-0-4.did.d.ts} +2 -23
- package/declarations/{mission_control/mission_control.factory.did.js → deprecated/mission_control-0-0-4.factory.did.js} +2 -39
- package/declarations/deprecated/satellite-0-0-8.did.d.ts +183 -0
- package/declarations/deprecated/satellite-0-0-8.factory.did.js +194 -0
- package/declarations/deprecated/satellite-0-0-9.did.d.ts +199 -0
- package/declarations/deprecated/satellite-0-0-9.factory.did.js +213 -0
- package/declarations/satellite/satellite.did.d.ts +6 -0
- package/declarations/satellite/satellite.factory.did.js +6 -0
- package/declarations/satellite/satellite.factory.did.mjs +6 -0
- package/dist/browser/canisterStatus-S2QRROEO.js +2 -0
- package/dist/browser/chunk-IRYD4AKF.js +28 -0
- package/dist/browser/{chunk-PPPG6IG5.js.map → chunk-IRYD4AKF.js.map} +2 -2
- package/dist/browser/index.js +14 -14
- package/dist/browser/index.js.map +3 -3
- package/{declarations/mission_control/mission_control.did.d.ts → dist/declarations/deprecated/mission_control-0-0-4.did.d.ts} +2 -23
- package/dist/declarations/{mission_control/mission_control.factory.did.js → deprecated/mission_control-0-0-4.factory.did.js} +2 -39
- package/dist/declarations/deprecated/satellite-0-0-8.did.d.ts +183 -0
- package/dist/declarations/deprecated/satellite-0-0-8.factory.did.js +194 -0
- package/dist/declarations/deprecated/satellite-0-0-9.did.d.ts +199 -0
- package/dist/declarations/deprecated/satellite-0-0-9.factory.did.js +213 -0
- package/dist/declarations/satellite/satellite.did.d.ts +6 -0
- package/dist/declarations/satellite/satellite.factory.did.js +6 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +6 -0
- package/dist/node/index.mjs +23 -23
- package/dist/node/index.mjs.map +3 -3
- package/dist/workers/auth.worker.js +6 -6
- package/dist/workers/auth.worker.js.gz +0 -0
- package/dist/workers/auth.worker.js.map +2 -2
- package/package.json +3 -3
- package/declarations/cmc/cmc.did +0 -122
- package/declarations/cmc/cmc.did.d.ts +0 -48
- package/declarations/cmc/cmc.factory.did.js +0 -67
- package/declarations/cmc/index.d.ts +0 -45
- package/declarations/cmc/index.js +0 -37
- package/declarations/console/console.did.d.ts +0 -71
- package/declarations/console/console.factory.did.js +0 -79
- package/declarations/console/console.factory.did.mjs +0 -79
- package/declarations/console/index.d.ts +0 -45
- package/declarations/console/index.js +0 -37
- package/declarations/ic/ic.did +0 -195
- package/declarations/ic/ic.did.d.ts +0 -208
- package/declarations/ic/ic.factory.did.js +0 -274
- package/declarations/mission_control/index.d.ts +0 -45
- package/declarations/mission_control/index.js +0 -38
- package/declarations/observatory/index.d.ts +0 -45
- package/declarations/observatory/index.js +0 -38
- package/declarations/observatory/observatory.did.d.ts +0 -86
- package/declarations/observatory/observatory.factory.did.js +0 -95
- package/declarations/observatory/observatory.factory.did.mjs +0 -95
- package/declarations/orbiter/index.d.ts +0 -45
- package/declarations/orbiter/index.js +0 -37
- package/declarations/orbiter/orbiter.did.d.ts +0 -108
- package/declarations/orbiter/orbiter.factory.did.js +0 -137
- package/dist/browser/canisterStatus-B3CYYH7Z.js +0 -2
- package/dist/browser/chunk-PPPG6IG5.js +0 -28
- package/dist/declarations/cmc/cmc.did +0 -122
- package/dist/declarations/cmc/cmc.did.d.ts +0 -48
- package/dist/declarations/cmc/cmc.factory.did.js +0 -67
- package/dist/declarations/cmc/index.d.ts +0 -45
- package/dist/declarations/cmc/index.js +0 -37
- package/dist/declarations/console/console.did.d.ts +0 -71
- package/dist/declarations/console/console.factory.did.js +0 -79
- package/dist/declarations/console/console.factory.did.mjs +0 -79
- package/dist/declarations/console/index.d.ts +0 -45
- package/dist/declarations/console/index.js +0 -37
- package/dist/declarations/ic/ic.did +0 -195
- package/dist/declarations/ic/ic.did.d.ts +0 -208
- package/dist/declarations/ic/ic.factory.did.js +0 -274
- package/dist/declarations/mission_control/index.d.ts +0 -45
- package/dist/declarations/mission_control/index.js +0 -38
- package/dist/declarations/observatory/index.d.ts +0 -45
- package/dist/declarations/observatory/index.js +0 -38
- package/dist/declarations/observatory/observatory.did.d.ts +0 -86
- package/dist/declarations/observatory/observatory.factory.did.js +0 -95
- package/dist/declarations/observatory/observatory.factory.did.mjs +0 -95
- package/dist/declarations/orbiter/index.d.ts +0 -45
- package/dist/declarations/orbiter/index.js +0 -37
- package/dist/declarations/orbiter/orbiter.did.d.ts +0 -108
- package/dist/declarations/orbiter/orbiter.factory.did.js +0 -137
- /package/dist/browser/{canisterStatus-B3CYYH7Z.js.map → canisterStatus-S2QRROEO.js.map} +0 -0
|
@@ -1,137 +0,0 @@
|
|
|
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({updated_at: IDL.Opt(IDL.Nat64)});
|
|
18
|
-
const GetAnalytics = IDL.Record({
|
|
19
|
-
to: IDL.Opt(IDL.Nat64),
|
|
20
|
-
from: IDL.Opt(IDL.Nat64),
|
|
21
|
-
satellite_id: IDL.Opt(IDL.Principal)
|
|
22
|
-
});
|
|
23
|
-
const AnalyticKey = IDL.Record({
|
|
24
|
-
key: IDL.Text,
|
|
25
|
-
collected_at: IDL.Nat64
|
|
26
|
-
});
|
|
27
|
-
const PageViewDevice = IDL.Record({
|
|
28
|
-
inner_height: IDL.Nat16,
|
|
29
|
-
inner_width: IDL.Nat16
|
|
30
|
-
});
|
|
31
|
-
const PageView = IDL.Record({
|
|
32
|
-
title: IDL.Text,
|
|
33
|
-
updated_at: IDL.Nat64,
|
|
34
|
-
referrer: IDL.Opt(IDL.Text),
|
|
35
|
-
time_zone: IDL.Text,
|
|
36
|
-
session_id: IDL.Text,
|
|
37
|
-
href: IDL.Text,
|
|
38
|
-
created_at: IDL.Nat64,
|
|
39
|
-
satellite_id: IDL.Principal,
|
|
40
|
-
device: PageViewDevice,
|
|
41
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
42
|
-
});
|
|
43
|
-
const TrackEvent = IDL.Record({
|
|
44
|
-
updated_at: IDL.Nat64,
|
|
45
|
-
session_id: IDL.Text,
|
|
46
|
-
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
47
|
-
name: IDL.Text,
|
|
48
|
-
created_at: IDL.Nat64,
|
|
49
|
-
satellite_id: IDL.Principal
|
|
50
|
-
});
|
|
51
|
-
const SatelliteConfig = IDL.Record({
|
|
52
|
-
updated_at: IDL.Nat64,
|
|
53
|
-
created_at: IDL.Nat64,
|
|
54
|
-
enabled: IDL.Bool
|
|
55
|
-
});
|
|
56
|
-
const SetController = IDL.Record({
|
|
57
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
58
|
-
scope: ControllerScope,
|
|
59
|
-
expires_at: IDL.Opt(IDL.Nat64)
|
|
60
|
-
});
|
|
61
|
-
const SetControllersArgs = IDL.Record({
|
|
62
|
-
controller: SetController,
|
|
63
|
-
controllers: IDL.Vec(IDL.Principal)
|
|
64
|
-
});
|
|
65
|
-
const SetPageView = IDL.Record({
|
|
66
|
-
title: IDL.Text,
|
|
67
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
68
|
-
referrer: IDL.Opt(IDL.Text),
|
|
69
|
-
time_zone: IDL.Text,
|
|
70
|
-
session_id: IDL.Text,
|
|
71
|
-
href: IDL.Text,
|
|
72
|
-
satellite_id: IDL.Principal,
|
|
73
|
-
device: PageViewDevice,
|
|
74
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
75
|
-
});
|
|
76
|
-
const Result = IDL.Variant({Ok: PageView, Err: IDL.Text});
|
|
77
|
-
const Result_1 = IDL.Variant({
|
|
78
|
-
Ok: IDL.Null,
|
|
79
|
-
Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
|
|
80
|
-
});
|
|
81
|
-
const SetSatelliteConfig = IDL.Record({
|
|
82
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
83
|
-
enabled: IDL.Bool
|
|
84
|
-
});
|
|
85
|
-
const SetTrackEvent = IDL.Record({
|
|
86
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
87
|
-
session_id: IDL.Text,
|
|
88
|
-
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
89
|
-
name: IDL.Text,
|
|
90
|
-
satellite_id: IDL.Principal,
|
|
91
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
92
|
-
});
|
|
93
|
-
const Result_2 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
|
|
94
|
-
return IDL.Service({
|
|
95
|
-
del_controllers: IDL.Func(
|
|
96
|
-
[DeleteControllersArgs],
|
|
97
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
98
|
-
[]
|
|
99
|
-
),
|
|
100
|
-
del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
|
|
101
|
-
get_page_views: IDL.Func(
|
|
102
|
-
[GetAnalytics],
|
|
103
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, PageView))],
|
|
104
|
-
['query']
|
|
105
|
-
),
|
|
106
|
-
get_track_events: IDL.Func(
|
|
107
|
-
[GetAnalytics],
|
|
108
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, TrackEvent))],
|
|
109
|
-
['query']
|
|
110
|
-
),
|
|
111
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
112
|
-
list_satellite_configs: IDL.Func(
|
|
113
|
-
[],
|
|
114
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, SatelliteConfig))],
|
|
115
|
-
['query']
|
|
116
|
-
),
|
|
117
|
-
set_controllers: IDL.Func(
|
|
118
|
-
[SetControllersArgs],
|
|
119
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
120
|
-
[]
|
|
121
|
-
),
|
|
122
|
-
set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
|
|
123
|
-
set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
|
|
124
|
-
set_satellite_configs: IDL.Func(
|
|
125
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
|
|
126
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, SatelliteConfig))],
|
|
127
|
-
[]
|
|
128
|
-
),
|
|
129
|
-
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_2], []),
|
|
130
|
-
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
|
|
131
|
-
version: IDL.Func([], [IDL.Text], ['query'])
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
|
-
// @ts-ignore
|
|
135
|
-
export const init = ({IDL}) => {
|
|
136
|
-
return [];
|
|
137
|
-
};
|