@junobuild/core 0.0.43 → 0.0.44-next-2024-01-30
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/satellite/satellite.did.d.ts +9 -1
- package/declarations/satellite/satellite.factory.did.js +8 -2
- package/declarations/satellite/satellite.factory.did.mjs +8 -2
- package/dist/browser/index.js +6 -6
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/satellite/satellite.did.d.ts +9 -1
- package/dist/declarations/satellite/satellite.factory.did.js +8 -2
- package/dist/declarations/satellite/satellite.factory.did.mjs +8 -2
- package/dist/node/index.mjs +3 -3
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/types/satellite.types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
+
import type {IDL} from '@dfinity/candid';
|
|
2
3
|
import type {Principal} from '@dfinity/principal';
|
|
3
4
|
|
|
4
5
|
export interface AssetEncodingNoContent {
|
|
@@ -59,6 +60,11 @@ export interface Doc {
|
|
|
59
60
|
description: [] | [string];
|
|
60
61
|
created_at: bigint;
|
|
61
62
|
}
|
|
63
|
+
export interface DocContext {
|
|
64
|
+
key: string;
|
|
65
|
+
collection: string;
|
|
66
|
+
data: Doc;
|
|
67
|
+
}
|
|
62
68
|
export interface HttpRequest {
|
|
63
69
|
url: string;
|
|
64
70
|
method: string;
|
|
@@ -225,8 +231,10 @@ export interface _SERVICE {
|
|
|
225
231
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
226
232
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
227
233
|
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
228
|
-
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<
|
|
234
|
+
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<DocContext>>;
|
|
229
235
|
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
230
236
|
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
231
237
|
version: ActorMethod<[], string>;
|
|
238
|
+
version_build: ActorMethod<[], string>;
|
|
232
239
|
}
|
|
240
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
@@ -179,6 +179,11 @@ 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
|
+
});
|
|
182
187
|
const SetRule = IDL.Record({
|
|
183
188
|
memory: IDL.Opt(Memory),
|
|
184
189
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
@@ -241,12 +246,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
241
246
|
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
242
247
|
set_many_docs: IDL.Func(
|
|
243
248
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
|
|
244
|
-
[IDL.Vec(
|
|
249
|
+
[IDL.Vec(DocContext)],
|
|
245
250
|
[]
|
|
246
251
|
),
|
|
247
252
|
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|
|
248
253
|
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
249
|
-
version: IDL.Func([], [IDL.Text], ['query'])
|
|
254
|
+
version: IDL.Func([], [IDL.Text], ['query']),
|
|
255
|
+
version_build: IDL.Func([], [IDL.Text], ['query'])
|
|
250
256
|
});
|
|
251
257
|
};
|
|
252
258
|
// @ts-ignore
|
|
@@ -179,6 +179,11 @@ 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
|
+
});
|
|
182
187
|
const SetRule = IDL.Record({
|
|
183
188
|
memory: IDL.Opt(Memory),
|
|
184
189
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
@@ -241,12 +246,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
241
246
|
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
242
247
|
set_many_docs: IDL.Func(
|
|
243
248
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
|
|
244
|
-
[IDL.Vec(
|
|
249
|
+
[IDL.Vec(DocContext)],
|
|
245
250
|
[]
|
|
246
251
|
),
|
|
247
252
|
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|
|
248
253
|
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
249
|
-
version: IDL.Func([], [IDL.Text], ['query'])
|
|
254
|
+
version: IDL.Func([], [IDL.Text], ['query']),
|
|
255
|
+
version_build: IDL.Func([], [IDL.Text], ['query'])
|
|
250
256
|
});
|
|
251
257
|
};
|
|
252
258
|
// @ts-ignore
|