|
5 | 5 | import { isCloud, isSelfHosted } from '$lib/system'; |
6 | 6 | import { organization } from '$lib/stores/organization'; |
7 | 7 | import { BillingPlan, Dependencies } from '$lib/constants'; |
8 | | - import type { BackupArchive, BackupRestoration } from '$lib/sdk/backups'; |
9 | 8 | import { goto, invalidate } from '$app/navigation'; |
10 | 9 | import { page } from '$app/state'; |
11 | 10 | import { addNotification } from '$lib/stores/notifications'; |
12 | 11 | import { base } from '$app/paths'; |
13 | 12 | import { getProjectId } from '$lib/helpers/project'; |
14 | 13 | import { toLocaleDate } from '$lib/helpers/date'; |
15 | 14 | import { Typography } from '@appwrite.io/pink-svelte'; |
| 15 | + import { type Models } from '@appwrite.io/console'; |
16 | 16 |
|
17 | 17 | const backupRestoreItems: { |
18 | | - archives: Map<string, BackupArchive>; |
19 | | - restorations: Map<string, BackupRestoration>; |
| 18 | + archives: Map<string, Models.BackupArchive>; |
| 19 | + restorations: Map<string, Models.BackupRestoration>; |
20 | 20 | } = { |
21 | 21 | archives: new Map(), |
22 | 22 | restorations: new Map() |
|
117 | 117 | if (which === 'restorations') lastDatabaseRestorationId = null; |
118 | 118 | } |
119 | 119 |
|
120 | | - function backupName(item: BackupArchive | BackupRestoration, key: string) { |
| 120 | + function backupName(item: Models.BackupArchive | Models.BackupRestoration, key: string) { |
121 | 121 | const column = key === 'archives' ? '$createdAt' : 'startedAt'; |
122 | 122 |
|
123 | 123 | return toLocaleDate(item[column]); |
|
0 commit comments