@equinor/fusion-framework-react-components-people-provider 1.4.19 → 1.5.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/CHANGELOG.md +12 -0
- package/dist/esm/PersonController.js +6 -1
- package/dist/esm/PersonController.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
- package/src/PersonController.ts +18 -6
- package/src/version.ts +1 -1
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.
|
|
1
|
+
export declare const version = "1.5.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-react-components-people-provider",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"rxjs": "^7.8.1",
|
|
26
|
-
"@equinor/fusion-framework-
|
|
27
|
-
"@equinor/fusion-framework-react
|
|
26
|
+
"@equinor/fusion-framework-module-services": "^5.1.0",
|
|
27
|
+
"@equinor/fusion-framework-react": "^7.3.7",
|
|
28
28
|
"@equinor/fusion-framework-react-module": "^3.1.6",
|
|
29
|
-
"@equinor/fusion-
|
|
30
|
-
"@equinor/fusion-
|
|
29
|
+
"@equinor/fusion-framework-react-module-bookmark": "^2.3.1",
|
|
30
|
+
"@equinor/fusion-query": "^5.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@equinor/fusion-wc-person": "^3.1.1",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"typescript": "^5.5.4",
|
|
37
37
|
"@equinor/fusion-framework-module-app": "^6.1.3",
|
|
38
38
|
"@equinor/fusion-framework-module-bookmark": "^2.1.0",
|
|
39
|
-
"@equinor/fusion-framework-module-event": "^4.
|
|
39
|
+
"@equinor/fusion-framework-module-event": "^4.3.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@types/react": "^17.0.0 || ^18.0.0",
|
package/src/PersonController.ts
CHANGED
|
@@ -64,12 +64,24 @@ export class PersonController implements IPersonController {
|
|
|
64
64
|
key: ({ azureId }) => azureId,
|
|
65
65
|
client: {
|
|
66
66
|
fn: ({ azureId }, signal): Observable<GetPersonResult> => {
|
|
67
|
-
return client
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
return client
|
|
68
|
+
.get(
|
|
69
|
+
'v4',
|
|
70
|
+
'json$',
|
|
71
|
+
{ azureId, expand: ['manager', 'positions'] },
|
|
72
|
+
{ signal },
|
|
73
|
+
)
|
|
74
|
+
.pipe(
|
|
75
|
+
map((result) => {
|
|
76
|
+
const { positions = [] } = result;
|
|
77
|
+
return {
|
|
78
|
+
...result,
|
|
79
|
+
positions: positions.filter(
|
|
80
|
+
(x) => new Date(x.appliesTo) > new Date(),
|
|
81
|
+
),
|
|
82
|
+
};
|
|
83
|
+
}),
|
|
84
|
+
);
|
|
73
85
|
},
|
|
74
86
|
},
|
|
75
87
|
});
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.5.0';
|