mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Show backup status in Settings window
This commit is contained in:
@@ -29,3 +29,35 @@ export type BackupCdnReadCredentialType = Readonly<{
|
||||
retrievedAtMs: number;
|
||||
cdnNumber: number;
|
||||
}>;
|
||||
|
||||
export type SubscriptionCostType = {
|
||||
amount: number;
|
||||
currencyCode: string;
|
||||
};
|
||||
|
||||
export type BackupStatusType = {
|
||||
createdAt?: number;
|
||||
protoSize?: number;
|
||||
mediaSize?: number;
|
||||
};
|
||||
|
||||
export type BackupsSubscriptionType =
|
||||
| {
|
||||
status: 'not-found' | 'expired';
|
||||
}
|
||||
| {
|
||||
status: 'free';
|
||||
mediaIncludedInBackupDurationDays: number;
|
||||
}
|
||||
| (
|
||||
| {
|
||||
status: 'active';
|
||||
renewalDate?: Date;
|
||||
cost?: SubscriptionCostType;
|
||||
}
|
||||
| {
|
||||
status: 'pending-cancellation';
|
||||
expiryDate?: Date;
|
||||
cost?: SubscriptionCostType;
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user