alliance-shared-types 1.0.12 → 1.0.13
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.
|
@@ -494,3 +494,44 @@ export interface PolicyWithRules extends TravelPolicy {
|
|
|
494
494
|
export interface WorkflowWithLevels extends ApprovalWorkflow {
|
|
495
495
|
levels?: ApprovalLevel[];
|
|
496
496
|
}
|
|
497
|
+
export type PermissionCategory = 'dashboard' | 'employees' | 'policies' | 'workflows' | 'requests' | 'reports' | 'settings';
|
|
498
|
+
export interface CorporatePermission {
|
|
499
|
+
permissionId: string;
|
|
500
|
+
permissionCode: string;
|
|
501
|
+
permissionName: string;
|
|
502
|
+
description?: string;
|
|
503
|
+
category: PermissionCategory;
|
|
504
|
+
createdAt: string | Date;
|
|
505
|
+
updatedAt: string | Date;
|
|
506
|
+
}
|
|
507
|
+
export interface CorporateRole {
|
|
508
|
+
roleId: string;
|
|
509
|
+
corporateAccountId: string;
|
|
510
|
+
roleName: string;
|
|
511
|
+
description?: string;
|
|
512
|
+
isSystemRole: boolean;
|
|
513
|
+
createdAt: string | Date;
|
|
514
|
+
updatedAt: string | Date;
|
|
515
|
+
}
|
|
516
|
+
export interface CorporateRoleCreate {
|
|
517
|
+
corporateAccountId: string;
|
|
518
|
+
roleName: string;
|
|
519
|
+
description?: string;
|
|
520
|
+
isSystemRole?: boolean;
|
|
521
|
+
}
|
|
522
|
+
export interface CorporateRoleUpdate {
|
|
523
|
+
roleName?: string;
|
|
524
|
+
description?: string;
|
|
525
|
+
}
|
|
526
|
+
export interface CorporateRolePermission {
|
|
527
|
+
roleId: string;
|
|
528
|
+
permissionId: string;
|
|
529
|
+
createdAt: string | Date;
|
|
530
|
+
}
|
|
531
|
+
export interface CorporateRoleWithPermissions extends CorporateRole {
|
|
532
|
+
permissions?: CorporatePermission[];
|
|
533
|
+
}
|
|
534
|
+
export interface CorporateEmployeeWithRole extends CorporateEmployee {
|
|
535
|
+
role?: CorporateRole;
|
|
536
|
+
rolePermissions?: CorporatePermission[];
|
|
537
|
+
}
|