@zauru-sdk/types 6.21.0 → 6.23.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.
@@ -1031,3 +1031,39 @@ export type OpenWorkOrdersDataTableResponse = {
1031
1031
  recordsFiltered: number;
1032
1032
  data: OpenWorkOrdersDataTableRow[];
1033
1033
  };
1034
+ export type PermissionAction = {
1035
+ key: string;
1036
+ label: string;
1037
+ };
1038
+ export type PermissionGroup = {
1039
+ id: string;
1040
+ label: string;
1041
+ actions: PermissionAction[];
1042
+ };
1043
+ export type WebappRole = {
1044
+ name: string;
1045
+ description?: string;
1046
+ permission_keys: string[];
1047
+ fechaEliminacion?: string;
1048
+ };
1049
+ export type WebappEmployeeRole = {
1050
+ employee_id: number;
1051
+ role_id: number;
1052
+ fechaEliminacion?: string;
1053
+ };
1054
+ export type WebappAccessContext = {
1055
+ employeeId: number;
1056
+ email: string;
1057
+ superAdmin: boolean;
1058
+ roleId: number | null;
1059
+ roleName: string | null;
1060
+ assignmentId: number | null;
1061
+ assignment: WebappEmployeeRole | null;
1062
+ permissionKeys: string[];
1063
+ };
1064
+ export type WebappRbacConfig = {
1065
+ rolesTableVar: string;
1066
+ employeeRolesTableVar: string;
1067
+ allPermissionKeys: readonly string[];
1068
+ superAdminEmailSuffixes?: readonly string[];
1069
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/types",
3
- "version": "6.21.0",
3
+ "version": "6.23.0",
4
4
  "description": "Estructuras de Zauru, tipado de modelos y modelos personalizados.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -22,5 +22,5 @@
22
22
  "devDependencies": {
23
23
  "typescript": "^5.1.6"
24
24
  },
25
- "gitHead": "7d373b9f5c25ab0198e72590c661bc9eb17cf80f"
25
+ "gitHead": "a3c1f2af46acb59cf9fcb78ecb18d904e33c61e5"
26
26
  }