Releases: coordinationEtudiante/ThePiratePhone-Backend
add validation of call by api
Pull Request Overview
This PR adds API-based client validation functionality that allows external systems to validate clients without making actual phone calls. The implementation introduces a new endpoint for programmatic client validation and automatically adds a hidden status "[hide] validate by API" to campaign satisfaction options.
- Adds new
/admin/client/validateByAPIendpoint for external validation - Implements partial client search functionality with fuzzy string matching
- Introduces hidden "[hide] validate by API" status that is excluded from statistical reports
add deep search
Introduces a new /admin/client/searchComplete endpoint that allows searching for clients using name, first name, and partial phone fragments with fuzzy matching.
add data source
Pull Request Overview
This PR adds data source functionality by extending the client model with new fields for tracking integration details and enhancing search capabilities. The changes focus on adding firstIntegration date and integrationReason fields to the Client model while improving search functionality to include firstname searches.
- Enhanced client model with integration tracking fields (
firstIntegration,integrationReason) - Extended parameter validation to support Date type checking
- Improved search functionality to include firstname and priority information
add priority for client
Pull Request Overview
This pull request adds priority functionality for clients in a call management system. The changes enable campaigns to define priority groups and clients to be assigned priorities within those groups, affecting the order in which clients are called.
- Adds priority field to Client model with campaign-specific priority IDs
- Implements campaign sortGroup configuration for defining priority levels
- Updates client selection algorithm to prioritize clients based on their assigned priority groups
create sms services
This releases adds support for sending and managing SMS messages within the admin area.
- Introduces a singleton
Smsclass for gateway integration, token management, and sending messages. - Extends utility functions for phone normalization and validation.
- Adds three new endpoints (
smsStatus,sendSms,setPhone), updates routes, tests and model.
for update:
- on area Models, admin phone is changed from
Stringto anArray<[string, string]> // [phone, name-of-admin]so update this on our databases
remove area for caller
Merge pull request #20 from ThePiratePhone/remove-area-for-caller Remove area for caller