@v1ct0rbr/minivault-web 0.6.3 → 0.6.5

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.
@@ -138,6 +138,42 @@ export interface StorageFileItem {
138
138
  lastModified: string | null;
139
139
  directory: boolean;
140
140
  }
141
+ /** Qual storage o explorador manipula: origem (ORIGIN_STORAGE_*) ou destino (OUTPUT_STORAGE_*). */
142
+ export type StorageTarget = 'origin' | 'destination';
143
+ export type ZipJobStatusName = 'PENDING' | 'RUNNING' | 'DONE' | 'FAILED';
144
+ export type ZipJobMode = 'ZIP' | 'FILE';
145
+ export type ZipJobPhase = 'PREPARING' | 'COMPRESSING' | 'DOWNLOADING';
146
+ export interface ZipJobStatus {
147
+ jobId: string;
148
+ status: ZipJobStatusName;
149
+ mode: ZipJobMode;
150
+ phase: ZipJobPhase | null;
151
+ message: string;
152
+ fileName: string | null;
153
+ fileSize: number | null;
154
+ totalItems: number;
155
+ processedItems: number;
156
+ processedBytes: number;
157
+ totalBytes: number;
158
+ percent: number;
159
+ currentItem: string | null;
160
+ createdAt: string;
161
+ completedAt: string | null;
162
+ }
163
+ export type StorageDownloadMode = 'zip' | 'file';
164
+ export interface StorageZipRequest {
165
+ storage: StorageTarget;
166
+ type?: string;
167
+ mode?: StorageDownloadMode;
168
+ keys: string[];
169
+ localPath?: string;
170
+ endpoint?: string;
171
+ bucketName?: string;
172
+ region?: string;
173
+ accessKey?: string;
174
+ secretKey?: string;
175
+ pathStyleEnabled?: boolean;
176
+ }
141
177
  export interface ApiErrorBody {
142
178
  timestamp?: string;
143
179
  status?: number;
package/package.json CHANGED
@@ -1,73 +1,73 @@
1
- {
2
- "name": "@v1ct0rbr/minivault-web",
3
- "version": "0.6.3",
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
- "author": "Victor Queiroga (https://www.linkedin.com/in/victor-queiroga)",
6
- "license": "MIT",
7
- "type": "module",
8
- "publishConfig": {
9
- "access": "public",
10
- "registry": "https://registry.npmjs.org/"
11
- },
12
- "files": [
13
- "dist",
14
- "README.md"
15
- ],
16
- "keywords": [
17
- "backup",
18
- "minivault",
19
- "der",
20
- "react",
21
- "bootstrap",
22
- "postgresql"
23
- ],
24
- "repository": {
25
- "type": "git",
26
- "url": "https://github.com/v1ct0rbr/minivault-web.git"
27
- },
28
- "main": "./dist/minivault-web.js",
29
- "module": "./dist/minivault-web.js",
30
- "types": "./dist/index.d.ts",
31
- "exports": {
32
- ".": {
33
- "types": "./dist/index.d.ts",
34
- "import": "./dist/minivault-web.js"
35
- },
36
- "./style.css": "./dist/minivault-web.css"
37
- },
38
- "scripts": {
39
- "dev": "vite --port 5176",
40
- "build": "vite build && tsc --noEmit",
41
- "build:lib": "vite build --config vite.lib.config.ts && tsc --noEmit",
42
- "prepublishOnly": "npm run build:lib && npm test",
43
- "prepack": "npm run build:lib",
44
- "preview": "vite preview",
45
- "test": "vitest run",
46
- "test:watch": "vitest",
47
- "typecheck": "tsc --noEmit",
48
- "lint": "eslint ."
49
- },
50
- "dependencies": {
51
- "bootstrap": "^5.3.3",
52
- "bootstrap-icons": "^1.11.3"
53
- },
54
- "peerDependencies": {
55
- "@tanstack/react-query": "^5.0.0",
56
- "react": "^19.0.0",
57
- "react-dom": "^19.0.0"
58
- },
59
- "devDependencies": {
60
- "@tanstack/react-query": "^5.66.5",
61
- "@types/node": "^22.10.2",
62
- "@types/react": "^19.2.0",
63
- "@types/react-dom": "^19.2.0",
64
- "@vitejs/plugin-react": "^5.0.4",
65
- "postcss-prefix-selector": "^2.1.1",
66
- "react": "^19.2.0",
67
- "react-dom": "^19.2.0",
68
- "typescript": "^5.7.2",
69
- "vite": "^8.0.16",
70
- "vite-plugin-dts": "^4.5.0",
71
- "vitest": "^4.1.8"
72
- }
1
+ {
2
+ "name": "@v1ct0rbr/minivault-web",
3
+ "version": "0.6.5",
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
+ "author": "Victor Queiroga (https://www.linkedin.com/in/victor-queiroga)",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "registry": "https://registry.npmjs.org/"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "README.md"
15
+ ],
16
+ "keywords": [
17
+ "backup",
18
+ "minivault",
19
+ "der",
20
+ "react",
21
+ "bootstrap",
22
+ "postgresql"
23
+ ],
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/v1ct0rbr/minivault-web.git"
27
+ },
28
+ "main": "./dist/minivault-web.js",
29
+ "module": "./dist/minivault-web.js",
30
+ "types": "./dist/index.d.ts",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/minivault-web.js"
35
+ },
36
+ "./style.css": "./dist/minivault-web.css"
37
+ },
38
+ "scripts": {
39
+ "dev": "vite --port 5176",
40
+ "build": "vite build && tsc --noEmit",
41
+ "build:lib": "vite build --config vite.lib.config.ts && tsc --noEmit",
42
+ "prepublishOnly": "npm run build:lib && npm test",
43
+ "prepack": "npm run build:lib",
44
+ "preview": "vite preview",
45
+ "test": "vitest run",
46
+ "test:watch": "vitest",
47
+ "typecheck": "tsc --noEmit",
48
+ "lint": "eslint ."
49
+ },
50
+ "dependencies": {
51
+ "bootstrap": "^5.3.3",
52
+ "bootstrap-icons": "^1.11.3"
53
+ },
54
+ "peerDependencies": {
55
+ "@tanstack/react-query": "^5.0.0",
56
+ "react": "^19.0.0",
57
+ "react-dom": "^19.0.0"
58
+ },
59
+ "devDependencies": {
60
+ "@tanstack/react-query": "^5.66.5",
61
+ "@types/node": "^22.10.2",
62
+ "@types/react": "^19.2.0",
63
+ "@types/react-dom": "^19.2.0",
64
+ "@vitejs/plugin-react": "^5.0.4",
65
+ "postcss-prefix-selector": "^2.1.1",
66
+ "react": "^19.2.0",
67
+ "react-dom": "^19.2.0",
68
+ "typescript": "^5.7.2",
69
+ "vite": "^8.0.16",
70
+ "vite-plugin-dts": "^4.5.0",
71
+ "vitest": "^4.1.8"
72
+ }
73
73
  }