Hello good afternoon to everybody.
I need to develop a widget where all the audit logs from a user are shown, i am using the auditLogService. Appart from that, I need another widget for select the user and a custom widget for selecting the filters.
I have an issue that in getAuditLogsByUserId I can not fetch by actionType, actionStatus, etc, I can not make these advanced filters for example selecting LOGOUT, ALARMS CLEARED and LOGIN actions from this user. It is an uncomplete approach and don't know how to resolve it, thanks!
Types in the repo:
getAuditLogsByUserId(userId: string, pageLink: TimePageLink, config?: RequestConfig): Observable<PageData>;
export interface AuditLog extends BaseData { tenantId: TenantId; customerId: CustomerId; entityId: EntityId; entityName: string; userId: UserId; userName: string; actionType: ActionType; actionData: any; actionStatus: ActionStatus; actionFailureDetails: string; }
export declare class TimePageLink extends PageLink { startTime: number; endTime: number; constructor(pageSize: number, page?: number, textSearch?: string, sortOrder?: SortOrder, startTime?: number, endTime?: number); nextPageLink(): TimePageLink; toQuery(): string; }
Function implementation:
TimePageLink is where I am passing all the query information, does not have auditTypes which would have been very more usefull than textSearch
loadAuditLogsFromUser(userId: string, item: number, page: number, config?: RequestConfig): ObservablePageDataAuditLogs {
const pageLink = new TimePageLink(item, page, "", {property: "createdTime", direction: Direction.DESC}, null, null);
return this.auditLogService.getAuditLogsByUserId(
userId,
pageLink,
config
);
}
Widget:
And this is the widget, the idea is to select the user at the left top and the left bottom for the filters which are not implemented and created yet

Hello good afternoon to everybody.
I need to develop a widget where all the audit logs from a user are shown, i am using the auditLogService. Appart from that, I need another widget for select the user and a custom widget for selecting the filters.
I have an issue that in getAuditLogsByUserId I can not fetch by actionType, actionStatus, etc, I can not make these advanced filters for example selecting LOGOUT, ALARMS CLEARED and LOGIN actions from this user. It is an uncomplete approach and don't know how to resolve it, thanks!
Types in the repo:
getAuditLogsByUserId(userId: string, pageLink: TimePageLink, config?: RequestConfig): Observable<PageData>;
export interface AuditLog extends BaseData { tenantId: TenantId; customerId: CustomerId; entityId: EntityId; entityName: string; userId: UserId; userName: string; actionType: ActionType; actionData: any; actionStatus: ActionStatus; actionFailureDetails: string; }
export declare class TimePageLink extends PageLink { startTime: number; endTime: number; constructor(pageSize: number, page?: number, textSearch?: string, sortOrder?: SortOrder, startTime?: number, endTime?: number); nextPageLink(): TimePageLink; toQuery(): string; }
Function implementation:
TimePageLink is where I am passing all the query information, does not have auditTypes which would have been very more usefull than textSearch
Widget:
And this is the widget, the idea is to select the user at the left top and the left bottom for the filters which are not implemented and created yet