Initial Commit
This commit is contained in:
169
packages/api-stack/api/api-plugin-import/package.json
Normal file
169
packages/api-stack/api/api-plugin-import/package.json
Normal file
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"name": "@suaveplan/api-plugin-import",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "Tabular-data ingest plugin for @suaveplan/api. CSV / JSON / TSV-XLSX parsers, declarative transform pipeline (coerce + validate + computed), real-time progress tracker, async ImportStoreAdapter (in-memory + SurrealDB backends ship), canonical EventEmitter-based ImportService with owner-scoped jobs, 5 auth-gated OpenAPI Hono routes, RFC 7807 problem+json renderer, 9 IMPORT.* error codes, 6 OTel instruments. Server-tier.",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./error-codes/error-codes": {
|
||||
"import": {
|
||||
"types": "./dist/error-codes/error-codes.d.ts",
|
||||
"default": "./dist/error-codes/error-codes.js"
|
||||
}
|
||||
},
|
||||
"./parsers/csv": {
|
||||
"import": {
|
||||
"types": "./dist/parsers/csv.d.ts",
|
||||
"default": "./dist/parsers/csv.js"
|
||||
}
|
||||
},
|
||||
"./parsers/json": {
|
||||
"import": {
|
||||
"types": "./dist/parsers/json.d.ts",
|
||||
"default": "./dist/parsers/json.js"
|
||||
}
|
||||
},
|
||||
"./parsers/xlsx": {
|
||||
"import": {
|
||||
"types": "./dist/parsers/xlsx.d.ts",
|
||||
"default": "./dist/parsers/xlsx.js"
|
||||
}
|
||||
},
|
||||
"./transform/pipeline": {
|
||||
"import": {
|
||||
"types": "./dist/transform/pipeline.d.ts",
|
||||
"default": "./dist/transform/pipeline.js"
|
||||
}
|
||||
},
|
||||
"./progress/tracker": {
|
||||
"import": {
|
||||
"types": "./dist/progress/tracker.d.ts",
|
||||
"default": "./dist/progress/tracker.js"
|
||||
}
|
||||
},
|
||||
"./store/memory": {
|
||||
"import": {
|
||||
"types": "./dist/store/memory.d.ts",
|
||||
"default": "./dist/store/memory.js"
|
||||
}
|
||||
},
|
||||
"./store/surreal/surreal-import-store": {
|
||||
"import": {
|
||||
"types": "./dist/store/surreal/surreal-import-store.d.ts",
|
||||
"default": "./dist/store/surreal/surreal-import-store.js"
|
||||
}
|
||||
},
|
||||
"./service/service": {
|
||||
"import": {
|
||||
"types": "./dist/service/service.d.ts",
|
||||
"default": "./dist/service/service.js"
|
||||
}
|
||||
},
|
||||
"./routes/problem-json": {
|
||||
"import": {
|
||||
"types": "./dist/routes/problem-json.d.ts",
|
||||
"default": "./dist/routes/problem-json.js"
|
||||
}
|
||||
},
|
||||
"./routes/build-routes": {
|
||||
"import": {
|
||||
"types": "./dist/routes/build-routes.d.ts",
|
||||
"default": "./dist/routes/build-routes.js"
|
||||
}
|
||||
},
|
||||
"./routes/progress-sse/progress-sse": {
|
||||
"import": {
|
||||
"types": "./dist/routes/progress-sse/progress-sse.d.ts",
|
||||
"default": "./dist/routes/progress-sse/progress-sse.js"
|
||||
}
|
||||
},
|
||||
"./otel/instruments": {
|
||||
"import": {
|
||||
"types": "./dist/otel/instruments.d.ts",
|
||||
"default": "./dist/otel/instruments.js"
|
||||
}
|
||||
},
|
||||
"./schemas/options": {
|
||||
"import": {
|
||||
"types": "./dist/schemas/options.d.ts",
|
||||
"default": "./dist/schemas/options.js"
|
||||
}
|
||||
},
|
||||
"./schemas/schemas": {
|
||||
"import": {
|
||||
"types": "./dist/schemas/schemas.d.ts",
|
||||
"default": "./dist/schemas/schemas.js"
|
||||
}
|
||||
},
|
||||
"./plugin/plugin": {
|
||||
"import": {
|
||||
"types": "./dist/plugin/plugin.d.ts",
|
||||
"default": "./dist/plugin/plugin.js"
|
||||
}
|
||||
},
|
||||
"./types/types": {
|
||||
"import": {
|
||||
"types": "./dist/types/types.d.ts",
|
||||
"default": "./dist/types/types.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage --passWithNoTests",
|
||||
"test:integration": "vitest run --config ./vitest.integration.config.ts --passWithNoTests",
|
||||
"lint": "bunx biome check src/",
|
||||
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
||||
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
||||
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
||||
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
||||
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@hono/zod-openapi": "catalog:server",
|
||||
"@opentelemetry/api": "catalog:observability",
|
||||
"@suaveplan/api-plugin": "workspace:^",
|
||||
"@suaveplan/api-plugin-auth": "workspace:^",
|
||||
"@suaveplan/error": "workspace:^",
|
||||
"@suaveplan/events": "workspace:^",
|
||||
"@suaveplan/surrealdb": "workspace:^",
|
||||
"@suaveplan/types": "workspace:^",
|
||||
"hono": "catalog:",
|
||||
"tslib": "catalog:build",
|
||||
"zod": "catalog:forms"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@opentelemetry/sdk-metrics": "1.30.0",
|
||||
"@suaveplan/testing": "workspace:^",
|
||||
"@suaveplan/testing-integration-surrealdb": "workspace:^",
|
||||
"@types/node": "catalog:",
|
||||
"@vitest/coverage-istanbul": "catalog:testing",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:build",
|
||||
"vite-plugin-dts": "catalog:build",
|
||||
"vitest": "catalog:testing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": ["dist", "src", "surql", "README.md"]
|
||||
}
|
||||
Reference in New Issue
Block a user