qct-shared
v1.0.0
Published
Shared validation, utils, and common constants for QCT backend services
Readme
@qct/shared
Shared validation, utils, and common constants used across QCT backend services.
Install
npm install @qct/sharedUsage
Validation
const { hospitalId } = require("@qct/shared/validation");
const schema = Joi.object({
hospitalId: await hospitalId(),
});Subpaths
| Subpath | Contents |
| --- | --- |
| @qct/shared/validation | Joi-based request/payload validators (hospitalId) |
| @qct/shared/common | Shared regex patterns |
| @qct/shared/utils | Reserved — not yet populated |
| @qct/shared/winston | Reserved — not yet populated |
Development
npm install
npm run builddist/ is the published output (see the files field in package.json) and is rebuilt via the
prepare script whenever this package is installed as a dependency.
