Added Notifications screen and logic for Records.
This commit is contained in:
1 parent
72ec7472c5
commit
697d72f379
13 files changed
+2255
-145
No files matched your search
@@ -16,6 +16,10 @@ export async function fetchTravellers() {
|
||||
return getPbApi().fetchTravellers()
|
||||
}
|
||||
|
||||
export async function createTraveller(data) {
|
||||
return getPbApi().createTraveller(data)
|
||||
}
|
||||
|
||||
export async function createEntry(tripData) {
|
||||
const payload = tripData?.trip ? tripData.trip : tripData
|
||||
return getPbApi().createEntry(payload)
|
||||
@@ -45,4 +49,24 @@ export async function updateVaccineRecord(id, recordData) {
|
||||
return getPbApi().updateVaccineRecord(id, recordData)
|
||||
}
|
||||
|
||||
export async function fetchNotifications(options) {
|
||||
return getPbApi().fetchNotifications(options)
|
||||
}
|
||||
|
||||
export async function updateNotification(id, data) {
|
||||
return getPbApi().updateNotification(id, data)
|
||||
}
|
||||
|
||||
export async function markNotificationRead(id, isRead = true) {
|
||||
return getPbApi().markNotificationRead(id, isRead)
|
||||
}
|
||||
|
||||
export async function markAllNotificationsRead() {
|
||||
return getPbApi().markAllNotificationsRead()
|
||||
}
|
||||
|
||||
export async function archiveNotification(id, isArchived = true) {
|
||||
return getPbApi().archiveNotification(id, isArchived)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user