zcatalyst-integ-cliq
Version:
Node.js SDK for integrating Zoho Catalyst with Zoho Cliq
34 lines (33 loc) • 863 B
TypeScript
export interface IIntegRequest {
catalystHeaders: Record<string, string>;
name: string;
unique_name: string;
handler: {
type: string;
name?: string;
};
response_url: string;
type: string;
timestamp: number;
params: Record<string, unknown>;
}
export interface IConfig {
deployment: IDeployment;
execution: IExecution;
}
export interface IDeployment {
name: string;
stack: string;
type: string;
integration_config: Array<IInteg_config>;
}
export interface IExecution {
main: string;
}
export interface IInteg_config {
service: string;
handlers: {
[x in CliqHandlers]?: string;
};
}
export declare type CliqHandlers = 'bot_handler' | 'command_handler' | 'messageaction_handler' | 'widget_handler' | 'function_handler' | 'extension_handler' | 'link_preview_handler';