Commit Graph
148 Commits
Author SHA1 Message Date
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
MohammadHMazarei 40bd335d30 BUG FIX: in index-all route You put the parentheses wrong 2025-04-22 13:00:09 +03:30
MohammadHMazarei 46e3c4858d BUG FIX: in searchBelongings req.query passed to the service 2025-04-22 12:59:02 +03:30
MohammadHMazarei 5ce201c4e4 UPDATE: line in indexAllBelongings, collection name to belongings 2025-04-22 12:58:25 +03:30
MohammadHMazarei 1ae70dda18 UPDATE: protocole to HTTPS 2025-04-22 12:56:15 +03:30
MohammadHMazarei bed56013c7 UPDATE: TYPE_API_KEY 2025-04-22 12:55:47 +03:30
MohammadHMazarei 2b84501e75 UPDATE: multer and mongoose packages 2025-04-22 12:55:09 +03:30
kavehhn 9faaeef9ce FIX: Transaction Route names
FIX: Bug where belonging transactions wouldnt select properly
2025-04-21 23:52:32 +03:30
kavehhn 6f0b634314 ... 2025-04-21 01:03:09 +03:30
Kaveh HajiNajaf ef97dc7ea0 Merge pull request #6 from kavehhn174/transaction
Transaction
2025-04-21 00:38:33 +03:30
kavehhn 11a86929e7 ADD: Required to role field in user 2025-04-21 00:36:35 +03:30
MohammadHMazarei c286ba2318 ADD: get transactions by Belonging Id GET endpoint 2025-04-20 23:58:29 +03:30
MohammadHMazarei 77191d957e ADD: get transactions by Belonging Id handler 2025-04-20 23:58:10 +03:30
MohammadHMazarei c89da28bd9 ADD: get transactions by Belonging Id 2025-04-20 23:57:46 +03:30
MohammadHMazarei 461d22a581 UPDATE: npm packages 2025-04-20 23:57:15 +03:30
Kaveh HajiNajaf c161dee76b Merge pull request #5 from kavehhn174/transaction
Transaction
2025-04-19 23:38:47 +03:30
kavehhn 4a2e4bf2ae Merge branch 'main' into transaction
# Conflicts:
#	config/.env
#	package-lock.json
#	package.json
#	setup/routerEndpoints.js
2025-04-19 23:37:59 +03:30