Fix more import/export tests for backups

This commit is contained in:
Fedor Indutny 2024-09-16 17:40:52 -07:00 committed by GitHub
parent 8dabe4fbe4
commit 84c562d0b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 225 additions and 60 deletions

24
ts/model-types.d.ts vendored
View file

@ -136,6 +136,9 @@ export type EditHistoryType = {
timestamp: number;
received_at: number;
received_at_ms?: number;
serverTimestamp?: number;
readStatus?: ReadStatus;
unidentifiedDeliveryReceived?: boolean;
};
type MessageType =
@ -225,13 +228,20 @@ export type MessageAttributesType = {
targetAuthorAci: AciString;
targetTimestamp: number;
};
giftBadge?: {
expiration: number;
level: number;
id: string | undefined;
receiptCredentialPresentation: string;
state: GiftBadgeStates;
};
giftBadge?:
| {
state:
| GiftBadgeStates.Unopened
| GiftBadgeStates.Opened
| GiftBadgeStates.Redeemed;
expiration: number;
level: number;
id: string | undefined;
receiptCredentialPresentation: string;
}
| {
state: GiftBadgeStates.Failed;
};
expirationTimerUpdate?: {
expireTimer?: DurationInSeconds;