@occupop/lib-auth 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,9 +8,24 @@ export type AuthUser = {
|
|
|
8
8
|
readonly hiringCompanyUuid?: string;
|
|
9
9
|
readonly recruitmentAgencyUuid?: string;
|
|
10
10
|
readonly sysAdmin?: boolean;
|
|
11
|
+
readonly sysAdminEmail?: string;
|
|
11
12
|
readonly isAdmin?: boolean;
|
|
12
13
|
readonly isSuperAdmin?: boolean;
|
|
14
|
+
readonly permissions?: Permission;
|
|
13
15
|
};
|
|
16
|
+
export interface Permission {
|
|
17
|
+
isSuperAdmin: boolean;
|
|
18
|
+
isAdmin: boolean;
|
|
19
|
+
candidates: boolean;
|
|
20
|
+
favorites: boolean;
|
|
21
|
+
recruiters: boolean;
|
|
22
|
+
formsDocuments: boolean;
|
|
23
|
+
contracts: boolean;
|
|
24
|
+
jobRequisition: boolean;
|
|
25
|
+
jobRequisitionCreate: boolean;
|
|
26
|
+
jobsCreate: boolean;
|
|
27
|
+
jobsPublish: boolean;
|
|
28
|
+
}
|
|
14
29
|
export type ScopedUser = {
|
|
15
30
|
readonly userUuid?: undefined;
|
|
16
31
|
readonly [entityUuid: string]: {
|