@v1ct0rbr/minivault-web 0.7.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,8 @@ export interface Backup {
15
15
  errorMessage: string | null;
16
16
  createdAt: string | null;
17
17
  completedAt: string | null;
18
+ /** Quando true, o scheduler re-executa este backup (definição) no agendamento. */
19
+ scheduled: boolean;
18
20
  }
19
21
  export interface VerifyResult {
20
22
  valid: boolean;
@@ -72,6 +74,8 @@ export interface DumpOptions {
72
74
  export interface BackupRequest {
73
75
  /** Tipo do backup: DATABASE (apenas banco), STORAGE (apenas arquivos) ou FULL (padrão legado). */
74
76
  backupType?: BackupType;
77
+ /** Quando true, o scheduler re-executa este backup no agendamento. */
78
+ scheduled?: boolean;
75
79
  /** Opcional: usa o banco padrão configurado no servidor (env) quando ausente. */
76
80
  database?: DatabaseCredentials;
77
81
  originStorage?: OriginStorageConfig;
@@ -193,6 +197,29 @@ export interface StorageZipRequest {
193
197
  secretKey?: string;
194
198
  pathStyleEnabled?: boolean;
195
199
  }
200
+ /**
201
+ * Restaura arquivos/pastas do storage (normalmente o destino) de volta para o
202
+ * storage de origem, preservando pastas e extraindo arquivos .zip.
203
+ */
204
+ export interface RestoreStorageRequest {
205
+ keys: string[];
206
+ storage?: StorageTarget;
207
+ type?: string;
208
+ endpoint?: string;
209
+ bucketName?: string;
210
+ accessKey?: string;
211
+ secretKey?: string;
212
+ region?: string;
213
+ localPath?: string;
214
+ pathStyleEnabled?: boolean;
215
+ /** Storage de destino da restauração (origin). Quando ausente, usa ORIGIN_STORAGE_* do servidor. */
216
+ origin?: OriginStorageConfig;
217
+ }
218
+ export interface StorageRestoreResult {
219
+ restoredCount: number;
220
+ restoredItems: string[];
221
+ message: string;
222
+ }
196
223
  export interface ApiErrorBody {
197
224
  timestamp?: string;
198
225
  status?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v1ct0rbr/minivault-web",
3
- "version": "0.7.1",
3
+ "version": "0.9.0",
4
4
  "description": "Módulo independente de gerenciamento de backups (minivault). Consumível como pacote npm em qualquer app React. Cliente do minivault REST API (acesso tipicamente via proxy autenticado).",
5
5
  "author": "Victor Queiroga (https://www.linkedin.com/in/victor-queiroga)",
6
6
  "license": "MIT",