Skip to content

Commit

Permalink
Add ilBibliographicRecord prop to Reservation type
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Jun 25, 2024
1 parent 263e2f5 commit ec30420
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/utils/helpers/list-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ export const mapFBSReservationGroupToReservationType = (
pickupDeadline,
pickupNumber,
periodical,
records
records,
ilBibliographicRecord
}) => {
return {
periodical: periodical?.displayText || "",
Expand All @@ -261,7 +262,8 @@ export const mapFBSReservationGroupToReservationType = (
pickupBranch,
pickupDeadline,
pickupNumber,
reservationIds: values(records)
reservationIds: values(records),
ilBibliographicRecord
};
}
);
Expand Down
3 changes: 3 additions & 0 deletions src/core/utils/types/reservation-type.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ILLBibliographicRecord } from "../../fbs/model";
import { ListType } from "./list-type";
import { Nullable } from "./nullable";

Expand All @@ -13,6 +14,8 @@ interface Reservation extends ListType {
pickupBranch: string;
title: string;
periodical: string;
reservationType: string;
ilBibliographicRecord?: ILLBibliographicRecord;
}

export type ReservationType = Nullable<Partial<Reservation>>;
Expand Down

0 comments on commit ec30420

Please sign in to comment.