onSearch(event.target.value)}
- onClear={() => {
- setSearchString('');
- setCurrentPage(1);
- }}
- hideLabel
- label={t('users_page.user_search_placeholder')}
- />
+
+ onSearch(event.target.value)}
+ onClear={() => {
+ setSearchString('');
+ setCurrentPage(1);
+ }}
+ hideLabel
+ label={t('users_page.user_search_placeholder')}
+ />
+
+
({
+ query: ({ ssn, lastName }) => ({
+ url: `reportee/${getCookie('AltinnPartyUuid')}/rightholder/person`,
+ method: 'POST',
+ body: JSON.stringify({ ssn, lastName }),
+ transformErrorResponse: (response: {
+ status: string | number;
+ }): { status: string | number } => {
+ return { status: response.status };
+ },
+ }),
+ }),
}),
});
@@ -81,6 +93,7 @@ export const {
useGetReporteeQuery,
useGetRightHoldersQuery,
useGetRightHolderAccessesQuery,
+ useValidateNewUserPersonMutation,
} = userInfoApi;
export const { endpoints, reducerPath, reducer, middleware } = userInfoApi;