refactor(pega): Removed Pega references from the application (TV-242)

Squashed commit of the following:

commit f0af4736b6a196db9a1306ca8b355c62610905ee
Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se>
Date:   Thu Jun 3 06:32:21 2021 +0200

    Removed PEGA references from repository
This commit is contained in:
Erik Tiekstra
2021-06-04 09:23:55 +02:00
parent 61c3c2ff59
commit d91b3e6445
10 changed files with 15 additions and 173 deletions

View File

@@ -20,22 +20,6 @@ export interface UserApiResponse {
authorizations: Authorization[];
}
export interface PegaUserApiResponse {
pxInsName: string;
pxLimitedAccess: string;
pxObjClass: string;
pyAccessGroup: string;
pyFirstName: string;
pyLastName: string;
pyLastSignon: string;
pyOrganization: string;
pyOrgDivision: string;
pyOrgUnit: string;
pyUserIdentifier: string;
pyUserName: string;
pyAccessGroupsAdditional: string[];
}
export function mapUserApiResponseToUser(data: UserApiResponse): User {
const { id, firstName, lastName, ssn, organizations, authorizations } = data;
return {
@@ -48,29 +32,3 @@ export function mapUserApiResponseToUser(data: UserApiResponse): User {
authorizations,
};
}
export function mapPegaUserApiReponseToUser(data: PegaUserApiResponse): User {
return {
id: data.pyUserIdentifier,
lastName: data.pyLastName,
firstName: data.pyFirstName,
fullName: `${data.pyFirstName} ${data.pyLastName}`,
ssn: null,
organizations: [
{
id: '',
name: data.pyOrganization,
kaNumber: null,
address: {
street: null,
houseNumber: null,
postalCode: null,
city: null,
kommun: null,
},
},
],
authorizations: null,
// authorizations: mapPegaAuthorizationToAuthorization(data.pyAccessGroup as PegaAuthorization),
};
}