@junobuild/core 0.0.39 → 0.0.41

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.
@@ -28,10 +28,6 @@ export declare const deleteDoc: <D>({ collection, doc, satellite }: {
28
28
  doc: Doc<D>;
29
29
  satellite: Satellite;
30
30
  }) => Promise<void>;
31
- export declare const deleteDocs: ({ collection, satellite }: {
32
- collection: string;
33
- satellite: Satellite;
34
- }) => Promise<void>;
35
31
  export declare const deleteManyDocs: ({ docs, satellite }: {
36
32
  docs: {
37
33
  collection: string;
@@ -44,7 +40,3 @@ export declare const listDocs: <D>({ collection, filter, satellite }: {
44
40
  filter: ListParams;
45
41
  satellite: Satellite;
46
42
  }) => Promise<ListResults<Doc<D>>>;
47
- export declare const countDocs: ({ collection, satellite }: {
48
- collection: string;
49
- satellite: Satellite;
50
- }) => Promise<bigint>;
@@ -14,17 +14,9 @@ export declare const deleteAsset: ({ collection, fullPath, satellite }: {
14
14
  collection: string;
15
15
  satellite: Satellite;
16
16
  } & Pick<AssetKey, "fullPath">) => Promise<void>;
17
- export declare const deleteAssets: ({ collection, satellite }: {
18
- collection: string;
19
- satellite: Satellite;
20
- }) => Promise<void>;
21
17
  export declare const deleteManyAssets: ({ assets, satellite }: {
22
18
  assets: ({
23
19
  collection: string;
24
20
  } & Pick<AssetKey, 'fullPath'>)[];
25
21
  satellite: Satellite;
26
22
  }) => Promise<void>;
27
- export declare const countAssets: ({ collection, satellite }: {
28
- collection: string;
29
- satellite: Satellite;
30
- }) => Promise<bigint>;
@@ -0,0 +1,2 @@
1
+ export declare const DOCKER_CONTAINER_URL = "http://127.0.0.1:5987";
2
+ export declare const DOCKER_INTERNET_IDENTITY_ID = "rdmx6-jaaaa-aaaaa-aaadq-cai";
@@ -28,10 +28,6 @@ export declare const deleteDoc: <D>({ satellite, ...rest }: {
28
28
  doc: Doc<D>;
29
29
  satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
30
30
  }) => Promise<void>;
31
- export declare const deleteDocs: ({ collection, satellite }: {
32
- collection: string;
33
- satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
34
- }) => Promise<void>;
35
31
  export declare const deleteManyDocs: ({ satellite, ...rest }: {
36
32
  docs: {
37
33
  collection: string;
@@ -44,7 +40,3 @@ export declare const listDocs: <D>({ satellite, filter, ...rest }: {
44
40
  filter?: ListParams | undefined;
45
41
  satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
46
42
  }) => Promise<ListResults<Doc<D>>>;
47
- export declare const countDocs: ({ satellite, ...rest }: {
48
- collection: string;
49
- satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
50
- }) => Promise<bigint>;
@@ -18,17 +18,9 @@ export declare const deleteAsset: ({ collection, fullPath, satellite }: {
18
18
  collection: string;
19
19
  satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
20
20
  } & Pick<AssetKey, "fullPath">) => Promise<void>;
21
- export declare const deleteAssets: ({ collection, satellite }: {
22
- collection: string;
23
- satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
24
- }) => Promise<void>;
25
21
  export declare const deleteManyAssets: ({ assets, satellite }: {
26
22
  assets: ({
27
23
  collection: string;
28
24
  } & Pick<AssetKey, 'fullPath'>)[];
29
25
  satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
30
26
  } & Pick<AssetKey, "fullPath">) => Promise<void>;
31
- export declare const countAssets: ({ satellite, ...rest }: {
32
- collection: string;
33
- satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
34
- }) => Promise<bigint>;
@@ -7,6 +7,5 @@ export declare class EnvStore extends Store<Environment | undefined> {
7
7
  static getInstance(): EnvStore;
8
8
  set(env: Environment | undefined): void;
9
9
  get(): Environment | undefined;
10
- localIdentity(): boolean;
11
10
  subscribe(callback: (data: Environment | null | undefined) => void): () => void;
12
11
  }
@@ -5,6 +5,6 @@ export interface EnvironmentWorkers {
5
5
  auth?: EnvironmentWorker;
6
6
  }
7
7
  export type Environment = {
8
- localIdentityCanisterId?: string;
8
+ internetIdentityId?: string;
9
9
  workers?: EnvironmentWorkers;
10
- } & Required<Pick<Satellite, 'satelliteId'>>;
10
+ } & Required<Pick<Satellite, 'satelliteId' | 'container'>>;
@@ -3,6 +3,6 @@ export interface Satellite {
3
3
  identity: Identity;
4
4
  satelliteId?: string;
5
5
  fetch?: typeof fetch;
6
- env?: 'dev' | 'prod';
6
+ container?: boolean | 'string';
7
7
  }
8
8
  export type SatelliteOptions = Partial<Satellite>;
@@ -1,6 +1,6 @@
1
1
  import type { ActorMethod, ActorSubclass } from '@dfinity/agent';
2
2
  import type { IDL } from '@dfinity/candid';
3
3
  import type { Satellite } from '../types/satellite.types';
4
- export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ satelliteId: canisterId, idlFactory, identity, fetch, env }: {
4
+ export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ satelliteId: canisterId, idlFactory, identity, fetch, container }: {
5
5
  idlFactory: IDL.InterfaceFactory;
6
- } & Required<Pick<Satellite, "satelliteId" | "identity">> & Pick<Satellite, "fetch" | "env">) => Promise<ActorSubclass<T>>;
6
+ } & Required<Pick<Satellite, "satelliteId" | "identity">> & Pick<Satellite, "container" | "fetch">) => Promise<ActorSubclass<T>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/core",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "JavaScript core client for Juno",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",