mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-09-17 19:12:03 +00:00
feat(#89): Add backup functionality for google drive and dropbox
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user