* Used to transform record after fetching from database.
* According to AdminForth convention, if {@link AdminForthResourceColumn.type} is set to {@link AdminForthDataTypes.DATETIME} then it should be transformed to ISO string.
* This method is reused both to list records and show one record (by passing limit 1 and offset 0) .
*
* Fields are returned from db "as is" then {@link AdminForthBaseConnector.getData} will transform each field using {@link IAdminForthDataSourceConnector.getFieldValue}
* Called by AdminForth to initialize all endpoints for REST API.
*/
registerEndpoints(server: IHttpServer): void;
/**
* Called by login endpoint to process login callbacks. Also might be called by plugins, to prevent action if user is not allowed to login.
* For example signup or login via google might want to check if user is allowed to login by calling this method.
* @param adminUser - plugin/af pases current adminUser
* @param toReturn - this is an object which will get status of login process. If at least one callback returns error or redirectTo, login process will be stopped (future callbacks will not be called).
* @param response - http response object
* @param sessionDuration - duration of session in format "1s", "1m", "1h", or "1d" (e.g., "30d" for 30 days)
* Internal flag which indicates if AdminForth is running in hot reload mode.
*/
runningHotReload: boolean;
/**
* Connects to databases defined in datasources and fetches described resource columns to find out data types and constraints.
* You must call this method as soon as possible after AdminForth class is instantiated.
*/
discoverDatabases(): Promise<void>;
/**
* Bundles AdminForth SPA by injecting custom components into internal pre-made SPA source code. It generates internally dist which then will be
* served by AdminForth HTTP adapter.
* Bundle is generated in /tmp folder so if you have ramfs or tmpfs this operation will be faster.
*
* We recommend calling this method from dedicated script which will be run by CI/CD pipeline in build time. This ensures lowest downtime for your users.
* However for simple setup you can call it from your main script, and users will see some "AdminForth is bundling" message in the admin panel while app is bundling.