@base44/sdk
Version:
JavaScript SDK for Base44 API
28 lines (27 loc) • 962 B
TypeScript
import { AxiosInstance } from "axios";
/**
* Creates the app logs module for the Base44 SDK
* @param {AxiosInstance} axios - Axios instance
* @param {string} appId - Application ID
* @returns {Object} App logs module
*/
export declare function createAppLogsModule(axios: AxiosInstance, appId: string): {
/**
* Log user activity in the app
* @param {string} pageName - Name of the page being visited
* @returns {Promise<void>}
*/
logUserInApp(pageName: string): Promise<void>;
/**
* Fetch app logs with optional parameters
* @param {Object} params - Query parameters for filtering logs
* @returns {Promise<any>} App logs data
*/
fetchLogs(params?: Record<string, any>): Promise<any>;
/**
* Get app statistics
* @param {Object} params - Query parameters for filtering stats
* @returns {Promise<any>} App statistics
*/
getStats(params?: Record<string, any>): Promise<any>;
};