@junobuild/core 0.0.44 → 0.0.45

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.
@@ -20,3 +20,13 @@ export declare const deleteManyAssets: ({ assets, satellite }: {
20
20
  } & Pick<AssetKey, 'fullPath'>)[];
21
21
  satellite: Satellite;
22
22
  }) => Promise<void>;
23
+ export declare const getAsset: ({ collection, fullPath, satellite }: {
24
+ collection: string;
25
+ satellite: Satellite;
26
+ } & Pick<AssetKey, "fullPath">) => Promise<AssetNoContent | undefined>;
27
+ export declare const getManyAssets: ({ assets, satellite }: {
28
+ assets: ({
29
+ collection: string;
30
+ } & Pick<AssetKey, 'fullPath'>)[];
31
+ satellite: Satellite;
32
+ }) => Promise<(AssetNoContent | undefined)[]>;
@@ -1,3 +1,4 @@
1
+ import type { AssetNoContent } from '../../declarations/satellite/satellite.did';
1
2
  import type { ListParams } from '../types/list.types';
2
3
  import type { SatelliteOptions } from '../types/satellite.types';
3
4
  import type { AssetKey, Assets, Storage } from '../types/storage.types';
@@ -24,3 +25,13 @@ export declare const deleteManyAssets: ({ assets, satellite }: {
24
25
  } & Pick<AssetKey, 'fullPath'>)[];
25
26
  satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
26
27
  } & Pick<AssetKey, "fullPath">) => Promise<void>;
28
+ export declare const getAsset: ({ satellite, ...rest }: {
29
+ collection: string;
30
+ satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
31
+ } & Pick<AssetKey, "fullPath">) => Promise<AssetNoContent | undefined>;
32
+ export declare const getManyAssets: ({ satellite, ...rest }: {
33
+ assets: ({
34
+ collection: string;
35
+ } & Pick<AssetKey, 'fullPath'>)[];
36
+ satellite?: Partial<import("../types/satellite.types").Satellite> | undefined;
37
+ }) => Promise<(AssetNoContent | undefined)[]>;
@@ -2,5 +2,5 @@
2
2
  /**
3
3
  * The timer is executed only if user has signed in
4
4
  */
5
- export declare const startTimer: () => NodeJS.Timer;
5
+ export declare const startTimer: () => NodeJS.Timeout;
6
6
  export declare const stopTimer: () => void;