forked from openedx/frontend-app-admin-console
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
53 lines (46 loc) · 910 Bytes
/
types.ts
File metadata and controls
53 lines (46 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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[];
}
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;
};
}