* feat: add filters and sorting functionality to the team table * feat: add lodash.debounce for improved fetchData performance in TeamTable * feat: implement query settings management for team members table with filtering and pagination * fix: increase staleTime for useTeamMembers hook to 30 minutes * refactor: simplify TableControlBar layout and restore Clear filters button functionality * feat: add internationalization support for sorting and search placeholders * test: fix issues with failing tests * refactor: update SearchFilter to use string & localize Clear filters button text * test: add missing comprehensive tests * refactor: update sorting and group all in a Table * test: update to use useEvent intead of fireEvent * refactor: user retrival for paginated query in user detail view * refactor: separation of i18n messages * style: remove comment in API * fix: adress debaunce time --------- Co-authored-by: Diana Olarte <diana.olarte@edunext.co>
55 lines
931 B
TypeScript
55 lines
931 B
TypeScript
export interface PermissionValidationRequest {
|
|
action: string;
|
|
scope?: string;
|
|
}
|
|
|
|
export interface PermissionValidationResponse extends PermissionValidationRequest {
|
|
allowed: boolean;
|
|
}
|
|
|
|
// Libraries AuthZ types
|
|
export interface TeamMember {
|
|
username: string;
|
|
fullName: string;
|
|
email: string;
|
|
roles: string[];
|
|
createdAt: string;
|
|
}
|
|
|
|
export interface LibraryMetadata {
|
|
id: string;
|
|
org: string;
|
|
title: string;
|
|
slug: string;
|
|
}
|
|
|
|
export interface RoleMetadata {
|
|
role: string;
|
|
name: string;
|
|
description: string;
|
|
}
|
|
export interface Role extends RoleMetadata {
|
|
userCount: number;
|
|
permissions: string[];
|
|
}
|
|
|
|
export type ResourceMetadata = {
|
|
key: string;
|
|
label: string;
|
|
description: string;
|
|
};
|
|
|
|
export type PermissionMetadata = {
|
|
key: string;
|
|
resource: string;
|
|
label?: string;
|
|
description?: string;
|
|
};
|
|
|
|
// Paragon table type
|
|
export interface TableCellValue<T> {
|
|
row: {
|
|
original: T;
|
|
};
|
|
}
|