UNPKG

dandi

Version:

A JavaScript API for the Distributed Archives for Neurophysiology Data Integration (DANDI)

28 lines (27 loc) 862 B
import { AssetRequestConfig, Options } from "./types"; type AssetBase = { asset_id: string; blob: string; created: string; modified: string; path: string; size: number; zarr: string | null; metadata: any; }; export declare class Asset { #private; asset_id: AssetBase['asset_id']; blob?: AssetBase['blob']; created?: AssetBase['created']; modified?: AssetBase['modified']; path?: AssetBase['path']; size?: AssetBase['size']; zarr?: AssetBase['zarr']; metadata?: AssetBase['metadata']; constructor(dandiset: string, info: string | AssetBase, options?: Options); get(dandiset?: string, id?: string, options?: Options): Promise<Asset>; update: (metadataUpdate?: {}) => Promise<any>; } export declare const getAsset: (config: AssetRequestConfig) => Promise<Asset>; export default Asset;