first commit

This commit is contained in:
2026-06-24 09:48:54 +02:00
commit 41e62ddcad
33739 changed files with 4266226 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/**
* Creates the app logs module for the Base44 SDK.
*
* @param axios - Axios instance
* @param appId - Application ID
* @returns App logs module with methods for tracking and analyzing app usage
* @internal
*/
export function createAppLogsModule(axios, appId) {
const baseURL = `/app-logs/${appId}`;
return {
// Log user activity in the app
async logUserInApp(pageName) {
await axios.post(`${baseURL}/log-user-in-app/${pageName}`);
},
// Fetch app logs with optional parameters
async fetchLogs(params = {}) {
const response = await axios.get(baseURL, { params });
return response;
},
// Get app statistics
async getStats(params = {}) {
const response = await axios.get(`${baseURL}/stats`, { params });
return response;
},
};
}