@coveo/platform-client
Version:
The main goal of this package is to provide an easy to configure and straightforward way of querying Coveo Cloud APIs using JavaScript.
22 lines (21 loc) • 1.02 kB
TypeScript
import { Feature, PlatformClientOptions } from './ConfigurationInterfaces.js';
import { Environment } from './Endpoints.js';
import PlatformResources from './resources/PlatformResources.js';
export declare class PlatformClient extends PlatformResources {
private options;
static Handlers: Readonly<{
noContent: import("./handlers/index.js").ResponseHandler;
success: import("./handlers/index.js").ResponseHandler;
successBlob: import("./handlers/index.js").ResponseHandler;
blockedByWAF: import("./handlers/index.js").ResponseHandler;
badGateway: import("./handlers/index.js").ResponseHandler;
htmlError: import("./handlers/index.js").ResponseHandler;
error: import("./handlers/index.js").ResponseHandler;
}>;
static Environment: typeof Environment;
constructor(options: PlatformClientOptions);
withFeatures(...features: Feature[]): this;
initialize(): Promise<void>;
abortPendingGetRequests(): void;
}
export default PlatformClient;