@careevolution/orchestrate
Version:
A TypeScript client for the Orchestrate API
26 lines (23 loc) • 1.01 kB
TypeScript
import { Advisories } from "./advisories.js";
import { BlindedDemographic, Demographic } from "./demographic.js";
export type HashDemographicResponse = BlindedDemographic & {
advisories: Advisories;
};
export type LocalHashingApiConfiguration = {
url?: string | undefined;
};
export declare class LocalHashingApi {
private httpHandler;
constructor(configuration?: LocalHashingApiConfiguration);
toString(): string;
/**
* Hashes a demographic using the local hashing service.
* @param demographic The demographic to hash.
* @returns The hashed demographic.
- `data`: The B64 encoded hash provided by the local hashing service.
- `version`: The version number provided by the local hashing service.
- `advisories`: Contains advisory messages about the operation.
* @link https://rosetta-api.docs.careevolution.com/terminology/classify/condition.html
*/
hash(demographic: Demographic): Promise<HashDemographicResponse>;
}