UNPKG

n8n-nodes-memory-box

Version:
18 lines (17 loc) 769 B
import { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions, IDataObject, IHttpRequestMethods } from 'n8n-workflow'; /** * Make an API request to Memory Box */ export declare function memoryBoxApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, qs?: IDataObject, uri?: string): Promise<any>; /** * Format a date for Memory Box (YYYY-MM-DD) */ export declare function formatDateForMemoryBox(date: Date): string; /** * Check if memory already has a date prefix, if not add it */ export declare function validateAndFormatMemory(text: string): string; /** * Extract memory items from Memory Box response */ export declare function extractItems(response: any): any[];