102 lines
3.9 KiB
JSON
102 lines
3.9 KiB
JSON
{
|
|
"name": "@suaveplan/api-tenant-provider",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Abstract `TenantProvider` contract for the Suaveplan API plugin foundation. Enumerates the universe of tenants known to a host so per-tenant cron / queued jobs (manifest `perTenant: true`) and admin tooling can fan out one invocation per tenant. Ships the interface, the `TenantRecord` Zod schema, the `ListOpts` pagination shape, the `CapabilityId` augmentation contributing `\"tenant.provider\"`, the frozen `TENANT_PROVIDER_CODES` error registry, and a reusable `runTenantProviderConformance(factory)` harness — no concrete source (in-memory, DB, directory-service adapters land in sibling packages).",
|
|
"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"
|
|
}
|
|
},
|
|
"./provider": {
|
|
"import": {
|
|
"types": "./dist/provider/provider.d.ts",
|
|
"default": "./dist/provider/provider.js"
|
|
}
|
|
},
|
|
"./tenant-record": {
|
|
"import": {
|
|
"types": "./dist/tenant-record/tenant-record.d.ts",
|
|
"default": "./dist/tenant-record/tenant-record.js"
|
|
}
|
|
},
|
|
"./pagination": {
|
|
"import": {
|
|
"types": "./dist/pagination/pagination.d.ts",
|
|
"default": "./dist/pagination/pagination.js"
|
|
}
|
|
},
|
|
"./capability-id": {
|
|
"import": {
|
|
"types": "./dist/capability-id/capability-id.d.ts",
|
|
"default": "./dist/capability-id/capability-id.js"
|
|
}
|
|
},
|
|
"./error-codes": {
|
|
"import": {
|
|
"types": "./dist/error-codes/error-codes.d.ts",
|
|
"default": "./dist/error-codes/error-codes.js"
|
|
}
|
|
},
|
|
"./testing": {
|
|
"import": {
|
|
"types": "./dist/testing/conformance.d.ts",
|
|
"default": "./dist/testing/conformance.js"
|
|
}
|
|
},
|
|
"./chain": {
|
|
"import": {
|
|
"types": "./dist/chain/chain.d.ts",
|
|
"default": "./dist/chain/chain.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage --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": {
|
|
"@suaveplan/api-types": "workspace:^",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"fast-check": "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", "README.md"]
|
|
}
|