reduct-js
Version:
ReductStore Client SDK for Javascript/NodeJS/Typescript
39 lines (38 loc) • 931 B
TypeScript
/**
* 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: OriginalBucketInfo): BucketInfo;
}
export type OriginalBucketInfo = {
name: string;
entry_count: string;
size: string;
oldest_record: string;
latest_record: string;
is_provisioned?: boolean;
};