@uxland/primary-shell 7.44.3 → 7.45.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "7.44.3",
3
+ "version": "7.45.1",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@primaria/plugins-core": "^1.0.14",
33
- "@salut/design-system-salut": "../../design-system-salut-2.15.2.tgz",
33
+ "@salut/design-system-salut": "../../design-system-salut-2.15.3.tgz",
34
34
  "@types/react": "^19.0.12",
35
35
  "@uxland/lit-utilities": "^1.0.0",
36
36
  "@uxland/localization": "^1.0.3",
@@ -17,9 +17,8 @@ export class GetUserInfoBackendAdapter implements UserInfoBackendAdapter {
17
17
  firstName: decodedToken.access_info.trace_user_given_name,
18
18
  familyName: decodedToken.access_info.trace_user_family_name,
19
19
  lastName: decodedToken.access_info.trace_user_last_name,
20
- registrationNumber: decodedToken.access_info.identifier.find(
21
- (id: { type: string; value: string }) => id.type === "NUMCOL",
22
- )?.value,
20
+ registrationNumber: decodedToken.access_info.identifier.find((id: { type: string; value: string }) => id.type === "NUMCOL")
21
+ ?.value,
23
22
  workCenter: decodedToken.access_info.center_code,
24
23
  role: decodedToken.access_info.role_type,
25
24
  speciality: decodedToken.access_info.professional_category,
@@ -29,12 +28,9 @@ export class GetUserInfoBackendAdapter implements UserInfoBackendAdapter {
29
28
 
30
29
  getUserId(access_info) {
31
30
  return (
32
- access_info.identifier?.find(
33
- (identifierItem: { type: string; value: string }) => identifierItem.type === "DNI",
34
- )?.value ||
35
- access_info.identifier?.find(
36
- (identifierItem: { type: string; value: string }) => identifierItem.type === "NIE",
37
- )?.value
31
+ access_info.identifier?.find((identifierItem: { type: string; value: string }) => identifierItem.type === "DNI")?.value ||
32
+ access_info.identifier?.find((identifierItem: { type: string; value: string }) => identifierItem.type === "NIE")?.value ||
33
+ access_info.identifier?.find((identifierItem: { type: string; value: string }) => identifierItem.type === "PASS")?.value
38
34
  );
39
35
  }
40
36
  }