UNPKG

reduct-js

Version:

ReductStore Client SDK for Javascript/NodeJS/Typescript

40 lines (39 loc) 915 B
/** * Represents information about a bucket */ export declare class BucketInfo { /** * Name of the bucket */ readonly name: string; /** * Number of entries in the bucket */ readonly entryCount: bigint; /** * Size of stored data in the bucket in bytes */ readonly size: bigint; /** * Unix timestamp of the oldest record in microseconds */ readonly oldestRecord: bigint; /** * Unix timestamp of the latest record in microseconds */ readonly latestRecord: bigint; /** * Is the bucket provisioned, and you can't remove it or change its settings */ readonly isProvisioned?: boolean; static parse(bucket: Original): BucketInfo; } type Original = { name: string; entry_count: string; size: string; oldest_record: string; latest_record: string; is_provisioned?: boolean; }; export {};