@liquidcommerce/cloud-sdk
Version:
LiquidCommerce Cloud SDK
15 lines (14 loc) • 623 B
TypeScript
import type { AuthenticatedService } from '../core';
export declare class WebhookService {
private client;
constructor(client: AuthenticatedService);
/**
* This method sends a test request to the webhook endpoint to verify if it is working correctly.
*
* @param {string} endpoint - The webhook endpoint to test. If not provided, it will use the default endpoint configured in the system.
*
* @returns {Promise<boolean>} A promise that resolves whether the test succeeded or not.
* @throws {Error} If the test request fails.
*/
test(endpoint?: string): Promise<boolean>;
}