n8n-nodes-zuckzapgo
Version:
n8n community nodes for ZuckZapGo - WhatsApp Multi-Device REST API
37 lines • 1.72 kB
TypeScript
import { IExecuteFunctions, ILoadOptionsFunctions, IHookFunctions, IWebhookFunctions, IHttpRequestMethods, IDataObject } from 'n8n-workflow';
export declare function zuckzapgoApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, qs?: IDataObject, uri?: string, option?: IDataObject): Promise<any>;
export declare function zuckzapgoApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, qs?: IDataObject): Promise<any>;
export declare function handleErrorResponse(error: any, node: any): never;
export declare function validatePhoneNumber(phone: string): string;
export declare function formatJID(phone: string, isGroup?: boolean): string;
export declare function prepareMediaData(binaryData: ArrayBuffer, mimeType: string): string;
export declare function parseWebhookEvents(events: string | string[]): string[];
export interface ZuckZapGoResponse {
code: number;
success: boolean;
data?: any;
error?: string;
message?: string;
details?: string;
}
export interface MessageOptions {
phone: string;
body?: string;
id?: string;
contextInfo?: {
isForwarded?: boolean;
stanzaId?: string;
participant?: string;
mentionAll?: boolean;
mentionedJID?: string[];
};
}
export interface MediaOptions extends MessageOptions {
caption?: string;
media: string;
fileName?: string;
mimeType?: string;
}
export * from './ZuckZapGoAI/ZuckZapGoFunctions';
export * from './ZuckZapGoAI/MediaFunctions';
//# sourceMappingURL=GenericFunctions.d.ts.map