Initial donationReceipts data types

This commit is contained in:
Scott Nonnenberg
2025-06-17 05:33:00 +10:00
committed by GitHub
parent 4347964030
commit 9ffee9d290
15 changed files with 472 additions and 5 deletions

View File

@@ -218,6 +218,13 @@ import {
updateCallLinkState,
updateDefunctCallLink,
} from './server/callLinks';
import {
_deleteAllDonationReceipts,
createDonationReceipt,
deleteDonationReceiptById,
getAllDonationReceipts,
getDonationReceiptById,
} from './server/donationReceipts';
import {
deleteAllEndorsementsForGroup,
getGroupSendCombinedEndorsementExpiration,
@@ -391,6 +398,9 @@ export const DataReader: ServerReadableInterface = {
getAllNotificationProfiles,
getNotificationProfileById,
getAllDonationReceipts,
getDonationReceiptById,
callLinkExists,
defunctCallLinkExists,
getAllCallLinks,
@@ -624,6 +634,10 @@ export const DataWriter: ServerWritableInterface = {
markNotificationProfileDeleted,
updateNotificationProfile,
_deleteAllDonationReceipts,
deleteDonationReceiptById,
createDonationReceipt,
removeAll,
removeAllConfiguration,
eraseStorageServiceState,
@@ -7495,6 +7509,7 @@ function removeAll(db: WritableDB): void {
DELETE FROM callsHistory;
DELETE FROM conversations;
DELETE FROM defunctCallLinks;
DELETE FROM donationReceipts;
DELETE FROM emojis;
DELETE FROM groupCallRingCancellations;
DELETE FROM groupSendCombinedEndorsement;