Skip to content

Commit

Permalink
rest of apis verified with new ASDT approach
Browse files Browse the repository at this point in the history
  • Loading branch information
GunnlaugurG committed Jun 4, 2024
1 parent fc8cf14 commit 97fe9cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class DelegationsIncomingRepresentativeService {
type: AuthDelegationType.PersonalRepresentative,
provider: AuthDelegationProvider.PersonalRepresentativeRegistry,
rights: representative.rights,
prDelegationType: representative.prDelegationTypes,
})

const personalRepresentatives =
Expand Down
20 changes: 13 additions & 7 deletions libs/auth-api-lib/src/lib/delegations/dto/delegation.dto.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'
import { Type } from 'class-transformer'
import {
IsString,
IsOptional,
IsArray,
IsDateString,
IsOptional,
IsString,
ValidateNested,
} from 'class-validator'
import {
DelegationScopeDTO,
UpdateDelegationScopeDTO,
} from './delegation-scope.dto'
import { PersonalRepresentativeRightTypeDTO } from '../../personal-representative/dto/personal-representative-right-type.dto'

import {
AuthDelegationProvider,
AuthDelegationType,
} from '@island.is/shared/types'

import { PersonalRepresentativeRightTypeDTO } from '../../personal-representative/dto/personal-representative-right-type.dto'
import {
DelegationScopeDTO,
UpdateDelegationScopeDTO,
} from './delegation-scope.dto'
import { DelegationTypeDto } from './delegation-type.dto'

/** @deprecated - use AuthDelegationProvider from @island.is/shared/types instead */
export enum DelegationProvider {
NationalRegistry = 'thjodskra',
Expand Down Expand Up @@ -71,6 +74,9 @@ export class DelegationDTO {

// This property is only used in delegation index
rights?: PersonalRepresentativeRightTypeDTO[]

// This property is only used in delegation index
prDelegationType?: DelegationTypeDto[]
}

export class PatchDelegationDTO {
Expand Down

0 comments on commit 97fe9cb

Please sign in to comment.