@junobuild/admin 0.0.44-next-2024-01-31 → 0.0.44-next-2024-02-02
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.factory.did.mjs +192 -0
- package/declarations/satellite/satellite.did.d.ts +3 -6
- package/declarations/satellite/satellite.factory.did.js +27 -26
- package/declarations/satellite/satellite.factory.did.mjs +27 -26
- package/dist/browser/index.js +7 -7
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +192 -0
- package/dist/declarations/satellite/satellite.did.d.ts +3 -6
- package/dist/declarations/satellite/satellite.factory.did.js +27 -26
- package/dist/declarations/satellite/satellite.factory.did.mjs +27 -26
- package/dist/node/index.mjs +7 -7
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/index.d.ts +8 -8
- package/dist/types/services/satellite.services.d.ts +3 -3
- package/dist/types/types/build.types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/types/satellite.types.d.ts +0 -1
|
@@ -0,0 +1,192 @@
|
|
|
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 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
|
+
user_agent: IDL.Opt(IDL.Text)
|
|
46
|
+
});
|
|
47
|
+
const AnalyticsBrowsersPageViews = IDL.Record({
|
|
48
|
+
safari: IDL.Float64,
|
|
49
|
+
opera: IDL.Float64,
|
|
50
|
+
others: IDL.Float64,
|
|
51
|
+
firefox: IDL.Float64,
|
|
52
|
+
chrome: IDL.Float64
|
|
53
|
+
});
|
|
54
|
+
const AnalyticsDevicesPageViews = IDL.Record({
|
|
55
|
+
desktop: IDL.Float64,
|
|
56
|
+
others: IDL.Float64,
|
|
57
|
+
mobile: IDL.Float64
|
|
58
|
+
});
|
|
59
|
+
const AnalyticsClientsPageViews = IDL.Record({
|
|
60
|
+
browsers: AnalyticsBrowsersPageViews,
|
|
61
|
+
devices: AnalyticsDevicesPageViews
|
|
62
|
+
});
|
|
63
|
+
const CalendarDate = IDL.Record({
|
|
64
|
+
day: IDL.Nat8,
|
|
65
|
+
month: IDL.Nat8,
|
|
66
|
+
year: IDL.Int32
|
|
67
|
+
});
|
|
68
|
+
const AnalyticsMetricsPageViews = IDL.Record({
|
|
69
|
+
bounce_rate: IDL.Float64,
|
|
70
|
+
average_page_views_per_session: IDL.Float64,
|
|
71
|
+
daily_total_page_views: IDL.Vec(IDL.Tuple(CalendarDate, IDL.Nat32)),
|
|
72
|
+
total_page_views: IDL.Nat32,
|
|
73
|
+
unique_page_views: IDL.Nat64,
|
|
74
|
+
unique_sessions: IDL.Nat64
|
|
75
|
+
});
|
|
76
|
+
const AnalyticsTop10PageViews = IDL.Record({
|
|
77
|
+
referrers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
78
|
+
pages: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
79
|
+
});
|
|
80
|
+
const TrackEvent = IDL.Record({
|
|
81
|
+
updated_at: IDL.Nat64,
|
|
82
|
+
session_id: IDL.Text,
|
|
83
|
+
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
84
|
+
name: IDL.Text,
|
|
85
|
+
created_at: IDL.Nat64,
|
|
86
|
+
satellite_id: IDL.Principal
|
|
87
|
+
});
|
|
88
|
+
const AnalyticsTrackEvents = IDL.Record({
|
|
89
|
+
total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
90
|
+
});
|
|
91
|
+
const OrbiterSatelliteConfig = IDL.Record({
|
|
92
|
+
updated_at: IDL.Nat64,
|
|
93
|
+
created_at: IDL.Nat64,
|
|
94
|
+
enabled: IDL.Bool
|
|
95
|
+
});
|
|
96
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
97
|
+
const SetController = IDL.Record({
|
|
98
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
99
|
+
scope: ControllerScope,
|
|
100
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
101
|
+
});
|
|
102
|
+
const SetControllersArgs = IDL.Record({
|
|
103
|
+
controller: SetController,
|
|
104
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
105
|
+
});
|
|
106
|
+
const SetPageView = IDL.Record({
|
|
107
|
+
title: IDL.Text,
|
|
108
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
109
|
+
referrer: IDL.Opt(IDL.Text),
|
|
110
|
+
time_zone: IDL.Text,
|
|
111
|
+
session_id: IDL.Text,
|
|
112
|
+
href: IDL.Text,
|
|
113
|
+
satellite_id: IDL.Principal,
|
|
114
|
+
device: PageViewDevice,
|
|
115
|
+
user_agent: IDL.Opt(IDL.Text)
|
|
116
|
+
});
|
|
117
|
+
const Result = IDL.Variant({Ok: PageView, Err: IDL.Text});
|
|
118
|
+
const Result_1 = IDL.Variant({
|
|
119
|
+
Ok: IDL.Null,
|
|
120
|
+
Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
|
|
121
|
+
});
|
|
122
|
+
const SetSatelliteConfig = IDL.Record({
|
|
123
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
124
|
+
enabled: IDL.Bool
|
|
125
|
+
});
|
|
126
|
+
const SetTrackEvent = IDL.Record({
|
|
127
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
128
|
+
session_id: IDL.Text,
|
|
129
|
+
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
130
|
+
name: IDL.Text,
|
|
131
|
+
satellite_id: IDL.Principal,
|
|
132
|
+
user_agent: IDL.Opt(IDL.Text)
|
|
133
|
+
});
|
|
134
|
+
const Result_2 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
|
|
135
|
+
return IDL.Service({
|
|
136
|
+
del_controllers: IDL.Func(
|
|
137
|
+
[DeleteControllersArgs],
|
|
138
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
139
|
+
[]
|
|
140
|
+
),
|
|
141
|
+
del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
|
|
142
|
+
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
143
|
+
get_page_views: IDL.Func(
|
|
144
|
+
[GetAnalytics],
|
|
145
|
+
[IDL.Vec(IDL.Tuple(AnalyticKey, PageView))],
|
|
146
|
+
['query']
|
|
147
|
+
),
|
|
148
|
+
get_page_views_analytics_clients: IDL.Func(
|
|
149
|
+
[GetAnalytics],
|
|
150
|
+
[AnalyticsClientsPageViews],
|
|
151
|
+
['query']
|
|
152
|
+
),
|
|
153
|
+
get_page_views_analytics_metrics: IDL.Func(
|
|
154
|
+
[GetAnalytics],
|
|
155
|
+
[AnalyticsMetricsPageViews],
|
|
156
|
+
['query']
|
|
157
|
+
),
|
|
158
|
+
get_page_views_analytics_top_10: IDL.Func([GetAnalytics], [AnalyticsTop10PageViews], ['query']),
|
|
159
|
+
get_track_events: IDL.Func(
|
|
160
|
+
[GetAnalytics],
|
|
161
|
+
[IDL.Vec(IDL.Tuple(AnalyticKey, TrackEvent))],
|
|
162
|
+
['query']
|
|
163
|
+
),
|
|
164
|
+
get_track_events_analytics: IDL.Func([GetAnalytics], [AnalyticsTrackEvents], ['query']),
|
|
165
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
166
|
+
list_satellite_configs: IDL.Func(
|
|
167
|
+
[],
|
|
168
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
169
|
+
['query']
|
|
170
|
+
),
|
|
171
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
172
|
+
set_controllers: IDL.Func(
|
|
173
|
+
[SetControllersArgs],
|
|
174
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
175
|
+
[]
|
|
176
|
+
),
|
|
177
|
+
set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
|
|
178
|
+
set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
|
|
179
|
+
set_satellite_configs: IDL.Func(
|
|
180
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
|
|
181
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
182
|
+
[]
|
|
183
|
+
),
|
|
184
|
+
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_2], []),
|
|
185
|
+
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
|
|
186
|
+
version: IDL.Func([], [IDL.Text], ['query'])
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
// @ts-ignore
|
|
190
|
+
export const init = ({IDL}) => {
|
|
191
|
+
return [];
|
|
192
|
+
};
|
|
@@ -60,11 +60,6 @@ export interface Doc {
|
|
|
60
60
|
description: [] | [string];
|
|
61
61
|
created_at: bigint;
|
|
62
62
|
}
|
|
63
|
-
export interface DocContext {
|
|
64
|
-
key: string;
|
|
65
|
-
collection: string;
|
|
66
|
-
data: Doc;
|
|
67
|
-
}
|
|
68
63
|
export interface HttpRequest {
|
|
69
64
|
url: string;
|
|
70
65
|
method: string;
|
|
@@ -212,8 +207,10 @@ export interface _SERVICE {
|
|
|
212
207
|
del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
|
|
213
208
|
del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
|
|
214
209
|
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
210
|
+
get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
|
|
215
211
|
get_config: ActorMethod<[], Config>;
|
|
216
212
|
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
213
|
+
get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
|
|
217
214
|
get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
|
|
218
215
|
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
219
216
|
http_request_streaming_callback: ActorMethod<
|
|
@@ -231,7 +228,7 @@ export interface _SERVICE {
|
|
|
231
228
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
232
229
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
233
230
|
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
234
|
-
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<
|
|
231
|
+
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
|
|
235
232
|
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
236
233
|
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
237
234
|
version: ActorMethod<[], string>;
|
|
@@ -25,6 +25,26 @@ export const idlFactory = ({IDL}) => {
|
|
|
25
25
|
cycles: IDL.Nat,
|
|
26
26
|
destination_id: IDL.Principal
|
|
27
27
|
});
|
|
28
|
+
const AssetKey = IDL.Record({
|
|
29
|
+
token: IDL.Opt(IDL.Text),
|
|
30
|
+
collection: IDL.Text,
|
|
31
|
+
owner: IDL.Principal,
|
|
32
|
+
name: IDL.Text,
|
|
33
|
+
description: IDL.Opt(IDL.Text),
|
|
34
|
+
full_path: IDL.Text
|
|
35
|
+
});
|
|
36
|
+
const AssetEncodingNoContent = IDL.Record({
|
|
37
|
+
modified: IDL.Nat64,
|
|
38
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
39
|
+
total_length: IDL.Nat
|
|
40
|
+
});
|
|
41
|
+
const AssetNoContent = IDL.Record({
|
|
42
|
+
key: AssetKey,
|
|
43
|
+
updated_at: IDL.Nat64,
|
|
44
|
+
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
45
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
46
|
+
created_at: IDL.Nat64
|
|
47
|
+
});
|
|
28
48
|
const StorageConfigIFrame = IDL.Variant({
|
|
29
49
|
Deny: IDL.Null,
|
|
30
50
|
AllowAny: IDL.Null,
|
|
@@ -110,26 +130,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
110
130
|
matcher: IDL.Opt(ListMatcher),
|
|
111
131
|
paginate: IDL.Opt(ListPaginate)
|
|
112
132
|
});
|
|
113
|
-
const AssetKey = IDL.Record({
|
|
114
|
-
token: IDL.Opt(IDL.Text),
|
|
115
|
-
collection: IDL.Text,
|
|
116
|
-
owner: IDL.Principal,
|
|
117
|
-
name: IDL.Text,
|
|
118
|
-
description: IDL.Opt(IDL.Text),
|
|
119
|
-
full_path: IDL.Text
|
|
120
|
-
});
|
|
121
|
-
const AssetEncodingNoContent = IDL.Record({
|
|
122
|
-
modified: IDL.Nat64,
|
|
123
|
-
sha256: IDL.Vec(IDL.Nat8),
|
|
124
|
-
total_length: IDL.Nat
|
|
125
|
-
});
|
|
126
|
-
const AssetNoContent = IDL.Record({
|
|
127
|
-
key: AssetKey,
|
|
128
|
-
updated_at: IDL.Nat64,
|
|
129
|
-
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
130
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
131
|
-
created_at: IDL.Nat64
|
|
132
|
-
});
|
|
133
133
|
const ListResults = IDL.Record({
|
|
134
134
|
matches_pages: IDL.Opt(IDL.Nat64),
|
|
135
135
|
matches_length: IDL.Nat64,
|
|
@@ -179,11 +179,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
179
179
|
data: IDL.Vec(IDL.Nat8),
|
|
180
180
|
description: IDL.Opt(IDL.Text)
|
|
181
181
|
});
|
|
182
|
-
const DocContext = IDL.Record({
|
|
183
|
-
key: IDL.Text,
|
|
184
|
-
collection: IDL.Text,
|
|
185
|
-
data: Doc
|
|
186
|
-
});
|
|
187
182
|
const SetRule = IDL.Record({
|
|
188
183
|
memory: IDL.Opt(Memory),
|
|
189
184
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
@@ -216,8 +211,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
216
211
|
del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
|
|
217
212
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
218
213
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
214
|
+
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
219
215
|
get_config: IDL.Func([], [Config], []),
|
|
220
216
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
217
|
+
get_many_assets: IDL.Func(
|
|
218
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
219
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(AssetNoContent)))],
|
|
220
|
+
['query']
|
|
221
|
+
),
|
|
221
222
|
get_many_docs: IDL.Func(
|
|
222
223
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
223
224
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
|
|
@@ -246,7 +247,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
246
247
|
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
247
248
|
set_many_docs: IDL.Func(
|
|
248
249
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
|
|
249
|
-
[IDL.Vec(
|
|
250
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
|
|
250
251
|
[]
|
|
251
252
|
),
|
|
252
253
|
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|
|
@@ -25,6 +25,26 @@ export const idlFactory = ({IDL}) => {
|
|
|
25
25
|
cycles: IDL.Nat,
|
|
26
26
|
destination_id: IDL.Principal
|
|
27
27
|
});
|
|
28
|
+
const AssetKey = IDL.Record({
|
|
29
|
+
token: IDL.Opt(IDL.Text),
|
|
30
|
+
collection: IDL.Text,
|
|
31
|
+
owner: IDL.Principal,
|
|
32
|
+
name: IDL.Text,
|
|
33
|
+
description: IDL.Opt(IDL.Text),
|
|
34
|
+
full_path: IDL.Text
|
|
35
|
+
});
|
|
36
|
+
const AssetEncodingNoContent = IDL.Record({
|
|
37
|
+
modified: IDL.Nat64,
|
|
38
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
39
|
+
total_length: IDL.Nat
|
|
40
|
+
});
|
|
41
|
+
const AssetNoContent = IDL.Record({
|
|
42
|
+
key: AssetKey,
|
|
43
|
+
updated_at: IDL.Nat64,
|
|
44
|
+
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
45
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
46
|
+
created_at: IDL.Nat64
|
|
47
|
+
});
|
|
28
48
|
const StorageConfigIFrame = IDL.Variant({
|
|
29
49
|
Deny: IDL.Null,
|
|
30
50
|
AllowAny: IDL.Null,
|
|
@@ -110,26 +130,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
110
130
|
matcher: IDL.Opt(ListMatcher),
|
|
111
131
|
paginate: IDL.Opt(ListPaginate)
|
|
112
132
|
});
|
|
113
|
-
const AssetKey = IDL.Record({
|
|
114
|
-
token: IDL.Opt(IDL.Text),
|
|
115
|
-
collection: IDL.Text,
|
|
116
|
-
owner: IDL.Principal,
|
|
117
|
-
name: IDL.Text,
|
|
118
|
-
description: IDL.Opt(IDL.Text),
|
|
119
|
-
full_path: IDL.Text
|
|
120
|
-
});
|
|
121
|
-
const AssetEncodingNoContent = IDL.Record({
|
|
122
|
-
modified: IDL.Nat64,
|
|
123
|
-
sha256: IDL.Vec(IDL.Nat8),
|
|
124
|
-
total_length: IDL.Nat
|
|
125
|
-
});
|
|
126
|
-
const AssetNoContent = IDL.Record({
|
|
127
|
-
key: AssetKey,
|
|
128
|
-
updated_at: IDL.Nat64,
|
|
129
|
-
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
130
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
131
|
-
created_at: IDL.Nat64
|
|
132
|
-
});
|
|
133
133
|
const ListResults = IDL.Record({
|
|
134
134
|
matches_pages: IDL.Opt(IDL.Nat64),
|
|
135
135
|
matches_length: IDL.Nat64,
|
|
@@ -179,11 +179,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
179
179
|
data: IDL.Vec(IDL.Nat8),
|
|
180
180
|
description: IDL.Opt(IDL.Text)
|
|
181
181
|
});
|
|
182
|
-
const DocContext = IDL.Record({
|
|
183
|
-
key: IDL.Text,
|
|
184
|
-
collection: IDL.Text,
|
|
185
|
-
data: Doc
|
|
186
|
-
});
|
|
187
182
|
const SetRule = IDL.Record({
|
|
188
183
|
memory: IDL.Opt(Memory),
|
|
189
184
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
@@ -216,8 +211,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
216
211
|
del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
|
|
217
212
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
218
213
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
214
|
+
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
219
215
|
get_config: IDL.Func([], [Config], []),
|
|
220
216
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
217
|
+
get_many_assets: IDL.Func(
|
|
218
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
219
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(AssetNoContent)))],
|
|
220
|
+
['query']
|
|
221
|
+
),
|
|
221
222
|
get_many_docs: IDL.Func(
|
|
222
223
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
223
224
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
|
|
@@ -246,7 +247,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
246
247
|
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
247
248
|
set_many_docs: IDL.Func(
|
|
248
249
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
|
|
249
|
-
[IDL.Vec(
|
|
250
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
|
|
250
251
|
[]
|
|
251
252
|
),
|
|
252
253
|
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|