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 0bf7679 commit 27675fd
Show file tree
Hide file tree
Showing 2 changed files with 6 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
2 changes: 2 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 @@ -14,6 +15,7 @@ interface Reservation extends ListType {
title: string;
periodical: string;
reservationType: "normal" | "parallel" | "serial" | "inter_library";
ilBibliographicRecord?: ILLBibliographicRecord;
}

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

0 comments on commit 27675fd

Please sign in to comment.