@directus/sdk-js
Version:
The official Directus SDK for use in JavaScript!
22 lines (21 loc) • 633 B
TypeScript
import { AxiosInstance } from 'axios';
import { PrimaryKey } from '../types';
export declare class UtilsHandler {
private axios;
constructor(axios: AxiosInstance);
random: {
string: (length?: number) => Promise<{
data: string;
}>;
};
hash: {
generate: (string: string) => Promise<{
data: string;
}>;
verify: (string: string, hash: string) => Promise<{
data: boolean;
}>;
};
sort(collection: string, item: PrimaryKey, to: PrimaryKey): Promise<void>;
revert(revision: PrimaryKey): Promise<void>;
}