import { BaseEntityClass } from '../../base/base.entity'; import { DeviceEntity, StorageProviderServiceConfig } from '../..'; import { STORAGE_PROVIDER_PROTOCOL } from '../../files/enum'; export interface BackupMetadata { lastBackupTimestamp?: number; lastBackupSuccess?: boolean; backupSize?: number; } export interface BackupScope { includedPaths: string[]; includedPostgreSQLDatabase: string[]; } export declare class DeviceBackupDestinationEntity extends BaseEntityClass { id: string; /** * This secret shall only be queried on a special, device-only endpoint */ secret: string; service: STORAGE_PROVIDER_PROTOCOL; serviceConfig: StorageProviderServiceConfig; metadata: BackupMetadata; isEnabled: boolean; backupScope: BackupScope; /** * Device this backup destination belongs to */ device: DeviceEntity; constructor(partial: Partial); }