From bc4ecf8ac2b70792fb43a9ca2c84cd5a08f2445e Mon Sep 17 00:00:00 2001 From: zulfikar-ditya Date: Tue, 17 Feb 2026 14:54:16 +0700 Subject: [PATCH 1/4] refactor --- .husky/pre-commit | 9 +- Makefile | 121 ++++++++----- TODO.md | 162 +++++++++++++++++ bun.lock | 238 ++++++++++++++++++++++++- eslint.config.mjs | 13 ++ package.json | 19 +- src/libs/utils/{toolkit => }/date.ts | 8 +- src/libs/utils/fastify/logger.ts | 3 +- src/libs/utils/index.ts | 12 +- src/libs/utils/{toolkit => }/number.ts | 0 src/libs/utils/{toolkit => }/string.ts | 0 src/libs/utils/toolkit/index.ts | 3 - 12 files changed, 520 insertions(+), 68 deletions(-) create mode 100644 TODO.md rename src/libs/utils/{toolkit => }/date.ts (100%) rename src/libs/utils/{toolkit => }/number.ts (100%) rename src/libs/utils/{toolkit => }/string.ts (100%) delete mode 100644 src/libs/utils/toolkit/index.ts diff --git a/.husky/pre-commit b/.husky/pre-commit index 7c433c9..cfe84d2 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,6 @@ -bun install -bunx lint-staged -make db-generate -make db-migrate +bun install +bun lint-staged +bunx drizzle-kit generate +bunx drizzle-kit migrate +bun run tsc --noEmit bun run build:all \ No newline at end of file diff --git a/Makefile b/Makefile index 7c9aaa7..5a6cba7 100644 --- a/Makefile +++ b/Makefile @@ -1,36 +1,52 @@ -.PHONY: help dev build start lint format seed db-generate db-migrate db-push db-pull db-studio db-drop dev-worker build-worker start-worker dev-server build-server start-server dev-all build-all start-all +.PHONY: help install dev-api build-api start-api dev-server build-server start-server dev-worker build-worker start-worker dev-all build-all start-all lint lint-fix format typecheck db-generate db-migrate db-push db-pull db-studio db-drop db-seed db-clickhouse-migrate db-clickhouse-status fresh reset # Default target help: @echo "Available commands:" + @echo "" + @echo " Setup:" + @echo " install - Install dependencies" + @echo "" @echo " Development:" - @echo " dev-api - Start API development server with hot reload" - @echo " build-api - Build the API application" - @echo " start-api - Start the API production server" - @echo " dev-server - Start SERVER development server with hot reload" - @echo " build-server - Build the SERVER application" - @echo " start-server - Start the SERVER production server" - @echo " dev-worker - Start WORKER development with hot reload" - @echo " build-worker - Build the WORKER application" - @echo " start-worker - Start the WORKER production service" - @echo " dev-all - Run server and worker in dev mode concurrently" - @echo " build-all - Build server and worker concurrently" - @echo " start-all - Run server and worker in production concurrently" - @echo " lint - Run ESLint" - @echo " format - Format code with Prettier" - @echo " seed - Run database seeder" + @echo " dev-api - Start API development server with hot reload" + @echo " dev-server - Start SERVER development server with hot reload" + @echo " dev-worker - Start WORKER development with hot reload" + @echo " dev-all - Run server and worker in dev mode concurrently" + @echo "" + @echo " Build:" + @echo " build-api - Build the API application" + @echo " build-server - Build the SERVER application" + @echo " build-worker - Build the WORKER application" + @echo " build-all - Build server and worker concurrently" + @echo "" + @echo " Production:" + @echo " start-api - Start the API production server" + @echo " start-server - Start the SERVER production server" + @echo " start-worker - Start the WORKER production service" + @echo " start-all - Run server and worker in production concurrently" @echo "" - @echo " Database (Drizzle):" - @echo " db-generate - Generate migration files" - @echo " db-migrate - Run pending migrations" - @echo " db-push - Push schema to database (dev only)" - @echo " db-pull - Pull schema from database" - @echo " db-studio - Open Drizzle Studio" - @echo " db-drop - Drop all tables (dangerous!)" + @echo " Code Quality:" + @echo " lint - Run ESLint" + @echo " lint-fix - Fix ESLint issues" + @echo " format - Format code with Prettier" + @echo " typecheck - Run TypeScript type checking" + @echo "" + @echo " Database (PostgreSQL/Drizzle):" + @echo " db-generate - Generate migration files" + @echo " db-migrate - Run pending migrations" + @echo " db-push - Push schema to database (dev only)" + @echo " db-pull - Pull schema from database" + @echo " db-studio - Open Drizzle Studio" + @echo " db-drop - Drop all tables (dangerous!)" + @echo " db-seed - Seed database with initial data" @echo "" @echo " Database (ClickHouse):" - @echo " migrate-clickhouse - Run ClickHouse migrations" - @echo " migrate-clickhouse-status - Check status of ClickHouse migrations" + @echo " db-clickhouse-migrate - Run ClickHouse migrations" + @echo " db-clickhouse-status - Check ClickHouse migration status" + @echo "" + @echo " Workflows:" + @echo " fresh - Drop, push schema, and seed (dev only)" + @echo " reset - Generate, migrate, and seed" install: bun install @@ -63,51 +79,60 @@ build-worker: start-worker: bun run start:worker +dev-all: + bun run dev:all + +build-all: + bun run build:all + +start-all: + bun run start:all + +# Code quality lint: bun run lint +lint-fix: + bun run lint:fix + format: bun run format -db-seed: - bun run ./src/libs/database/seed/index.ts - -migrate-clickhouse: - bun run ./src/libs/database/clickhouse/scripts/migrate.ts migrate - -migrate-clickhouse-status: - bun run ./src/libs/database/clickhouse/scripts/migrate.ts status +typecheck: + bun run typecheck +# Database (PostgreSQL/Drizzle) db-generate: - bunx --bun drizzle-kit generate + bun run db:generate db-migrate: - bunx --bun drizzle-kit migrate + bun run db:migrate db-push: - bunx --bun drizzle-kit push + bun run db:push db-pull: - bunx --bun drizzle-kit introspect + bun run db:pull db-studio: - bunx --bun drizzle-kit studio + bun run db:studio db-drop: - bunx --bun drizzle-kit drop + bun run db:drop -dev-all: - bun run dev:all +db-seed: + bun run db:seed -build-all: - bun run build:all +# Database (ClickHouse) +db-clickhouse-migrate: + bun run db:clickhouse:migrate -start-all: - bun run start:all +db-clickhouse-status: + bun run db:clickhouse:status -# Combined commands for common workflows -fresh: db-drop db-push seed +# Combined workflows +fresh: db-drop db-push db-seed @echo "Database refreshed and seeded!" -reset: db-generate db-migrate seed +reset: db-generate db-migrate db-seed @echo "Database migrated and seeded!" \ No newline at end of file diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..aca599e --- /dev/null +++ b/TODO.md @@ -0,0 +1,162 @@ +# Clean Fastify - Improvement TODO List + +## 🔴 High Priority + +### Script Consistency + +- [ ] **Fix typo in lint:fix script** + - Current: `"link:fix"` (typo - should be `lint:fix`) + - Fix to: `"lint:fix": "bun run eslint . --ext .ts,.js --fix"` + +### ESLint Configuration + +- [ ] **Add import sorting rules** + - Missing: `eslint-plugin-simple-import-sort` (not installed) + - Add import ordering rules (like clean-hono and clean-elysia) + - Add `eslint-plugin-import` for duplicate detection + +### Project Structure + +- [ ] **Reorganize utilities structure** + - Current: `libs/utils/toolkit/`, `libs/utils/fastify/`, `libs/utils/security/` + - Flatten: Move `toolkit/` files (date.ts, number.ts, string.ts) to `utils/` root + - Update `utils/index.ts` to flat export style (matching clean-hono) + +## 🟡 Medium Priority + +### OpenAPI Schema Enhancement + +- [ ] **Improve OpenAPI schema definitions** + - Add descriptions and examples to Zod schemas + - Add `.openapi()` metadata for all request/response schemas + - Improve error response schemas with validation examples + - Reference clean-hono's `commonResponse` pattern + +### Middleware & Plugins + +- [ ] **Add performance monitoring middleware** + - No performance logging middleware exists + - Add request duration logging (like clean-hono's `performanceMiddleware`) + - Warn on slow requests (>1s threshold) + +- [ ] **Add body size limit configuration** + - No explicit body size limit configured + - Add Fastify body limit via `bodyLimit` option in server configuration + +### Service Layer + +- [ ] **Add service interfaces** + - Current: Services are plain objects without interfaces + - Add TypeScript interfaces for all services (like clean-hono's `service.interface.ts`) + - Benefits: Better type safety, documentation, and testability + +### Module Organization + +- [ ] **Standardize module file naming** + - Current: Routes in `routes/` directory, services in `services/` directory (separated) + - Consider: Co-locate routes, schemas, services per module (like clean-hono) + - Each module folder: `routes.ts`, `schema.ts`, `service.interface.ts`, `service.ts` + +### Error Handling + +- [ ] **Add more error types** + - Missing: `ServiceUnavailableError` (503), `RateLimitError` (429) + - Align with clean-hono's comprehensive error class set + - Add error codes constants (like clean-hono's `error-codes.constant.ts`) + +## 🟢 Low Priority + +### Documentation + +- [ ] **Enhance README.md** + - Add architecture diagrams + - Document API authentication flow + - Add examples for common use cases + - Document DI pattern with tsyringe + - Add troubleshooting section + +### Testing + +- [ ] **Add test infrastructure** + - No tests currently exist + - Add testing framework (Bun test or Vitest) + - Add unit tests for services + - Add integration tests for API endpoints + - Add E2E tests for critical flows + +### Developer Experience + +- [ ] **Add Makefile** (like clean-hono) + - Provide convenient shortcuts for common tasks + - Example: `make dev-all`, `make fresh`, `make reset` + +### Environment Files + +- [ ] **Enhance .env.example** + - Add more detailed comments for each variable + - Document which variables are required vs optional + - Match clean-hono's detailed env structure + +### Database + +- [ ] **Add database seed scripts to package.json** + - No `db:seed` script in package.json + - Add: `db:generate`, `db:migrate`, `db:push`, `db:studio`, `db:drop`, `db:seed` + - Add ClickHouse migration scripts + +### Logging + +- [ ] **Enhance logging configuration** + - Add log correlation IDs + - Ensure sensitive data redaction is consistent + - Add structured logging improvements + +### Configuration + +- [ ] **Consolidate configuration exports** + - Add a single config index with all configs + - Ensure consistent naming across config files + +## 📊 Comparison Notes (vs clean-hono) + +**What clean-hono does better:** + +1. ✅ Better organized module structure (co-located files) +2. ✅ Service interfaces for all services +3. ✅ Import sorting in ESLint +4. ✅ Performance monitoring middleware +5. ✅ More comprehensive error types +6. ✅ OpenAPI schema descriptions and examples +7. ✅ Makefile for common tasks +8. ✅ Database seed/migration scripts in package.json + +**What clean-fastify does better:** + +1. ✅ Full DI with tsyringe (decorator-based, more powerful) +2. ✅ Separate server/worker build targets with concurrently +3. ✅ Auto-loading routes with @fastify/autoload +4. ✅ ClickHouse analytics integration +5. ✅ Comprehensive health check endpoint + +## 🎯 Recommended Implementation Order + +1. **Phase 1** (Quick wins): + - Fix lint:fix typo + - Add import sorting to ESLint + - Flatten utils structure + - Add database scripts to package.json + +2. **Phase 2** (API improvements): + - Add OpenAPI descriptions/examples to schemas + - Add performance monitoring middleware + - Add missing error types + +3. **Phase 3** (Architecture): + - Add service interfaces + - Consider module co-location + - Enhance configuration management + +4. **Phase 4** (Quality): + - Add testing infrastructure + - Enhance documentation + - Add Makefile diff --git a/bun.lock b/bun.lock index 98fc624..a328942 100644 --- a/bun.lock +++ b/bun.lock @@ -47,7 +47,9 @@ "drizzle-kit": "^0.31.8", "eslint": "^9.39.2", "eslint-config-prettier": "^10.1.8", + "eslint-plugin-import": "^2.32.0", "eslint-plugin-prettier": "^5.5.5", + "eslint-plugin-simple-import-sort": "^12.1.1", "husky": "^9.1.7", "lint-staged": "^16.2.7", "prettier": "^3.8.1", @@ -194,6 +196,8 @@ "@pkgr/core": ["@pkgr/core@0.2.9", "", {}, "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA=="], + "@rtsao/scc": ["@rtsao/scc@1.1.0", "", {}, "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g=="], + "@scalar/core": ["@scalar/core@0.3.36", "", { "dependencies": { "@scalar/types": "0.6.1" } }, "sha512-gdgoF/XP2RkvhqGlI0l2MWTR/2522GPdaiQkWwS348Po8oCkJy2npxFuZbC2jtp6DIrWDrOD6qYgHssyzMmcrA=="], "@scalar/fastify-api-reference": ["@scalar/fastify-api-reference@1.44.9", "", { "dependencies": { "@scalar/core": "0.3.36", "@scalar/openapi-parser": "0.24.6", "@scalar/openapi-types": "0.5.3", "fastify-plugin": "^4.5.1", "github-slugger": "^2.0.0" } }, "sha512-qGA7dNRN38B8y8a2mOSPYX3tJtL0knVUN7YCNlSjmOm8flCQh4wchE5qKBf0R2KFFiwrc9Hd0QkEBLiT9EAc2w=="], @@ -220,6 +224,8 @@ "@types/json-schema": ["@types/json-schema@7.0.15", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="], + "@types/json5": ["@types/json5@0.0.29", "", {}, "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ=="], + "@types/node": ["@types/node@25.2.0", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-DZ8VwRFUNzuqJ5khrvwMXHmvPe+zGayJhr2CDNiKB1WBE1ST8Djl00D0IC4vvNmHMdj6DlbYRIaFE7WHjlDl5w=="], "@types/nodemailer": ["@types/nodemailer@7.0.9", "", { "dependencies": { "@types/node": "*" } }, "sha512-vI8oF1M+8JvQhsId0Pc38BdUP2evenIIys7c7p+9OZXSPOH5c1dyINP1jT8xQ2xPuBUXmIC87s+91IZMDjH8Ow=="], @@ -266,10 +272,26 @@ "argparse": ["argparse@2.0.1", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="], + "array-buffer-byte-length": ["array-buffer-byte-length@1.0.2", "", { "dependencies": { "call-bound": "^1.0.3", "is-array-buffer": "^3.0.5" } }, "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw=="], + + "array-includes": ["array-includes@3.1.9", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.4", "define-properties": "^1.2.1", "es-abstract": "^1.24.0", "es-object-atoms": "^1.1.1", "get-intrinsic": "^1.3.0", "is-string": "^1.1.1", "math-intrinsics": "^1.1.0" } }, "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ=="], + + "array.prototype.findlastindex": ["array.prototype.findlastindex@1.2.6", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.4", "define-properties": "^1.2.1", "es-abstract": "^1.23.9", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "es-shim-unscopables": "^1.1.0" } }, "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ=="], + + "array.prototype.flat": ["array.prototype.flat@1.3.3", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-shim-unscopables": "^1.0.2" } }, "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg=="], + + "array.prototype.flatmap": ["array.prototype.flatmap@1.3.3", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-shim-unscopables": "^1.0.2" } }, "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg=="], + + "arraybuffer.prototype.slice": ["arraybuffer.prototype.slice@1.0.4", "", { "dependencies": { "array-buffer-byte-length": "^1.0.1", "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "is-array-buffer": "^3.0.4" } }, "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ=="], + "asn1.js": ["asn1.js@5.4.1", "", { "dependencies": { "bn.js": "^4.0.0", "inherits": "^2.0.1", "minimalistic-assert": "^1.0.0", "safer-buffer": "^2.1.0" } }, "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA=="], + "async-function": ["async-function@1.0.0", "", {}, "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA=="], + "atomic-sleep": ["atomic-sleep@1.0.0", "", {}, "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ=="], + "available-typed-arrays": ["available-typed-arrays@1.0.7", "", { "dependencies": { "possible-typed-array-names": "^1.0.0" } }, "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ=="], + "avvio": ["avvio@9.1.0", "", { "dependencies": { "@fastify/error": "^4.0.0", "fastq": "^1.17.1" } }, "sha512-fYASnYi600CsH/j9EQov7lECAniYiBFiiAtBNuZYLA2leLe9qOvZzqYHFjtIj6gD2VMoMLP14834LFWvr4IfDw=="], "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], @@ -288,6 +310,12 @@ "bun-types": ["bun-types@1.3.8", "", { "dependencies": { "@types/node": "*" } }, "sha512-fL99nxdOWvV4LqjmC+8Q9kW3M4QTtTR1eePs94v5ctGqU8OeceWrSUaRw3JYb7tU3FkMIAjkueehrHPPPGKi5Q=="], + "call-bind": ["call-bind@1.0.8", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", "get-intrinsic": "^1.2.4", "set-function-length": "^1.2.2" } }, "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww=="], + + "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="], + + "call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="], + "callsites": ["callsites@3.1.0", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="], "chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], @@ -320,6 +348,12 @@ "crypto-js": ["crypto-js@4.2.0", "", {}, "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="], + "data-view-buffer": ["data-view-buffer@1.0.2", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-data-view": "^1.0.2" } }, "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ=="], + + "data-view-byte-length": ["data-view-byte-length@1.0.2", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-data-view": "^1.0.2" } }, "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ=="], + + "data-view-byte-offset": ["data-view-byte-offset@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-data-view": "^1.0.1" } }, "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ=="], + "dateformat": ["dateformat@4.6.3", "", {}, "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA=="], "dayjs": ["dayjs@1.11.19", "", {}, "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw=="], @@ -328,18 +362,26 @@ "deep-is": ["deep-is@0.1.4", "", {}, "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="], + "define-data-property": ["define-data-property@1.1.4", "", { "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", "gopd": "^1.0.1" } }, "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A=="], + + "define-properties": ["define-properties@1.2.1", "", { "dependencies": { "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", "object-keys": "^1.1.1" } }, "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg=="], + "denque": ["denque@2.1.0", "", {}, "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw=="], "dequal": ["dequal@2.0.3", "", {}, "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA=="], "detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="], + "doctrine": ["doctrine@2.1.0", "", { "dependencies": { "esutils": "^2.0.2" } }, "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw=="], + "dotenv": ["dotenv@17.2.3", "", {}, "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w=="], "drizzle-kit": ["drizzle-kit@0.31.8", "", { "dependencies": { "@drizzle-team/brocli": "^0.10.2", "@esbuild-kit/esm-loader": "^2.5.5", "esbuild": "^0.25.4", "esbuild-register": "^3.5.0" }, "bin": { "drizzle-kit": "bin.cjs" } }, "sha512-O9EC/miwdnRDY10qRxM8P3Pg8hXe3LyU4ZipReKOgTwn4OqANmftj8XJz1UPUAS6NMHf0E2htjsbQujUTkncCg=="], "drizzle-orm": ["drizzle-orm@0.45.1", "", { "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", "@electric-sql/pglite": ">=0.2.0", "@libsql/client": ">=0.10.0", "@libsql/client-wasm": ">=0.10.0", "@neondatabase/serverless": ">=0.10.0", "@op-engineering/op-sqlite": ">=2", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1.13", "@prisma/client": "*", "@tidbcloud/serverless": "*", "@types/better-sqlite3": "*", "@types/pg": "*", "@types/sql.js": "*", "@upstash/redis": ">=1.34.7", "@vercel/postgres": ">=0.8.0", "@xata.io/client": "*", "better-sqlite3": ">=7", "bun-types": "*", "expo-sqlite": ">=14.0.0", "gel": ">=2", "knex": "*", "kysely": "*", "mysql2": ">=2", "pg": ">=8", "postgres": ">=3", "sql.js": ">=1", "sqlite3": ">=5" }, "optionalPeers": ["@aws-sdk/client-rds-data", "@cloudflare/workers-types", "@electric-sql/pglite", "@libsql/client", "@libsql/client-wasm", "@neondatabase/serverless", "@op-engineering/op-sqlite", "@opentelemetry/api", "@planetscale/database", "@prisma/client", "@tidbcloud/serverless", "@types/better-sqlite3", "@types/pg", "@types/sql.js", "@upstash/redis", "@vercel/postgres", "@xata.io/client", "better-sqlite3", "bun-types", "expo-sqlite", "gel", "knex", "kysely", "mysql2", "pg", "postgres", "sql.js", "sqlite3"] }, "sha512-Te0FOdKIistGNPMq2jscdqngBRfBpC8uMFVwqjf6gtTVJHIQ/dosgV/CLBU2N4ZJBsXL5savCba9b0YJskKdcA=="], + "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], + "ecdsa-sig-formatter": ["ecdsa-sig-formatter@1.0.11", "", { "dependencies": { "safe-buffer": "^5.0.1" } }, "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ=="], "emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], @@ -350,6 +392,20 @@ "environment": ["environment@1.1.0", "", {}, "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q=="], + "es-abstract": ["es-abstract@1.24.1", "", { "dependencies": { "array-buffer-byte-length": "^1.0.2", "arraybuffer.prototype.slice": "^1.0.4", "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", "call-bound": "^1.0.4", "data-view-buffer": "^1.0.2", "data-view-byte-length": "^1.0.2", "data-view-byte-offset": "^1.0.1", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "es-set-tostringtag": "^2.1.0", "es-to-primitive": "^1.3.0", "function.prototype.name": "^1.1.8", "get-intrinsic": "^1.3.0", "get-proto": "^1.0.1", "get-symbol-description": "^1.1.0", "globalthis": "^1.0.4", "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", "has-proto": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "internal-slot": "^1.1.0", "is-array-buffer": "^3.0.5", "is-callable": "^1.2.7", "is-data-view": "^1.0.2", "is-negative-zero": "^2.0.3", "is-regex": "^1.2.1", "is-set": "^2.0.3", "is-shared-array-buffer": "^1.0.4", "is-string": "^1.1.1", "is-typed-array": "^1.1.15", "is-weakref": "^1.1.1", "math-intrinsics": "^1.1.0", "object-inspect": "^1.13.4", "object-keys": "^1.1.1", "object.assign": "^4.1.7", "own-keys": "^1.0.1", "regexp.prototype.flags": "^1.5.4", "safe-array-concat": "^1.1.3", "safe-push-apply": "^1.0.0", "safe-regex-test": "^1.1.0", "set-proto": "^1.0.0", "stop-iteration-iterator": "^1.1.0", "string.prototype.trim": "^1.2.10", "string.prototype.trimend": "^1.0.9", "string.prototype.trimstart": "^1.0.8", "typed-array-buffer": "^1.0.3", "typed-array-byte-length": "^1.0.3", "typed-array-byte-offset": "^1.0.4", "typed-array-length": "^1.0.7", "unbox-primitive": "^1.1.0", "which-typed-array": "^1.1.19" } }, "sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw=="], + + "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="], + + "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="], + + "es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="], + + "es-set-tostringtag": ["es-set-tostringtag@2.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA=="], + + "es-shim-unscopables": ["es-shim-unscopables@1.1.0", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw=="], + + "es-to-primitive": ["es-to-primitive@1.3.0", "", { "dependencies": { "is-callable": "^1.2.7", "is-date-object": "^1.0.5", "is-symbol": "^1.0.4" } }, "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g=="], + "esbuild": ["esbuild@0.25.12", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.12", "@esbuild/android-arm": "0.25.12", "@esbuild/android-arm64": "0.25.12", "@esbuild/android-x64": "0.25.12", "@esbuild/darwin-arm64": "0.25.12", "@esbuild/darwin-x64": "0.25.12", "@esbuild/freebsd-arm64": "0.25.12", "@esbuild/freebsd-x64": "0.25.12", "@esbuild/linux-arm": "0.25.12", "@esbuild/linux-arm64": "0.25.12", "@esbuild/linux-ia32": "0.25.12", "@esbuild/linux-loong64": "0.25.12", "@esbuild/linux-mips64el": "0.25.12", "@esbuild/linux-ppc64": "0.25.12", "@esbuild/linux-riscv64": "0.25.12", "@esbuild/linux-s390x": "0.25.12", "@esbuild/linux-x64": "0.25.12", "@esbuild/netbsd-arm64": "0.25.12", "@esbuild/netbsd-x64": "0.25.12", "@esbuild/openbsd-arm64": "0.25.12", "@esbuild/openbsd-x64": "0.25.12", "@esbuild/openharmony-arm64": "0.25.12", "@esbuild/sunos-x64": "0.25.12", "@esbuild/win32-arm64": "0.25.12", "@esbuild/win32-ia32": "0.25.12", "@esbuild/win32-x64": "0.25.12" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg=="], "esbuild-register": ["esbuild-register@3.6.0", "", { "dependencies": { "debug": "^4.3.4" }, "peerDependencies": { "esbuild": ">=0.12 <1" } }, "sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg=="], @@ -362,8 +418,16 @@ "eslint-config-prettier": ["eslint-config-prettier@10.1.8", "", { "peerDependencies": { "eslint": ">=7.0.0" }, "bin": { "eslint-config-prettier": "bin/cli.js" } }, "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w=="], + "eslint-import-resolver-node": ["eslint-import-resolver-node@0.3.9", "", { "dependencies": { "debug": "^3.2.7", "is-core-module": "^2.13.0", "resolve": "^1.22.4" } }, "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g=="], + + "eslint-module-utils": ["eslint-module-utils@2.12.1", "", { "dependencies": { "debug": "^3.2.7" } }, "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw=="], + + "eslint-plugin-import": ["eslint-plugin-import@2.32.0", "", { "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.9", "array.prototype.findlastindex": "^1.2.6", "array.prototype.flat": "^1.3.3", "array.prototype.flatmap": "^1.3.3", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.9", "eslint-module-utils": "^2.12.1", "hasown": "^2.0.2", "is-core-module": "^2.16.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", "object.fromentries": "^2.0.8", "object.groupby": "^1.0.3", "object.values": "^1.2.1", "semver": "^6.3.1", "string.prototype.trimend": "^1.0.9", "tsconfig-paths": "^3.15.0" }, "peerDependencies": { "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" } }, "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA=="], + "eslint-plugin-prettier": ["eslint-plugin-prettier@5.5.5", "", { "dependencies": { "prettier-linter-helpers": "^1.0.1", "synckit": "^0.11.12" }, "peerDependencies": { "@types/eslint": ">=8.0.0", "eslint": ">=8.0.0", "eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0", "prettier": ">=3.0.0" }, "optionalPeers": ["@types/eslint", "eslint-config-prettier"] }, "sha512-hscXkbqUZ2sPithAuLm5MXL+Wph+U7wHngPBv9OMWwlP8iaflyxpjTYZkmdgB4/vPIhemRlBEoLrH7UC1n7aUw=="], + "eslint-plugin-simple-import-sort": ["eslint-plugin-simple-import-sort@12.1.1", "", { "peerDependencies": { "eslint": ">=5.0.0" } }, "sha512-6nuzu4xwQtE3332Uz0to+TxDQYRLTKRESSc2hefVT48Zc8JthmN23Gx9lnYhu0FtkRSL1oxny3kJ2aveVhmOVA=="], + "eslint-scope": ["eslint-scope@8.4.0", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" } }, "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg=="], "eslint-visitor-keys": ["eslint-visitor-keys@4.2.1", "", {}, "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ=="], @@ -430,12 +494,28 @@ "flatted": ["flatted@3.3.3", "", {}, "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg=="], + "for-each": ["for-each@0.3.5", "", { "dependencies": { "is-callable": "^1.2.7" } }, "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg=="], + "fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], + "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="], + + "function.prototype.name": ["function.prototype.name@1.1.8", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "functions-have-names": "^1.2.3", "hasown": "^2.0.2", "is-callable": "^1.2.7" } }, "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q=="], + + "functions-have-names": ["functions-have-names@1.2.3", "", {}, "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ=="], + + "generator-function": ["generator-function@2.0.1", "", {}, "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g=="], + "get-caller-file": ["get-caller-file@2.0.5", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="], "get-east-asian-width": ["get-east-asian-width@1.4.0", "", {}, "sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q=="], + "get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="], + + "get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="], + + "get-symbol-description": ["get-symbol-description@1.1.0", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6" } }, "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg=="], + "get-tsconfig": ["get-tsconfig@4.13.1", "", { "dependencies": { "resolve-pkg-maps": "^1.0.0" } }, "sha512-EoY1N2xCn44xU6750Sx7OjOIT59FkmstNc3X6y5xpz7D5cBtZRe/3pSlTkDJgqsOk3WwZPkWfonhhUJfttQo3w=="], "github-slugger": ["github-slugger@2.0.0", "", {}, "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw=="], @@ -444,8 +524,24 @@ "globals": ["globals@14.0.0", "", {}, "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ=="], + "globalthis": ["globalthis@1.0.4", "", { "dependencies": { "define-properties": "^1.2.1", "gopd": "^1.0.1" } }, "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ=="], + + "gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="], + + "has-bigints": ["has-bigints@1.1.0", "", {}, "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg=="], + "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], + "has-property-descriptors": ["has-property-descriptors@1.0.2", "", { "dependencies": { "es-define-property": "^1.0.0" } }, "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg=="], + + "has-proto": ["has-proto@1.2.0", "", { "dependencies": { "dunder-proto": "^1.0.0" } }, "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ=="], + + "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="], + + "has-tostringtag": ["has-tostringtag@1.0.2", "", { "dependencies": { "has-symbols": "^1.0.3" } }, "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw=="], + + "hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="], + "helmet": ["helmet@8.1.0", "", {}, "sha512-jOiHyAZsmnr8LqoPGmCjYAaiuWwjAPLgY8ZX2XrmHawt99/u1y6RgrZMTeoPfpUbV96HOalYgz1qzkRbw54Pmg=="], "help-me": ["help-me@5.0.0", "", {}, "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg=="], @@ -460,18 +556,66 @@ "inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="], + "internal-slot": ["internal-slot@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "hasown": "^2.0.2", "side-channel": "^1.1.0" } }, "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw=="], + "ioredis": ["ioredis@5.9.2", "", { "dependencies": { "@ioredis/commands": "1.5.0", "cluster-key-slot": "^1.1.0", "debug": "^4.3.4", "denque": "^2.1.0", "lodash.defaults": "^4.2.0", "lodash.isarguments": "^3.1.0", "redis-errors": "^1.2.0", "redis-parser": "^3.0.0", "standard-as-callback": "^2.1.0" } }, "sha512-tAAg/72/VxOUW7RQSX1pIxJVucYKcjFjfvj60L57jrZpYCHC3XN0WCQ3sNYL4Gmvv+7GPvTAjc+KSdeNuE8oWQ=="], "ipaddr.js": ["ipaddr.js@2.3.0", "", {}, "sha512-Zv/pA+ciVFbCSBBjGfaKUya/CcGmUHzTydLMaTwrUUEM2DIEO3iZvueGxmacvmN50fGpGVKeTXpb2LcYQxeVdg=="], + "is-array-buffer": ["is-array-buffer@3.0.5", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "get-intrinsic": "^1.2.6" } }, "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A=="], + + "is-async-function": ["is-async-function@2.1.1", "", { "dependencies": { "async-function": "^1.0.0", "call-bound": "^1.0.3", "get-proto": "^1.0.1", "has-tostringtag": "^1.0.2", "safe-regex-test": "^1.1.0" } }, "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ=="], + + "is-bigint": ["is-bigint@1.1.0", "", { "dependencies": { "has-bigints": "^1.0.2" } }, "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ=="], + + "is-boolean-object": ["is-boolean-object@1.2.2", "", { "dependencies": { "call-bound": "^1.0.3", "has-tostringtag": "^1.0.2" } }, "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A=="], + + "is-callable": ["is-callable@1.2.7", "", {}, "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA=="], + + "is-core-module": ["is-core-module@2.16.1", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="], + + "is-data-view": ["is-data-view@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "get-intrinsic": "^1.2.6", "is-typed-array": "^1.1.13" } }, "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw=="], + + "is-date-object": ["is-date-object@1.1.0", "", { "dependencies": { "call-bound": "^1.0.2", "has-tostringtag": "^1.0.2" } }, "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg=="], + "is-extglob": ["is-extglob@2.1.1", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="], + "is-finalizationregistry": ["is-finalizationregistry@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3" } }, "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg=="], + "is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="], + "is-generator-function": ["is-generator-function@1.1.2", "", { "dependencies": { "call-bound": "^1.0.4", "generator-function": "^2.0.0", "get-proto": "^1.0.1", "has-tostringtag": "^1.0.2", "safe-regex-test": "^1.1.0" } }, "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA=="], + "is-glob": ["is-glob@4.0.3", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="], + "is-map": ["is-map@2.0.3", "", {}, "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw=="], + + "is-negative-zero": ["is-negative-zero@2.0.3", "", {}, "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw=="], + "is-number": ["is-number@7.0.0", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="], + "is-number-object": ["is-number-object@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3", "has-tostringtag": "^1.0.2" } }, "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw=="], + + "is-regex": ["is-regex@1.2.1", "", { "dependencies": { "call-bound": "^1.0.2", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g=="], + + "is-set": ["is-set@2.0.3", "", {}, "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg=="], + + "is-shared-array-buffer": ["is-shared-array-buffer@1.0.4", "", { "dependencies": { "call-bound": "^1.0.3" } }, "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A=="], + + "is-string": ["is-string@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3", "has-tostringtag": "^1.0.2" } }, "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA=="], + + "is-symbol": ["is-symbol@1.1.1", "", { "dependencies": { "call-bound": "^1.0.2", "has-symbols": "^1.1.0", "safe-regex-test": "^1.1.0" } }, "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w=="], + + "is-typed-array": ["is-typed-array@1.1.15", "", { "dependencies": { "which-typed-array": "^1.1.16" } }, "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ=="], + + "is-weakmap": ["is-weakmap@2.0.2", "", {}, "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w=="], + + "is-weakref": ["is-weakref@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3" } }, "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew=="], + + "is-weakset": ["is-weakset@2.0.4", "", { "dependencies": { "call-bound": "^1.0.3", "get-intrinsic": "^1.2.6" } }, "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ=="], + + "isarray": ["isarray@2.0.5", "", {}, "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="], + "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], "joycon": ["joycon@3.1.1", "", {}, "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw=="], @@ -488,6 +632,8 @@ "json-stable-stringify-without-jsonify": ["json-stable-stringify-without-jsonify@1.0.1", "", {}, "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw=="], + "json5": ["json5@1.0.2", "", { "dependencies": { "minimist": "^1.2.0" }, "bin": { "json5": "lib/cli.js" } }, "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA=="], + "jsonpointer": ["jsonpointer@5.0.1", "", {}, "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ=="], "keyv": ["keyv@4.5.4", "", { "dependencies": { "json-buffer": "3.0.1" } }, "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw=="], @@ -514,6 +660,8 @@ "luxon": ["luxon@3.7.2", "", {}, "sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew=="], + "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], + "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="], "mimic-function": ["mimic-function@5.0.1", "", {}, "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA=="], @@ -544,6 +692,18 @@ "nodemailer": ["nodemailer@7.0.13", "", {}, "sha512-PNDFSJdP+KFgdsG3ZzMXCgquO7I6McjY2vlqILjtJd0hy8wEvtugS9xKRF2NWlPNGxvLCXlTNIae4serI7dinw=="], + "object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="], + + "object-keys": ["object-keys@1.1.1", "", {}, "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="], + + "object.assign": ["object.assign@4.1.7", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0", "has-symbols": "^1.1.0", "object-keys": "^1.1.1" } }, "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw=="], + + "object.fromentries": ["object.fromentries@2.0.8", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.2", "es-object-atoms": "^1.0.0" } }, "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ=="], + + "object.groupby": ["object.groupby@1.0.3", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.2" } }, "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ=="], + + "object.values": ["object.values@1.2.1", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA=="], + "obliterator": ["obliterator@2.0.5", "", {}, "sha512-42CPE9AhahZRsMNslczq0ctAEtqk8Eka26QofnqC346BZdHDySk3LWka23LI7ULIw11NmltpiLagIq8gBozxTw=="], "on-exit-leak-free": ["on-exit-leak-free@2.1.2", "", {}, "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA=="], @@ -556,6 +716,8 @@ "optionator": ["optionator@0.9.4", "", { "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", "word-wrap": "^1.2.5" } }, "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g=="], + "own-keys": ["own-keys@1.0.1", "", { "dependencies": { "get-intrinsic": "^1.2.6", "object-keys": "^1.1.1", "safe-push-apply": "^1.0.0" } }, "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg=="], + "p-limit": ["p-limit@3.1.0", "", { "dependencies": { "yocto-queue": "^0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="], "p-locate": ["p-locate@5.0.0", "", { "dependencies": { "p-limit": "^3.0.2" } }, "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw=="], @@ -566,6 +728,8 @@ "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="], + "path-parse": ["path-parse@1.0.7", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="], + "pg": ["pg@8.18.0", "", { "dependencies": { "pg-connection-string": "^2.11.0", "pg-pool": "^3.11.0", "pg-protocol": "^1.11.0", "pg-types": "2.2.0", "pgpass": "1.0.5" }, "optionalDependencies": { "pg-cloudflare": "^1.3.0" }, "peerDependencies": { "pg-native": ">=3.0.1" }, "optionalPeers": ["pg-native"] }, "sha512-xqrUDL1b9MbkydY/s+VZ6v+xiMUmOUk7SS9d/1kpyQxoJ6U9AO1oIJyUWVZojbfe5Cc/oluutcgFG4L9RDP1iQ=="], "pg-cloudflare": ["pg-cloudflare@1.3.0", "", {}, "sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ=="], @@ -594,6 +758,8 @@ "pino-std-serializers": ["pino-std-serializers@7.1.0", "", {}, "sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw=="], + "possible-typed-array-names": ["possible-typed-array-names@1.1.0", "", {}, "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg=="], + "postgres-array": ["postgres-array@2.0.0", "", {}, "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA=="], "postgres-bytea": ["postgres-bytea@1.0.1", "", {}, "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ=="], @@ -624,10 +790,16 @@ "reflect-metadata": ["reflect-metadata@0.2.2", "", {}, "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q=="], + "reflect.getprototypeof": ["reflect.getprototypeof@1.0.10", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.9", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", "get-intrinsic": "^1.2.7", "get-proto": "^1.0.1", "which-builtin-type": "^1.2.1" } }, "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw=="], + + "regexp.prototype.flags": ["regexp.prototype.flags@1.5.4", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-errors": "^1.3.0", "get-proto": "^1.0.1", "gopd": "^1.2.0", "set-function-name": "^2.0.2" } }, "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA=="], + "require-directory": ["require-directory@2.1.1", "", {}, "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="], "require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="], + "resolve": ["resolve@1.22.11", "", { "dependencies": { "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ=="], + "resolve-from": ["resolve-from@4.0.0", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="], "resolve-pkg-maps": ["resolve-pkg-maps@1.0.0", "", {}, "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw=="], @@ -642,8 +814,14 @@ "rxjs": ["rxjs@7.8.2", "", { "dependencies": { "tslib": "^2.1.0" } }, "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA=="], + "safe-array-concat": ["safe-array-concat@1.1.3", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.2", "get-intrinsic": "^1.2.6", "has-symbols": "^1.1.0", "isarray": "^2.0.5" } }, "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q=="], + "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], + "safe-push-apply": ["safe-push-apply@1.0.0", "", { "dependencies": { "es-errors": "^1.3.0", "isarray": "^2.0.5" } }, "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA=="], + + "safe-regex-test": ["safe-regex-test@1.1.0", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-regex": "^1.2.1" } }, "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw=="], + "safe-regex2": ["safe-regex2@5.0.0", "", { "dependencies": { "ret": "~0.5.0" } }, "sha512-YwJwe5a51WlK7KbOJREPdjNrpViQBI3p4T50lfwPuDhZnE3XGVTlGvi+aolc5+RvxDD6bnUmjVsU9n1eboLUYw=="], "safe-stable-stringify": ["safe-stable-stringify@2.5.0", "", {}, "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA=="], @@ -652,16 +830,30 @@ "secure-json-parse": ["secure-json-parse@4.1.0", "", {}, "sha512-l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA=="], - "semver": ["semver@7.7.3", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q=="], + "semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], "set-cookie-parser": ["set-cookie-parser@2.7.2", "", {}, "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw=="], + "set-function-length": ["set-function-length@1.2.2", "", { "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", "has-property-descriptors": "^1.0.2" } }, "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg=="], + + "set-function-name": ["set-function-name@2.0.2", "", { "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "functions-have-names": "^1.2.3", "has-property-descriptors": "^1.0.2" } }, "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ=="], + + "set-proto": ["set-proto@1.0.0", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0" } }, "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw=="], + "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="], "shell-quote": ["shell-quote@1.8.3", "", {}, "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw=="], + "side-channel": ["side-channel@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw=="], + + "side-channel-list": ["side-channel-list@1.0.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3" } }, "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA=="], + + "side-channel-map": ["side-channel-map@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" } }, "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA=="], + + "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="], + "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], "slice-ansi": ["slice-ansi@7.1.2", "", { "dependencies": { "ansi-styles": "^6.2.1", "is-fullwidth-code-point": "^5.0.0" } }, "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w=="], @@ -678,16 +870,28 @@ "steed": ["steed@1.1.3", "", { "dependencies": { "fastfall": "^1.5.0", "fastparallel": "^2.2.0", "fastq": "^1.3.0", "fastseries": "^1.7.0", "reusify": "^1.0.0" } }, "sha512-EUkci0FAUiE4IvGTSKcDJIQ/eRUP2JJb56+fvZ4sdnguLTqIdKjSxUe138poW8mkvKWXW2sFPrgTsxqoISnmoA=="], + "stop-iteration-iterator": ["stop-iteration-iterator@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "internal-slot": "^1.1.0" } }, "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ=="], + "string-argv": ["string-argv@0.3.2", "", {}, "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q=="], "string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + "string.prototype.trim": ["string.prototype.trim@1.2.10", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.2", "define-data-property": "^1.1.4", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-object-atoms": "^1.0.0", "has-property-descriptors": "^1.0.2" } }, "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA=="], + + "string.prototype.trimend": ["string.prototype.trimend@1.0.9", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.2", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ=="], + + "string.prototype.trimstart": ["string.prototype.trimstart@1.0.8", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg=="], + "strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + "strip-bom": ["strip-bom@3.0.0", "", {}, "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA=="], + "strip-json-comments": ["strip-json-comments@5.0.3", "", {}, "sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw=="], "supports-color": ["supports-color@8.1.1", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="], + "supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="], + "synckit": ["synckit@0.11.12", "", { "dependencies": { "@pkgr/core": "^0.2.9" } }, "sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ=="], "tagged-tag": ["tagged-tag@1.0.0", "", {}, "sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng=="], @@ -704,6 +908,8 @@ "ts-api-utils": ["ts-api-utils@2.4.0", "", { "peerDependencies": { "typescript": ">=4.8.4" } }, "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA=="], + "tsconfig-paths": ["tsconfig-paths@3.15.0", "", { "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg=="], + "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], "tsx": ["tsx@4.21.0", "", { "dependencies": { "esbuild": "~0.27.0", "get-tsconfig": "^4.7.5" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw=="], @@ -714,10 +920,20 @@ "type-fest": ["type-fest@5.4.3", "", { "dependencies": { "tagged-tag": "^1.0.0" } }, "sha512-AXSAQJu79WGc79/3e9/CR77I/KQgeY1AhNvcShIH4PTcGYyC4xv6H4R4AUOwkPS5799KlVDAu8zExeCrkGquiA=="], + "typed-array-buffer": ["typed-array-buffer@1.0.3", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-typed-array": "^1.1.14" } }, "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw=="], + + "typed-array-byte-length": ["typed-array-byte-length@1.0.3", "", { "dependencies": { "call-bind": "^1.0.8", "for-each": "^0.3.3", "gopd": "^1.2.0", "has-proto": "^1.2.0", "is-typed-array": "^1.1.14" } }, "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg=="], + + "typed-array-byte-offset": ["typed-array-byte-offset@1.0.4", "", { "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", "for-each": "^0.3.3", "gopd": "^1.2.0", "has-proto": "^1.2.0", "is-typed-array": "^1.1.15", "reflect.getprototypeof": "^1.0.9" } }, "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ=="], + + "typed-array-length": ["typed-array-length@1.0.7", "", { "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", "gopd": "^1.0.1", "is-typed-array": "^1.1.13", "possible-typed-array-names": "^1.0.0", "reflect.getprototypeof": "^1.0.6" } }, "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg=="], + "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], "typescript-eslint": ["typescript-eslint@8.54.0", "", { "dependencies": { "@typescript-eslint/eslint-plugin": "8.54.0", "@typescript-eslint/parser": "8.54.0", "@typescript-eslint/typescript-estree": "8.54.0", "@typescript-eslint/utils": "8.54.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-CKsJ+g53QpsNPqbzUsfKVgd3Lny4yKZ1pP4qN3jdMOg/sisIDLGyDMezycquXLE5JsEU0wp3dGNdzig0/fmSVQ=="], + "unbox-primitive": ["unbox-primitive@1.1.0", "", { "dependencies": { "call-bound": "^1.0.3", "has-bigints": "^1.0.2", "has-symbols": "^1.1.0", "which-boxed-primitive": "^1.1.1" } }, "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw=="], + "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="], "uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="], @@ -726,6 +942,14 @@ "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + "which-boxed-primitive": ["which-boxed-primitive@1.1.1", "", { "dependencies": { "is-bigint": "^1.1.0", "is-boolean-object": "^1.2.1", "is-number-object": "^1.1.1", "is-string": "^1.1.1", "is-symbol": "^1.1.1" } }, "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA=="], + + "which-builtin-type": ["which-builtin-type@1.2.1", "", { "dependencies": { "call-bound": "^1.0.2", "function.prototype.name": "^1.1.6", "has-tostringtag": "^1.0.2", "is-async-function": "^2.0.0", "is-date-object": "^1.1.0", "is-finalizationregistry": "^1.1.0", "is-generator-function": "^1.0.10", "is-regex": "^1.2.1", "is-weakref": "^1.0.2", "isarray": "^2.0.5", "which-boxed-primitive": "^1.1.0", "which-collection": "^1.0.2", "which-typed-array": "^1.1.16" } }, "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q=="], + + "which-collection": ["which-collection@1.0.2", "", { "dependencies": { "is-map": "^2.0.3", "is-set": "^2.0.3", "is-weakmap": "^2.0.2", "is-weakset": "^2.0.3" } }, "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw=="], + + "which-typed-array": ["which-typed-array@1.1.20", "", { "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", "call-bound": "^1.0.4", "for-each": "^0.3.5", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" } }, "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg=="], + "word-wrap": ["word-wrap@1.2.5", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="], "wrap-ansi": ["wrap-ansi@9.0.2", "", { "dependencies": { "ansi-styles": "^6.2.1", "string-width": "^7.0.0", "strip-ansi": "^7.1.0" } }, "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww=="], @@ -760,6 +984,10 @@ "@typescript-eslint/typescript-estree/minimatch": ["minimatch@9.0.5", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="], + "@typescript-eslint/typescript-estree/semver": ["semver@7.7.3", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q=="], + + "bullmq/semver": ["semver@7.7.3", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q=="], + "chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="], "cli-truncate/string-width": ["string-width@8.1.1", "", { "dependencies": { "get-east-asian-width": "^1.3.0", "strip-ansi": "^7.1.0" } }, "sha512-KpqHIdDL9KwYk22wEOg/VIqYbrnLeSApsKT/bSj6Ez7pn3CftUiLAv2Lccpq1ALcpLV9UX1Ppn92npZWu2w/aw=="], @@ -770,6 +998,14 @@ "eslint/ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="], + "eslint-import-resolver-node/debug": ["debug@3.2.7", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="], + + "eslint-module-utils/debug": ["debug@3.2.7", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="], + + "eslint-plugin-import/debug": ["debug@3.2.7", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="], + + "fastify/semver": ["semver@7.7.3", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q=="], + "fdir/picomatch": ["picomatch@4.0.3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="], "light-my-request/process-warning": ["process-warning@4.0.1", "", {}, "sha512-3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q=="], diff --git a/eslint.config.mjs b/eslint.config.mjs index 236d458..2d61157 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,6 +1,8 @@ // @ts-check import eslint from "@eslint/js"; import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"; +import importPlugin from "eslint-plugin-import"; +import simpleImportSort from "eslint-plugin-simple-import-sort"; import globals from "globals"; import tseslint from "typescript-eslint"; @@ -18,6 +20,7 @@ export default tseslint.config( eslint.configs.recommended, ...tseslint.configs.recommendedTypeChecked, eslintPluginPrettierRecommended, + { languageOptions: { globals: { @@ -32,6 +35,11 @@ export default tseslint.config( tsconfigRootDir: import.meta.dirname, }, }, + + plugins: { + import: importPlugin, + "simple-import-sort": simpleImportSort, + }, }, { rules: { @@ -52,6 +60,11 @@ export default tseslint.config( ], semi: ["error", "always"], + "simple-import-sort/imports": "error", + "simple-import-sort/exports": "error", + "import/first": "error", + "import/no-duplicates": "error", + "no-unused-expressions": "error", "@typescript-eslint/no-unused-vars": [ "error", diff --git a/package.json b/package.json index 9ca0de7..096598c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,16 @@ "start:worker": "NODE_ENV=production bun dist/worker/index.js", "start:all": "concurrently \"bun run start:server\" \"bun run start:worker\"", "lint": "bun run eslint . --ext .ts,.js", - "link:fix": "bun run eslint . --ext .ts,.js --fix", + "lint:fix": "bun run eslint . --ext .ts,.js --fix", + "db:generate": "drizzle-kit generate", + "db:migrate": "drizzle-kit migrate", + "db:push": "drizzle-kit push", + "db:pull": "drizzle-kit introspect", + "db:studio": "drizzle-kit studio", + "db:drop": "drizzle-kit drop", + "db:seed": "bun run src/libs/database/seed/index.ts", + "db:clickhouse:migrate": "bun run src/libs/database/clickhouse/scripts/migrate.ts migrate", + "db:clickhouse:status": "bun run src/libs/database/clickhouse/scripts/migrate.ts status", "format": "bun run prettier --write .", "typecheck": "bun run tsc --noEmit", "prepare": "husky install" @@ -38,7 +47,9 @@ "drizzle-kit": "^0.31.8", "eslint": "^9.39.2", "eslint-config-prettier": "^10.1.8", + "eslint-plugin-import": "^2.32.0", "eslint-plugin-prettier": "^5.5.5", + "eslint-plugin-simple-import-sort": "^12.1.1", "husky": "^9.1.7", "lint-staged": "^16.2.7", "prettier": "^3.8.1", @@ -79,9 +90,9 @@ "zod": "^4.3.6" }, "lint-staged": { - "*.(ts|js)": [ - "bun run format", - "bun run lint" + "*.ts": [ + "bun run lint:fix", + "bun run format" ] } } diff --git a/src/libs/utils/toolkit/date.ts b/src/libs/utils/date.ts similarity index 100% rename from src/libs/utils/toolkit/date.ts rename to src/libs/utils/date.ts index 46bbb04..5ba191e 100644 --- a/src/libs/utils/toolkit/date.ts +++ b/src/libs/utils/date.ts @@ -1,9 +1,9 @@ +import { AppConfig } from "@config"; import dayjs from "dayjs"; -import utc from "dayjs/plugin/utc"; -import timezone from "dayjs/plugin/timezone"; -import relativeTime from "dayjs/plugin/relativeTime"; import advancedFormat from "dayjs/plugin/advancedFormat"; -import { AppConfig } from "@config"; +import relativeTime from "dayjs/plugin/relativeTime"; +import timezone from "dayjs/plugin/timezone"; +import utc from "dayjs/plugin/utc"; // Initialize dayjs plugins dayjs.extend(utc); diff --git a/src/libs/utils/fastify/logger.ts b/src/libs/utils/fastify/logger.ts index 9272a3f..a419fcb 100644 --- a/src/libs/utils/fastify/logger.ts +++ b/src/libs/utils/fastify/logger.ts @@ -1,6 +1,7 @@ -import { DateToolkit } from "../toolkit/date"; import pino from "pino"; +import { DateToolkit } from "../date"; + interface LoggerOptions { level?: string; destination?: string; diff --git a/src/libs/utils/index.ts b/src/libs/utils/index.ts index 87198ec..46054b9 100644 --- a/src/libs/utils/index.ts +++ b/src/libs/utils/index.ts @@ -1,3 +1,9 @@ -export * from "./fastify"; -export * from "./security"; -export * from "./toolkit"; +export * from "./date"; +export * from "./fastify/datatable"; +export * from "./fastify/logger"; +export * from "./fastify/response"; +export * from "./fastify/response-schema"; +export * from "./number"; +export * from "./security/encrypt"; +export * from "./security/hash"; +export * from "./string"; diff --git a/src/libs/utils/toolkit/number.ts b/src/libs/utils/number.ts similarity index 100% rename from src/libs/utils/toolkit/number.ts rename to src/libs/utils/number.ts diff --git a/src/libs/utils/toolkit/string.ts b/src/libs/utils/string.ts similarity index 100% rename from src/libs/utils/toolkit/string.ts rename to src/libs/utils/string.ts diff --git a/src/libs/utils/toolkit/index.ts b/src/libs/utils/toolkit/index.ts deleted file mode 100644 index 2f96d32..0000000 --- a/src/libs/utils/toolkit/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./date"; -export * from "./number"; -export * from "./string"; From e72bbae8d99ab4260b1fc6899c787ea635265e54 Mon Sep 17 00:00:00 2001 From: zulfikar-ditya Date: Thu, 19 Feb 2026 21:55:04 +0700 Subject: [PATCH 2/4] feat: api docs --- Makefile | 52 +++++-------------- drizzle.config.ts | 1 + package.json | 27 +++++----- src/app.ts | 10 ++-- src/bull/queue/send-email.queue.ts | 2 +- src/bull/worker/send-email.worker.ts | 4 +- src/libs/cache/cache.ts | 4 +- src/libs/cache/index.ts | 2 +- src/libs/config/app.config.ts | 2 +- src/libs/config/cors.config.ts | 2 +- src/libs/config/database.config.ts | 2 +- src/libs/config/index.ts | 2 +- src/libs/config/mail.config.ts | 2 +- src/libs/config/redis.config.ts | 2 +- .../clickhouse/client/clickhouse-client.ts | 2 +- src/libs/database/clickhouse/index.ts | 10 ++-- .../repositories/base.repository.ts | 1 + .../database/clickhouse/repositories/index.ts | 6 +-- .../user-activities.repository.ts | 2 +- src/libs/database/postgres/index.ts | 7 +-- .../forgot-password.repository.ts | 3 +- .../database/postgres/repositories/index.ts | 4 +- .../repositories/permission.repository.ts | 10 ++-- .../postgres/repositories/role.repository.ts | 12 +++-- .../postgres/repositories/user.repository.ts | 31 +++++------ .../postgres/schema/email_verification.ts | 3 +- src/libs/database/postgres/schema/index.ts | 32 ++++++------ .../postgres/schema/password_reset_token.ts | 3 +- src/libs/database/postgres/schema/rbac.ts | 5 +- src/libs/database/postgres/schema/user.ts | 1 + src/libs/database/seed/index.ts | 1 + src/libs/fastify/di/container.ts | 3 +- src/libs/fastify/error/index.ts | 8 +-- src/libs/fastify/plugins/app/auth.plugin.ts | 2 +- .../plugins/app/authorization.plugin.ts | 6 +-- src/libs/fastify/plugins/app/di.plugin.ts | 2 +- src/libs/fastify/plugins/app/error.plugin.ts | 4 +- .../fastify/plugins/app/superuser.plugin.ts | 6 +-- .../fastify/plugins/externals/cors.plugin.ts | 2 +- .../plugins/externals/rate-limiting.plugin.ts | 4 +- .../plugins/externals/swagger.plugin.ts | 4 +- src/libs/fastify/plugins/index.ts | 3 +- src/libs/mail/mail.service.ts | 5 +- src/libs/types/index.ts | 2 +- src/libs/types/repositories/index.ts | 2 +- src/libs/utils/fastify/datatable.ts | 7 +-- src/libs/utils/fastify/index.ts | 2 +- src/routes/auth/index.ts | 23 ++++---- src/routes/auth/schema.ts | 6 +-- src/routes/profile/index.ts | 11 ++-- src/routes/profile/schema.ts | 6 +-- src/routes/settings/permission/index.ts.ts | 1 + src/routes/settings/role/index.ts | 3 +- src/routes/settings/select/index.ts | 1 + src/routes/settings/user/index.ts | 5 +- src/serve.ts | 2 + src/services/auth.service.ts | 26 +++++----- src/services/profile.service.ts | 4 +- src/services/settings/role.service.ts | 2 +- src/services/settings/user.service.ts | 10 ++-- 60 files changed, 198 insertions(+), 211 deletions(-) diff --git a/Makefile b/Makefile index 5a6cba7..2ef6d25 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help install dev-api build-api start-api dev-server build-server start-server dev-worker build-worker start-worker dev-all build-all start-all lint lint-fix format typecheck db-generate db-migrate db-push db-pull db-studio db-drop db-seed db-clickhouse-migrate db-clickhouse-status fresh reset +.PHONY: help install dev build start lint lint-fix format typecheck db-generate db-migrate db-push db-pull db-studio db-drop db-seed db-clickhouse-migrate db-clickhouse-status fresh reset # Default target help: @@ -8,22 +8,13 @@ help: @echo " install - Install dependencies" @echo "" @echo " Development:" - @echo " dev-api - Start API development server with hot reload" - @echo " dev-server - Start SERVER development server with hot reload" - @echo " dev-worker - Start WORKER development with hot reload" - @echo " dev-all - Run server and worker in dev mode concurrently" + @echo " dev - Run dev server with hot reload" @echo "" @echo " Build:" - @echo " build-api - Build the API application" - @echo " build-server - Build the SERVER application" - @echo " build-worker - Build the WORKER application" - @echo " build-all - Build server and worker concurrently" + @echo " build - Build the application" @echo "" @echo " Production:" - @echo " start-api - Start the API production server" - @echo " start-server - Start the SERVER production server" - @echo " start-worker - Start the WORKER production service" - @echo " start-all - Run server and worker in production concurrently" + @echo " start - Start the production server" @echo "" @echo " Code Quality:" @echo " lint - Run ESLint" @@ -51,40 +42,21 @@ help: install: bun install -# Development commands -dev-api: - bun run dev:api - -build-api: - bun run build:api - -start-api: - bun run start:api - -dev-server: - bun run dev:server - -build-server: - bun run build:server - -start-server: - bun run start:server - -dev-worker: - bun run dev:worker - -build-worker: - bun run build:worker - -start-worker: - bun run start:worker +dev: + bun run dev dev-all: bun run dev:all +build: + bun run build + build-all: bun run build:all +start: + bun run start + start-all: bun run start:all diff --git a/drizzle.config.ts b/drizzle.config.ts index 2efe9b9..30c006c 100644 --- a/drizzle.config.ts +++ b/drizzle.config.ts @@ -1,4 +1,5 @@ import "dotenv/config"; + import { defineConfig } from "drizzle-kit"; export default defineConfig({ diff --git a/package.json b/package.json index 096598c..bf5a489 100644 --- a/package.json +++ b/package.json @@ -7,20 +7,19 @@ "name": "Aolus Software" }, "scripts": { - "dev:api": "bun --watch src/serve.ts", - "dev:server": "bun --watch src/serve.ts", - "dev:worker": "bun --watch src/bull/index.ts", - "dev:all": "concurrently \"bun run dev:server\" \"bun run dev:worker\"", - "build:api": "bun build src/serve.ts --outdir ./dist/api --target bun", - "build:server": "bun build src/serve.ts --outdir ./dist/server --target bun", - "build:worker": "bun build src/bull/index.ts --outdir ./dist/worker --target bun", - "build:all": "concurrently \"bun run build:server\" \"bun run build:worker\"", - "start:api": "NODE_ENV=production bun dist/api/serve.js", - "start:server": "NODE_ENV=production bun dist/server/serve.js", - "start:worker": "NODE_ENV=production bun dist/worker/index.js", - "start:all": "concurrently \"bun run start:server\" \"bun run start:worker\"", + "dev": "bun run --hot --watch ./src/serve.ts", + "dev:worker": "bun run --hot --watch ./src/bull/index.ts\t", + "dev:all": "concurrently \"bun run dev\" \"bun run dev:worker\"", + "build": "bun run tsc && bun build ./src/serve.ts --outdir=dist/server --target=node", + "build:worker": "bun build ./src/bull/index.ts --outdir=dist/bull --target=node", + "build:all": "concurrently \"bun run build\" \"bun run build:worker\"", + "start": "bun run ./dist/server/src/serve.js", + "start:worker": "bun run ./dist/bull/index.js", + "start:all": "concurrently \"bun run start\" \"bun run start:worker\"", "lint": "bun run eslint . --ext .ts,.js", "lint:fix": "bun run eslint . --ext .ts,.js --fix", + "format": "bun run prettier --write .", + "prepare": "husky install", "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", "db:push": "drizzle-kit push", @@ -30,9 +29,7 @@ "db:seed": "bun run src/libs/database/seed/index.ts", "db:clickhouse:migrate": "bun run src/libs/database/clickhouse/scripts/migrate.ts migrate", "db:clickhouse:status": "bun run src/libs/database/clickhouse/scripts/migrate.ts status", - "format": "bun run prettier --write .", - "typecheck": "bun run tsc --noEmit", - "prepare": "husky install" + "typecheck": "bun run tsc --noEmit" }, "devDependencies": { "@types/bcryptjs": "^3.0.0", diff --git a/src/app.ts b/src/app.ts index b11c046..64fc35c 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,17 +1,17 @@ -import fastify from "fastify"; import { AppConfig } from "@config/app.config"; +import { RedisConfig } from "@config/redis.config"; +import fastifyAutoload from "@fastify/autoload"; import fastifyJwt from "@fastify/jwt"; import fastifyRedis from "@fastify/redis"; -import fastifyAutoload from "@fastify/autoload"; -import { fileURLToPath } from "url"; -import { dirname, join } from "path"; import { createLoggerConfig } from "@utils"; -import { RedisConfig } from "@config/redis.config"; +import fastify from "fastify"; import { serializerCompiler, validatorCompiler, type ZodTypeProvider, } from "fastify-type-provider-zod"; +import { dirname, join } from "path"; +import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); diff --git a/src/bull/queue/send-email.queue.ts b/src/bull/queue/send-email.queue.ts index b067c3d..2efe7a8 100644 --- a/src/bull/queue/send-email.queue.ts +++ b/src/bull/queue/send-email.queue.ts @@ -1,5 +1,5 @@ -import { Queue } from "bullmq"; import { RedisClient } from "@database"; +import { Queue } from "bullmq"; const queueRedis = RedisClient.getQueueRedisClient(); diff --git a/src/bull/worker/send-email.worker.ts b/src/bull/worker/send-email.worker.ts index 6e0b7e1..2ccb966 100644 --- a/src/bull/worker/send-email.worker.ts +++ b/src/bull/worker/send-email.worker.ts @@ -1,7 +1,7 @@ -import { Worker } from "bullmq"; -import { EmailOptions, EmailService } from "@libs/mail/mail.service"; import { RedisClient } from "@database"; +import { EmailOptions, EmailService } from "@libs/mail/mail.service"; import { logger } from "@utils"; +import { Worker } from "bullmq"; const queueRedis = RedisClient.getQueueRedisClient(); diff --git a/src/libs/cache/cache.ts b/src/libs/cache/cache.ts index dc40261..907eb00 100644 --- a/src/libs/cache/cache.ts +++ b/src/libs/cache/cache.ts @@ -1,6 +1,6 @@ -import Redis from "ioredis"; -import { logger } from "@utils"; import { RedisClient } from "@database"; +import { logger } from "@utils"; +import Redis from "ioredis"; class Cache { private static redis: Redis | null = null; diff --git a/src/libs/cache/index.ts b/src/libs/cache/index.ts index d02f0f6..4e4e0fa 100644 --- a/src/libs/cache/index.ts +++ b/src/libs/cache/index.ts @@ -1,2 +1,2 @@ -export * from "./const"; export * from "./cache"; +export * from "./const"; diff --git a/src/libs/config/app.config.ts b/src/libs/config/app.config.ts index 43f70f6..6f5a5e9 100644 --- a/src/libs/config/app.config.ts +++ b/src/libs/config/app.config.ts @@ -1,4 +1,4 @@ -import { cleanEnv, str, num, url } from "envalid"; +import { cleanEnv, num, str, url } from "envalid"; const env = cleanEnv(process.env, { APP_NAME: str({ default: "Hono App" }), diff --git a/src/libs/config/cors.config.ts b/src/libs/config/cors.config.ts index 76e02eb..d9bcde2 100644 --- a/src/libs/config/cors.config.ts +++ b/src/libs/config/cors.config.ts @@ -1,4 +1,4 @@ -import { cleanEnv, str, num, bool } from "envalid"; +import { bool, cleanEnv, num, str } from "envalid"; const env = cleanEnv(process.env, { CORS_ORIGIN: str({ default: "*" }), diff --git a/src/libs/config/database.config.ts b/src/libs/config/database.config.ts index 98b15e5..f1f8055 100644 --- a/src/libs/config/database.config.ts +++ b/src/libs/config/database.config.ts @@ -1,4 +1,4 @@ -import { cleanEnv, str, num } from "envalid"; +import { cleanEnv, num, str } from "envalid"; const env = cleanEnv(process.env, { DATABASE_URL: str({ diff --git a/src/libs/config/index.ts b/src/libs/config/index.ts index c88fca2..5fad175 100644 --- a/src/libs/config/index.ts +++ b/src/libs/config/index.ts @@ -1,6 +1,6 @@ export * from "./app.config"; -export * from "./cors.config"; export * from "./clickhouse.config"; +export * from "./cors.config"; export * from "./database.config"; export * from "./mail.config"; export * from "./redis.config"; diff --git a/src/libs/config/mail.config.ts b/src/libs/config/mail.config.ts index aeaba5c..76f4932 100644 --- a/src/libs/config/mail.config.ts +++ b/src/libs/config/mail.config.ts @@ -1,4 +1,4 @@ -import { cleanEnv, str, num, bool } from "envalid"; +import { bool, cleanEnv, num, str } from "envalid"; const env = cleanEnv(process.env, { MAIL_HOST: str({ default: "smtp.example.com" }), diff --git a/src/libs/config/redis.config.ts b/src/libs/config/redis.config.ts index e5b0dba..6c15c74 100644 --- a/src/libs/config/redis.config.ts +++ b/src/libs/config/redis.config.ts @@ -1,4 +1,4 @@ -import { cleanEnv, str, num } from "envalid"; +import { cleanEnv, num, str } from "envalid"; const env = cleanEnv(process.env, { REDIS_HOST: str({ default: "localhost" }), diff --git a/src/libs/database/clickhouse/client/clickhouse-client.ts b/src/libs/database/clickhouse/client/clickhouse-client.ts index 319015e..6b6a6e9 100644 --- a/src/libs/database/clickhouse/client/clickhouse-client.ts +++ b/src/libs/database/clickhouse/client/clickhouse-client.ts @@ -1,4 +1,4 @@ -import { createClient, ClickHouseClient } from "@clickhouse/client"; +import { ClickHouseClient, createClient } from "@clickhouse/client"; export class ClickHouseClientManager { private static instance: ClickHouseClient | null = null; diff --git a/src/libs/database/clickhouse/index.ts b/src/libs/database/clickhouse/index.ts index 5d3b15e..aa24d5a 100644 --- a/src/libs/database/clickhouse/index.ts +++ b/src/libs/database/clickhouse/index.ts @@ -1,11 +1,7 @@ export * from "./client/clickhouse-client"; - -export * from "./repositories/base.repository"; - -export * from "./repositories/user-activities.repository"; -export * from "./repositories/interfaces/user-activities.interface"; - export * from "./repositories/auth-events.repository"; +export * from "./repositories/base.repository"; export * from "./repositories/interfaces/auth-events.interface"; - +export * from "./repositories/interfaces/user-activities.interface"; +export * from "./repositories/user-activities.repository"; export * from "./services/user-activities.service"; diff --git a/src/libs/database/clickhouse/repositories/base.repository.ts b/src/libs/database/clickhouse/repositories/base.repository.ts index 70ea54b..61dffab 100644 --- a/src/libs/database/clickhouse/repositories/base.repository.ts +++ b/src/libs/database/clickhouse/repositories/base.repository.ts @@ -1,4 +1,5 @@ import { ClickHouseClient } from "@clickhouse/client"; + import { ClickHouseClientManager } from "../client/clickhouse-client"; export class BaseRepository { diff --git a/src/libs/database/clickhouse/repositories/index.ts b/src/libs/database/clickhouse/repositories/index.ts index f670970..b408ab1 100644 --- a/src/libs/database/clickhouse/repositories/index.ts +++ b/src/libs/database/clickhouse/repositories/index.ts @@ -1,7 +1,5 @@ -export * from "./base.repository"; - export * from "./auth-events.repository"; -export * from "./user-activities.repository"; - +export * from "./base.repository"; export * from "./interfaces/auth-events.interface"; export * from "./interfaces/user-activities.interface"; +export * from "./user-activities.repository"; diff --git a/src/libs/database/clickhouse/repositories/user-activities.repository.ts b/src/libs/database/clickhouse/repositories/user-activities.repository.ts index 16a080c..2bc792a 100644 --- a/src/libs/database/clickhouse/repositories/user-activities.repository.ts +++ b/src/libs/database/clickhouse/repositories/user-activities.repository.ts @@ -1,8 +1,8 @@ import { BaseRepository } from "./base.repository"; import { - IUserActivity, IDailyActivityStats, IUserActivitiesRepository, + IUserActivity, } from "./interfaces/user-activities.interface"; export class UserActivitiesRepository diff --git a/src/libs/database/postgres/index.ts b/src/libs/database/postgres/index.ts index 122c3f0..e1b4b18 100644 --- a/src/libs/database/postgres/index.ts +++ b/src/libs/database/postgres/index.ts @@ -1,6 +1,7 @@ +import { DatabaseConfig } from "@config"; import { drizzle } from "drizzle-orm/node-postgres"; import { Pool } from "pg"; -import { DatabaseConfig } from "@config"; + import { schema } from "./schema"; const client = new Pool({ @@ -13,7 +14,7 @@ const client = new Pool({ const db = drizzle(client, { schema }); -export { db, client }; +export { client, db }; -export * from "./schema"; export * from "./repositories"; +export * from "./schema"; diff --git a/src/libs/database/postgres/repositories/forgot-password.repository.ts b/src/libs/database/postgres/repositories/forgot-password.repository.ts index 9ffa215..641ac0e 100644 --- a/src/libs/database/postgres/repositories/forgot-password.repository.ts +++ b/src/libs/database/postgres/repositories/forgot-password.repository.ts @@ -1,7 +1,8 @@ import { db, password_reset_tokensTable } from "@database"; +import { injectable } from "@fastify-libs"; import { eq } from "drizzle-orm"; + import { DbTransaction } from "."; -import { injectable } from "@fastify-libs"; @injectable() export class ForgotPasswordRepository { diff --git a/src/libs/database/postgres/repositories/index.ts b/src/libs/database/postgres/repositories/index.ts index 41f7ee2..3cb09ae 100644 --- a/src/libs/database/postgres/repositories/index.ts +++ b/src/libs/database/postgres/repositories/index.ts @@ -3,10 +3,10 @@ import { ExtractTablesWithRelations } from "drizzle-orm"; import { PgTransaction } from "drizzle-orm/pg-core"; import { PostgresJsQueryResultHKT } from "drizzle-orm/postgres-js"; -export * from "./user.repository"; +export * from "./forgot-password.repository"; export * from "./permission.repository"; export * from "./role.repository"; -export * from "./forgot-password.repository"; +export * from "./user.repository"; export type DbTransaction = PgTransaction< PostgresJsQueryResultHKT, diff --git a/src/libs/database/postgres/repositories/permission.repository.ts b/src/libs/database/postgres/repositories/permission.repository.ts index 45c3fa3..b2135f8 100644 --- a/src/libs/database/postgres/repositories/permission.repository.ts +++ b/src/libs/database/postgres/repositories/permission.repository.ts @@ -1,7 +1,5 @@ import { db, permissionsTable } from "@database"; -import { defaultSort } from "@/libs/fastify/default/sort"; -import { and, asc, desc, eq, ilike, not, or, SQL } from "drizzle-orm"; -import { DbTransaction } from "."; +import { NotFoundError, UnprocessableEntityError } from "@fastify-libs"; import { DatatableType, PaginationResponse, @@ -9,9 +7,13 @@ import { PermissionSelectOptions, SortDirection, } from "@types"; -import { NotFoundError, UnprocessableEntityError } from "@fastify-libs"; +import { and, asc, desc, eq, ilike, not, or, SQL } from "drizzle-orm"; import { injectable } from "tsyringe"; +import { defaultSort } from "@/libs/fastify/default/sort"; + +import { DbTransaction } from "."; + @injectable() export class PermissionRepository { private dbInstance = db; diff --git a/src/libs/database/postgres/repositories/role.repository.ts b/src/libs/database/postgres/repositories/role.repository.ts index 3fc08c7..6c3c017 100644 --- a/src/libs/database/postgres/repositories/role.repository.ts +++ b/src/libs/database/postgres/repositories/role.repository.ts @@ -1,8 +1,5 @@ import { db, role_permissionsTable, rolesTable } from "@database"; -import { and, asc, desc, eq, ilike, ne, not, or, SQL } from "drizzle-orm"; -import { defaultSort } from "@/libs/fastify/default/sort"; -import { DatatableToolkit } from "@utils"; -import { DbTransaction } from "."; +import { NotFoundError, UnprocessableEntityError } from "@fastify-libs"; import { DatatableType, PaginationResponse, @@ -10,8 +7,13 @@ import { RoleList, SortDirection, } from "@types"; -import { NotFoundError, UnprocessableEntityError } from "@fastify-libs"; +import { DatatableToolkit } from "@utils"; +import { and, asc, desc, eq, ilike, ne, not, or, SQL } from "drizzle-orm"; import { injectable } from "tsyringe"; + +import { defaultSort } from "@/libs/fastify/default/sort"; + +import { DbTransaction } from "."; @injectable() export class RoleRepository { private dbInstance = db; diff --git a/src/libs/database/postgres/repositories/user.repository.ts b/src/libs/database/postgres/repositories/user.repository.ts index 23707db..03aa4dc 100644 --- a/src/libs/database/postgres/repositories/user.repository.ts +++ b/src/libs/database/postgres/repositories/user.repository.ts @@ -1,22 +1,10 @@ import { db, user_rolesTable, usersTable, UserStatusEnum } from "@database"; import { - and, - eq, - isNull, - or, - ilike, - SQL, - asc, - desc, - exists, -} from "drizzle-orm"; -import { Hash } from "@utils"; -import { DbTransaction } from "."; -import { + defaultSort, + injectable, NotFoundError, UnauthorizedError, UnprocessableEntityError, - defaultSort, } from "@fastify-libs"; import { DatatableType, @@ -28,7 +16,20 @@ import { UserInformation, UserList, } from "@types"; -import { injectable } from "@fastify-libs"; +import { Hash } from "@utils"; +import { + and, + asc, + desc, + eq, + exists, + ilike, + isNull, + or, + SQL, +} from "drizzle-orm"; + +import { DbTransaction } from "."; @injectable() export class UserRepository { diff --git a/src/libs/database/postgres/schema/email_verification.ts b/src/libs/database/postgres/schema/email_verification.ts index e1f9918..ed73200 100644 --- a/src/libs/database/postgres/schema/email_verification.ts +++ b/src/libs/database/postgres/schema/email_verification.ts @@ -1,6 +1,7 @@ +import { relations } from "drizzle-orm"; import { index, pgTable, timestamp, uuid, varchar } from "drizzle-orm/pg-core"; + import { usersTable } from "./user"; -import { relations } from "drizzle-orm"; export const email_verificationsTable = pgTable( "email_verifications", diff --git a/src/libs/database/postgres/schema/index.ts b/src/libs/database/postgres/schema/index.ts index bc4ca67..19dcc01 100644 --- a/src/libs/database/postgres/schema/index.ts +++ b/src/libs/database/postgres/schema/index.ts @@ -39,32 +39,32 @@ export const schema = { }; export { - usersTable, - rolesTable, + email_verificationsTable, + password_reset_tokensTable, permissionsTable, role_permissionsTable, + rolesTable, user_rolesTable, - email_verificationsTable, - password_reset_tokensTable, + usersTable, }; // Export all types -export type { User, InsertUser, UserStatusEnum } from "./user"; -export type { - Role, - Permission, - RolePermission, - UserRole, - InsertRole, - InsertPermission, - InsertRolePermission, - InsertUserRole, -} from "./rbac"; export type { EmailVerification, InsertEmailVerification, } from "./email_verification"; export type { - PasswordResetToken, InsertPasswordResetToken, + PasswordResetToken, } from "./password_reset_token"; +export type { + InsertPermission, + InsertRole, + InsertRolePermission, + InsertUserRole, + Permission, + Role, + RolePermission, + UserRole, +} from "./rbac"; +export type { InsertUser, User, UserStatusEnum } from "./user"; diff --git a/src/libs/database/postgres/schema/password_reset_token.ts b/src/libs/database/postgres/schema/password_reset_token.ts index 73ecfd9..a0c2e0a 100644 --- a/src/libs/database/postgres/schema/password_reset_token.ts +++ b/src/libs/database/postgres/schema/password_reset_token.ts @@ -1,6 +1,7 @@ +import { relations } from "drizzle-orm"; import { index, pgTable, timestamp, uuid, varchar } from "drizzle-orm/pg-core"; + import { usersTable } from "./user"; -import { relations } from "drizzle-orm"; export const password_reset_tokensTable = pgTable( "password_reset_tokens", diff --git a/src/libs/database/postgres/schema/rbac.ts b/src/libs/database/postgres/schema/rbac.ts index 340393d..f279c87 100644 --- a/src/libs/database/postgres/schema/rbac.ts +++ b/src/libs/database/postgres/schema/rbac.ts @@ -1,11 +1,12 @@ import { relations } from "drizzle-orm"; import { pgTable, - uuid, - varchar, primaryKey, timestamp, + uuid, + varchar, } from "drizzle-orm/pg-core"; + import { usersTable } from "./user"; export const rolesTable = pgTable("roles", { diff --git a/src/libs/database/postgres/schema/user.ts b/src/libs/database/postgres/schema/user.ts index 41c2a6e..a489aa6 100644 --- a/src/libs/database/postgres/schema/user.ts +++ b/src/libs/database/postgres/schema/user.ts @@ -7,6 +7,7 @@ import { uuid, varchar, } from "drizzle-orm/pg-core"; + import { email_verificationsTable } from "./email_verification"; import { password_reset_tokensTable } from "./password_reset_token"; import { user_rolesTable } from "./rbac"; diff --git a/src/libs/database/seed/index.ts b/src/libs/database/seed/index.ts index 7b62b0c..bdabc73 100644 --- a/src/libs/database/seed/index.ts +++ b/src/libs/database/seed/index.ts @@ -1,4 +1,5 @@ import "reflect-metadata"; + import { RBACSeeder } from "./rbac.seed"; import { UserSeeder } from "./user.seed"; diff --git a/src/libs/fastify/di/container.ts b/src/libs/fastify/di/container.ts index 270a396..1b63a7f 100644 --- a/src/libs/fastify/di/container.ts +++ b/src/libs/fastify/di/container.ts @@ -1,8 +1,9 @@ import "reflect-metadata"; + import { container } from "tsyringe"; // Export the container instance for manual resolution if needed export { container }; // Export dependency injection decorators -export { injectable, inject, singleton, scoped } from "tsyringe"; +export { inject, injectable, scoped, singleton } from "tsyringe"; diff --git a/src/libs/fastify/error/index.ts b/src/libs/fastify/error/index.ts index 82680ed..0bc499d 100644 --- a/src/libs/fastify/error/index.ts +++ b/src/libs/fastify/error/index.ts @@ -1,8 +1,8 @@ -export { HttpError } from "./http.error"; export { BadRequestError } from "./bad-request.error"; -export { UnauthorizedError } from "./unauthorized.error"; +export { ConflictError } from "./conflict.error"; export { ForbiddenError } from "./forbidden.error"; +export { HttpError } from "./http.error"; +export { InternalServerError } from "./internal-server.error"; export { NotFoundError } from "./not-found.error"; -export { ConflictError } from "./conflict.error"; +export { UnauthorizedError } from "./unauthorized.error"; export { UnprocessableEntityError } from "./unprocessable-entity.error"; -export { InternalServerError } from "./internal-server.error"; diff --git a/src/libs/fastify/plugins/app/auth.plugin.ts b/src/libs/fastify/plugins/app/auth.plugin.ts index 74d5270..7912989 100644 --- a/src/libs/fastify/plugins/app/auth.plugin.ts +++ b/src/libs/fastify/plugins/app/auth.plugin.ts @@ -1,8 +1,8 @@ import { UserInformationCacheKey } from "@cache"; import { UserRepository } from "@database"; +import { UserInformation } from "@types"; import { FastifyReply, FastifyRequest } from "fastify"; import fp from "fastify-plugin"; -import { UserInformation } from "@types"; declare module "fastify" { interface FastifyInstance { diff --git a/src/libs/fastify/plugins/app/authorization.plugin.ts b/src/libs/fastify/plugins/app/authorization.plugin.ts index c1053d2..f9ff423 100644 --- a/src/libs/fastify/plugins/app/authorization.plugin.ts +++ b/src/libs/fastify/plugins/app/authorization.plugin.ts @@ -1,3 +1,6 @@ +import { FastifyReply, FastifyRequest } from "fastify"; +import fp from "fastify-plugin"; + declare module "fastify" { interface FastifyRequest { requireRoles(roles: string[], reply: FastifyReply): void; @@ -5,9 +8,6 @@ declare module "fastify" { } } -import { FastifyReply, FastifyRequest } from "fastify"; -import fp from "fastify-plugin"; - function requireRoles( this: FastifyRequest, roles: string[], diff --git a/src/libs/fastify/plugins/app/di.plugin.ts b/src/libs/fastify/plugins/app/di.plugin.ts index 44fafbc..f5888b6 100644 --- a/src/libs/fastify/plugins/app/di.plugin.ts +++ b/src/libs/fastify/plugins/app/di.plugin.ts @@ -1,6 +1,6 @@ +import { container } from "@fastify-libs"; import { FastifyInstance } from "fastify"; import fp from "fastify-plugin"; -import { container } from "@fastify-libs"; declare module "fastify" { interface FastifyInstance { diff --git a/src/libs/fastify/plugins/app/error.plugin.ts b/src/libs/fastify/plugins/app/error.plugin.ts index f99ea8e..5f2c3e5 100644 --- a/src/libs/fastify/plugins/app/error.plugin.ts +++ b/src/libs/fastify/plugins/app/error.plugin.ts @@ -1,7 +1,7 @@ +import { HttpError, UnprocessableEntityError } from "@fastify-libs"; import { ResponseToolkit } from "@utils"; -import fp from "fastify-plugin"; import Fastify, { FastifyError } from "fastify"; -import { HttpError, UnprocessableEntityError } from "@fastify-libs"; +import fp from "fastify-plugin"; interface ValidationError { instancePath: string; diff --git a/src/libs/fastify/plugins/app/superuser.plugin.ts b/src/libs/fastify/plugins/app/superuser.plugin.ts index 557299c..2124294 100644 --- a/src/libs/fastify/plugins/app/superuser.plugin.ts +++ b/src/libs/fastify/plugins/app/superuser.plugin.ts @@ -1,12 +1,12 @@ +import { FastifyReply, FastifyRequest } from "fastify"; +import fp from "fastify-plugin"; + declare module "fastify" { interface FastifyRequest { requireSuperuser(reply: FastifyReply): void; } } -import { FastifyReply, FastifyRequest } from "fastify"; -import fp from "fastify-plugin"; - function requireSuperuser(this: FastifyRequest, reply: FastifyReply) { const userInformation = this.userInformation; if (!userInformation) { diff --git a/src/libs/fastify/plugins/externals/cors.plugin.ts b/src/libs/fastify/plugins/externals/cors.plugin.ts index 9384756..b2e90f5 100644 --- a/src/libs/fastify/plugins/externals/cors.plugin.ts +++ b/src/libs/fastify/plugins/externals/cors.plugin.ts @@ -1,6 +1,6 @@ +import { corsConfig } from "@config"; import fastifyCors from "@fastify/cors"; import fp from "fastify-plugin"; -import { corsConfig } from "@config"; export default fp( async function (fastify) { diff --git a/src/libs/fastify/plugins/externals/rate-limiting.plugin.ts b/src/libs/fastify/plugins/externals/rate-limiting.plugin.ts index 925f885..b177543 100644 --- a/src/libs/fastify/plugins/externals/rate-limiting.plugin.ts +++ b/src/libs/fastify/plugins/externals/rate-limiting.plugin.ts @@ -1,7 +1,7 @@ -import fastifyRateLimit from "@fastify/rate-limit"; -import fp from "fastify-plugin"; import { RedisConfig } from "@config"; +import fastifyRateLimit from "@fastify/rate-limit"; import type { FastifyRequest } from "fastify"; +import fp from "fastify-plugin"; export default fp( async function (fastify) { diff --git a/src/libs/fastify/plugins/externals/swagger.plugin.ts b/src/libs/fastify/plugins/externals/swagger.plugin.ts index 317ae35..41ca102 100644 --- a/src/libs/fastify/plugins/externals/swagger.plugin.ts +++ b/src/libs/fastify/plugins/externals/swagger.plugin.ts @@ -1,7 +1,7 @@ +import { AppConfig } from "@config"; import fastifySwagger from "@fastify/swagger"; -import fp from "fastify-plugin"; import ScalarApiReference from "@scalar/fastify-api-reference"; -import { AppConfig } from "@config"; +import fp from "fastify-plugin"; import { jsonSchemaTransform } from "fastify-type-provider-zod"; export default fp( diff --git a/src/libs/fastify/plugins/index.ts b/src/libs/fastify/plugins/index.ts index 26e7d7e..72b9595 100644 --- a/src/libs/fastify/plugins/index.ts +++ b/src/libs/fastify/plugins/index.ts @@ -2,8 +2,7 @@ export * from "./app/auth.plugin"; export * from "./app/authorization.plugin"; export * from "./app/error.plugin"; export * from "./app/superuser.plugin"; - export * from "./externals/cors.plugin"; -export * from "./externals/swagger.plugin"; export * from "./externals/helmet.plugin"; export * from "./externals/rate-limiting.plugin"; +export * from "./externals/swagger.plugin"; diff --git a/src/libs/mail/mail.service.ts b/src/libs/mail/mail.service.ts index 96d4a53..e8fe95b 100644 --- a/src/libs/mail/mail.service.ts +++ b/src/libs/mail/mail.service.ts @@ -1,8 +1,9 @@ +import { AppConfig, MailConfig } from "@config"; +import { logger } from "@utils"; import fs from "fs"; import path from "path"; + import { transporter } from "./transport.mail"; -import { AppConfig, MailConfig } from "@config"; -import { logger } from "@utils"; export interface EmailOptions { to: string; diff --git a/src/libs/types/index.ts b/src/libs/types/index.ts index 8dcc700..60ea975 100644 --- a/src/libs/types/index.ts +++ b/src/libs/types/index.ts @@ -1,2 +1,2 @@ -export * from "./repositories/index"; export * from "./datatable/index"; +export * from "./repositories/index"; diff --git a/src/libs/types/repositories/index.ts b/src/libs/types/repositories/index.ts index 885f900..ac1586c 100644 --- a/src/libs/types/repositories/index.ts +++ b/src/libs/types/repositories/index.ts @@ -1,6 +1,6 @@ -export * from "./user"; export * from "./permission"; export * from "./role"; +export * from "./user"; // Re-export common database types export type { DbTransaction } from "@database"; diff --git a/src/libs/utils/fastify/datatable.ts b/src/libs/utils/fastify/datatable.ts index af6e398..6b8a79d 100644 --- a/src/libs/utils/fastify/datatable.ts +++ b/src/libs/utils/fastify/datatable.ts @@ -1,8 +1,9 @@ -import { paginationLength } from "@/libs/fastify/default/pagination-length"; -import { defaultSort } from "@/libs/fastify/default/sort"; +import { DatatableType, SortDirection } from "@types"; import { PgColumn } from "drizzle-orm/pg-core"; import { FastifyRequest } from "fastify"; -import { DatatableType, SortDirection } from "@types"; + +import { paginationLength } from "@/libs/fastify/default/pagination-length"; +import { defaultSort } from "@/libs/fastify/default/sort"; export class DatatableToolkit { static parseFilter(request: FastifyRequest): DatatableType { diff --git a/src/libs/utils/fastify/index.ts b/src/libs/utils/fastify/index.ts index bbe39b5..d79cea6 100644 --- a/src/libs/utils/fastify/index.ts +++ b/src/libs/utils/fastify/index.ts @@ -1,4 +1,4 @@ export * from "./datatable"; export * from "./logger"; -export * from "./response-schema"; export * from "./response"; +export * from "./response-schema"; diff --git a/src/routes/auth/index.ts b/src/routes/auth/index.ts index cbdfe5c..d06df43 100644 --- a/src/routes/auth/index.ts +++ b/src/routes/auth/index.ts @@ -1,24 +1,25 @@ +import { AppConfig } from "@config"; +import { UnprocessableEntityError } from "@fastify-libs"; +import { AuthService } from "@services"; +import { UserInformation } from "@types"; +import { ResponseToolkit, StrToolkit } from "@utils"; import { FastifyInstance } from "fastify"; + import { + ForgotPasswordBodySchema, LoginBodySchema, + LoginResponseSchema, + RefreshTokenBodySchema, + RefreshTokenResponseSchema, RegisterBodySchema, ResendVerificationBodySchema, - VerifyEmailBodySchema, - ForgotPasswordBodySchema, ResetPasswordBodySchema, - RefreshTokenBodySchema, - LoginResponseSchema, - RefreshTokenResponseSchema, + ServerErrorResponseSchema, SuccessResponseSchema, UnauthorizedResponseSchema, ValidationErrorResponseSchema, - ServerErrorResponseSchema, + VerifyEmailBodySchema, } from "./schema"; -import { AuthService } from "@services"; -import { ResponseToolkit, StrToolkit } from "@utils"; -import { UserInformation } from "@types"; -import { AppConfig } from "@config"; -import { UnprocessableEntityError } from "@fastify-libs"; export default function (fastify: FastifyInstance) { // ====================== diff --git a/src/routes/auth/schema.ts b/src/routes/auth/schema.ts index 24c195e..3d97043 100644 --- a/src/routes/auth/schema.ts +++ b/src/routes/auth/schema.ts @@ -1,11 +1,11 @@ import { StrongPassword } from "@fastify-libs"; -import { z } from "zod"; import { createSuccessResponseSchema, + ServerErrorResponseSchema, UnauthorizedResponseSchema, ValidationErrorResponseSchema, - ServerErrorResponseSchema, } from "@utils"; +import { z } from "zod"; // Body Schemas export const LoginBodySchema = z.object({ @@ -75,7 +75,7 @@ export const SuccessResponseSchema = createSuccessResponseSchema(z.object({})); // Re-export common error responses export { + ServerErrorResponseSchema, UnauthorizedResponseSchema, ValidationErrorResponseSchema, - ServerErrorResponseSchema, }; diff --git a/src/routes/profile/index.ts b/src/routes/profile/index.ts index cc11953..6e65f71 100644 --- a/src/routes/profile/index.ts +++ b/src/routes/profile/index.ts @@ -1,15 +1,16 @@ -import { FastifyInstance } from "fastify"; import { ProfileService } from "@services"; -import { ResponseToolkit } from "@utils"; import { UserInformation } from "@types"; +import { ResponseToolkit } from "@utils"; +import { FastifyInstance } from "fastify"; + import { - UpdateProfileBodySchema, - UpdatePasswordBodySchema, ProfileResponseSchema, + ServerErrorResponseSchema, SuccessResponseSchema, UnauthorizedResponseSchema, + UpdatePasswordBodySchema, + UpdateProfileBodySchema, ValidationErrorResponseSchema, - ServerErrorResponseSchema, } from "./schema"; export default function (fastify: FastifyInstance) { diff --git a/src/routes/profile/schema.ts b/src/routes/profile/schema.ts index 4d69f1d..cdad2b6 100644 --- a/src/routes/profile/schema.ts +++ b/src/routes/profile/schema.ts @@ -1,11 +1,11 @@ import { StrongPassword } from "@fastify-libs"; -import { z } from "zod"; import { createSuccessResponseSchema, + ServerErrorResponseSchema, UnauthorizedResponseSchema, ValidationErrorResponseSchema, - ServerErrorResponseSchema, } from "@utils"; +import { z } from "zod"; // Body Schemas export const UpdateProfileBodySchema = z.object({ @@ -42,7 +42,7 @@ export const ProfileResponseSchema = createSuccessResponseSchema( export const SuccessResponseSchema = createSuccessResponseSchema(z.object({})); export { + ServerErrorResponseSchema, UnauthorizedResponseSchema, ValidationErrorResponseSchema, - ServerErrorResponseSchema, }; diff --git a/src/routes/settings/permission/index.ts.ts b/src/routes/settings/permission/index.ts.ts index 249460d..7967f6a 100644 --- a/src/routes/settings/permission/index.ts.ts +++ b/src/routes/settings/permission/index.ts.ts @@ -12,6 +12,7 @@ import { } from "@utils"; import { FastifyInstance } from "fastify"; import { z } from "zod"; + import { CreatePermissionSchema, PermissionSchema, diff --git a/src/routes/settings/role/index.ts b/src/routes/settings/role/index.ts index 12e0fbb..45471a7 100644 --- a/src/routes/settings/role/index.ts +++ b/src/routes/settings/role/index.ts @@ -12,13 +12,14 @@ import { UnauthorizedResponseSchema, } from "@utils"; import { FastifyInstance } from "fastify"; +import { z } from "zod"; + import { CreateRoleSchema, RoleDetailResponseSchema, RoleResponseSchema, UpdateRoleSchema, } from "./schema"; -import { z } from "zod"; export default function (fastify: FastifyInstance) { fastify.addHook("onRequest", async (request, reply) => { diff --git a/src/routes/settings/select/index.ts b/src/routes/settings/select/index.ts index 6745bda..524b516 100644 --- a/src/routes/settings/select/index.ts +++ b/src/routes/settings/select/index.ts @@ -7,6 +7,7 @@ import { UnauthorizedResponseSchema, } from "@utils"; import { FastifyInstance } from "fastify"; + import { SelectPermissionResponseSchema, SelectRoleResponseSchema, diff --git a/src/routes/settings/user/index.ts b/src/routes/settings/user/index.ts index 73a0b21..0a6552b 100644 --- a/src/routes/settings/user/index.ts +++ b/src/routes/settings/user/index.ts @@ -1,3 +1,4 @@ +import { UserService } from "@services"; import { BadRequestResponseSchema, buildDatatableQueryParamsSchema, @@ -10,6 +11,8 @@ import { UnauthorizedResponseSchema, } from "@utils"; import { FastifyInstance } from "fastify"; +import { z } from "zod"; + import { ChangeUserPasswordSchema, CreateUserSchema, @@ -17,8 +20,6 @@ import { UserDetailResponseSchema, UserResponseSchema, } from "./schema"; -import { UserService } from "@services"; -import { z } from "zod"; export default function (fastify: FastifyInstance) { // apply authentication to all routes in this module using autohook diff --git a/src/serve.ts b/src/serve.ts index cdd200d..6eb5d68 100644 --- a/src/serve.ts +++ b/src/serve.ts @@ -1,5 +1,7 @@ import "reflect-metadata"; + import { AppConfig } from "@config"; + import { createAppInstance } from "./app"; const app = createAppInstance(); diff --git a/src/services/auth.service.ts b/src/services/auth.service.ts index 9c189c6..09c8dea 100644 --- a/src/services/auth.service.ts +++ b/src/services/auth.service.ts @@ -1,22 +1,22 @@ -import { Hash, StrToolkit } from "@utils"; -import { UnprocessableEntityError } from "@fastify-libs"; -import { - ForgotPasswordRepository, - UserRepository, - RedisClient, -} from "@database"; -import { UserInformation } from "@types"; +import { sendEmailQueue } from "@bull/queue/send-email.queue"; +import { AppConfig } from "@config"; import { - usersTable, db, email_verificationsTable, + ForgotPasswordRepository, password_reset_tokensTable, + RedisClient, + UserRepository, + usersTable, } from "@database"; +import { + injectable, + UnprocessableEntityError, + verificationTokenLifetime, +} from "@fastify-libs"; +import { UserInformation } from "@types"; +import { Hash, StrToolkit } from "@utils"; import { and, eq, isNull } from "drizzle-orm"; -import { verificationTokenLifetime } from "@fastify-libs"; -import { AppConfig } from "@config"; -import { sendEmailQueue } from "@bull/queue/send-email.queue"; -import { injectable } from "@fastify-libs"; @injectable() export class AuthService { diff --git a/src/services/profile.service.ts b/src/services/profile.service.ts index b7e6dc2..2c400e3 100644 --- a/src/services/profile.service.ts +++ b/src/services/profile.service.ts @@ -1,8 +1,8 @@ -import { and, eq, isNull } from "drizzle-orm"; -import { Hash } from "@utils"; import { UserRepository, usersTable } from "@database"; import { UnauthorizedError, UnprocessableEntityError } from "@fastify-libs"; import { UserInformation } from "@types"; +import { Hash } from "@utils"; +import { and, eq, isNull } from "drizzle-orm"; import { injectable } from "tsyringe"; @injectable() diff --git a/src/services/settings/role.service.ts b/src/services/settings/role.service.ts index c82df44..c06836f 100644 --- a/src/services/settings/role.service.ts +++ b/src/services/settings/role.service.ts @@ -1,3 +1,4 @@ +import { db, permissionsTable, RoleRepository } from "@database"; import { UnprocessableEntityError } from "@fastify-libs"; import { DatatableType, @@ -5,7 +6,6 @@ import { RoleDetail, RoleList, } from "@types"; -import { db, permissionsTable, RoleRepository } from "@database"; import { inArray } from "drizzle-orm"; import { injectable } from "tsyringe"; diff --git a/src/services/settings/user.service.ts b/src/services/settings/user.service.ts index 44e73ee..b77f644 100644 --- a/src/services/settings/user.service.ts +++ b/src/services/settings/user.service.ts @@ -1,19 +1,19 @@ -import { UnprocessableEntityError } from "@fastify-libs"; import { - UserRepository, db, rolesTable, + UserRepository, usersTable, UserStatusEnum, } from "@database"; +import { UnprocessableEntityError } from "@fastify-libs"; import { - UserDetail, - UserList, DatatableType, PaginationResponse, + UserDetail, + UserList, } from "@types"; -import { and, eq, inArray, isNull, not } from "drizzle-orm"; import { Hash } from "@utils"; +import { and, eq, inArray, isNull, not } from "drizzle-orm"; import { injectable } from "tsyringe"; @injectable() From a2a076411d42577b328ef0903bff1206cf5762b6 Mon Sep 17 00:00:00 2001 From: zulfikar-ditya Date: Fri, 20 Feb 2026 22:33:44 +0700 Subject: [PATCH 3/4] update: package.json scripts+the docs --- .husky/pre-commit | 2 +- Makefile | 29 ++++++++++++++++++----------- README.md | 26 ++++++++++++-------------- package.json | 20 +++++++++----------- 4 files changed, 40 insertions(+), 37 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index cfe84d2..b0a16d4 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -3,4 +3,4 @@ bun lint-staged bunx drizzle-kit generate bunx drizzle-kit migrate bun run tsc --noEmit -bun run build:all \ No newline at end of file +bun run build diff --git a/Makefile b/Makefile index 2ef6d25..908d528 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help install dev build start lint lint-fix format typecheck db-generate db-migrate db-push db-pull db-studio db-drop db-seed db-clickhouse-migrate db-clickhouse-status fresh reset +.PHONY: help install dev dev-server dev-worker build start start-server start-worker lint lint-fix format typecheck db-generate db-migrate db-push db-pull db-studio db-drop db-seed db-clickhouse-migrate db-clickhouse-status fresh reset # Default target help: @@ -8,13 +8,17 @@ help: @echo " install - Install dependencies" @echo "" @echo " Development:" - @echo " dev - Run dev server with hot reload" + @echo " dev - Start server and worker with hot reload" + @echo " dev-server - Start API server only with hot reload" + @echo " dev-worker - Start worker only with hot reload" @echo "" @echo " Build:" - @echo " build - Build the application" + @echo " build - Build the application" @echo "" @echo " Production:" - @echo " start - Start the production server" + @echo " start - Start server and worker" + @echo " start-server - Start API server only" + @echo " start-worker - Start worker only" @echo "" @echo " Code Quality:" @echo " lint - Run ESLint" @@ -45,20 +49,23 @@ install: dev: bun run dev -dev-all: - bun run dev:all +dev-server: + bun run dev:server + +dev-worker: + bun run dev:worker build: bun run build -build-all: - bun run build:all - start: bun run start -start-all: - bun run start:all +start-server: + bun run start:server + +start-worker: + bun run start:worker # Code quality lint: diff --git a/README.md b/README.md index c4555e2..ccdc2ad 100644 --- a/README.md +++ b/README.md @@ -69,14 +69,14 @@ make db-seed Start the development server: ```bash +# Start both server and worker +make dev + # Start API server only make dev-server # Start worker only make dev-worker - -# Start both server and worker -make dev-all ``` The API will be available at `http://localhost:8001` @@ -116,20 +116,18 @@ src/ ### Development ```bash -make dev-server # Start server with hot reload -make dev-worker # Start worker with hot reload -make dev-all # Start server and worker concurrently +make dev # Start server and worker with hot reload +make dev-server # Start server only with hot reload +make dev-worker # Start worker only with hot reload ``` ### Production Build ```bash -make build-server # Build server -make build-worker # Build worker -make build-all # Build both server and worker -make start-server # Start production server -make start-worker # Start production worker -make start-all # Start both in production +make build # Build the application +make start # Start server and worker +make start-server # Start production server only +make start-worker # Start production worker only ``` ### Code Quality @@ -155,8 +153,8 @@ make db-seed # Run database seeders ### Database (ClickHouse) ```bash -make migrate-clickhouse # Run ClickHouse migrations -make migrate-clickhouse-status # Check migration status +make db-clickhouse-migrate # Run ClickHouse migrations +make db-clickhouse-status # Check migration status ``` ### Quick Workflows diff --git a/package.json b/package.json index bf5a489..2b8a441 100644 --- a/package.json +++ b/package.json @@ -7,18 +7,17 @@ "name": "Aolus Software" }, "scripts": { - "dev": "bun run --hot --watch ./src/serve.ts", - "dev:worker": "bun run --hot --watch ./src/bull/index.ts\t", - "dev:all": "concurrently \"bun run dev\" \"bun run dev:worker\"", - "build": "bun run tsc && bun build ./src/serve.ts --outdir=dist/server --target=node", - "build:worker": "bun build ./src/bull/index.ts --outdir=dist/bull --target=node", - "build:all": "concurrently \"bun run build\" \"bun run build:worker\"", - "start": "bun run ./dist/server/src/serve.js", - "start:worker": "bun run ./dist/bull/index.js", - "start:all": "concurrently \"bun run start\" \"bun run start:worker\"", + "dev": "concurrently --kill-others-on-fail --prefix-colors \"bgBlue.bold,bgMagenta.bold\" --names \"API,WORKER\" \"bun run dev:server\" \"bun run dev:worker\"", + "dev:server": "bun run --hot --watch ./src/serve.ts", + "dev:worker": "bun run --hot --watch ./src/bull/index.ts", + "build": "bun run tsc && bun build ./src/serve.ts --target=node --outdir=./dist/src --format=cjs", + "start": "concurrently --kill-others-on-fail --prefix-colors \"bgGreen.bold,bgMagenta.bold\" --names \"API,WORKER\" \"bun run start:server\" \"bun run start:worker\"", + "start:server": "bun run ./dist/src/serve.js", + "start:worker": "bun run ./dist/src/bull/index.js", "lint": "bun run eslint . --ext .ts,.js", "lint:fix": "bun run eslint . --ext .ts,.js --fix", "format": "bun run prettier --write .", + "typecheck": "bun run tsc --noEmit", "prepare": "husky install", "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", @@ -28,8 +27,7 @@ "db:drop": "drizzle-kit drop", "db:seed": "bun run src/libs/database/seed/index.ts", "db:clickhouse:migrate": "bun run src/libs/database/clickhouse/scripts/migrate.ts migrate", - "db:clickhouse:status": "bun run src/libs/database/clickhouse/scripts/migrate.ts status", - "typecheck": "bun run tsc --noEmit" + "db:clickhouse:status": "bun run src/libs/database/clickhouse/scripts/migrate.ts status" }, "devDependencies": { "@types/bcryptjs": "^3.0.0", From 05ced2756bd384204a8f18a3487392b225aa9040 Mon Sep 17 00:00:00 2001 From: zulfikar-ditya Date: Fri, 20 Feb 2026 22:36:48 +0700 Subject: [PATCH 4/4] update: ci file for build --- .github/workflows/ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72883f4..601b1f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,14 +65,11 @@ jobs: - name: "Run Lint" run: bun run lint - - name: "Build Server" - run: bun run build:server - - - name: "Build Worker" - run: bun run build:worker + - name: "Run Build" + run: bun run build - name: "Verify Build Output" run: | ls -lh dist/ - test -f dist/server/serve.js || exit 1 - test -f dist/worker/index.js || exit 1 + test -f dist/src/serve.js || exit 1 + test -f dist/src/bull/index.js || exit 1