Skip to content

Releases: coordinationEtudiante/ThePiratePhone-Backend

add validation of call by api

24 Aug 08:57
0d23d51

Choose a tag to compare

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/validateByAPI endpoint 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

28 Jul 19:58
3873689

Choose a tag to compare

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

24 Jul 13:45
c9ffc06

Choose a tag to compare

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

22 Jul 17:30
8bc3b49

Choose a tag to compare

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

10 Jul 23:11
c5cab7a

Choose a tag to compare

This releases adds support for sending and managing SMS messages within the admin area.

  • Introduces a singleton Sms class 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 String to an Array<[string, string]> // [phone, name-of-admin] so update this on our databases

remove area for caller

04 Jul 16:54
67c1784

Choose a tag to compare

Merge pull request #20 from ThePiratePhone/remove-area-for-caller

Remove area for caller

Add test

07 Nov 08:18
6c9b34d

Choose a tag to compare

Added tests for all functions and fixed minor compatibility issues.

V2

30 Jul 20:09
108d44a

Choose a tag to compare

V2

adding call table, for convert your DB see this repo