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