feat: refactor API controllers and fix machine creation
-
Split monolithic 1c.controller.ts into separate controllers:
- CompaniesController for company management
- MachinesController for machine management
- PartsController for parts/details management
- ServiceRequestsController for service requests
- SyncController for synchronization
-
Fix machine creation in Bitrix24:
- Remove invalid ID field from creation request
- Fix CREATED_BY field to use ASSIGNED_BY_ID
- Add proper error handling for Bitrix API calls
-
Update CompanyDto examples:
- Change revenue field from string to integer in examples
- Fix Swagger documentation for better API clarity
-
Modify PartsController:
- Remove array support, accept only single object
- Update Swagger documentation accordingly
- Use createSingleNoteBitrix instead of createMultipleNotesBitrix
-
Add .env.local for local development configuration