reduct-js
Version:
ReductStore Client SDK for Javascript/NodeJS/Typescript
45 lines (44 loc) • 1.09 kB
TypeScript
import { Status } from "./Status";
/**
* 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;
/**
* Current status of the bucket (READY or DELETING)
*/
readonly status: Status;
static parse(bucket: OriginalBucketInfo): BucketInfo;
}
export type OriginalBucketInfo = {
name: string;
entry_count: string;
size: string;
oldest_record: string;
latest_record: string;
is_provisioned?: boolean;
status?: string;
};