-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtypes.d.ts
57 lines (51 loc) · 1.17 KB
/
types.d.ts
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
54
55
56
57
/* eslint-disable @typescript-eslint/no-explicit-any */
declare module 'pouchdb-debug';
declare namespace JSX {
interface IntrinsicElements {
'opc-header': any;
'opc-footer': any;
'opc-menu-drawer': any;
'opc-notification-drawer': any;
'opc-feedback': any;
'opc-provider': any;
'opc-nav': any;
}
}
interface Window {
OpAuthHelper: OpAuthHelper;
OpNotification: OpNotification;
}
interface OpNotification {
success: (arg0: NotificationArg) => void;
warn: (arg0: NotificationArg) => void;
danger: (arg0: NotificationArg) => void;
}
interface NotificationArg {
subject: string;
body?: string;
}
interface OpAuthHelper {
getUserInfo: () => UserDetails;
jwtToken: string;
onLogin: (cb: () => void | Promise<void>) => void;
}
interface UserDetails {
country: string;
email: string;
employeeType: string;
firstName: string;
fullName: string;
kerberosID: string;
lastName: string;
memberOf: string;
mobile: undefined;
preferredTimeZone: string;
rhatCostCenter: string;
rhatCostCenterDesc: string;
rhatGeo: string;
rhatLocation: string;
rhatNickname: undefined;
rhatUUID: string;
roles: string[];
title: string;
}