feat(#89): Add backup functionality for google drive and dropbox

This commit is contained in:
Josh Creek
2026-01-24 13:32:10 +00:00
parent 3f5c14a8bc
commit ab82f75dc6
22 changed files with 1582 additions and 7 deletions
@@ -0,0 +1,35 @@
export type ExportProvider = 'google_drive' | 'dropbox';
export interface PokedexExportIntegration {
_id: string;
userId: string;
pokedexId: string | null;
provider: ExportProvider;
enabled: boolean;
fileName: string | null;
folderId: string | null;
path: string | null;
accessToken: string;
refreshToken: string | null;
accessTokenExpiresAt: string | null;
metadata: Record<string, unknown> | null;
lastExportedAt: string | null;
lastError: string | null;
}
export interface PokedexExportIntegrationDB {
id: string;
userId: string;
pokedexId: string | null;
provider: ExportProvider;
enabled: boolean;
fileName: string | null;
folderId: string | null;
path: string | null;
accessToken: string;
refreshToken: string | null;
accessTokenExpiresAt: string | null;
metadata: Record<string, unknown> | null;
lastExportedAt: string | null;
lastError: string | null;
}