@junobuild/core 0.0.37 → 0.0.38-next-2023-12-08
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 +1 -0
- package/declarations/satellite/satellite.factory.did.js +5 -0
- package/declarations/satellite/satellite.factory.did.mjs +5 -0
- package/dist/browser/canisterStatus-GGCM43M3.js +2 -0
- package/dist/browser/{chunk-N3SFIG7N.js → chunk-TDCTL77T.js} +2 -2
- package/dist/browser/index.js +9 -9
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/satellite/satellite.did.d.ts +1 -0
- package/dist/declarations/satellite/satellite.factory.did.js +5 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +5 -0
- package/dist/node/index.mjs +30 -30
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/doc.api.d.ts +6 -0
- package/dist/types/services/doc.services.d.ts +6 -0
- package/dist/types/types/post-message.d.ts +8 -2
- package/dist/types/utils/doc.utils.d.ts +2 -2
- package/dist/workers/auth.worker.js +4 -4
- package/dist/workers/auth.worker.js.map +3 -3
- package/package.json +3 -4
- package/dist/browser/canisterStatus-N5J2XGIM.js +0 -2
- package/dist/workers/auth.worker.js.gz +0 -0
- /package/dist/browser/{canisterStatus-N5J2XGIM.js.map → canisterStatus-GGCM43M3.js.map} +0 -0
- /package/dist/browser/{chunk-N3SFIG7N.js.map → chunk-TDCTL77T.js.map} +0 -0
|
@@ -5,6 +5,12 @@ export declare const getDoc: <D>({ collection, key, satellite }: {
|
|
|
5
5
|
collection: string;
|
|
6
6
|
satellite: Satellite;
|
|
7
7
|
} & Pick<Doc<D>, "key">) => Promise<Doc<D> | undefined>;
|
|
8
|
+
export declare const getManyDocs: ({ docs, satellite }: {
|
|
9
|
+
docs: ({
|
|
10
|
+
collection: string;
|
|
11
|
+
} & Pick<Doc<any>, 'key'>)[];
|
|
12
|
+
satellite: Satellite;
|
|
13
|
+
}) => Promise<(Doc<any> | undefined)[]>;
|
|
8
14
|
export declare const setDoc: <D>({ collection, doc, satellite }: {
|
|
9
15
|
collection: string;
|
|
10
16
|
doc: Doc<D>;
|
|
@@ -5,6 +5,12 @@ export declare const getDoc: <D>({ satellite, ...rest }: {
|
|
|
5
5
|
collection: string;
|
|
6
6
|
satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
|
|
7
7
|
} & Pick<Doc<D>, "key">) => Promise<Doc<D> | undefined>;
|
|
8
|
+
export declare const getManyDocs: ({ satellite, ...rest }: {
|
|
9
|
+
docs: ({
|
|
10
|
+
collection: string;
|
|
11
|
+
} & Pick<Doc<any>, 'key'>)[];
|
|
12
|
+
satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
|
|
13
|
+
}) => Promise<(Doc<any> | undefined)[]>;
|
|
8
14
|
export declare const setDoc: <D>({ satellite, ...rest }: {
|
|
9
15
|
collection: string;
|
|
10
16
|
doc: Doc<D>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export type PostMessageRequest = 'junoStartAuthTimer' | 'junoStopAuthTimer';
|
|
2
|
-
export type PostMessageResponse = 'junoSignOutAuthTimer';
|
|
3
|
-
export
|
|
2
|
+
export type PostMessageResponse = 'junoSignOutAuthTimer' | 'junoDelegationRemainingTime';
|
|
3
|
+
export type PostMessageDataRequest = never;
|
|
4
|
+
export type PostMessageDataResponse = object;
|
|
5
|
+
export interface PostMessageDataResponseAuth extends PostMessageDataResponse {
|
|
6
|
+
authRemainingTime: number;
|
|
7
|
+
}
|
|
8
|
+
export interface PostMessage<T extends PostMessageDataRequest | PostMessageDataResponse> {
|
|
4
9
|
msg: PostMessageRequest | PostMessageResponse;
|
|
10
|
+
data?: T;
|
|
5
11
|
}
|
|
@@ -2,7 +2,7 @@ import type { DelDoc, Doc as DocApi, SetDoc } from '../../declarations/satellite
|
|
|
2
2
|
import type { Doc } from '../types/doc.types';
|
|
3
3
|
export declare const toSetDoc: <D>(doc: Doc<D>) => Promise<SetDoc>;
|
|
4
4
|
export declare const toDelDoc: <D>(doc: Doc<D>) => DelDoc;
|
|
5
|
-
export declare const fromDoc: <D>({
|
|
6
|
-
|
|
5
|
+
export declare const fromDoc: <D>({ doc, key }: {
|
|
6
|
+
doc: DocApi;
|
|
7
7
|
key: string;
|
|
8
8
|
}) => Promise<Doc<D>>;
|