radius-read
Version:
Realtime Dashboard
50 lines (49 loc) • 1.26 kB
TypeScript
/**
* CallbackService is a service class that handles sending callback events to a specified URL.
*/
export declare class CallbackService {
/**
* Default headers for API requests.
* @date Jun 26, 2025 01:26:08 PM
* @author Biswaranjan Nayak
*
* @private
* @type {*}
*/
private static _defaultHeaders;
/**
* Callback URLs to which events can be sent.
* @date Jun 26, 2025 01:27:37 PM
* @author Biswaranjan Nayak
*
* @private
* @type {string[]}
*/
private static _callbackURLs;
/**
* Creates an instance of CallbackService.
*/
constructor();
/**
* Registers a callback URL to the service.
* @param callbackURL
*/
static register(callbackURL: string): void;
/**
* Sends callback events to all registered URLs with the provided payload.
* @param payload
*/
static sendCallbackEvents(payload: any): void;
/**
* Sends callback events to a specified URL with the provided payload.
* @param callbackURL
* @param payload
* @returns
*/
private static sendCallbackEvent;
/**
* Gets the registered callback URLs.
* @returns
*/
static getCallbackURLs(): string[];
}