UNPKG

@rushdb/javascript-sdk

Version:

RushDB Javascript SDK

15 lines (14 loc) 814 B
import type { DBRecordTarget } from '../sdk'; import type { SDKConfig } from '../sdk/types.js'; import type { PropertyDraft } from '../types/index.js'; import { Transaction } from '../sdk/transaction.js'; export declare const buildTransactionHeader: (txId?: string) => { "x-transaction-id": string; } | undefined; export declare const isTransaction: (input: any) => input is Transaction | string; export declare const pickTransactionId: (input: any) => string | undefined; export declare const isUUID: (value: any) => boolean; export declare const pickRecordId: (input: DBRecordTarget) => string | undefined; export declare const isPropertyDraft: (obj: any) => obj is PropertyDraft; export declare const buildUrl: (props: SDKConfig) => string; export declare const generateRandomId: (size?: number) => string;