Skip to content

Commit

Permalink
Added authorizedScopes field to Fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vas9ka committed Jul 18, 2024
1 parent db300ad commit d5a0555
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/fragmentarium/domain/FragmentDtos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,5 @@ export default interface FragmentDto {
excavationNumber?: MuseumNumber
}
colophon?: ColophonDto
authorizedScopes?: string[]
}
4 changes: 3 additions & 1 deletion src/fragmentarium/domain/fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ interface FragmentProps {
datesInText?: ReadonlyArray<MesopotamianDate>
archaeology?: Archaeology
colophon?: Colophon
authorizedScopes?: string[]
}

export class Fragment {
Expand Down Expand Up @@ -137,7 +138,8 @@ export class Fragment {
readonly date?: MesopotamianDate,
readonly datesInText?: ReadonlyArray<MesopotamianDate>,
readonly archaeology?: Archaeology,
readonly colophon?: Colophon
readonly colophon?: Colophon,
readonly authorizedScopes?: string[]
) {}

static create(props: FragmentProps): Fragment {
Expand Down

0 comments on commit d5a0555

Please sign in to comment.