164 Commits
Author SHA1 Message Date
kavehhn 898ff6cf69 fix(docker): remove apk add and dumb-init to avoid build timeout
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-30 09:49:32 +03:30
kavehhn d140de86a3 build(docker): use liara npm mirror registry
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-30 09:42:11 +03:30
kavehhn 576ccf5421 feat(dashboard): add aggregated dashboard stats API, robust logout, and warehouse seeders
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-30 09:29:21 +03:30
kavehhn 9b88b342ad fix(file): skip redundant MinIO round-trips for files already in target bucket
deploy-chabokan / deploy (push) Canceled after 0s
moveFromTempToMain was calling statObject/copy/remove against MinIO for
every file already attached to a property on every save, even when the
file was already in the target bucket and never touched temp. This added
a blocking network round-trip per image/document on every property save.
Now files already pointing at the target bucket are returned immediately
without hitting MinIO.
2026-08-19 08:02:10 +03:30
kavehhn e63ac1ddf4 fix(property): optimize save performance, fix 2dsphere index error and make search indexing non-blocking
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 07:46:08 +03:30
kavehhn 30ea3aed84 feat(settings): add autosave settings API endpoints and persistence
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 07:27:07 +03:30
kavehhn fb4a98f83c fix(date): add id and name to persianMonths definition
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 07:17:35 +03:30
kavehhn 7d70a64cd6 fix(property): support resolving properties by propertyCode and ObjectId in CRUD
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 07:13:29 +03:30
kavehhn 95c0532374 fix(auth/property): resolve auth token resolution, add property seeder
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 07:08:36 +03:30
kavehhn 284594c782 feat(seeder): add one-time database seeding endpoint with status tracking
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 06:49:53 +03:30
kavehhn 8bdd5af719 feat(property): convert registrationDate to Date object and add Jalali utilities
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 06:45:50 +03:30
kavehhn 982b9e759f fix(s3): generate and use seaweedfs signed urls for properties and documents
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 06:30:00 +03:30
kavehhn acb2e5d623 feat: add MongoDB search method, endpoints, and settings module
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 05:50:14 +03:30
kavehhn 3829851566 feat(cron): add 5-minute property index cronjob with change detection
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 05:06:19 +03:30
kavehhn 31ebafb53c feat(bucket): auto-create buckets and move files from temp to main buckets on property save
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 04:58:14 +03:30
kavehhn dd611df7e5 fix(file): ensure full valid URLs in publicUrl and privateUrl virtual getters
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 04:49:40 +03:30
kavehhn 61c9012912 fix(file): add file validation and robust payload parsing for bucket upload and delete
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-19 04:35:42 +03:30
kavehhn 2b94fdb034 feat: add env-based super admin authentication and complete role & permission system
deploy-chabokan / deploy (push) Canceled after 0s
2026-08-18 00:08:04 +03:30
kavehhn 86655f2b69 Remove redis and add healthcheck endpoint 2026-08-17 22:50:49 +03:30
kavehhn 1618eae69f ADD: Production multi-stage Dockerfile and .dockerignore 2026-08-17 12:42:37 +03:30
kavehhn ca911b97a0 REFACTOR: Belonging → Property system migration + utilities update
Property system:
- Rename belonging → property throughout (model, controller, routes, service)
- Add property sub-models: buildingModel, landModel, belongingModel
- Add property lifecycle events: createProperty, deleteProperty
- Add propertyStatus component (model, controller, routes, service, seeder)
- Add commodity and commodityTransaction model stubs

Infrastructure:
- Update transactionModel and transactionService
- Update events/index.js for new property events
- Update seeder (seederDBConnection, seederRunner)
- Update typesense client configuration
- Update upload utilities (bucket, minio)
- Update featureModel and featureSeeder
- Update categorySeeder
- Update TsApiFeatures utility
- Remove docker-compose.yml (moved to root)
- Remove legacy belonging component files
2026-08-11 20:35:47 +03:30
kavehhn a9432b96c0 ADD: Warehouse inventory management system
- Add WarehouseItem model with bilingual names (FA/EN) and bilingual counting units
- Add WarehouseItemTransaction model for IN/OUT movements with reason and actor
- Add WarehouseItemStock model for denormalized per-(item×warehouse) running balance
- Add warehouseItemService with full CRUD, atomic stock updates via $inc, negative stock guard, and aggregation queries for per-item/per-warehouse/total stock
- Add warehouseItemController and REST routes at /api/warehouse-items
- Add warehouseService, warehouseController, warehouseRoutes for warehouse location CRUD at /api/warehouses
- Register both route groups in routerEndpoints.js
2026-08-11 20:09:10 +03:30
kavehhn 0fe799e008 FIX: Minor bug 2025-06-04 16:17:52 +03:30
kavehhn de60d4f163 ADD: Events
ADD: Index One Belonging
ADD: Belonging Code
2025-06-04 16:07:45 +03:30
kavehhn 98044a18f2 ADD: Cors 2025-06-04 14:37:56 +03:30
kavehhn a2f157611d ADD: NationalGeoCode 2025-05-10 20:48:20 +03:30
kavehhn 39e909ee47 FIX: Belonging Bugs 2025-05-03 18:51:52 +03:30
kavehhn 1bcff0e73a FIX: Belonging Bugs 2025-05-03 18:45:23 +03:30
kavehhn 2e11c65b11 FIX: Transaction Bugs 2025-05-03 15:47:33 +03:30
kavehhn 35163f7ac7 ADD: Cors 2025-04-29 23:03:34 +03:30
Kaveh HajiNajaf 9c24ba2f76 Merge pull request #12 from kavehhn174/fix-bugs
FIX: Minor bugs
2025-04-29 22:58:05 +03:30
kavehhn 10072ca77c FIX: Minor bugs 2025-04-29 22:57:24 +03:30
Kaveh HajiNajaf 45a55d48ba Merge pull request #11 from kavehhn174/fix-bugs
ADD: deploy.yaml
2025-04-29 20:50:12 +03:30
kavehhn d8d80482a6 ADD: deploy.yaml 2025-04-29 20:49:33 +03:30
Kaveh HajiNajaf 01cda22d5b Merge pull request #10 from kavehhn174/fix-bugs
Fix bugs
2025-04-29 20:44:24 +03:30
kavehhn 34b12d5b91 ADD: ImageUrl 2025-04-29 20:43:43 +03:30
kavehhn cc2f0c6891 Merge branch 'typesense-search-engine' into fix-bugs 2025-04-29 19:38:22 +03:30
Kaveh HajiNajaf f2917f5052 Merge pull request #9 from kavehhn174/typesense-search-engine
Typesense search engine
2025-04-29 19:32:25 +03:30
kavehhn be732e252d ADD: Npm run dev
REMOVE: Redundant logs
2025-04-27 23:24:15 +03:30
MohammadHMazarei 013828badc ADD: updateInputQuery logic 2025-04-27 16:55:58 +03:30
MohammadHMazarei 47266377e1 ADD: updateInputQuery logic 2025-04-27 16:55:50 +03:30
Kaveh HajiNajaf 767d7c1cc3 Merge pull request #8 from kavehhn174/fix-bugs
Fix bugs
2025-04-27 16:19:18 +03:30
kavehhn 4fc323cd16 ADD: API_URL to env
ADD: DocumentUrls and mainImageUrls field in belonging model
FIX: Indexing bugs for belonging
ADD: getImage endpoint to get private images
ADD: PrivateUrl field as virtual
FIX: Minor bug in bucketDeleteFile service
ADD: Word type to multer file checker
2025-04-27 16:17:17 +03:30
kavehhn d7d2d98b6d Merge branch 'typesense-search-engine' into fix-bugs 2025-04-25 22:00:11 +03:30
MohammadHMazarei 8c79d2cc76 ADD: CreatedAt to the transactions typesense schema 2025-04-22 13:48:55 +03:30
MohammadHMazarei 5e74bf174b BUG FIX: typesense schema and data 2025-04-22 13:48:14 +03:30
MohammadHMazarei 718752589b BUG FIX: wrong URL for typsense 2025-04-22 13:44:01 +03:30
MohammadHMazarei 4e616ba466 ADD: indexAllTransactions and searchTransactions POST and GET endpoints 2025-04-22 13:02:02 +03:30
MohammadHMazarei f7cfe625fd ADD: indexAllTransactions and searchTransactions handlers 2025-04-22 13:01:40 +03:30
MohammadHMazarei 44d241813b ADD: indexAllTransactions and searchTransactions services 2025-04-22 13:01:22 +03:30