@edular/permissions 8.9.0 → 8.10.0
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/lib/constants.d.ts +10 -5
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -45,22 +45,27 @@ export declare const SubunitPermissionTargetTypes: {
|
|
|
45
45
|
"tasks.reopen_completed": PermissionType[];
|
|
46
46
|
director: PermissionType[];
|
|
47
47
|
};
|
|
48
|
-
export declare type
|
|
48
|
+
export declare type StaffProfilePermissionsDetails = {
|
|
49
49
|
type: UserProfileType.Staff;
|
|
50
50
|
enabledPermissionIds: number[];
|
|
51
51
|
enabledDepartmentPermissionIds: number[];
|
|
52
52
|
isUserAccessDisabled: boolean;
|
|
53
53
|
isPersonalContactsAccessDisabled: boolean;
|
|
54
|
-
}
|
|
54
|
+
};
|
|
55
|
+
export declare type StudentProfilePermissionsDetails = {
|
|
55
56
|
type: UserProfileType.Student;
|
|
56
57
|
enabledPermissionIds: number[];
|
|
57
58
|
isUserAccessDisabled: boolean;
|
|
58
59
|
isPersonalContactsAccessDisabled: boolean;
|
|
59
|
-
}
|
|
60
|
+
};
|
|
61
|
+
export declare type AdminProfilePermissionsDetails = {
|
|
60
62
|
type: UserProfileType.Admin;
|
|
61
|
-
}
|
|
63
|
+
};
|
|
64
|
+
export declare type ApiKeyProfilePermissionsDetails = {
|
|
62
65
|
type: UserProfileType.ApiKey;
|
|
63
|
-
}
|
|
66
|
+
};
|
|
67
|
+
export declare type OthersProfilePermissionsDetails = {
|
|
64
68
|
type: UserProfileType.Others;
|
|
65
69
|
enabledPermissionIds: number[];
|
|
66
70
|
};
|
|
71
|
+
export declare type ProfilePermissionsDetails = StaffProfilePermissionsDetails | StudentProfilePermissionsDetails | AdminProfilePermissionsDetails | ApiKeyProfilePermissionsDetails | OthersProfilePermissionsDetails;
|